AnsweredAssumed Answered

Redundant Boot in sdcard failed

Question asked by Julien CARBONNIER on Dec 10, 2014
Latest reply on Dec 24, 2015 by Biyong Sun

Hi Community,

 

For an imx6qsabresd board : I would like to implement the Redundant Boot Support.

I modified the secondary image table format like this in my sdcard to reboot with the first u-boot after a WARM reset.

 

AddressValue
0x200 (reserved Chip Num)0
0x204 (reserved Drive Type)

0

0x208 (tag)0x00112233
0x20C (first sector number)0x002
0x210 (reserved Sector Count )0

 

I wrote this header in 0x200 :

0000 0000 0000 0000 3322 1100 0200 0000

0000 0000

 

dd if=header of=/dev/sdb bs=1 seek=512 count=20

 

For rebooting with this table I created a WARM reset in u-boot :

 

PERSIST_SECONDARY_BOOT : SRC_GPR10[30]

 

reg = readl( &psrc->gpr10 );

reg |= 0x40000000;

writel( reg , &psrc->gpr10 );

 

I send a reset in u-boot prompt and the system do nothing :

 

=> reset

resetting ...

 

1) The secondary image table is correct ?

2) The WARM reset cannot be like that ?

Outcomes