Boot Image Layout in IMX8DQXP

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

Boot Image Layout in IMX8DQXP

1,714 Views
vmuthusu
Contributor III

Hi 

I am referring to the IMX8DQXPRM.pdf document Figure 5-25 Typical Boot Image Layout.

Header 1Header 2
Primary Image Container Set

1st Container Header (SECO FW)

1st Signature Block

Padding for 1KB alignment

2nd Container Header (SCFW + M4 + AP)

2nd SIgnature Block

SECO FW

SCU FW with DDR initialization image embedded

CM4 Image

AP IPL

-------
Secondary Image Container Set

My assumption is that the Secondary Image Container Set will also have

   1st Container Header (SECO FW)

   1st Signature Block

   Padding for 1KB alignment

   2nd Container Header (SCFW + M4 + AP)

   2nd SIgnature Block

   SECO FW

   SCU FW with DDR initialization image embedded

   CM4 Image

   AP IPL

And this Secondary Image Container Set starts at an offset specified in the eFUSE Row index 720 against the Image Container Set1 Offset location. Is that correct?

My question is 

1. Is it possible to create a single binary file from the mkimage_imx8 with both image container sets present in it adhering to the above boot image layout.

         a. If yes what should be the command to invoke the mkimage_imx8.

         b. If no then how we should generate the binaries matching the above boot image layout.

Thanks

V.Muthusubramanian

0 Kudos
2 Replies

1,137 Views
igorpadykov
NXP Employee
NXP Employee

Hi Muthusubramanian

in general this is possible and seems for such case one can look at eMMC fast boot
Secondary Image Container Set  example in sect.5.8.2.2.1 High Level eMMC Boot
Flow i.MX8DQXP Reference Manual
https://www.nxp.com/docs/en/reference-manual/IMX8DQXPRM.pdf
and imx-mkimage sources for "emmc_fastboot" fast boot option

imx-mkimage/src/imx8qxb0.c

imx8qxb0.c\src - imx-mkimage - i.MX Mkimage Bootloader Tool 

Unfortunately currently there are no public documentation for this case or examples.

Your assumption regarding Secondary Image Container Set seem as correct.

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

0 Kudos

1,137 Views
sureshrao
NXP Employee
NXP Employee

Hello, Muthusubramanian,

>>  Is it possible to create a single binary file from the mkimage_imx8 with both image container sets present in it adhering to the above boot image layout.

>>         a. If yes what should be the command to invoke the mkimage_imx8.

 >>        b. If no then how we should generate the binaries matching the above boot image layout.

Primary and secondary image container set are two separate binaries, same set of commands are used to generate both these binaries.

Best Regards,

Suresh

0 Kudos