Home Forums MOCHAbin Forum Hardware discussions Better WIKI documentation? Reply To: Better WIKI documentation?

#50514
dhliu
Keymaster

How to Load root-fs image from USB after boot-up with ubuntu OS

1. Make an ext4 partition in usbdisk
2. Extract GTI official Ubuntu rootfs directly to ext4 partition
3. Modify u-boot bootcmd

env default -a

setenv image_name boot/Image
setenv fdt_name boot/armada-7040-mochabin.dtb
setenv bootcmd ‘usb reset; part uuid usb 0:1 partuuid; load usb 0:1 $kernel_addr_r $image_name; load usb 0:1 $fdt_addr_r $fdt_name; setenv bootargs $console root=PARTUUID=$partuuid rw rootwait net.ifnames=0 biosdevname=0 $extra_params; booti $kernel_addr_r – $fdt_addr_r’

saveenv
boot

4. More to say,

The above “load USB 0:1” represents USB device 0, partition 1. If ext4 partition is not in partition 1, it needs to be corrected accordingly
In addition, when U-boot captures USB disks, sometimes it doesn’t capture USB storage somehow, so you need to perform USB reset to retrieve it again

Signup to our newsletter

Technical specification tables can not be displayed on mobile. Please view on desktop