Other Parts Discussed in Thread: BEAGLEBOARD-X15
Tool/software:
Hi,
We have a SPI NOR flash connected to McSPI2 on our AM57-based platform, with linux-ti-staging 6.1 (SDK 09.03.06.05).
It is mostly working, except when reading more than 64 KB at once:
$ 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)
I have traced this issue down to the wait_for_completion() call inside spi-omap2-mcspi.c, which never returns.
Could you reproduce that on your side, maybe on a AM57xx IDK?
We only have the BeagleBoard-X15, which does not have McSPI wired out.