iMX7-CM U-Boot: Difference between revisions
Jump to navigation
Jump to search
Created page with "{{#vardefine:HARDWARE_NAME|i.MX7-CM}} <!-- -->{{#vardefine:UBOOT_TAG|v2019.10}} <!-- -->{{#vardefine:DEFCONFIG_NAME|imx7_cm_defconfig}} <!-- --> [[File:iMX7-CM top.png|thumb]..." |
No edit summary |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{#vardefine:HARDWARE_NAME| | {{#vardefine:HARDWARE_NAME|iMX7-CM}} | ||
{{#vardefine:UBOOT_BRANCH_ORIG|imx_v2020.04_5.4.24_2.1.0}} | |||
{{#vardefine:UBOOT_BRANCH|imx_v2020.04_5.4.24_2.1.0_rnx}} | |||
-- | {{#vardefine:DEFCONFIG_NAME|imx7_cm_defconfig}} | ||
[[File:iMX7-CM top.png|thumb]] | {{#vardefine:ARCH|arm}} | ||
{{#vardefine:CROSS_COMPILE|/opt/cross/arm-ronetix-eabi-8.3.0/bin/arm-ronetix-eabi-}} | |||
{{#vardefine:SEEK|1}} | |||
[[File:iMX7-CM-top.png|thumb]] | |||
= Overview = | = Overview = | ||
The U-Boot boot-loader is used for low-level initialization and operating system loading. | The U-Boot boot-loader is used for low-level initialization and operating system loading. | ||
= Building U-BOOT for {{#var:HARDWARE_NAME}} = | = Building U-BOOT for {{#var:HARDWARE_NAME}} = | ||
This U-BOOT is based on https:// | 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 CROSS_COMPILE={{#var:CROSS_COMPILE}} | ||
==== Clone the latest revision of the repo ==== | ==== Clone the latest revision of the repo ==== | ||
$ git clone https://github.com/ronetix/u-boot.git u-boot-ronetix --depth=1 | $ git clone https://github.com/ronetix/u-boot.git u-boot-ronetix --depth=1 -b {{#var:UBOOT_BRANCH}} | ||
$ cd u-boot-ronetix | $ cd u-boot-ronetix | ||
| Line 38: | Line 44: | ||
= 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=u-boot-dtb.imx of=/dev/sdX bs=1k seek= | $ sudo dd if=u-boot-dtb.imx of=/dev/sdX bs=1k seek={{#var:SEEK}} conv=fsync | ||
The U-BOOT image should be at address 0x400 on the SD card. | The U-BOOT image should be at address 0x400 on the SD card. | ||
Latest revision as of 09:43, 11 October 2021

Overview
The U-Boot boot-loader is used for low-level initialization and operating system loading.
Building U-BOOT for iMX7-CM
This U-BOOT is based on https://source.codeaurora.org/external/imx/uboot-imx.git, branch imx_v2020.04_5.4.24_2.1.0
Setup the cross compiler and CPU architecture
$ export ARCH=arm $ export CROSS_COMPILE=/opt/cross/arm-ronetix-eabi-8.3.0/bin/arm-ronetix-eabi-
Clone the latest revision of the repo
$ git clone https://github.com/ronetix/u-boot.git u-boot-ronetix --depth=1 -b imx_v2020.04_5.4.24_2.1.0_rnx $ cd u-boot-ronetix
Configure and build
$ make imx7_cm_defconfig $ 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.