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.

[参考译文] AM620-Q1:AM62x 上的 USB-DFU 引导问题:OSPI 闪存引导上的"BAD Data CRC&quot

Guru**** 2546810 points


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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1436717/am620-q1-issue-with-usb-dfu-boot-on-am62x-bad-data-crc-on-ospi-flash-boot

器件型号:AM620-Q1

工具与软件:

团队成员、您好!

我使用 AM62x-SK 板时、在使用 USB DFU 加载内核映像后尝试从闪存引导时会遇到"错误数据 CRC"错误。

USB DFU 引导过程出错:

  • 我切换到 USB DFU 模式以加载相同的图像。
  • 通过 USB DFU 传输映像并将其写入闪存后、我尝试使用 SF Read 进行引导。

这会导致以下错误:

   正在验证校验和...错误数据 CRC
   错误:无法获取内核映像!

成功引导过程(使用 UART 引导模式):

  • 使用 UART 模式启动处理器。
  • 我通过 UART 将映像加载到 DDR 中、然后使用 SF WRITE 将其复制到闪存。
  • 之后使用 SF 读取从闪存引导时运行良好、没有错误。

所采取的故障排除步骤:

  • 已验证通过 UART 加载图像时是否损坏。
  • 确保在 UART 和 USB DFU 过程中均正确设置闪存偏移和大小。
  • 对于这两种方法以及观察到的数据差异、比较了从闪存读取 SF 后 DDR 中的存储器内容。

您能说明一下与 AM62x 上的 USB DFU 相关而可以解决此问题的任何特定配置、限制或步骤吗?

=> run bootcmd
SF: Detected s28hs512t with page size 256 Bytes, erase size 256 KiB, total 64 MiB
device 0 offset 0x860000, size 0xcd2c
SF: 52524 bytes @ 0x860000 Read: OK
device 0 offset 0x800000, size 0x2578552
SF: 39290194 bytes @ 0x800000 Read: OK
## Booting kernel from Legacy Image at 93000000 ...
   Image Name:   vxworks
   Image Type:   AArch64 VxWorks Kernel Image (uncompressed)
   Data Size:    2578488 Bytes = 2.5 MiB
   Load Address: 80100000
   Entry Point:  80100000
   Verifying Checksum ... Bad Data CRC
ERROR: can't get kernel image!

谢谢、此致、

Yashavantha Gowda.

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

    问题已解决。 该错误是由于在 USB DFU 过程中将内核映像加载到不正确的偏移量中发生了错误。