Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SD Card problems #4

Open
stevelord opened this issue Apr 23, 2016 · 3 comments
Open

SD Card problems #4

stevelord opened this issue Apr 23, 2016 · 3 comments

Comments

@stevelord
Copy link

Hi,
I'm having some interesting issues with Micro-SD support. Wondering if anyone else has had the same thing or knows what's going on.

When I use a Micro-SD card I can see it on boot and mount it fine, I can even list files and directories, and I can query the usb SD controller via lsusb. When I try to access the files after a small amount of access, the USB device appears to disconnect. Here's the output of logread from doing a cat of a file on the Micro-SD:

root@OpenWrt:/# logread -f
Sat Apr 23 15:37:18 2016 kern.info kernel: [ 106.430000] usb 1-1: USB disconnect, device number 2
Sat Apr 23 15:37:18 2016 kern.err kernel: [ 106.440000] scsi 0:0:0:0: rejecting I/O to offline device
Sat Apr 23 15:37:18 2016 kern.info kernel: [ 106.440000] scsi 0:0:0:0: [sda] killing request
Sat Apr 23 15:37:18 2016 kern.err kernel: [ 106.440000] scsi 0:0:0:0: rejecting I/O to offline device
Sat Apr 23 15:37:18 2016 kern.info kernel: [ 106.440000] scsi 0:0:0:0: [sda] killing request
Sat Apr 23 15:37:18 2016 kern.err kernel: [ 106.440000] scsi 0:0:0:0: rejecting I/O to dead device
Sat Apr 23 15:37:18 2016 kern.err kernel: [ 106.440000] ntfs: (device sda1): ntfs_end_buffer_async_read(): Buffer I/O error, logical block 0x41730.
Sat Apr 23 15:37:18 2016 kern.err kernel: [ 106.440000] ntfs: (device sda1): ntfs_end_buffer_async_read(): Buffer I/O error, logical block 0x41731.
Sat Apr 23 15:37:18 2016 kern.err kernel: [ 106.440000] ntfs: (device sda1): ntfs_end_buffer_async_read(): Buffer I/O error, logical block 0x41732.
Sat Apr 23 15:37:18 2016 kern.err kernel: [ 106.440000] ntfs: (device sda1): ntfs_end_buffer_async_read(): Buffer I/O error, logical block 0x41733.
Sat Apr 23 15:37:18 2016 kern.err kernel: [ 106.440000] ntfs: (device sda1): ntfs_end_buffer_async_read(): Buffer I/O error, logical block 0x41734.
Sat Apr 23 15:37:18 2016 kern.err kernel: [ 106.440000] ntfs: (device sda1): ntfs_end_buffer_async_read(): Buffer I/O error, logical block 0x41735.
Sat Apr 23 15:37:18 2016 kern.err kernel: [ 106.440000] ntfs: (device sda1): ntfs_end_buffer_async_read(): Buffer I/O error, logical block 0x41736.
Sat Apr 23 15:37:18 2016 kern.err kernel: [ 106.440000] ntfs: (device sda1): ntfs_end_buffer_async_read(): Buffer I/O error, logical block 0x41737.
Sat Apr 23 15:37:18 2016 kern.err kernel: [ 106.440000] ntfs: (device sda1): ntfs_end_buffer_async_read(): Buffer I/O error, logical block 0x41738.
Sat Apr 23 15:37:18 2016 kern.err kernel: [ 106.440000] ntfs: (device sda1): ntfs_end_buffer_async_read(): Buffer I/O error, logical block 0x41739.
Sat Apr 23 15:37:18 2016 kern.info kernel: [ 106.560000] scsi 0:0:0:0: [sda]
Sat Apr 23 15:37:18 2016 kern.warn kernel: [ 106.560000] Result: hostbyte=0x01 driverbyte=0x00
Sat Apr 23 15:37:18 2016 kern.info kernel: [ 106.570000] scsi 0:0:0:0: [sda] CDB:
Sat Apr 23 15:37:18 2016 kern.warn kernel: [ 106.570000] cdb[0]=0x28: 28 00 00 04 16 32 00 00 80 00
Sat Apr 23 15:37:18 2016 kern.err kernel: [ 106.570000] blk_update_request: I/O error, dev sda, sector 267826
Sat Apr 23 15:37:18 2016 kern.info kernel: [ 106.580000] scsi 0:0:0:0: [sda]
Sat Apr 23 15:37:18 2016 kern.warn kernel: [ 106.580000] Result: hostbyte=0x01 driverbyte=0x00
Sat Apr 23 15:37:18 2016 kern.info kernel: [ 106.590000] scsi 0:0:0:0: [sda] CDB:
Sat Apr 23 15:37:18 2016 kern.warn kernel: [ 106.590000] cdb[0]=0x28: 28 00 00 04 16 b2 00 00 80 00
Sat Apr 23 15:37:18 2016 kern.err kernel: [ 106.600000] blk_update_request: I/O error, dev sda, sector 267954

Does anyone know what's happening? The drive and USB SD card reader are no longer visible in lsusb after this happens, so it looks like the USB SD card reader is being disconnected.

@TheExpertNoob
Copy link

What do you have as far as lsmod?

@stevelord
Copy link
Author

Hi!

This is what I have. Anything stand out?

root@OpenWrt:/# lsmod
arc4 1312 2
ath 19893 3 ath9k
ath9k 86902 0
ath9k_common 16862 1 ath9k
ath9k_hw 337432 2 ath9k
cfg80211 213441 4 ath9k
compat 1332 4 ath9k
crc16 1015 1 ext4
crc7 745 1 mmc_spi
crc_ccitt 1019 1 ppp_async
crc_itu_t 1019 1 mmc_spi
crypto_blkcipher 10487 1 arc4
crypto_hash 9698 2 ext4
ehci_hcd 32092 1 ehci_platform
ehci_platform 3376 0
exfat 92507 0
ext4 311196 0
fat 47407 1 vfat
gpio_button_hotplug 4464 0
ip6_tables 9281 3 ip6table_raw
ip6t_REJECT 1184 2
ip6table_filter 608 1
ip6table_mangle 1072 1
ip6table_raw 576 1
ip_tables 9421 4 iptable_nat
ipt_MASQUERADE 624 1
ipt_REJECT 912 2
iptable_filter 672 1
iptable_mangle 944 1
iptable_nat 768 1
iptable_raw 640 1
ipv6 255864 34 nf_conntrack_ipv6
jbd2 47362 1 ext4
ledtrig_usbdev 1936 0
mac80211 380547 1 ath9k
mbcache 4557 1 ext4
mmc_block 21473 0
mmc_core 71598 2 mmc_spi
mmc_spi 7088 0
nf_conntrack 47531 11 nf_nat_ipv4
nf_conntrack_ftp 5280 1 nf_nat_ftp
nf_conntrack_ipv4 4640 8
nf_conntrack_ipv6 4928 3
nf_conntrack_rtcache 2448 0
nf_defrag_ipv4 806 1 nf_conntrack_ipv4
nf_defrag_ipv6 9047 1 nf_conntrack_ipv6
nf_log_common 2287 2 nf_log_ipv4
nf_log_ipv4 3136 0
nf_log_ipv6 3296 0
nf_nat 8875 5 nf_nat_ipv4
nf_nat_ftp 1200 0
nf_nat_ipv4 3665 1 iptable_nat
nf_nat_masquerade_ipv4 1388 1 ipt_MASQUERADE
nf_reject_ipv4 1827 1 ipt_REJECT
nf_reject_ipv6 1895 1 ip6t_REJECT
nls_base 4976 7 vfat
nls_cp437 4432 1
nls_iso8859_1 2896 1
ntfs 88963 0
ohci_hcd 22207 1 ohci_platform
ohci_platform 2752 0
ppp_async 6320 0
ppp_generic 20642 3 pppoe
pppoe 8112 0
pppox 1354 1 pppoe
scsi_mod 85623 3 ums_cypress
sd_mod 25600 2
slhc 4299 1 ppp_generic
snd 37667 8 snd_compress
snd_compress 6303 0
snd_hwdep 4542 0
snd_mixer_oss 12585 1 snd_pcm_oss
snd_pcm 60199 1 snd_pcm_oss
snd_pcm_oss 33873 0
snd_rawmidi 15171 0
snd_seq_device 4381 1 snd_rawmidi
snd_timer 14590 1 snd_pcm
soundcore 3756 1 snd
ums_alauda 8256 0
ums_cypress 2240 0
ums_datafab 4672 0
ums_freecom 1968 0
ums_isd200 5024 0
ums_jumpshot 3600 0
ums_karma 1536 0
ums_sddr09 8704 0
ums_sddr55 4816 0
ums_usbat 7328 0
usb_common 1160 1 usbcore
usb_storage 37615 11 ums_usbat
usbcore 117236 16 ums_usbat
vfat 7936 1
x_tables 10741 26 ipt_REJECT
xt_CT 2224 0
xt_LOG 768 0
xt_REDIRECT 1056 0
xt_TCPMSS 2608 0
xt_comment 480 60
xt_conntrack 2160 10
xt_id 480 0
xt_limit 992 20
xt_mac 624 0
xt_mark 672 0
xt_multiport 1184 0
xt_nat 1072 0
xt_state 688 0
xt_tcpudp 1696 8
xt_time 1632 0

@BelArvardan
Copy link

I have 2 zsuns running openwrt. One of them is unable to read the sdcard. I am not sure how to fix the issue. Cant figure out if it is a bug or a hardware issue. Did anyone figure anything out?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants