Template:iMX8M-UBOOT: Difference between revisions
Jump to navigation
Jump to search
(Initial import) |
(Add download and build of firmware) |
||
Line 12: | Line 12: | ||
$ cd u-boot-ronetix | $ cd u-boot-ronetix | ||
==== Configure | ==== Configure ==== | ||
$ make {{#var:DEFCONFIG_NAME}} | $ make {{#var:DEFCONFIG_NAME}} | ||
==== Download and build i.MX8M firmware ==== | |||
$ source source tools/imx8m_build_firmware.sh {{#var:SOC}} | |||
==== Build ==== | |||
$ make | $ make | ||
Revision as of 11:06, 8 October 2021
Overview
The U-Boot boot-loader is used for low-level initialization and operating system loading.
Building U-BOOT for
This U-BOOT is based on https://source.codeaurora.org/external/imx/uboot-imx.git, branch
Setup the cross compiler and CPU architecture
$ export ARCH=arm64 $ export CROSS_COMPILE=/opt/cross/aarch64-ronetix-linux-10.2/bin/aarch64-ronetix-linux-gnu-
Clone the latest revision of the repo
$ git clone https://github.com/ronetix/u-boot.git u-boot-ronetix --depth=1 -b $ cd u-boot-ronetix
Configure
$ make
Download and build i.MX8M firmware
$ source source tools/imx8m_build_firmware.sh
Build
$ make
Build Results
File Name | Description |
---|---|
u-boot | U-BOOT ELF image used for JTAG debugging |
u-boot-dtb.imx | U-BOOT image with DTB |
Flashing U-BOOT image to a SD card
Replace sdX with the right device name.
$ sudo dd if=u-boot-dtb.imx of=/dev/sdX bs=1k seek=1 conv=fsync
The U-BOOT image should be at address 0x400 on the SD card.