About imx28 HAB

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

About imx28 HAB

跳至解决方案
523 次查看
bruce_chen
Contributor I

According AN4555 PDF file at the page 19 has like below message:

The first signature will be used with CALL HAB with offset 0x24 showing original

value ‘0’ and second signature used for authenticating linux_prep with JUMP HAB showing a

value of 1 at offset 0x24. We do this by first copying linux_prep, bin to linux_kernel.bin, then

manually modify byte 0x24 to 1 using a hex editor and include linux_kernel.bin in linux_kernel.csf

for signature generation.

cp linux_prep.bin linux_kernel.bin

using a hex editor set byte 0x24 to 1

These message what meaning?   How can i sure what offset byte is 0x24 and modify to 0?

标签 (1)
0 项奖励
1 解答
423 次查看
igorpadykov
NXP Employee
NXP Employee

Hi bruce

meaning is described in the same part of text:

"

The execution flow can better be understood using Section 4.2,

“Sample boot descriptor file used for Linux kernel image.”

as example on can look at attached linux_ivt.db, from generated imx-bootlets

(prepare bootlets sources (in ltib/RPM/Build):

./ltib -m prep -p boot_stream.spec )

//----------------------------------------------------------

    // Prepare to boot Linux

    //----------------------------------------------------------

    load linux_prep;

    load ivt (entry = linux_prep:_start) > 0x8000;

    hab call 0x8000;

    //----------------------------------------------------------

    //  Load ans start Linux kernel

    //----------------------------------------------------------

    load zImage > 0x40008000;

    load ivt (entry = linux_prep:_start) > 0x8000;

    hab jump 0x8000;

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
1 回复
424 次查看
igorpadykov
NXP Employee
NXP Employee

Hi bruce

meaning is described in the same part of text:

"

The execution flow can better be understood using Section 4.2,

“Sample boot descriptor file used for Linux kernel image.”

as example on can look at attached linux_ivt.db, from generated imx-bootlets

(prepare bootlets sources (in ltib/RPM/Build):

./ltib -m prep -p boot_stream.spec )

//----------------------------------------------------------

    // Prepare to boot Linux

    //----------------------------------------------------------

    load linux_prep;

    load ivt (entry = linux_prep:_start) > 0x8000;

    hab call 0x8000;

    //----------------------------------------------------------

    //  Load ans start Linux kernel

    //----------------------------------------------------------

    load zImage > 0x40008000;

    load ivt (entry = linux_prep:_start) > 0x8000;

    hab jump 0x8000;

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 项奖励