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.
|0x200 (reserved Chip Num)||0|
|0x204 (reserved Drive Type)|
|0x20C (first sector number)||0x002|
|0x210 (reserved Sector Count )||0|
I wrote this header in 0x200 :
0000 0000 0000 0000 3322 1100 0200 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
reg = readl( &psrc->gpr10 );
reg |= 0x40000000;
writel( reg , &psrc->gpr10 );
I send a reset in u-boot prompt and the system do nothing :
1) The secondary image table is correct ?
2) The WARM reset cannot be like that ?