This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software:
Hi,
I want to enable the debug log in tiboot3.bin, tispl.bin and u-boot.img.
I modified config LOGLEVEL default value from 4 to 8 or 9 in the file common/Kconfig in uboot.
But when I build the image of tiboot3.bin, tispl.bin and u-boot.img, It fails, I check the building logs But there was no error for specified file,I can't know the root casue,I just know that it miss the file
"tiboot3-am62x-gp-evm.bin",the important log as follwings:
/home/liuyg/workspace/04.fw/AM62x/U-Boot-2021.01/Makefile:1929: recipe for target 'spl/u-boot-spl.bin' failed
make: *** No rule to make target '/home/liuyg/workspace/04.fw/AM62x/U-Boot-2021.01/output_image/r5/spl/u-boot-spl.bin', needed by 'tiboot3-am62x-gp-evm.bin'. Stop.
Regards!
Johnny Liu
Hi Aparna,
building procedure:
1. cd /home/liuyg/workspace/04.fw/AM62x/U-Boot-2021.01
mkdir output_image
2. make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabihf- distclean
make ARCH=arm CROSS_COMPILE=aarch64-none-linux-gnu- distclean
3. make ARCH=arm CROSS_COMPILE=aarch64-none-linux-gnu- am62x_evm_a53_defconfig O=/home/liuyg/workspace/04.fw/AM62x/U-Boot-2021.01/output_image/a53
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabihf- am62x_evm_r5_defconfig O=/home/liuyg/workspace/04.fw/AM62x/U-Boot-2021.01/output_image/r5
4. build tispl.bin u-boot.img
make ARCH=arm CROSS_COMPILE=aarch64-none-linux-gnu- ATF=/home/liuyg/workspace/04.fw/ti-processor-sdk-linux-rt-am62xx-evm-08.06.00.42/board-support/prebuilt-images/bl31.bin \
TEE=/home/liuyg/workspace/04.fw/ti-processor-sdk-linux-rt-am62xx-evm-08.06.00.42/board-support/prebuilt-images/bl32.bin \
DM=/home/liuyg/workspace/04.fw/ti-processor-sdk-linux-rt-am62xx-evm-08.06.00.42/board-support/prebuilt-images/ipc_echo_testb_mcu1_0_release_strip.xer5f O=/home/liuyg/workspace/04.fw/AM62x/U-Boot-2021.01/output_image/a53
5. build u-boot-spl.bin
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabihf- O=/home/liuyg/workspace/04.fw/AM62x/U-Boot-2021.01/output_image/r5 , when run this command,it fails. the logs:
/home/liuyg/workspace/04.fw/AM62x/U-Boot-2021.01/tools/k3_gen_x509_cert.sh -c 16 -b spl/u-boot-spl.bin \
-o tiboot3.bin -l 0x43c00000 -r 1 -k /home/liuyg/workspace/04.fw/ti-processor-sdk-linux-rt-am62xx-evm-08.06.00.42/board-support/core-secdev-k3/keys/custMpk.pem
SWRV = 1
SYM spl/u-boot-spl.sym
spl/u-boot-spl.bin exceeds file size limit:
limit: 0x30220 bytes
actual: 0x325e4 bytes
excess: 0x23c4 bytes
/home/liuyg/workspace/04.fw/AM62x/U-Boot-2021.01/Makefile:1929: recipe for target 'spl/u-boot-spl.bin' failed
make[1]: *** [spl/u-boot-spl.bin] Error 1
make[1]: *** Deleting file 'spl/u-boot-spl.bin'
make[1]: Leaving directory '/home/liuyg/workspace/04.fw/AM62x/U-Boot-2021.01/output_image/r5'
Makefile:167: recipe for target 'sub-make' failed
make: *** [sub-make] Error 2
But I want to say It build successfully when I use config LOGLEVEL default value 4.
Regards!
Johnny
Hello Johnny,
I donot think you need to build the u-boot-spl.bin
export UBOOT_DIR=<path-to-ti-u-boot> export TI_LINUX_FW_DIR=<path-to-ti-linux-firmware> export TFA_DIR=<path-to-arm-trusted-firmware> export OPTEE_DIR=<path-to-ti-optee-os> R5 To build tiboot3.bin. Saved in $UBOOT_DIR/out/r5. For AM62X make ARCH=arm CROSS_COMPILE="$CROSS_COMPILE_32" am62x_evm_r5_defconfig O=$UBOOT_DIR/out/r5 make ARCH=arm CROSS_COMPILE="$CROSS_COMPILE_32" O=$UBOOT_DIR/out/r5 BINMAN_INDIRS=$TI_LINUX_FW_DIR A53 To build tispl.bin and u-boot.img. Saved in $UBOOT_DIR/out/a53. Requires bl31.bin, tee-pager_v2.bin For AM62X make ARCH=arm CROSS_COMPILE="$CROSS_COMPILE_64" am62x_evm_a53_defconfig O=$UBOOT_DIR/out/a53 make ARCH=arm CROSS_COMPILE="$CROSS_COMPILE_64" CC="$CC_64" BL31=$TFA_DIR/build/k3/lite/release/bl31.bin TEE=$OPTEE_DIR/out/arm-plat-k3/core/tee-pager_v2.bin O=$UBOOT_DIR/out/a53 BINMAN_INDIRS=$TI_LINUX_FW_DIR
Regards,
Aparna