IMX8ULP Recovery and Secondary boot clarification

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

IMX8ULP Recovery and Secondary boot clarification

Jump to solution
1,152 Views
darko311
Contributor II

Hello,

I'm evaluating the recovery options on IMX8ULP-EVK board. Loading the M33 firmware can only be done by updating the imx-boot, updating it on a device in the field can be an issue if some kind of recovery option is not available.

Reading the IMX8ULPRM

Screenshot from 2024-07-25 14-28-27.png

With EMMC boot, I dd-ed the same imx-boot to mmcblk0boot0 and mmcblk0boot1. Rebooted the board and it was booting fine. Then I wrote zeroes to the mmcblk0boot0 (but first wrote 0 to force_ro), rebooted the board and it was also working great.
The u-boot log showed Boot Stage: Secondary boot which seems to be expected.

But dd-ing imx-boot compiled with UBOOT_CONFIG = "fspi" option to the /dev/mtdblock0
and zeroing out both mmcblk0boot0 and mmcblk0boot1, the board stopped booting.

I wanted to clarify if I understood the table correctly, if the boot mode is set to EMMC can the BOOTROM boot from SPI NOR on LPSPI4/5 or is this only possible if the board is set to boot from SPI flash on FLEXSPI0.

To put it differently, is it possible to mix Primary/Secondary boot sources with Recovery boot sources, for example
Primary/Secondary boot EMMC -> Recovery boot SPI and vice versa

or is it only

Primary/Secondary boot USDHC1/2 -> Recovery boot USDHC1 or
Primary/Secondary boot FlexSPI2 -> Recovery boot LPSPI4/5.

Maybe I'm missing something like setting some fuses?

Thank you very much,
Darko

0 Kudos
Reply
1 Solution
1,116 Views
AldoG
NXP TechSupport
NXP TechSupport

Hello,

Yes, it is possible, and yes you'll need to blow fuse, A35_RECOVERY_DEVICE_SELECT = 1, as this fuse will select the recovery port being used.

Best regards/Saludos,
Aldo.

View solution in original post

1 Reply
1,117 Views
AldoG
NXP TechSupport
NXP TechSupport

Hello,

Yes, it is possible, and yes you'll need to blow fuse, A35_RECOVERY_DEVICE_SELECT = 1, as this fuse will select the recovery port being used.

Best regards/Saludos,
Aldo.

%3CLINGO-SUB%20id%3D%22lingo-sub-1917216%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EIMX8ULP%20Recovery%20and%20Secondary%20boot%20clarification%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1917216%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3CBR%20%2F%3E%3CBR%20%2F%3EI'm%20evaluating%20the%20recovery%20options%20on%20IMX8ULP-EVK%20board.%20Loading%20the%20M33%20firmware%20can%20only%20be%20done%20by%20updating%20the%20imx-boot%2C%20updating%20it%20on%20a%20device%20in%20the%20field%20can%20be%20an%20issue%20if%20some%20kind%20of%20recovery%20option%20is%20not%20available.%3C%2FP%3E%3CP%3EReading%20the%20IMX8ULPRM%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Screenshot%20from%202024-07-25%2014-28-27.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Screenshot%20from%202024-07-25%2014-28-27.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F290355i11BE215ACD04139E%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Screenshot%20from%202024-07-25%2014-28-27.png%22%20alt%3D%22Screenshot%20from%202024-07-25%2014-28-27.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EWith%20EMMC%20boot%2C%20I%20dd-ed%20the%20same%20imx-boot%20to%20mmcblk0boot0%20and%20mmcblk0boot1.%20Rebooted%20the%20board%20and%20it%20was%20booting%20fine.%20Then%20I%20wrote%20zeroes%20to%20the%20mmcblk0boot0%20(but%20first%20wrote%200%20to%20force_ro)%2C%20rebooted%20the%20board%20and%20it%20was%20also%20working%20great.%3CBR%20%2F%3EThe%20u-boot%20log%20showed%20%3CSPAN%3EBoot%20Stage%3A%20Secondary%20boot%20which%20seems%20to%20be%20expected.%3CBR%20%2F%3E%3CBR%20%2F%3EBut%20dd-ing%20imx-boot%20compiled%20with%20UBOOT_CONFIG%20%3D%20%22fspi%22%20option%20to%20the%26nbsp%3B%2Fdev%2Fmtdblock0%3CBR%20%2F%3E%3C%2FSPAN%3E%3CSPAN%3Eand%20zeroing%20out%20both%26nbsp%3Bmmcblk0boot0%20and%26nbsp%3Bmmcblk0boot1%2C%20the%20board%20stopped%20booting.%3CBR%20%2F%3E%3CBR%20%2F%3EI%20wanted%20to%20clarify%20if%20I%20understood%20the%20table%20correctly%2C%20if%20the%20boot%20mode%20is%20set%20to%20EMMC%20can%20the%20BOOTROM%20boot%20from%20SPI%20NOR%20on%20LPSPI4%2F5%20or%20is%20this%20only%20possible%20if%20the%20board%20is%20set%20to%20boot%20from%20SPI%20flash%20on%20FLEXSPI0.%3CBR%20%2F%3E%3CBR%20%2F%3ETo%20put%20it%20differently%2C%20is%20it%20possible%20to%20mix%20Primary%2FSecondary%20boot%20sources%20with%20Recovery%20boot%20sources%2C%20for%20example%3CBR%20%2F%3EPrimary%2FSecondary%20boot%20EMMC%20-%26gt%3B%20Recovery%20boot%20SPI%20and%20vice%20versa%3CBR%20%2F%3E%3CBR%20%2F%3Eor%20is%20it%20only%3CBR%20%2F%3E%3CBR%20%2F%3EPrimary%2FSecondary%20boot%20USDHC1%2F2%20-%26gt%3B%20Recovery%20boot%20USDHC1%20or%3CBR%20%2F%3EPrimary%2FSecondary%20boot%20FlexSPI2%20-%26gt%3B%20Recovery%20boot%20LPSPI4%2F5.%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSPAN%3EMaybe%20I'm%20missing%20something%20like%20setting%20some%20fuses%3F%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FSPAN%3EThank%20you%20very%20much%2C%3CBR%20%2F%3EDarko%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1917216%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3Ei.MX%208%20Family%20%7C%20i.MX%208QuadMax%20(8QM)%20%7C%208QuadPlus%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1918364%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20IMX8ULP%20Recovery%20and%20Secondary%20boot%20clarification%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1918364%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3CBR%20%2F%3E%3CBR%20%2F%3EYes%2C%20it%20is%20possible%2C%20and%20yes%20you'll%20need%20to%20blow%20fuse%2C%26nbsp%3B%3CSPAN%3EA35_RECOVERY_DEVICE_SELECT%20%3D%201%2C%20as%20this%20fuse%20will%20select%20the%20recovery%20port%20being%20used.%3CBR%20%2F%3E%3CBR%20%2F%3EBest%20regards%2FSaludos%2C%3CBR%20%2F%3EAldo.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E