Modify

Opened 2 years ago

Last modified 2 years ago

#21703 new defect

Does not work as it should SD-card on spi0.1 bus

Reported by: dioptimizer@… Owned by: developers
Priority: normal Milestone:
Component: kernel Version: Chaos Calmer 15.05
Keywords: sd-card spi0.1 Cc:

Description

#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?

Attachments (0)

Change History (4)

comment:1 follow-up: Changed 2 years ago by florian

Would you indicate what platform you are seeing this with?

comment:2 in reply to: ↑ 1 ; follow-up: Changed 2 years ago by dioptimizer@…

Replying to florian:

Would you indicate what platform you are seeing this with?


TL-MR3220/AP99 platform with this mod. This mod has stable worked cuple years.
Also we have same problem with modded TL-WR741NDv4 (russian) with last revision of Chaos Calmer.

comment:3 in reply to: ↑ 2 Changed 2 years ago by dioptimizer@…

Replying to dioptimizer@…:

Replying to florian:

Would you indicate what platform you are seeing this with?


TL-MR3220/AP99 platform with this mod. This mod has stable worked cuple years.
Also we have same problem with modded TL-WR741NDv4 (russian) with last revision of Chaos Calmer.


I am sure that the owners of devices ALFA Network AP96 board and MikroTik RouterBOARD 4xx series have same problem(if they are using last revision CC or Trunk) - mod was written by example of this devices.

comment:4 Changed 2 years ago by anonymous

As I understand it, these changes concern of improvements for the m25p80 module but to the detriment of any other module on the spi0.x bus (if you hang something else on it).

These changes was tested only on m25p80 module?

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.