Table of Contents

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/