Compilation in iMX8QXP
:~/Downloads/imx-mkimage(lf-6.6.3_1.0.0)$ sudo make clean && make SOC=iMX8QX REV=C0 flash_spl
imx8qm clean done
imx8qx clean done
imx8dxl clean done
imx8ulp clean done
imx93 clean done
imx91 clean done
imx95 clean done
Compiling mkimage_imx8
include misc.mak
include m4.mak
include android.mak
include test.mak
include autobuild.mak
include alias.mak
./../mkimage_imx8 -commit > head.hash
if [ -f tee.bin ]; then \
if [ ]; then \
echo "Start compress tee.bin"; \
lz4 -9 -f --rm tee.bin tee.bin.lz4; \
cp tee.bin.lz4 tee.bin; \
fi; \
if [ ]; then \
./../mkimage_imx8 -soc QX -sw_version -rev B0 -c -ap bl31.bin a35 0x80000000 -ap u-boot-hash.bin a35 0x80020000 -ap tee.bin a35 0xFE000000 -out u-boot-atf-container.img; \
else \
./../mkimage_imx8 -soc QX -rev B0 -c -ap bl31.bin a35 0x80000000 -ap u-boot-hash.bin a35 0x80020000 -ap tee.bin a35 0xFE000000 -out u-boot-atf-container.img; \
fi; \
else \
./../mkimage_imx8 -soc QX -rev B0 -c -ap bl31.bin a35 0x80000000 -ap u-boot-hash.bin a35 0x80020000 -out u-boot-atf-container.img; \
fi
SOC: QX
REVISION: B0
New Container: 0
AP: bl31.bin core: a35 addr: 0x80000000
AP: u-boot-hash.bin core: a35 addr: 0x80020000
AP: tee.bin core: a35 addr: 0xfe000000
Output: u-boot-atf-container.img
CONTAINER FUSE VERSION: 0x00
CONTAINER SW VERSION: 0x0000
ivt_offset: 1024
rev: 2
Platform: i.MX8QXP B0
ivt_offset: 1024
container image offset (aligned):2000
csf_off 0x2400
flags: 0x10
Hash of the images =
1+0 records in
1+0 records out
33792 bytes (34 kB, 33 KiB) copied, 0.000153251 s, 221 MB/s
64+1 records in
64+1 records out
32909 bytes (33 kB, 32 KiB) copied, 0.000214885 s, 153 MB/s
AP file_offset = 0x2000 size = 0x8400
Hash of the images =
1+0 records in
1+0 records out
520192 bytes (520 kB, 508 KiB) copied, 0.000895716 s, 581 MB/s
1014+1 records in
1014+1 records out
519649 bytes (520 kB, 507 KiB) copied, 0.0041585 s, 125 MB/s
AP file_offset = 0xa400 size = 0x7f000
Hash of the images =
1+0 records in
1+0 records out
591872 bytes (592 kB, 578 KiB) copied, 0.00138488 s, 427 MB/s
1155+1 records in
1155+1 records out
591528 bytes (592 kB, 578 KiB) copied, 0.00404481 s, 146 MB/s
AP file_offset = 0x89400 size = 0x90800
CST: CONTAINER 0 offset: 0x0
CST: CONTAINER 0: Signature Block: offset is at 0x190
Offsets = 0x0 0x190
DONE.
Note: Please copy image to offset: IVT_OFFSET + IMAGE_OFFSET
./../mkimage_imx8 -soc QX -rev B0 -dcd skip -append mx8qxc0-ahab-container.img -c -scfw scfw_tcm.bin -ap u-boot-spl.bin a35 0x00100000 -out flash.bin
SOC: QX
REVISION: B0
DCD: skip
New Container: 0
SCFW: scfw_tcm.bin
AP: u-boot-spl.bin core: a35 addr: 0x00100000
Output: flash.bin
CONTAINER FUSE VERSION: 0x00
CONTAINER SW VERSION: 0x0000
ivt_offset: 1024
rev: 2
Platform: i.MX8QXP B0
ivt_offset: 1024
header tag missmatched ca
container image offset (aligned):13400
csf_off 0x13800
flags: 0x10
Hash of the images =
1+0 records in
1+0 records out
174080 bytes (174 kB, 170 KiB) copied, 0.000434511 s, 401 MB/s
338+1 records in
338+1 records out
173120 bytes (173 kB, 169 KiB) copied, 0.000963655 s, 180 MB/s
SCFW file_offset = 0x13400 size = 0x2a800
Hash of the images =
1+0 records in
1+0 records out
132096 bytes (132 kB, 129 KiB) copied, 0.000203474 s, 649 MB/s
256+1 records in
256+1 records out
131230 bytes (131 kB, 128 KiB) copied, 0.000234614 s, 559 MB/s
AP file_offset = 0x3dc00 size = 0x20400
CST: CONTAINER 0 offset: 0x400
CST: CONTAINER 0: Signature Block: offset is at 0x510
Offsets = 0x400 0x510
DONE.
Note: Please copy image to offset: IVT_OFFSET + IMAGE_OFFSET
append u-boot-atf-container.img at 376 KB
1127+0 records in
1127+0 records out
1154048 bytes (1.2 MB, 1.1 MiB) copied, 0.00305697 s, 378 MB/s
But when i checked in flash.bin below is error i am getting, How to fix this
strings flash.bin | grep -i spl
spl: ERROR: unsupported device
SPL: Unsupported Boot Device!
SPL: failed to boot from all boot devices
U-Boot SPL 2024.04-lf_v2024.04+g6c4545203d1+p0 (Nov 15 2024 - 04:02:13 +0000)
SPL: Image overlaps SPL
SPL: Image too large
spl: unsupported mmc boot device.
spl: could not initialize mmc. error: %d
spl: could not find mmc device %d. error: %d
spl: mmc init failed with error: %d
spl: mmc partition switch failed
spl: mmc: wrong boot mode
display_init
Display the FIPS mode of the SoC by reading fuse 0xA, bit 3
Successfully finished the power up sequence of display.
SPL Phase
TI Keystone SPL Image
TI OMAP SPL With GP CH
sfspl
StarFive SPL Image
display MMC info
u-boot,dm-spl
splashimage=0x9e000000
display-timings
display-subsystem
fsl,imx-display-subsystem
//ldb@562210e0/lvds-channel@0/display-timings/timing0
display0
display1
split_vm_region