主题中讨论的其他器件:BeagleBoard-X15
工具/软件:
您好、
我们在基于 AM57的平台上有一个 SPI NOR 闪存连接到 McSPI2、采用 linux-ti-staging 6.1 (SDK 09.03.06.05)。
它主要工作、但一次读取超过64KB 时除外:
$ dd if=/dev/mtd0 of=/tmp/dump count=1 bs=65534 1+0 records in 1+0 records out 65534 bytes (64.0KB) copied, 0.034515 seconds, 1.8MB/s $ hexdump -C /tmp/dump -n128 00000000 00 00 00 00 01 00 00 00 10 00 00 00 00 00 00 00 |................| 00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00000020 00 00 00 00 00 00 00 00 01 00 00 00 34 00 00 00 |............4...| 00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00000040 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 |................| 00000050 58 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |X...............| 00000060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 00000080
$ dd if=/dev/mtd0 of=/tmp/dump count=1 bs=65535 1+0 records in 1+0 records out 65535 bytes (64.0KB) copied, 0.034546 seconds, 1.8MB/s $ hexdump -C /tmp/dump -n128 00000000 00 00 00 00 01 00 00 00 10 00 00 00 00 00 00 00 |................| 00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00000020 00 00 00 00 00 00 00 00 01 00 00 00 34 00 00 00 |............4...| 00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00000040 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 |................| 00000050 58 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |X...............| 00000060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 00000080
$ dd if=/dev/mtd0 of=/tmp/dump count=1 bs=65536 (hangs forever)
我已将此问题追溯到内部的 wait_for_completion()调用 SPI-OMAP2-mcspi.c 、从不返回。
您能否在 AM57xx IDK 上重现它?
我们只使用了 BeagleBoard-X15、它没有 McSPI 有线输出。