Booting - User device selection in U-Boot?
#7
All these things you propose can and have be done with u-boot.  For some reason the pinebook pro has an barely functional u-boot with no features.

U-boot has a console, where it's possible to boot specific kernels with custom command lines, mount file systems, copy files between devices, do basic networking like DHCP, ping, tftp load files and mount network drives with NFS.

It can use USB device mode to make the eMMC appear as a flash drive to a host computer connected to the USB port.  Really handy way to repair an eMMC that won't boot, compared to needing to open the pbp up and remove the eMMC module!

You can create scripts to do certain things, e.g. "boot-emmc", "boot-sd", "boot-sdkernel-emmcroot".

There is a menu system that can list boot options and allows selecting one.

It's possible to create an automatic fallback system.  If a kernel fails to boot a certain number of times in a row, then an alternate kernel will be used.  Something run in Linux marks a boot as good when it's reached some point considered good enough, like systemd has finished entering multi-user.target.  Every embedded Linux product I've designed has had something like this.

But the u-boot on the PBP doesn't even have keyboard or fb support, so one can't even seen an error message if it doesn't boot, much less any of the above.


Messages In This Thread
RE: Booting - User device selection in U-Boot? - by xyzzy - 11-18-2020, 06:15 PM

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

Forum Jump:


Users browsing this thread: 2 Guest(s)