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.

[FAQ] [参考译文] [常见问题解答]如何在 AM62L 上使用 USB-DFU 将 u-boot 刷写到 GPMC-NAND

Guru**** 2470720 points
Other Parts Discussed in Thread: AM62L

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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1468493/faq-how-to-flash-u-boot-to-gpmc-nand-with-usb-dfu-on-am62l

器件型号:AM62L

工具与软件:

AM62L ROM 支持从大小不超过2GB 的兼容 ONFI 1.0的8位并行 NAND 存储器引导、并连接到具有以下几何形状和特性的 GPMC CS0
•2K 字节页和至少为64字节或的备用区域
•4KB 的页大小和至少128字节的备用区域。
•仅限非 ECC 器件
- ROM 使用 ELM 处理 ECC。
- ECC 为 BCH8、使用 D7:0表示数据
-检查参数页面 CRC ,如果出现故障,则使用冗余页面。

常见问题解答列出了如何在 AM62L EVM + NAND 子卡上使用 USB-DFU 将 u-boot 刷写到 GPMC-NAND、并具有 AM62L Linux EA 版本、其中 MT29F8G08ADAFAH4位于所列的 GPMC-NAND 子卡上
[ 2.759530] nand:找到器件、制造商 ID:0x2C、芯片 ID:0xd3
[2.768643] nAND:micron MT29F8G08ADAFAH4.
[2.774662] nand:1024 MIB、SLC、erase size:256 KiB、page size:4096、OOB size:256
[2.782546] nand:使用 OMAP_ECC_BCH8_CODE_HW ECC 方案

下面列出了有关如何从 SD 引导从 GPMC-NAND 引导 u-boot 的配套常见问题解答

https://e2e.ti.com/support/processors-group/processors/f/791/t/1468486

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

    构建 u-boot 以支持 GPMC-NAND
    -应用 u-boot gpmc-nand 补丁<0001-add-enabling-u-boot-gpmc-nand-on-AM62L-evm-nand-daug.patch>
    AM62L Linux EA 封装中包含 GPMC-NAND 驱动程序、但默认情况下、在 u-boot 中禁用 GPMC-NAND、因为 nand 子卡是可选元件。
    -使用生成 u-boot GPMC-nand 补丁来进行构建。

    从 USB-DFU 引导模式引导 u-boot
    -将引导模式引脚配置为 USB-DFU 引导模式
    -在主板上加电
    -从 Linux 主机发出命令 dmds (安装 dfu-util )
    sudo dfu-util -l
    sudo dfu-util -R -a 引导加载程序-D tiboot3.bin
    sudo dfu-util -R -a 引导加载程序-D tispl.bin
    sudo dfu-util -R -a u-boot.img -D u-boot.img

    -停止@u-boot 提示符,并运行命令以准备 GPMC-NAND 闪存下一步
    => setenv dfu_alt_info "tiboot3.bin raw 0x0 0x080000;tispl.bin raw 0x080000 0x200000;u-boot.img raw 0x200000 0x400000;rootfs raw 0x880000 0x20000000"
    => DFU 0 MTD nand0

    将 u-boot 闪存至 GPMC-NAND
    -从 Linux 主机发出命令 dmds (安装 dfu-util )
    sudo dfu-util -l
    sudo dfu-util -a 0 -D tiboot3.bin
    sudo dfu-util -a 1 -D tispl.bin
    sudo dfu-util -a 2 -D u-boot.img

    下面随附了这三个日志以供参考:
    - am62l_EA3_DFU_NAND_HOST.log:USB-DFU GPMC-NAND 闪存中的 Linux 主机日志
    - am62l_EA3_DFU_nand_target.log:USB-DFU GPMC-nand 刷写中的 u-boot 目标日志
    - am62l_EA3_nand_boot.log:来自 GPMC-nand 引导的 u-boot 日志

    e2e.ti.com/.../4721.0001_2D00_add_2D00_enabling_2D00_u_2D00_boot_2D00_gpmc_2D00_nand_2D00_on_2D00_AM62L_2D00_EVM_2D00_nand_2D00_daug.patch

    e2e.ti.com/.../am62l_5F00_ea3_5F00_dfu_5F00_nand_5F00_host.log

    e2e.ti.com/.../am62l_5F00_ea3_5F00_dfu_5F00_nand_5F00_target.log

    e2e.ti.com/.../am62l_5F00_ea3_5F00_nand_5F00_boot.log