Booting - User device selection in U-Boot?
#6
(06-08-2020, 09:55 AM)Arwen Wrote: Yes, either Grub with menu, or the simple U-Boot device selection would work.
People doing testing could then select which OS to boot. If it fails, no problem,
just reboot and select the working OS and make a change to the one under
test. Then try again.

At present, I don't see Grub getting both text menu, (on the LCD), and keyboard
support, (also the PBP keyboard, not serial console), any time soon. Grub seems
to support such for x86/x64, but that is likely through BIOS calls that don't exist
for any ARM computer.

Thinking about it, I've added ESC & Return keys to the original post, to do the
obvious thing.

I got the PBP keyboard to work with u-boot and grub (using the arm64-efi target). It's as simple as adding a few flags when compiling u-boot to instruct it to enable the necessary USB support, and having "usb start" as part of the boot script (note this does slow down the boot by a second or two). Unfortunately the menu only displays over a serial console since u-boot doesn't know how to initialize LCD.

If anyone has any pointers on how to port the LCD/eDP drivers that linux uses to u-boot I'd love to hear it. The code for both are sooo similar, and unfortunately I wasn't smart enough to figure out the right combination of edits to the u-boot code to make it work (can only make the screen briefly flicker).


Messages In This Thread
RE: Booting - User device selection in U-Boot? - by amiraeva - 06-08-2020, 10:28 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Bonk to boot biketool 0 483 10-01-2025, 02:17 AM
Last Post: biketool
  3 days in, slow/stuck or no boot. lgmpbp2 34 19,512 06-11-2025, 08:53 AM
Last Post: lgmpbp2
  upgrading u-boot--what version? where to get it? bsammon 14 12,637 04-03-2025, 07:47 AM
Last Post: Tazdevl
Tongue Yet another Pinebook Pro won't boot thread pinemouth 5 9,750 12-27-2024, 11:38 AM
Last Post: akash3995
  broken tow-boot hashkeeper 1 3,153 12-25-2024, 10:12 PM
Last Post: jessipinkman
  Cant boot into an OS trashtendenz 3 4,195 10-23-2024, 03:49 AM
Last Post: chaylengordon
  Unable to boot? YossiS 4 2,692 09-04-2024, 10:35 AM
Last Post: wdt
  Converting the Pinebook Pro into a CrowView Note like device 8jef 0 1,043 08-18-2024, 05:42 PM
Last Post: 8jef
  uboot wont boot to SD card after upgrade jbradley419 7 6,224 01-19-2024, 02:29 PM
Last Post: wdt
  Video Flashing/adjusting on boot and reboot jbradley419 0 1,988 01-16-2024, 09:17 AM
Last Post: jbradley419

Forum Jump:


Users browsing this thread: 1 Guest(s)