Ok I get it, Android is flashed on the emmc and even if there is a SD card in the slot, booting from the emmc is the default.
I have a serial console connected to gpio GPIOAO_0 and GPIOAO_1 and can interrupt u-boot. Rather than erase the emmc, I would like to tell uboot to load what is on the SD card. “ls mmc 0” lists the SD card boot partition, and after looking at the boot.cmd file thought these commands would work … but they don’t:
radxa_zero#setenv devtype mmc
radxa_zero#setenv devnum 0
radxa_zero#setenv load_addr "0x1600000"
radxa_zero#load mmc 0 ${load_addr} uEnv.txt
card in
co-phase 0x2, tx-dly 0, clock 400000
co-phase 0x2, tx-dly 0, clock 400000
co-phase 0x2, tx-dly 0, clock 400000
co-phase 0x2, tx-dly 0, clock 400000
co-phase 0x2, tx-dly 0, clock 40000000
aml_sd_retry_refix[983]:delay = 0x0,gadjust =0x2000
[mmc_startup] mmc refix success
init_part() 282: PART_TYPE_DOS
[mmc_init] mmc init success
reading uEnv.txt
383 bytes read in 4 ms (92.8 KiB/s)
radxa_zero#env import -t ${load_addr} ${filesize}
radxa_zero#echo ${verbosity}
7
radxa_zero#load mmc 0 ${load_addr} boot.scr
reading boot.scr
3260 bytes read in 4 ms (795.9 KiB/s)
radxa_zero#source ${load_addr}
## Executing script at 01600000
radxa_zero#
I just get a prompt back … what am I missing?
Or, is there a simpler way to boot the Ubuntu Focal image from the uboot command line?
[EDIT] Oh, just saw this … Trying to figure out whats wrong with my radxa zero
It’s annoying that there are different u-boots …
Which one at https://dl.radxa.com/zero/images/loader can boot linux from an SD card?