IMX6ULL bootROM NAND dual uboot partition redundancy

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

IMX6ULL bootROM NAND dual uboot partition redundancy

652 Views
djq
Contributor I

1.SOC:IMX6ULL NAND flash 512MB;

2. At present, the uboot, kernel, and rootfs of the device system are stored in NAND flash, and the scheme of using a U disk to update the uboot, kernel, and rootfs of the device is as follows:

Step1:Insert the USB flash drive, then the device is powered on;

Step2:Run uboot in NAND, and uboot determines whether to boot from the USB flash drive based on the value of the environment variable flg;

Step3:After booting from the USB flash drive, burn the uboot, kernel, and rootfs in NAND;

3.One of the risks of this solution is that when the U disk boots the system to burn Uboot to NAND, the device loses power, resulting in the NAND Uboot burning not being completed, which will cause the device to fail to run Uboot in NAND, and the device cannot boot and boot to the U disk again for burning.

4.Update whether there are other solutions for Uboot in the device, which can ensure that during the burning process, especially in the process of re-burning uboot, the sudden power failure can also ensure that the device can be started normally or can be burned again, instead of the device becoming a brick.

5.Can IMX6ULL run the backup partition uboot if there is a problem with the primary partition uboot by using BootRom to divide the two-zone uboot in NAND?

Labels (2)
0 Kudos
Reply
6 Replies

628 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @djq 

You can refer this solution:AN13872 about swupdate

https://www.nxp.com/webapp/Download?colCode=AN13872&isHTMLorPDF=HTML

Best Regards,
Zhiming

0 Kudos
Reply

615 Views
djq
Contributor I

Hi Zhiming_Liu

Our product has the need to update Uboot, in order to ensure that updating Uboot is also safe, there will be no abnormal equipment such as power failure when updating Uboot, resulting in bricks of the device, I see that IMX6ULL have a secondary boot for two copied bootloader, I asked for advice on how to do Uboot double backup on NAND flash?

1749611442357.png

Best Regards,

0 Kudos
Reply

611 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @djq 


You could refer i.MX6 SDCARD Secondary Boot Demo here, this demo is based on SDcard, but the steps for implementation on Nand are similar.

iMX secondary boot collection - NXP Community


Best Regards,
Zhiming

0 Kudos
Reply

576 Views
djq
Contributor I

Hi Zhiming_Liu

Can you provide a Secondary Boot demo based on NAND flash?

We are now using kobs-ng to burn uboot, hoping that it will not affect the minor uboot when burning the primary uboot, and then if it fails to burn the primary uboot, the device can run the minor uboot when it is turned on again

 

Best Regards,

0 Kudos
Reply

504 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @djq 

The image creation process is similar to the sd card, the only difference is the writing process. We don't have a nand based demo image at the moment.

Best Regards,
Zhiming

0 Kudos
Reply

419 Views
djq
Contributor I

Hi Zhiming_Liu

Can you talk about the differences in write processing?

Best Regards,

0 Kudos
Reply