UBOOT: boot from SATA device

Tagged as uboot, sata

Written on 2016-03-13 20:59:13

This is a complete ripoff from a forum post here so I do not need to fear losing this snippet of information:

setenv sataroot "/dev/sda1"
setenv satadev 0
setenv satapart 1
setenv loaduimagesata 'ext2load sata ${satadev}:${satapart} ${loadaddr} ${uimage}'
setenv sataargs 'setenv bootargs console=${console},${baudrate} root=${sataroot} ${hdmi_patch} fbmem=24M video=mxcfb0:dev=hdmi,1920x1080M@60,bpp=32'
setenv sataboot 'echo Booting from sata ...; run sataargs ; bootm'
setenv bootcmd 'sata dev ${satadev}; run loaduimagesata; run sataboot;'

To switch back to the MMC card being the boot device, just change the bootcmd back to default like so:

setenv bootcmd 'mmc dev ${mmcdev}; if mmc rescan; then if run loadbootscript; then run bootscript; else if run loaduimage; then run mmcboot; else run netboot; fi; fi; else run netboot; fi'

Unless otherwise credited all material Creative Commons License by sjas