Hi,
I have a 3530 board with sys_boot pins[4:0] set for boot order: usb,uart3,mmc1,nand. This order works booting from NAND, but with flash erased and booting MLO from an SD card, x-loader tries getting the secondary bootloader from flash instead of SD.
The way x-loader is written, it uses the 3530's control_status register (0x480022F0) to determine where to get u-boot, and in my case, mmc_boot() is never attempted.
Is there a way to determine which boot source (nand or sd) the 3530 boot ROM used to read MLO? I'd like to avoid having a physical switch like the BeagleBoard uses to change the sys_boot pins and instead have x-loader figure out the right thing to do: MLO from SD loads u-boot.bin from SD and x-loader from NAND gets u-boot from NAND.
Thanks!
John