uboot script to place SD boot priority over eMMC

I'm not entirely sure if this will work here, but over on another forum for maker boards, we've been struggling with the same boot order on a new device. One person modified uboot in the default Debian build to put SD before eMMC, and another person shared an edited script for us to use on other OSes. After coming back here and being reminded of that wonderful headache, I thought it might be worth sharing the modified script here so users can see if it works for them, too!

https://pastebin.com/raw/EeK074XB

Comments

  • If you interrupt the u-boot startup sequence, you can see which u-boot commands are run. By default, u-boot will run distro_bootcmd which then runs a bunch of other commands like boot_mmc boot_usb etc etc. All you have to do is modify the distro_bootcmd variable and then save the environment.
Sign In or Register to comment.