Design of automatic signature shell script for secure boot of uboot

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Design of automatic signature shell script for secure boot of uboot

Jump to solution
461 Views
chen-wust
Contributor II

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?

0 Kudos
1 Solution
445 Views
Harvey021
NXP TechSupport
NXP TechSupport

Hi @chen-wust 

You can try this way: make SOC=iMX8MP flash_evk 2>&1 | tee 1.log

 

Best regards

Harvey

View solution in original post

0 Kudos
2 Replies
446 Views
Harvey021
NXP TechSupport
NXP TechSupport

Hi @chen-wust 

You can try this way: make SOC=iMX8MP flash_evk 2>&1 | tee 1.log

 

Best regards

Harvey

0 Kudos
425 Views
chen-wust
Contributor II

I have solved it through script command, thank you for your answer.

script -q log.txt -c "commond"

0 Kudos