Hello NXP,
I'm trying to boot the IMX8MM Mini Board using V2024.04 U-boot Version.
I'm facing issue while signing and authentication.
Currently I'm upgrading to the Yocto Zeus ( u-boot v2020.04 version and Linux kernel 5.4.70) to (Uboot-imx v2024.04 and kernel 6.6.26) Scarthgap.
before this I upgraded to Krikstone u-boot v2022.04 and linux kernel 5.15.70.
I booted the U-boot v2022.04 successfully. while booting kernel i faced below issues
Issue: CSF Header Authentication failed. and some time IVT not found.
In Ubootv2022.04 source code Kernel load address was changed from 0x40480000 to 0x40400000.
Later I changed the Kernel load address to 0x40480000 in u-boot. Later its booted the kernel.
Now i'm trying to boot the u-boot v2024.04 version.
I'm using cst-3.3.1.tgz version for signing the image.
csf-spl.txt: https://github.com/pullannagari-babu/imx/blob/main/csf-spl.txt
csf-fit.txt : https://github.com/pullannagari-babu/imx/blob/main/csf-fit.csf
csf-linux.txt: https://github.com/pullannagari-babu/imx/blob/main/csf-linux.txt
Zeus uboot-v2022.04 imx-boot.log:
https://github.com/pullannagari-babu/imx/blob/main/v2022.04_zeus-imx-boot.log
Scathgap-Uboot-2024.04 imx-boot.log:
https://github.com/pullannagari-babu/imx/blob/main/v2024.04_scathgap-imx.boot.log
########################################################
Zeus v2020.04
$ csf-spl.tx
# Authenticate Start Address, Offset, Length and file
Blocks = 0x7e0fc0 0x0 0x2a600 flash.bin"
self
spl hab block: 0x7e0fc0 0x0 0x2d400 // as per the log
$ csf-fit.txt
# Authenticate Start Address, Offset, Length and file
Blocks = 0x401fcdc0 0x57c00 0x1020 flash.bin"
sld hab block: 0x401fcdc0 0x57c00 0x1020 //as per the log
sld_header_off
csf_offset=$(grep -e "\bcsf_off\b" $TOP_BUILD_DIR/tmp/work/imx8mmevk-poky-linux/imx-boot/1.0-r0/temp/log.do_compile |awk '{print $2}')
sld_csf_offset=$(grep -e "\bsld_csf_off\b" $TOP_BUILD_DIR/tmp/work/imx8mmevk-poky-linux/imx-boot/1.0-r0/temp/log.do_compile |awk '{print $2}')
csf_off 0x2d400
sld_csf_off 0x58c20
dd if=$WORK_DIR/cst/signed_images/csf-spl.bin of=$WORK_DIR/cst/signed_images/flash_signed.bin seek=$((csf_offset)) bs=1 conv=notrunc
dd if=$WORK_DIR/cst/signed_images/csf-fit.bin of=$WORK_DIR/cst/signed_images/flash_signed.bin seek=$((sld_csf_offset)) bs=1 conv=notrunc
########################################################
Scarthgap v2024.04
cat csf-spl.txt
spl hab block: 0x7e0fc0 0x0 0x30200
csf_off 0x30200
cat csf-fit.txt
sld hab block: 0x401fadc0 0x57c00 0x1020
sld_csf_off 0x58c20
# in v2024.04 version added below block newly for these also need create the csf-fdt.txt file ?
fit-fdt hab block: 0x401fadc0 0x57c00 0x3020
fit-fdt csf_off 0x5ac20
csf_offset=$(grep -e "\bcsf_off\b" $TOP_BUILD_DIR/tmp/work/imx8mmevk-poky-linux/imx-boot/1.0-r0/temp/log.do_compile |awk '{print $2}')
sld_csf_offset=$(grep -e "\bsld_csf_off\b" $TOP_BUILD_DIR/tmp/work/imx8mmevk-poky-linux/imx-boot/1.0-r0/temp/log.do_compile |awk '{print $2}')
csf_off 0x30200
sld_csf_off 0x58c20
fit_fdt_csf_off 0x5ac20
dd if=$WORK_DIR/cst/signed_images/csf-spl.bin of=$WORK_DIR/cst/signed_images/flash_signed.bin seek=$((csf_offset)) bs=1 conv=notrunc
dd if=$WORK_DIR/cst/signed_images/csf-fit.bin of=$WORK_DIR/cst/signed_images/flash_signed.bin seek=$((sld_csf_offset)) bs=1 conv=notrunc
here
spl hab block block correct size how to find it ?
sld hab block: address was modified 0x401fcdc0 to 0x401fadc0.
im not able to boot the v2024.04 what is the correct csf offset to use to sign and authentication.