PINE64
Switching boot source on SOPINE64 - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PINE A64(+) (https://forum.pine64.org/forumdisplay.php?fid=4)
+--- Forum: General Discussion on PINE A64(+) (https://forum.pine64.org/forumdisplay.php?fid=3)
+--- Thread: Switching boot source on SOPINE64 (/showthread.php?tid=4196)



Switching boot source on SOPINE64 - stephen fleming - 03-07-2017

How will the selection of boot source be handled on the SOPINE64? I do not see a switch or jumper on the baseboard or module board to switch between a micro SD card and a eMMC card.


RE: Switching boot source on SOPINE64 - MarkHaysHarris777 - 03-07-2017

The boot source will be the SD card; the /rootfs can run from the eMMC.


RE: Switching boot source on SOPINE64 - xalius - 03-07-2017

The A64 will probe the mmc/spi interfaces in a set sequence, sdcard has priority over eMMC, so it depends where you have a valid boot0/spl loader. You can also install u-boot into the SPI flash and boot from network or USB for example. If no valid boot source is found, it will fall back into FEL bootloader mode which is communicating viat the USB OTG port. This can be used to upload u-boot for example and then boot or expose eMMC as USB mass storage...

Code:
boot-> check fel key pressed (yes)--> FEL mode (boot from USB OTG)
                         \  
                     (no) \
                           \-------> 1) try to boot from SMHC0 (SD card)
                                     2) try to boot from SMHC2 (eMMC)
                                     3) try to boot from SPI0 (SPI NOR Flash)
                                     4) FEL mode (boot from USB OTG)