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.

DRA829V: backup boot when on OSPI confirmation

Part Number: DRA829V
Other Parts Discussed in Thread: TDA4VM,

Hi Everybody,

 when booting from OSPI  is there a   backup boot available or should we use a different type of flash, in the case the primary boot is corrupted ?

can I still be on OSPI In a differnet locationc ?

For example, SBL on OSPI is corrupted or fails secure boot checks, can the ROM still boot the SoC using another copy of the SBL stored on the SBL or in eMMC?

I cannot find  proper confirmation .

best regards

Carlo

  • Hi Carlo,

    The ROM code supports a 'backup' boot mode, in case there is a problem with the 'primary' boot mode.  Check the TRM for a table in the section on "Bootloader Modes" (section 4.1.2) that specifies the ROM-supported backup boot modes (selectable with BOOTMODE pins):

    http://www.ti.com/lit/ug/spruil1a/spruil1a.pdf 

    Also, even within the same flash media, the ROM supports two boot parameter tables, to handle a case where one area of flash has a bad or corrupted SBL image.  Check the section in the TRM on "Boot Parameter Tables" (section 4.4) to learn more details on this.

    Regards,

    Jonathan

  • HI Jonathan , 

    thank you 

    so considering OSPI ,  in case READ0  address fail  I can stay on same memory and use READ1 ? 

    my concern is for whaterver reason flash address locaton is corrupted and I have only OSPI

    best regards

    Carlo

  • Carlo,

    Yes, as long as you have a valid image at the second address location (and it is not also corrupted).

    This is what section 4.4 of the TRM says about the second use-case for having two parameter tables that are supported by the ROM:

    "The second case is failure due to total flash corruption. In all flash parameter tables there exist backup addresses within the primary boot mode. This covers the problem of a flash update failure with a backup image present on the same flash device"

    Regards,

    Jonathan

  • Hi Jonathan 

    We understand that in section 4.4 of the TRM the partition table allows us to use backup boot in the case of corrupted sectors or the primary sectors fail to boot. However according to section 4.1.2 Bootloader Modes says that OSPI cannot be used for backup boot. We would like to use OSPI for primary and backup boot as described in section 4.4.5 OSPI/QSPI/SPI Boot Parameter Table, could you confirm if this configuration is supported?

    thank you 

    best regards

    Carlo

  • Carlo,

    You don't actually need to set OSPI as the "backup" boot option to accomplish what you're trying to do here.  Just set OSPI as the primary boot option on DRA829V / TDA4VM and I've already confirmed today that the rom bootloader will automatically check a second location in the flash, if the primary location's image has been corrupted.  The two flash address locations checked are: 0x0 and 0x400000.  The second location is checked only if a valid boot image is not found at the first location.

    Regards,

    Jonathan