Optimal boot flags setting for fail-safe way out on iMX6

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

Optimal boot flags setting for fail-safe way out on iMX6

Jump to solution
796 Views
Astralix
Contributor I

Hallo,

we designed some systems based on iMX6Solo and iMX6DL and we use a single eMMC to store everything. My question is now, if we program the boot flags in OTP to boot from eMMC, what is the best way to recover the device if something or someone has destroyed the u-boot in the eMMC? Cause if one sets the flag to prefer OTP before resistors, the device will not come back up on the USB OTG port especially not, if the u-boot has been destroyed only partly. So which pin to populate on the PCB and which flag in OTP needs to be set so one can always force the device to accept a new loader via USB OTG interface?

Thank you for a hint!

Kind regards

Ulrich

Labels (1)
0 Kudos
1 Solution
631 Views
igorpadykov
NXP Employee
NXP Employee

HI Astralix

first it may be recommended to enable wdog,

also after boot fail iROM jumps to Serial Downloader mode.

Note by default Manufacture Mode is enabled, please check

sect.8.11 SD/MMC Manufacture Mode i.MX6SDL Reference

Manual (rev.2  5/2015)

http://cache.freescale.com/files/32bit/doc/ref_manual/IMX6SDLRM.pdf

Best regards

igor

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

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

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

View solution in original post

0 Kudos
2 Replies
632 Views
igorpadykov
NXP Employee
NXP Employee

HI Astralix

first it may be recommended to enable wdog,

also after boot fail iROM jumps to Serial Downloader mode.

Note by default Manufacture Mode is enabled, please check

sect.8.11 SD/MMC Manufacture Mode i.MX6SDL Reference

Manual (rev.2  5/2015)

http://cache.freescale.com/files/32bit/doc/ref_manual/IMX6SDLRM.pdf

Best regards

igor

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

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

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

0 Kudos
631 Views
Astralix
Contributor I

Thank you Igor,

we reversed our boot logic and use the resistor settings to boot from eMMC. If that fails (erased or non-programmed boards) automatically the OTP settings take over and force the SOC in OTG mode. In case of partly correct boot code (hang-up in boot), we can set a jumper to force use of OTP by BMODE1 and the board can be recovered via imx_usb_loader.

Best regards

Ulrich

0 Kudos