Use UMS to Update kernel and resize partition - TechNexion/u-boot-tn-imx GitHub Wiki

Enter to UMS (USB Mass Storage) in u-boot on target board

ums 0 mmc 0

The mmc number should correspond to eMMC, it may vary by different platforms.

Check from this command:

mmc list

ums_demo_00.png

For PICO-IMX8M:

ums 0 mmc 0

For PICO-IMX8MM/FLEX-IMX8MM

ums 0 mmc 1

ums_demo_01.png

Manipulate eMMC as USB mass storage on host PC

lsblk

ums_demo_02.png

It's able to replace kernel image and dtb in the 1st FAT partition of eMMC.

Resize partition in eMMC

  1. Install partition tool - gparted

sudo apt-get install gparted

  1. Execute gparted to resize partition:

sudo gparted /dev/sdX

ums_demo_03.png