From Ronetix's Wiki
Jump to navigation Jump to search


The U-Boot boot-loader is used for low-level initialization and operating system loading.

Building U-BOOT for iMX8M-MINI-CM

This U-BOOT is based on, branch imx_v2020.04_5.4.24_2.1.0

Setup the cross compiler and CPU architecture

$ export ARCH=arm64
$ export CROSS_COMPILE=/opt/cross/aarch64-ronetix-linux-11.1/bin/aarch64-ronetix-linux-gnu-

Cross compiler can be downloaded from here:

Clone the latest revision of the repo

$ git clone u-boot-ronetix --depth=1 -b imx_v2020.04_5.4.24_2.1.0_rnx
$ cd u-boot-ronetix


$ make imx8mm_cm_defconfig

Download and build i.MX8M firmware

$ source tools/ imx8mm


$ make flash.bin

Build Results

File Name Description
u-boot U-BOOT ELF image used for JTAG debugging
u-boot-dtb.imx U-BOOT image with DTB
flash.bin U-BOOT image with DTB and firmware

Flashing U-BOOT image to a SD card

Replace sdX with the right device name.

$ sudo dd if=flash.bin of=/dev/sdX bs=1k seek=33 conv=fsync

See also