Using USB in U-Boot
Initialise new connected USB devices
TQMa6x[MBa6x] U-Boot > usb start
Connected storage devices
TQMa6x[MBa6x] U-Boot > usb storage
Currently used storage devices
TQMa6x[MBa6x] U-Boot > usb dev
Partition information of USB storage device
TQMa6x[MBa6x] U-Boot > usb part
Read FAT file system of USB device (e.g., for USB device 0 partition 1)
TQMa6x[MBa6x] U-Boot > fatls usb 0:1
Read Ext4 file system of USB device (e.g., for USB device 0 partition 1)
TQMa6x[MBa6x] U-Boot > ext2ls usb 0:1
Read USB information from Kernel Ring Buffer
root@MBa6x:~ dmesg | grep -i usb
Mount USB Stick/HDD in Linux
If a USB device is inserted after booting, the kernel will automatically provide information about the recently connected device. Thus one can easily read which device is to be used for mounting. The first partition of the device is sda1.
Read UUID of USB Storage device
root@MBa6x:~ blkid
Mount /dev/sda1 to /mnt
root@MBa6x:~ mount /dev/sda1 /mnt/
Disclaimer
TQ-Systems GmbH provides the Board Support Packages (BSP) free of charge. The software included in the shipment has been configured individually for the starter kits. The software is only intended to evaluate the module. The use of the Board Support Packages (BSP) is only allowed within the scope of functionality described by TQ-Systems GmbH. TQ-Systems GmbH does not accept any liability for all further changes of the Board Support Package and for any damage resulting from its use.
TQ-Systems GmbH provides the Board Support Packages (BSP) free of charge. The software included in the shipment has been configured individually for the starter kits. The software is only intended to evaluate the module. The use of the Board Support Packages (BSP) is only allowed within the scope of functionality described by TQ-Systems GmbH. TQ-Systems GmbH does not accept any liability for all further changes of the Board Support Package and for any damage resulting from its use.