#21703: Does not work as it should SD-card on spi0.1 bus
----------------------------+--------------------------------
Reporter: dioptimizer@… | Owner: developers
Type: defect | Status: new
Priority: normal | Milestone:
Component: kernel | Version: Chaos Calmer 15.05
Keywords: sd-card spi0.1 |
----------------------------+--------------------------------
#Before revision (r47042) - No errors in dmesg and operations with SD-card
was fine.
to reset to old revision me use command, after this compile:
{{{
git reset --hard 61d85627a15cee7f6a44bbf23c1bf983591239ad
make clean
make V=s
}}}
{{{
root@OpenWrt:/# mkfs.ext4 /dev/mmcblk0p1
mke2fs 1.42.12 (29-Aug-2014)
Creating filesystem with 13516 1k blocks and 3392 inodes
Filesystem UUID: f3688889-17ed-43e5-9f37-eff8a028a8d5
Superblock backups stored on blocks:
8193
Allocating group tables: done
Writing inode tables: done
Creating journal (1024 blocks): done
Writing superblocks and filesystem accounting information: done
root@OpenWrt:/# mount /dev/mmcblk0p1 /mnt
root@OpenWrt:/#
root@OpenWrt:/# dmesg | grep spi
[ 0.800000] m25p80 spi0.0: found en25f32, expected m25p80
[ 0.800000] m25p80 spi0.0: en25f32 (4096 Kbytes)
[ 0.810000] 5 tp-link partitions found on MTD device spi0.0
[ 0.810000] Creating 5 MTD partitions on "spi0.0":
[ 2.160000] mmc_spi spi0.1: SD/MMC host mmc0, no DMA, no WP, no
poweroff
root@OpenWrt:/#
root@OpenWrt:/# dmesg | grep mmc
[ 2.160000] mmc_spi spi0.1: SD/MMC host mmc0, no DMA, no WP, no
poweroff
[ 2.410000] mmc0: host does not support reading read-only switch,
assuming write-enable
[ 2.420000] mmc0: new SD card on SPI
[ 2.430000] mmcblk0: mmc0:0000 S016B 14.2 MiB
[ 2.490000] mmcblk0: p1
[ 4218.710000] EXT4-fs (mmcblk0p1): couldn't mount as ext3 due to feature
incompatibilities
[ 4218.720000] EXT4-fs (mmcblk0p1): couldn't mount as ext2 due to feature
incompatibilities
[ 4218.750000] EXT4-fs (mmcblk0p1): mounted filesystem with ordered data
mode. Opts: (null)
root@OpenWrt:/#
root@OpenWrt:/# md5sum /dev/mmcblk0p1
1c7af7218100617b2f7134ac00bac7f0 /dev/mmcblk0p1
root@OpenWrt:/# md5sum /dev/mmcblk0p1
1c7af7218100617b2f7134ac00bac7f0 /dev/mmcblk0p1
root@OpenWrt:/#
}}}
#After revision (r47045) As you can see in logs, starting with this
revision we have serious read/write errors
to reset to next old revision me use command, after this compile:
{{{
git reset --hard 658673a89e95dc1be3622dca015e911d88ac0da8
make clean
make V=s
}}}
{{{
root@OpenWrt:/# mount /dev/mmcblk0p1 /mnt
root@OpenWrt:/# dmesg | grep mmc
[ 2.160000] mmc_spi spi0.1: SD/MMC host mmc0, no DMA, no WP, no
poweroff
[ 3.520000] mmc0: host does not support reading read-only switch,
assuming write-enable
[ 3.530000] mmc0: new SD card on SPI
[ 3.550000] mmcblk0: mmc0:0000 S016B 14.2 MiB
[ 3.580000] mmcblk0: response CRC error sending r/w cmd command, card
status 0x0
[ 3.610000] mmcblk0: response CRC error sending r/w cmd command, card
status 0x0
[ 3.640000] mmcblk0: response CRC error sending r/w cmd command, card
status 0x0
[ 3.770000] mmcblk0: response CRC error sending r/w cmd command, card
status 0x0
[ 3.820000] mmcblk0: p1
[ 10.180000] mmcblk0: response CRC error sending r/w cmd command, card
status 0x0
[ 16.430000] mmcblk0: response CRC error sending r/w cmd command, card
status 0x0
[ 20.720000] mmcblk0: response CRC error sending r/w cmd command, card
status 0x0
[ 290.350000] EXT4-fs (mmcblk0p1): couldn't mount as ext3 due to feature
incompatibilities
[ 290.370000] EXT4-fs (mmcblk0p1): couldn't mount as ext2 due to feature
incompatibilities
[ 290.610000] EXT4-fs (mmcblk0p1): recovery complete
[ 290.630000] EXT4-fs (mmcblk0p1): mounted filesystem with ordered data
mode. Opts: (null)
[ 395.970000] mmcblk0: response CRC error sending r/w cmd command, card
status 0x0
[ 396.010000] mmcblk0: response CRC error sending r/w cmd command, card
status 0x0
[ 399.450000] mmcblk0: response CRC error sending r/w cmd command, card
status 0x0
[ 402.190000] mmcblk0: response CRC error sending r/w cmd command, card
status 0x0
[ 402.550000] mmcblk0: response CRC error sending r/w cmd command, card
status 0x0
...
}}}
As you can see I have identified the problem changes.
The only question is - Will someone to fix it?
--
Ticket URL: <https://dev.openwrt.org/ticket/21703>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets