EasyManua.ls Logo

Phytec i.MX 93 - Page 35

Default Icon
85 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
i.MX 93 BSP Manual PD24.1.1 Documentation Rev.: imx8mp-pd22.1.2-51-ga548be7d
5.5.3 Build the bootloader
Build u-boot:
host:~/u-boot-imx$ make <defconfig>
host:~/u-boot-imx$ make
host:~/u-boot-imx$ cd ..
Note
In command above replace <defconfig> with imx93-phyboard-segin_defconfig or
imx93-phyboard-nash_defconfig, depending on the board you are about to build for.
Build nal ash.bin with imx-mkimage
Get imx-mkimage:
host:~$ git clone https://github.com/nxp-imx/imx-mkimage
host:~$ cd imx-mkimage/
host:~/imx-mkimage$ git checkout tags/lf-6.1.55-2.2.0
Copy rmware binaries into imx-mkimage
host:~/imx-mkimage$ cp ../artefacts/bl31-imx93.bin ./iMX9/bl31.bin
host:~/imx-mkimage$ cp \
../artefacts/lpddr4_* \
../artefacts/mx93a1-ahab-container.img \
../artefacts/tee.bin \
./iMX9/
Copy u-boot binaries and DTB into imx-mkimage
host:~/imx-mkimage$ cp ../u-boot-imx/spl/u-boot-spl.bin ../u-boot-imx/u-boot.bin ./iMX9/
host:~/imx-mkimage$ cp ../u-boot-imx/arch/arm/dts/<dtb> ./iMX9/
Note
In command above replace <dtb> with imx93-phyboard-segin.dtb or imx93-phyboard-nash.dtb, de-
pending on the board you are about to build for.
Build nal ash.bin binary
host:~/imx-mkimage$ make SOC=iMX9 REV=A1 flash_singleboot
5.5.4 Flash the bootloader to a block device
The ash.bin can be found at imx-mkimage/iMX9/ directory and now can be ashed. A chip-specic oset
is needed:
SoC Oset User Area Oset Boot Partition eMMC Device
i.MX 93 32 kiB 0 kiB /dev/mmcblk0
Development 31