This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

x-loader, u-boot and determining boot device

Other Parts Discussed in Thread: DM3730

Is there a way for x-loader (or any code) to know which device the OMAP booted from?  The standard x-loader appears to use the sys_boot[] value to know.

However, I'd like to be able to alternatively boot from either MMC2 (first) or MMC1 (second).  So if the OMAP ROM successfully loads x-loader from MMC2, then x-loader should only attempt to load u-boot from MMC2.  Alternatively, if the OMAP ROM fails to load x-loader from MMC2, it will (after failing via USB and UART3) try from MMC1 - assuming it succeeds, x-loader would then only attempt to load u-boot from MMC1.

Thanks,

twebb