Difference between revisions of "Transclusion: CL-SOM-iMX7: U-Boot: Building Images"
Line 1: | Line 1: | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
==== Git clone ==== | ==== Git clone ==== | ||
* Install [http://git-scm.com/ git] version control system. | * Install [http://git-scm.com/ git] version control system. | ||
Line 19: | Line 4: | ||
<pre> | <pre> | ||
cd /home/development/cl-som-imx7/u-boot | cd /home/development/cl-som-imx7/u-boot | ||
− | git clone | + | git clone https://github.com/compulab/u-boot.git -b v2017.07-cl-som-imx7-1.9 u-boot-cl-som-imx7 |
− | + | cd u-boot-cl-som-imx7 | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</pre> | </pre> | ||
+ | * Create a branch for CL-SOM-iMX7 development | ||
+ | <pre>git checkout -b cl-som-imx7-1.9-devel</pre> | ||
=== Building the firmware images === | === Building the firmware images === |
Latest revision as of 15:09, 28 June 2023
Git clone
- Install git version control system.
- Create a clone of U-Boot tree
cd /home/development/cl-som-imx7/u-boot git clone https://github.com/compulab/u-boot.git -b v2017.07-cl-som-imx7-1.9 u-boot-cl-som-imx7 cd u-boot-cl-som-imx7
- Create a branch for CL-SOM-iMX7 development
git checkout -b cl-som-imx7-1.9-devel
Building the firmware images
- First, compile U-Boot. The following commands create the u-boot.imx binary (along with other image types):
export ARCH=arm export CROSS_COMPILE=arm-none-linux-eabi- make mrproper make cl-som-imx7_defconfig && make
- Merge the SPL and U-Boot images into one firmware image:
dd if=/dev/zero count=640 bs=1K | tr '\000' '\377' > cl-som-imx7-firmware dd if=SPL of=cl-som-imx7-firmware bs=1K seek=1 conv=notrunc dd if=u-boot.img of=cl-som-imx7-firmware bs=1K seek=64 conv=notrunc