I had another problem when I signed uboot.
I want to sign uboot with a shell script. So I have to know the Authenticate date star-address、offset and file size.
I can get the address and size of the fdt atf tee by using the following command.
make SOC=iMX8MP print_fit_hab | tee adress.txt
However, I could not get the address information of csf_off, sld_csf_off, spl_hab_block which is output to the terminal through the ./mkimage_imx8 tool.
./mkimage_imx8 -version v2 -fit -loader u-boot-spl-ddr.bin 0x920000 -second_loader u-boot.itb 0x402000000 0x60000 -out flash.bin
I have tried a number of ways to capture the print of the above command, but all have failed.
So I cannot get the address information of csf_off through shell command.
Do you have any solutions? Is there a way to redirect ./mkimage_imx8 print information?
Solved! Go to Solution.
I have solved it through script command, thank you for your answer.
script -q log.txt -c "commond"