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.

[参考译文] AM625-Q1:如何通过 DFU 引导刷写 OSPI_NOR (+OSPI_NAND) 闪存?

Guru**** 2798555 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1622373/am625-q1-how-to-flash-ospi_nor-ospi_nand-flash-by-dfu-booting

器件型号: AM625-Q1

尊敬的专家:

在 tile 说明中、我已经看到一些关于 E2E 相关主题的讨论。

我尝试通过 DFU 引导刷写 OSPI-NOR 闪存、在 DFU 引导成功后执行以下步骤。

Welcome to minicom 2.7.1

OPTIONS: I18n 
Compiled on Dec 23 2019, 02:06:26.
Port /dev/ttyUSB0, 15:25:45

Press CTRL-A Z for help on special keys

sf probe
SF: Detected s28hs512t with page size 256 Bytes, erase size 256 KiB, total 64 MiB
=> mtd list
Could not find a valid device for spi-nand0
List of MTD devices:
* nor0
  - device: flash@0
  - parent: spi@fc40000
  - driver: jedec_spi_nor
  - path: /bus@f0000/bus@fc00000/spi@fc40000/flash@0
  - type: NOR flash
  - block size: 0x40000 bytes
  - min I/O: 0x10 bytes
  - 0x000000000000-0x000004000000 : "nor0"
          - 0x000000000000-0x000000080000 : "ospi.tiboot3"
          - 0x000000080000-0x000000280000 : "ospi.tispl"
          - 0x000000280000-0x000000680000 : "ospi.u-boot"
          - 0x000000680000-0x0000006c0000 : "ospi.env"
          - 0x0000006c0000-0x000000700000 : "ospi.env.backup"
          - 0x000000800000-0x000003fc0000 : "ospi.rootfs"
          - 0x000003fc0000-0x000004000000 : "ospi.phypattern"
=> setenv dfu_alt_info "tiboot3 raw 0x0 0x80000;tispl raw 0x80000 0x200000;u-boot raw 0x280000 0x400000"
=> dfu 0 mtd spi-nor0   
MTD support not available!
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

=> dfu 0 mtd spi-nand0                                                                                  
MTD support not available!
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 支持不可用!
DFU 实体配置失败!

我是否想念 Amy Steps?

谢谢你。

Gibbs

 

参考

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1421944/am620-q1-am62x-flash-and-boot-from-ospi-nand-using-usb-dfu-method/5450758?tisearch=e2e-sitesearch&keymatch=dfu%252525252525252520ospi

 

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    嗨、Gibbs、

    DFU 0 MTD SPI-nand0

    请尝试以下操作:

    dfu 0 sf 0:0

    此致、

    会面。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    大家好、见面

    感谢您的答复。

    我认为它应该起作用、  

    按以下方式记录。

    主持人:

    drwxrwxr-x 5 gibbs gibbs    4096  一   5 10:48 ../
    -rw-rw-r-- 1 gibbs gibbs  280182  一   2 14:46 tiboot3-am62x-gp-evm.bin
    -rw-rw-r-- 1 gibbs gibbs  282771  一   2 14:46 tiboot3-am62x-hs-evm.bin
    -rw-rw-r-- 1 gibbs gibbs  282771  一   2 14:46 tiboot3-am62x-hs-fs-evm.bin
    -rw-rw-r-- 1 gibbs gibbs  282771  一   2 14:54 tiboot3.bin
    -rw-rw-r-- 1 gibbs gibbs  285279  一   2 14:46 tiboot3-capsule.bin
    -rw-rw-r-- 1 gibbs gibbs 1337247  一   2 14:46 tispl.bin
    -rw-rw-r-- 1 gibbs gibbs 1467923  一   2 14:46 u-boot.img
    gibbs@gibbs-HP-ZBook-15-G5:~/work/am62/Bootloader_wDFU_wNormal_PROC142A/DFU_BootTest/Normal_Bootloader$ llsudo dfu-util -a tiboot3 -D tiboot3.bin
    
    Command 'llsudo' not found, did you mean:
    
      command 'lxsudo' from deb lxqt-sudo (0.14.1-0ubuntu1)
    
    Try: sudo apt install <deb name>
    
    gibbs@gibbs-HP-ZBook-15-G5:~/work/am62/Bootloader_wDFU_wNormal_PROC142A/DFU_BootTest/Normal_Bootloader$ sudo dfu-util -a tiboot3 -D tiboot3.bin
    dfu-util 0.9
    
    Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
    Copyright 2010-2016 Tormod Volden and Stefan Schmidt
    This program is Free Software and has ABSOLUTELY NO WARRANTY
    Please report bugs to sourceforge.net/.../
    
    dfu-util: Invalid DFU suffix signature
    dfu-util: A valid DFU suffix will be required in a future dfu-util release!!!
    Opening DFU capable USB device...
    ID 0451:6165
    Run-time device DFU version 0110
    Claiming USB DFU Interface...
    Setting Alternate Setting #0 ...
    Determining device status: state = dfuIDLE, status = 0
    dfuIDLE, continuing
    DFU mode device DFU version 0110
    Device returned transfer size 4096
    Copying data from PC to DFU device
    Download	[=========================] 100%       282771 bytes
    Download done.
    state(7) = dfuMANIFEST, status(0) = No error condition is present
    state(2) = dfuIDLE, status(0) = No error condition is present
    Done!
    gibbs@gibbs-HP-ZBook-15-G5:~/work/am62/Bootloader_wDFU_wNormal_PROC142A/DFU_BootTest/Normal_Bootloader$ sudo dfu-util -a tispl -D tispl.bin
    dfu-util 0.9
    
    Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
    Copyright 2010-2016 Tormod Volden and Stefan Schmidt
    This program is Free Software and has ABSOLUTELY NO WARRANTY
    Please report bugs to sourceforge.net/.../
    
    dfu-util: Invalid DFU suffix signature
    dfu-util: A valid DFU suffix will be required in a future dfu-util release!!!
    Opening DFU capable USB device...
    ID 0451:6165
    Run-time device DFU version 0110
    Claiming USB DFU Interface...
    Setting Alternate Setting #1 ...
    Determining device status: state = dfuIDLE, status = 0
    dfuIDLE, continuing
    DFU mode device DFU version 0110
    Device returned transfer size 4096
    Copying data from PC to DFU device
    Download	[=========================] 100%      1337247 bytes
    Download done.
    state(7) = dfuMANIFEST, status(0) = No error condition is present
    state(2) = dfuIDLE, status(0) = No error condition is present
    Done!
    gibbs@gibbs-HP-ZBook-15-G5:~/work/am62/Bootloader_wDFU_wNormal_PROC142A/DFU_BootTest/Normal_Bootloader$ sudo dfu-util -R -a u-boot -D u-boot.img
    dfu-util 0.9
    
    Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
    Copyright 2010-2016 Tormod Volden and Stefan Schmidt
    This program is Free Software and has ABSOLUTELY NO WARRANTY
    Please report bugs to sourceforge.net/.../
    
    dfu-util: Invalid DFU suffix signature
    dfu-util: A valid DFU suffix will be required in a future dfu-util release!!!
    Opening DFU capable USB device...
    ID 0451:6165
    Run-time device DFU version 0110
    Claiming USB DFU Interface...
    Setting Alternate Setting #2 ...
    Determining device status: state = dfuIDLE, status = 0
    dfuIDLE, continuing
    DFU mode device DFU version 0110
    Device returned transfer size 4096
    Copying data from PC to DFU device
    Download	[=========================] 100%      1467923 bytes
    Download done.
    state(7) = dfuMANIFEST, status(0) = No error condition is present
    state(2) = dfuIDLE, status(0) = No error condition is present
    Done!
    Resetting USB to switch back to runtime mode
    

    TRAGET:

    想知道的是、OSPI NOR 和 NAND 是否使用相同的命令?

    dfu 0 sf 0:0

    谢谢你。

    Gibbs

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    想知道、OSPI NOR 和 NAND 是否使用相同的命令?

    SF 不适用于 OSPI NAND、您可以使用之前为 OSPI NAND 共享的参考:  RE:AM620-Q1:AM62x:闪存、并使用 USB-DFU 方法从 OSPI NAND 引导