PINE64
Is it possible to choose between SD/eMMC boot programmatically? - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: Pinebook (https://forum.pine64.org/forumdisplay.php?fid=76)
+--- Forum: General Discussion on Pinebook (https://forum.pine64.org/forumdisplay.php?fid=77)
+--- Thread: Is it possible to choose between SD/eMMC boot programmatically? (/showthread.php?tid=7100)



Is it possible to choose between SD/eMMC boot programmatically? - UltraBloxX - 01-27-2019

Hello! I would like to dual-boot two distros on Pinebook, e.g. one on eMMC + one on microSD, but apparently, microSD takes the priority and as long as it's inserted - will boot first. Removing/reinserting SD just to force eMMC boot is inconvenient for me (very short nails, need to find something to push SD) and would be unwanted stress on SD slot. Is there a way to choose eMMC boot from u-boot?


RE: Is it possible to choose between SD/eMMC boot programmatically? - martinayotte - 01-27-2019

(01-27-2019, 03:13 AM)UltraBloxX Wrote: Is there a way to choose eMMC boot from u-boot?

Yes ! With Armbian u-boot, stop u-boot early to get into command prompt, then use the following commands :


Code:
mmc list
setenv devnum X   (where X is the eMMC number shown in previous list)
run mmc_boot



RE: Is it possible to choose between SD/eMMC boot programmatically? - UltraBloxX - 01-28-2019

(01-27-2019, 09:01 AM)martinayotte Wrote:
(01-27-2019, 03:13 AM)UltraBloxX Wrote: Is there a way to choose eMMC boot from u-boot?

Yes ! With Armbian u-boot, stop u-boot early to get into command prompt, then use the following commands :


Code:
mmc list
setenv devnum X   (where X is the eMMC number shown in previous list)
run mmc_boot

martinayotte, huge thanks!  Smile