IMX8MP secondary image boot

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

IMX8MP secondary image boot

589 Views
djordje_nod
Contributor I

Does IMG_CNTN_SET1_OFFSET secondary image boot (RM 6.1.6.2) work for ECSPI ("SPI") NOR boot on i.MX8MP, or only for FlexSPI NOR (and SD/eMMC)? Table 6-28 lists "SPI" and "FlexSPI NOR" as separate boot devices, and the secondary-offset valid values are stated only "for FlexSPI NOR boot."

0 Kudos
Reply
1 Reply

466 Views
Oswalag
NXP TechSupport
NXP TechSupport

Hello,

Your understanding is wrong, the IMG_CNTN_SET1_OFFSET secondary image boot also work for SPI devices, only with a different offset:

For FlexSPI = the valid values are: 0, 1, 2, 3, 4, 5, 6, and 7

For SPI = Secondary boot is disabled if fuse value is bigger than 10, n = fuse value bigger than
10.
• n == 0: Offset = 4MB
• n == 2: Offset = 1MB
• Others & n <= 10 : Offset = 1MB*2^n

Oswalag_0-1782750547759.pngOswalag_0-1782750547759.png

 

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2384129%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EIMX8MP%20%20secondary%20image%20boot%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2384129%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EDoes%26nbsp%3BIMG_CNTN_SET1_OFFSET%26nbsp%3Bsecondary%20image%20boot%20(RM%206.1.6.2)%20work%20for%26nbsp%3BECSPI%20(%22SPI%22)%20NOR%26nbsp%3Bboot%20on%20i.MX8MP%2C%20or%20only%20for%26nbsp%3BFlexSPI%20NOR%26nbsp%3B(and%20SD%2FeMMC)%3F%20Table%206-28%20lists%20%22SPI%22%20and%20%22FlexSPI%20NOR%22%20as%20separate%20boot%20devices%2C%20and%20the%20secondary-offset%20valid%20values%20are%20stated%20only%20%22for%20FlexSPI%20NOR%20boot.%22%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2387847%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX8MP%20%20secondary%20image%20boot%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2387847%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%0A%3CP%3EYour%20understanding%20is%20wrong%2C%20the%26nbsp%3B%3CSPAN%3EIMG_CNTN_SET1_OFFSET%26nbsp%3Bsecondary%20image%20boot%20also%20work%20for%20SPI%20devices%2C%20only%20with%20a%20different%20offset%3A%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EFor%20FlexSPI%20%3D%26nbsp%3Bthe%20valid%20values%20are%3A%200%2C%201%2C%202%2C%203%2C%204%2C%205%2C%206%2C%20and%207%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EFor%20SPI%20%3D%26nbsp%3BSecondary%20boot%20is%20disabled%20if%20fuse%20value%20is%20bigger%20than%2010%2C%20n%20%3D%20fuse%20value%20bigger%20than%3CBR%20%2F%3E10.%3CBR%20%2F%3E%E2%80%A2%20n%20%3D%3D%200%3A%20Offset%20%3D%204MB%3CBR%20%2F%3E%E2%80%A2%20n%20%3D%3D%202%3A%20Offset%20%3D%201MB%3CBR%20%2F%3E%E2%80%A2%20Others%20%26amp%3B%20n%20%26lt%3B%3D%2010%20%3A%20Offset%20%3D%201MB*2%5En%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Oswalag_0-1782750547759.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Oswalag_0-1782750547759.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Oswalag_0-1782750547759.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Oswalag_0-1782750547759.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F390615iC15DC40EC21A01C9%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Oswalag_0-1782750547759.png%22%20alt%3D%22Oswalag_0-1782750547759.png%22%20%2F%3E%3Cspan%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EOswalag_0-1782750547759.png%3C%2Fspan%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2388035%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX8MP%20%20secondary%20image%20boot%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2388035%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThanks%20%E2%80%94%20that%20clears%20up%20the%20offset%20mapping.%20Two%20follow-ups%20so%20we%20can%20reproduce%20it%20on%20our%20i.MX8MP%20board%20(boot%20NOR%20on%20ECSPI2%2C%20OPEN%20%2F%20non-HAB%20config%2C%20fuse%20read%202%201%20%3D%200%20%E2%86%92%20n%3D0%20%E2%86%92%204%20MB)%3A%3C%2FP%3E%3CP%3EWhat%20triggers%20the%20ROM%20to%20switch%20to%20the%20secondary%20image%20on%20SPI%20NOR%3F%20Is%20it%20any%20invalid%20primary%20boot%20header%20%2F%20failed%20image%20parse%2C%20or%20specifically%20a%20HAB%20authentication%20failure%3F%20In%20other%20words%2C%20does%20secondary-image%20boot%20work%20in%20open%20(non-secured)%20configuration%2C%20or%20only%20when%20the%20device%20is%20HAB-closed%3F%3CBR%20%2F%3EDoes%20it%20fall%20back%20on%20the%20same%20reset%2C%20or%20does%20it%20require%20a%20power%20cycle%20%2F%20a%20second%20reset%20(persistent-boot%20style)%3F%3CBR%20%2F%3EMust%20the%20secondary%20image%20at%20the%204%20MB%20offset%20be%20a%20separately-built%20bootable%20image%20(its%20own%20IVT%2Fboot%20data%20for%20that%20offset)%2C%20or%20is%20a%20byte-identical%20copy%20of%20the%20primary%20sufficient%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2394331%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX8MP%20%20secondary%20image%20boot%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2394331%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EOn%20i.MX8MP%20booting%20from%20ECSPI%20(SPI)%20NOR%20in%20the%20OPEN%20(SEC_CONFIG%3Dopen%2C%20non-HAB)%20configuration%3A%20what%20is%20the%20exact%20trigger%20condition%20for%20the%20IMG_CNTN_SET1_OFFSET%20secondary%20image%20boot%3F%20Does%20the%20ROM%20switch%20to%20the%20secondary%20image%20on%20an%20invalid%2Ferased%20primary%20container%20header%2C%20or%20only%20on%20a%20HAB%20authentication%20failure%20(i.e.%20only%20in%20the%20closed%2Fsecured%20configuration)%3F%20We%20have%20a%20valid%20secondary%20copy%20at%204MB%20(fuse%20n%3D0)%2C%20erased%20the%20primary%20header%2C%20and%20the%20ROM%20does%20not%20fall%20back%20in%20open%20config.%3C%2FP%3E%3C%2FLINGO-BODY%3E