Template:iMX8M-UBOOT: Difference between revisions
Jump to navigation
Jump to search
(fix a typo) |
(use variables for ARCH, CROSS_COMPILE and SEEK) |
||
Line 5: | Line 5: | ||
This U-BOOT is based on https://source.codeaurora.org/external/imx/uboot-imx.git, branch {{#var:UBOOT_BRANCH_ORIG}} | This U-BOOT is based on https://source.codeaurora.org/external/imx/uboot-imx.git, branch {{#var:UBOOT_BRANCH_ORIG}} | ||
==== Setup the cross compiler and CPU architecture ==== | ==== Setup the cross compiler and CPU architecture ==== | ||
$ export ARCH= | $ export ARCH={{#var:ARCH}} | ||
$ export CROSS_COMPILE | $ export {{#var:CROSS_COMPILE}} | ||
==== Clone the latest revision of the repo ==== | ==== Clone the latest revision of the repo ==== | ||
Line 19: | Line 19: | ||
==== Build ==== | ==== Build ==== | ||
$ make | $ make flash.bin | ||
= Build Results = | = Build Results = | ||
Line 38: | Line 38: | ||
= Flashing U-BOOT image to a SD card = | = Flashing U-BOOT image to a SD card = | ||
Replace sdX with the right device name. | Replace sdX with the right device name. | ||
$ sudo dd if= | $ sudo dd if=flash.bin of=/dev/sdX bs=1k seek={{#var:SEEK}} conv=fsync | ||
= See also = | = See also = |
Revision as of 10:31, 11 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= $ export
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 tools/imx8m_build_firmware.sh
Build
$ 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 |
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= conv=fsync