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.

PROCESSOR-SDK-AM62A: DFU flash to NAND issue

Part Number: PROCESSOR-SDK-AM62A

Team,

I am working on AM62AX Linux EVM(exploring the features).

trying to flash the NAND memory through DFU getting error as 

=> setenv dfu_alt_info ${dfu_alt_info_ospi_nand}

=> dfu 0 mtd spi-nand0
DFU entities configuration failed!
(partition table does not match dfu_alt_info?)
dfu - Device Firmware Upgrade

Usage:
dfu <USB_controller> [<interface> <dev>] [list]
- device firmware upgrade via <USB_controller>
on device <dev>, attached to interface
<interface>
[list] - list available alt settings

=>

mtd list commands gives output as

=> mtd list
List of MTD devices:
* spi-nand0
- device: flash@0
- parent: spi@fc40000
- driver: spi_nand
- type: NAND flash
- block size: 0x40000 bytes
- min I/O: 0x1000 bytes
- OOB size: 128 bytes
- OOB available: 80 bytes
- 0x000000000000-0x000008000000 : "spi-nand0"
- 0x000000000000-0x000000080000 : "ospi.tiboot3"
- 0x000000080000-0x000000280000 : "ospi.tispl"
- 0x000000280000-0x000000680000 : "ospi.u-boot"
- 0x000000680000-0x0000006c0000 : "ospi.env"
- 0x0000006c0000-0x000000700000 : "ospi.env.backup"
- 0x000002000000-0x000007fc0000 : "ospi.rootfs"
- 0x000007fc0000-0x000008000000 : "ospi.phypattern"
=>

=> mtdparts
Device nand0 not found!

=>

what could be wrong ?

  • Hi Muthukumar,

    I am routing your query to our U-Boot expert for comments.

  • Hello,

    What processor SDK are you using? There were some updates, so 08.06.00.007 should be a good candidate to use.

  • Hello,

    dfu command did not work for me. Could you try the following method (attached) and let me know if it works for you, thanks.

    # Build tiboot3.bin using am62ax_evm_r5_usbdfu_defconfig in ti u-boot in ti-u-boot-2021.01 branch
    # Set boot mode to USB-DFU (SW3:00000000 SW2:11001010)
    # Connect USB cable to Linux host (J13) and Power on the EVM
    # In Linux host machine execute the following commands:
    	- sudo -E -S dfu-util -l
    	- sudo -E -S dfu-util -R -a bootloader -D tiboot3.bin
    	- sudo -E -S dfu-util -R -a tispl.bin -D tispl.bin
    	- sudo -E -S dfu-util -R  -a u-boot.img -D u-boot.img
    
    # EVM serial console:U-Boot SPL 2021.01 (Apr 25 2023 - 09:47:40 -0500)
    SYSFW ABI: 3.1 (firmware rev 0x0008 '8.5.3--v08.05.03 (Chill Capybar')
    am62a_init: board_init_f done
    SPL initial stack usage: 13568 bytes
    am62a_init: spl_boot_device: devstat = 0x53 bootmedia = 0xa bootindex = 0
    Trying to boot from DFU
    ############################################################DOWNLOAD ... OK
    Ctrl+C to exit ...
    am62a_init: spl_boot_device: devstat = 0x53 bootmedia = 0xa bootindex = 0
    Authentication passed
    am62a_init: spl_boot_device: devstat = 0x53 bootmedia = 0xa bootindex = 0
    Authentication passed
    am62a_init: spl_boot_device: devstat = 0x53 bootmedia = 0xa bootindex = 0
    Authentication passed
    am62a_init: spl_boot_device: devstat = 0x53 bootmedia = 0xa bootindex = 0
    Authentication passed
    am62a_init: spl_boot_device: devstat = 0x53 bootmedia = 0xa bootindex = 0
    Authentication passed
    Loading Environment from MMC... *** Warning - No MMC card found, using default environment
    
    am62a_init: spl_boot_device: devstat = 0x53 bootmedia = 0xa bootindex = 0
    am62a_init: spl_boot_device: devstat = 0x53 bootmedia = 0xa bootindex = 0
    init_env from device 10 not supported!
    Starting ATF on ARM64 core...
    
    NOTICE:  BL31: v2.8(release):v2.8-226-g2fcd408bb3-dirty
    NOTICE:  BL31: Built : 20:33:06, Feb 13 2023
    
    U-Boot SPL 2021.01-g2ee8efd654 (Feb 23 2023 - 22:21:39 +0000)
    SYSFW ABI: 3.1 (firmware rev 0x0008 '8.5.3--v08.05.03 (Chill Capybar')
    am62a_init: board_init_f done
    am62a_init: spl_boot_device: devstat = 0x53 bootmedia = 0xa bootindex = 0
    Trying to boot from DFU
    ####DOWNLOAD ... OK
    Ctrl+C to exit ...
    am62a_init: spl_boot_device: devstat = 0x53 bootmedia = 0xa bootindex = 0
    Authentication passed
    am62a_init: spl_boot_device: devstat = 0x53 bootmedia = 0xa bootindex = 0
    Authentication passed
    
    
    U-Boot 2021.01-g2ee8efd654 (Feb 23 2023 - 22:21:39 +0000)
    
    SoC:   AM62AX SR1.0 HS-FS
    Model: Texas Instruments AM62A7 SK
    EEPROM not available at 0x50, trying to read at 0x51
    Board: AM62A-SKEVM rev E2
    DRAM:  4 GiB
    MMC:   mmc@fa10000: 0, mmc@fa00000: 1
    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 
    => 
    => mtd erase spi-nand0
    Erasing 0x00000000 ... 0x07ffffff (512 eraseblock(s))
    => mmc list
    mmc@fa10000: 0 (eMMC)
    mmc@fa00000: 1 (SD)
    => mmc dev 0 1
    switch to partitions #1, OK
    mmc0(part 1) is current device
    => fatload mmc 1 ${loadaddr} tiboot3.bin
    357147 bytes read in 20 ms (17 MiB/s)
    => mtd write spi-nand0 $loadaddr 0x0 $filesize
    Size not on a page boundary (0x1000), rounding to 0x58000
    Writing 360448 byte(s) (88 page(s)) at offset 0x00000000
    => fatload mmc 1 ${loadaddr} tispl.bin
    1210016 bytes read in 55 ms (21 MiB/s)
    => mtd write spi-nand0 $loadaddr 0x80000 $filesize
    Size not on a page boundary (0x1000), rounding to 0x128000
    Writing 1212416 byte(s) (296 page(s)) at offset 0x00080000
    => fatload mmc 1 ${loadaddr} u-boot.img
    1015424 bytes read in 47 ms (20.6 MiB/s)
    => mtd write spi-nand0 $loadaddr 0x280000 $filesize
    Size not on a page boundary (0x1000), rounding to 0xf8000
    Writing 1015808 byte(s) (248 page(s)) at offset 0x00280000
    
    # Switch boot mode setting to SPI NAND boot mode (SW3: 00000000 SW2:11000000) and reboot evm

  • Thank you Judith,

    it solved the issue.