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