This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM6442: Redundant boot from eMMC

Expert 4546 points

Part Number: AM6442
Other Parts Discussed in Thread: AM62P

Hi Champs,

When will auto-switch between boot0/boot1 in case of boot failure be supported in AM64x?

 

Regards,

Kien

  • Hello Kien,

    You may want to check versus this AM62P related E2E discussion regarding automated failover from eMMC boot 0 to boot 1 partition image:

    AM62P: Custom code needed to support automatic switch from boot0 to boot1 partition

    But I am also looping our eMMC software driver expert - Prashant for clarification regarding  AM64x ROM / SBL behavior.

    As I understand from the example thread and the AM64x/AM243x TRMChapter Initialization, Section eMMC Bootloader Operation when an alternate eMMC boot mode is enabled via BOOTMODE pins, the AM64x ROM loader will  try to load the image from the BOOT 0 partition. I could not see any option for ROM to use BOOT 1, changing entry in the eMMC Boot Parameter Table. If AM64x ROM fails to load the SPL/SBL image at offset 0 during alternate eMMC boot, neither will it attempt to read at offset 0x400000 of BOOT0, nor will it attempt to switch to BOOT1 partition. It will interpret this as a primary boot failure and will switch to the BOOTMODE pins defined back-up boot mode.

    With the SBL, as I understand from the example thread, you have the option to implement your own mechanism for automatic failover switch from BOOT 0 to BOOT 1, detecting the SBL booted image load/execution failure and adjust the SBL/SPL to read the backup image from BOOT 1 partition. 

    Prashant, please correct me if I am wrong.

    Thanks

    Best Regards

    Anastas

  • If AM64x ROM fails to load the SPL/SBL image at offset 0 during alternate eMMC boot, neither will it attempt to read at offset 0x400000 of BOOT0, nor will it attempt to switch to BOOT1 partition. It will interpret this as a primary boot failure and will switch to the BOOTMODE pins defined back-up boot mode.

    With the SBL, as I understand from the example thread, you have the option to implement your own mechanism for automatic failover switch from BOOT 0 to BOOT 1, detecting the SBL booted image load/execution failure and adjust the SBL/SPL to read the backup image from BOOT 1 partition.

    This explanation is correct.

    The ROM doesn't support the auto-switch between Boot0/Boot1 partitionsl. Once the SBL/SPL is booted, the recovery mechanism can be implemented as required.