Skip to content

Example

nxpfrankli edited this page Feb 1, 2022 · 10 revisions

Basic

Download boot loader for imx6\imx7

uuu uboot.imx

Download boot loader for imx8qxp

uuu flash.bin

Download SPL and uboot, such as imx8mq.

uuu sdp: boot -f flash.bin
uuu sdpu: delay 1000
uuu sdpu: write -f flash.bin -offset 0x57c00
uuu sdpu: jump

Burn Android Image to eMMC

uuu android.zip (not implement default yet)

Burn yocto Image to eMMC

uuu L4.9.123_2.3.0_8mm-ga.zip

Built-in script

uuu -b emmc bootloader                           Write bootloader to emmc
uuu -b emmc_all bootloader rootfs.sdcard         Write rootfs to emmc
uuu -b emmc_all bootloader rootfs.sdcard.bz2/*   Decompress rootfs and write rootfs to emmc
uuu -b sd bootloader                             Write bootloader to sd card
uuu -b sd_all bootloader rootfs.sdcard           Write rootfs to sd card
uuu -b sd_all bootloader rootfs.sdcard.bz2/*     Decompress rootfs and write rootfs to sd card
uuu -b qspi qspi_bootloader                      write bootloader to qspi
uuu -b qspi qspi_bootloader m4image              write m4image to qpsi
uuu -b spl bootloader                            Download SPL and uboot

Notes:

Some boards have many sd slot. built-in script only work uboot environment ${sd_dev} point to slot
Some boards have not emmc chip, emmc build in script does not work for such boards

multi boards support

For the same boards

uuu -d uuu.auto                      The same boards connected

For the difference boards

uuu -d -m 1:1 -m 2:1 boardA_uuu.auto           monitor port 1:1 and 2:1 for boardsA.
uuu -d -m 1:3 -m 4:1 boardB_uuu.auto           monitor port 1:3 and 4:1 for boardsB.

Note: please avoid monitor the same port by difference uuu instance, which cause unexpected result.

Talk with fastboot

boot linux kernel

uuu FB: ucmd setenv fastboot_buffer ${loadaddr}
uuu FB: download –f Image
uuu FB: ucmd setenv fastboot_buffer ${fdt_addr}
uuu FB: download –f imx8qxp_mek.dtb
uuu FB: acmd booti ${loadaddr} - ${fdt_addr}

Notes: Linux/Mac user need add \ before $ to avoid shell replace environment variable.

Extended environment for fastboot

fastboot_buffer      Image download address
fastboot_bytes       reflect previous download image byte size

write image to emmc

uuu FB: flash -raw2sparse all <image file>

Talk with linux kenrel, transfer file between board and pc

on board, run \linuxrc&
on pc,    uuu fbk:ucp file t:\file