AM625: xSPI boot parameter table

Part Number: AM625

Hello TI support,

I saw the two address for xSPI boot mode in TRM of AM625. I mean that, the tiboot3.bin can put at 0x000000 and 0x400000. Is it right?

The 0x400000 is back read address which can use for tiboot3.bin recovery, I wonder when the ROM code read the backup read address?

Thanks,

Brian

  • Hello Brian, 

    Thank you for the query.

    Let me check with the expert. Please expect a delay in reply.

    Regards,

    Sreenivasa

  • Hello Sreenivasa,

    Do you have any update

    Regards,

    Brian

  • Hello Brian, 

    Thank you for checking.

    I am checking internally and will update you based on the received inputs.

    Regards,

    Sreenivasa

  • Hello Brian, 

    I am checking internally and will update you based on the received inputs.

    Regards,

    Sreenivasa

  • Hello Brian,
    When boot rom detects any integrity check error on the boot binary read from OSPI primary offset @ 0x000000,
    the next try by boot rom is to boot from OSPI backup offset @0x400000.

    I'm attaching two log files on test as listed below on AM62x-SK E2 board
    a). Flash boot binary @OSPI primary offset (0x000000)
    b). Boot from OSPI (ok)
    c). Erase 16 bytes with “zero” @OSPI primary offset (0x000000)
    d). Boot from OSPI (failed)
    e). Flash boot binary to @OSPI backup offset (0x400000)
    f). Boot from OSPI (ok)

    Best,
    -Hong

    am62_8.3_ospi_erase_primary.txt
    U-Boot SPL 2021.01-g74fc69c889 (May 30 2022 - 16:40:44 +0000)
    SYSFW ABI: 3.1 (firmware rev 0x0008 '8.3.2--v08.03.02 (Jolly Jellyfi')
    Trying to boot from MMC2
    Loading Environment from MMC... *** Warning - No MMC card found, using default environment
    
    Starting ATF on ARM64 core...
    
    NOTICE:  BL31: v2.6(release):08.03.00.003-dirty
    NOTICE:  BL31: Built : 16:35:46, May 30 2022
    
    U-Boot SPL 2021.01-g74fc69c889 (May 30 2022 - 16:39:30 +0000)
    SYSFW ABI: 3.1 (firmware rev 0x0008 '8.3.2--v08.03.02 (Jolly Jellyfi')
    Trying to boot from MMC2
    
    
    U-Boot 2021.01-g74fc69c889 (May 30 2022 - 16:39:30 +0000)
    
    SoC:   AM62X SR1.0
    Model: Texas Instruments AM625 SK
    EEPROM not available at 0x50, trying to read at 0x51
    Board: AM62-SKEVM rev E2
    DRAM:  2 GiB
    MMC:   mmc@fa10000: 0, mmc@fa00000: 1, mmc@fa20000: 2
    Loading Environment from MMC... *** Warning - bad CRC, using default environment
    
    In:    serial@2800000
    Out:   serial@2800000
    Err:   serial@2800000
    Net:   eth0: ethernet@8000000port@1
    Hit any key to stop autoboot:  0
    => sf probe
    SF: Detected s28hs512t with page size 256 Bytes, erase size 256 KiB, total 64 MiB
    => md.b ${loadaddr} 0x100
    82000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    82000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    82000020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    82000030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    82000040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    82000050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    82000060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    82000070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    82000080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    82000090: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    820000a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    820000b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    820000c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    820000d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    820000e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    820000f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    => sf read ${loadaddr} 0x0 0x100
    device 0 offset 0x0, size 0x100
    SF: 256 bytes @ 0x0 Read: OK
    => md.b ${loadaddr} 0x100
    82000000: 30 82 04 94 30 82 03 fd a0 03 02 01 02 02 14 61    0...0..........a
    82000010: 50 47 62 40 63 29 d9 fa 84 55 7f 34 7d df 36 c1    PGb@c)...U.4}.6.
    82000020: 5d 35 e0 30 0d 06 09 2a 86 48 86 f7 0d 01 01 0d    ]5.0...*.H......
    82000030: 05 00 30 81 9d 31 0b 30 09 06 03 55 04 06 13 02    ..0..1.0...U....
    82000040: 55 53 31 0b 30 09 06 03 55 04 08 0c 02 54 58 31    US1.0...U....TX1
    82000050: 0f 30 0d 06 03 55 04 07 0c 06 44 61 6c 6c 61 73    .0...U....Dallas
    82000060: 31 27 30 25 06 03 55 04 0a 0c 1e 54 65 78 61 73    1'0%..U....Texas
    82000070: 20 49 6e 73 74 72 75 6d 65 6e 74 73 20 49 6e 63     Instruments Inc
    82000080: 6f 72 70 6f 72 61 74 65 64 31 13 30 11 06 03 55    orporated1.0...U
    82000090: 04 0b 0c 0a 50 72 6f 63 65 73 73 6f 72 73 31 13    ....Processors1.
    820000a0: 30 11 06 03 55 04 03 0c 0a 54 49 20 53 75 70 70    0...U....TI Supp
    820000b0: 6f 72 74 31 1d 30 1b 06 09 2a 86 48 86 f7 0d 01    ort1.0...*.H....
    820000c0: 09 01 16 0e 73 75 70 70 6f 72 74 40 74 69 2e 63    ....support@ti.c
    820000d0: 6f 6d 30 1e 17 0d 32 32 30 35 33 30 31 36 34 31    om0...2205301641
    820000e0: 30 35 5a 17 0d 32 32 30 36 32 39 31 36 34 31 30    05Z..22062916410
    820000f0: 35 5a 30 81 9d 31 0b 30 09 06 03 55 04 06 13 02    5Z0..1.0...U....
    => mw.b ${loadaddr} 0x0 0x10
    => md.b ${loadaddr} 0x100
    82000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    82000010: 50 47 62 40 63 29 d9 fa 84 55 7f 34 7d df 36 c1    PGb@c)...U.4}.6.
    82000020: 5d 35 e0 30 0d 06 09 2a 86 48 86 f7 0d 01 01 0d    ]5.0...*.H......
    82000030: 05 00 30 81 9d 31 0b 30 09 06 03 55 04 06 13 02    ..0..1.0...U....
    82000040: 55 53 31 0b 30 09 06 03 55 04 08 0c 02 54 58 31    US1.0...U....TX1
    82000050: 0f 30 0d 06 03 55 04 07 0c 06 44 61 6c 6c 61 73    .0...U....Dallas
    82000060: 31 27 30 25 06 03 55 04 0a 0c 1e 54 65 78 61 73    1'0%..U....Texas
    82000070: 20 49 6e 73 74 72 75 6d 65 6e 74 73 20 49 6e 63     Instruments Inc
    82000080: 6f 72 70 6f 72 61 74 65 64 31 13 30 11 06 03 55    orporated1.0...U
    82000090: 04 0b 0c 0a 50 72 6f 63 65 73 73 6f 72 73 31 13    ....Processors1.
    820000a0: 30 11 06 03 55 04 03 0c 0a 54 49 20 53 75 70 70    0...U....TI Supp
    820000b0: 6f 72 74 31 1d 30 1b 06 09 2a 86 48 86 f7 0d 01    ort1.0...*.H....
    820000c0: 09 01 16 0e 73 75 70 70 6f 72 74 40 74 69 2e 63    ....support@ti.c
    820000d0: 6f 6d 30 1e 17 0d 32 32 30 35 33 30 31 36 34 31    om0...2205301641
    820000e0: 30 35 5a 17 0d 32 32 30 36 32 39 31 36 34 31 30    05Z..22062916410
    820000f0: 35 5a 30 81 9d 31 0b 30 09 06 03 55 04 06 13 02    5Z0..1.0...U....
    => sf update $loadaddr 0x0 0x10
    device 0 offset 0x0, size 0x10
    16 bytes written, 0 bytes skipped in 1.510s, speed 10 B/s
    => sf read ${loadaddr} 0x0 0x100
    device 0 offset 0x0, size 0x100
    SF: 256 bytes @ 0x0 Read: OK
    => md.b ${loadaddr} 0x100
    82000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    82000010: 50 47 62 40 63 29 d9 fa 84 55 7f 34 7d df 36 c1    PGb@c)...U.4}.6.
    82000020: 5d 35 e0 30 0d 06 09 2a 86 48 86 f7 0d 01 01 0d    ]5.0...*.H......
    82000030: 05 00 30 81 9d 31 0b 30 09 06 03 55 04 06 13 02    ..0..1.0...U....
    82000040: 55 53 31 0b 30 09 06 03 55 04 08 0c 02 54 58 31    US1.0...U....TX1
    82000050: 0f 30 0d 06 03 55 04 07 0c 06 44 61 6c 6c 61 73    .0...U....Dallas
    82000060: 31 27 30 25 06 03 55 04 0a 0c 1e 54 65 78 61 73    1'0%..U....Texas
    82000070: 20 49 6e 73 74 72 75 6d 65 6e 74 73 20 49 6e 63     Instruments Inc
    82000080: 6f 72 70 6f 72 61 74 65 64 31 13 30 11 06 03 55    orporated1.0...U
    82000090: 04 0b 0c 0a 50 72 6f 63 65 73 73 6f 72 73 31 13    ....Processors1.
    820000a0: 30 11 06 03 55 04 03 0c 0a 54 49 20 53 75 70 70    0...U....TI Supp
    820000b0: 6f 72 74 31 1d 30 1b 06 09 2a 86 48 86 f7 0d 01    ort1.0...*.H....
    820000c0: 09 01 16 0e 73 75 70 70 6f 72 74 40 74 69 2e 63    ....support@ti.c
    820000d0: 6f 6d 30 1e 17 0d 32 32 30 35 33 30 31 36 34 31    om0...2205301641
    820000e0: 30 35 5a 17 0d 32 32 30 36 32 39 31 36 34 31 30    05Z..22062916410
    820000f0: 35 5a 30 81 9d 31 0b 30 09 06 03 55 04 06 13 02    5Z0..1.0...U....
    =>

    am62_8.3_ospi_flash_backup.txt
    U-Boot SPL 2021.01-g74fc69c889 (May 30 2022 - 16:40:44 +0000)
    SYSFW ABI: 3.1 (firmware rev 0x0008 '8.3.2--v08.03.02 (Jolly Jellyfi')
    Trying to boot from MMC2
    Loading Environment from MMC... *** Warning - No MMC card found, using default environment
    
    Starting ATF on ARM64 core...
    
    NOTICE:  BL31: v2.6(release):08.03.00.003-dirty
    NOTICE:  BL31: Built : 16:35:46, May 30 2022
    
    U-Boot SPL 2021.01-g74fc69c889 (May 30 2022 - 16:39:30 +0000)
    SYSFW ABI: 3.1 (firmware rev 0x0008 '8.3.2--v08.03.02 (Jolly Jellyfi')
    Trying to boot from MMC2
    
    
    U-Boot 2021.01-g74fc69c889 (May 30 2022 - 16:39:30 +0000)
    
    SoC:   AM62X SR1.0
    Model: Texas Instruments AM625 SK
    EEPROM not available at 0x50, trying to read at 0x51
    Board: AM62-SKEVM rev E2
    DRAM:  2 GiB
    MMC:   mmc@fa10000: 0, mmc@fa00000: 1, mmc@fa20000: 2
    Loading Environment from MMC... *** Warning - bad CRC, using default environment
    
    In:    serial@2800000
    Out:   serial@2800000
    Err:   serial@2800000
    Net:   eth0: ethernet@8000000port@1
    Hit any key to stop autoboot:  2  0 
    => sf probe
    SF: Detected s28hs512t with page size 256 Bytes, erase size 256 KiB, total 64 MiB
    => md.b ${loadaddr} 0x100
    82000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    82000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    82000020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    82000030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    82000040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    82000050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    82000060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    82000070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    82000080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    82000090: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    820000a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    820000b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    820000c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    820000d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    820000e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    820000f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    => sf read ${loadaddr} 0x400000 0x100
    device 0 offset 0x400000, size 0x100
    SF: 256 bytes @ 0x400000 Read: OK
    => md.b ${loadaddr} 0x100
    82000000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
    82000010: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
    82000020: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
    82000030: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
    82000040: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
    82000050: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
    82000060: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
    82000070: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
    82000080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
    82000090: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
    820000a0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
    820000b0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
    820000c0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
    820000d0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
    820000e0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
    820000f0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
    => mmc rescan
    => ls mmc 1
       892452   tispl.bin
       335442   tiboot3.bin
       861296   u-boot.img
         1490   uEnv.txt
            1   .psdk_setup
    
    5 file(s), 0 dir(s)
    
    => load mmc 1 ${loadaddr} tiboot3.bin
    335442 bytes read in 19 ms (16.8 MiB/s)
    => md.b ${loadaddr} 0x100
    82000000: 30 82 04 94 30 82 03 fd a0 03 02 01 02 02 14 61    0...0..........a
    82000010: 50 47 62 40 63 29 d9 fa 84 55 7f 34 7d df 36 c1    PGb@c)...U.4}.6.
    82000020: 5d 35 e0 30 0d 06 09 2a 86 48 86 f7 0d 01 01 0d    ]5.0...*.H......
    82000030: 05 00 30 81 9d 31 0b 30 09 06 03 55 04 06 13 02    ..0..1.0...U....
    82000040: 55 53 31 0b 30 09 06 03 55 04 08 0c 02 54 58 31    US1.0...U....TX1
    82000050: 0f 30 0d 06 03 55 04 07 0c 06 44 61 6c 6c 61 73    .0...U....Dallas
    82000060: 31 27 30 25 06 03 55 04 0a 0c 1e 54 65 78 61 73    1'0%..U....Texas
    82000070: 20 49 6e 73 74 72 75 6d 65 6e 74 73 20 49 6e 63     Instruments Inc
    82000080: 6f 72 70 6f 72 61 74 65 64 31 13 30 11 06 03 55    orporated1.0...U
    82000090: 04 0b 0c 0a 50 72 6f 63 65 73 73 6f 72 73 31 13    ....Processors1.
    820000a0: 30 11 06 03 55 04 03 0c 0a 54 49 20 53 75 70 70    0...U....TI Supp
    820000b0: 6f 72 74 31 1d 30 1b 06 09 2a 86 48 86 f7 0d 01    ort1.0...*.H....
    820000c0: 09 01 16 0e 73 75 70 70 6f 72 74 40 74 69 2e 63    ....support@ti.c
    820000d0: 6f 6d 30 1e 17 0d 32 32 30 35 33 30 31 36 34 31    om0...2205301641
    820000e0: 30 35 5a 17 0d 32 32 30 36 32 39 31 36 34 31 30    05Z..22062916410
    820000f0: 35 5a 30 81 9d 31 0b 30 09 06 03 55 04 06 13 02    5Z0..1.0...U....
    => sf update $loadaddr 0x400000 $filesize
    device 0 offset 0x400000, size 0x51e52
       Updating, 79% 172627 B/s335442 bytes written, 0 bytes skipped in 2.713s, speed 126470 B/s
    => mw.b ${loadaddr} 0x0 0x100
    => md.b ${loadaddr} 0x100
    82000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    82000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    82000020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    82000030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    82000040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    82000050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    82000060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    82000070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    82000080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    82000090: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    820000a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    820000b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    820000c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    820000d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    820000e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    820000f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    => sf read ${loadaddr} 0x400000 0x100
    device 0 offset 0x400000, size 0x100
    SF: 256 bytes @ 0x400000 Read: OK
    => md.b ${loadaddr} 0x100
    82000000: 30 82 04 94 30 82 03 fd a0 03 02 01 02 02 14 61    0...0..........a
    82000010: 50 47 62 40 63 29 d9 fa 84 55 7f 34 7d df 36 c1    PGb@c)...U.4}.6.
    82000020: 5d 35 e0 30 0d 06 09 2a 86 48 86 f7 0d 01 01 0d    ]5.0...*.H......
    82000030: 05 00 30 81 9d 31 0b 30 09 06 03 55 04 06 13 02    ..0..1.0...U....
    82000040: 55 53 31 0b 30 09 06 03 55 04 08 0c 02 54 58 31    US1.0...U....TX1
    82000050: 0f 30 0d 06 03 55 04 07 0c 06 44 61 6c 6c 61 73    .0...U....Dallas
    82000060: 31 27 30 25 06 03 55 04 0a 0c 1e 54 65 78 61 73    1'0%..U....Texas
    82000070: 20 49 6e 73 74 72 75 6d 65 6e 74 73 20 49 6e 63     Instruments Inc
    82000080: 6f 72 70 6f 72 61 74 65 64 31 13 30 11 06 03 55    orporated1.0...U
    82000090: 04 0b 0c 0a 50 72 6f 63 65 73 73 6f 72 73 31 13    ....Processors1.
    820000a0: 30 11 06 03 55 04 03 0c 0a 54 49 20 53 75 70 70    0...U....TI Supp
    820000b0: 6f 72 74 31 1d 30 1b 06 09 2a 86 48 86 f7 0d 01    ort1.0...*.H....
    820000c0: 09 01 16 0e 73 75 70 70 6f 72 74 40 74 69 2e 63    ....support@ti.c
    820000d0: 6f 6d 30 1e 17 0d 32 32 30 35 33 30 31 36 34 31    om0...2205301641
    820000e0: 30 35 5a 17 0d 32 32 30 36 32 39 31 36 34 31 30    05Z..22062916410
    820000f0: 35 5a 30 81 9d 31 0b 30 09 06 03 55 04 06 13 02    5Z0..1.0...U....
    => 

  • Hello Hong,

    Many thank you.

    I will to do on my custom board.

    Regards,

    Brian

  • Hello Brian, 

    Thank you for the note.

    Regards,

    Sreenivasa