uBoot setting to detect usb device and set root from usb partition if detected

Hi,

Is there any common way to detect usb device connected. If usb device connected then boot from there else boot from emmc

Hello @maurya ,

The following articles provide information on your query:

https://developer.toradex.com/knowledge-base/boot-from-sd-usb-sata &
https://developer.toradex.com/knowledge-base/usb-device-mode-(linux)

And regarding USB partition, please refer the following link:

https://developer.toradex.com/knowledge-base/linux-booting#eMMC_Hardware_Boot_Area_Partitions_ApalisColibri_iMX6_and_ApalisColibri_T30

Kind Regards,

Janani.