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:

Boot From an SD Card / USB Stick / SATA drive | Toradex Developer Center &
High performance, low power Embedded Computing Systems | Toradex Developer Center

And regarding USB partition, please refer the following link:

Kind Regards,

Janani.