You are not logged in.

#1 2010-11-26 16:23:46

dade-73
Member
Registered: 2010-11-26
Posts: 4

SDCARD reader problem [SOLVED]

Hi,
my embeddet linux throw this error when i remove my sdcard (auto mount and rw. works).
card reader is configured in udev rules
udev rules:
KERNEL!="mmcblk[0-9]p[0-9]", GOTO="sd_cards_auto_mount_end"

# Global mount options
ACTION=="add", ENV{mount_options}="relatime"
# Filesystem specific options
ACTION=="add", IMPORT{program}="/sbin/blkid -o udev -p %N"
ACTION=="add", ENV{ID_FS_TYPE}=="vfat", ENV{mount_options}="$env{mount_options},utf8,gid=100,umask=002"

ACTION=="add",RUN+="/bin/mount -o $env{mount_options} /dev/%k /sdcard1"
LABEL="sd_cards_auto_mount_end"

and the error:
mmcblk0: error -123 sending status comand
mmcblk0: error -123 sending read/write command, response 0x0, card status 0x0
mmcblk0: error -123 requesting status
end_request: I/O error, dev mmcblk0, sector 64
Buffer I/O error on device mmcblk0p1, logical block 1
mmcblk0: error -123 sending status comand
mmcblk0: error -123 sending read/write command, response 0x0, card status 0x0
mmcblk0: error -123 requesting status
end_request: I/O error, dev mmcblk0, sector 64
Buffer I/O error on device mmcblk0p1, logical block 1
FAT: bread failed in fat_clusters_flush
FAT: bread failed in fat_clusters_flush

someone now who to solve it?
Thanks

Last edited by dade-73 (2010-11-27 12:55:13)

Offline

#2 2010-11-27 02:54:06

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,792

Re: SDCARD reader problem [SOLVED]

Can you tell us more about your SD reader.  If it is internal, it is likely on a PCI bus.  If it is internal, please post the output of lspci and (either way) uname -a


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Online

#3 2010-11-27 10:28:52

dade-73
Member
Registered: 2010-11-26
Posts: 4

Re: SDCARD reader problem [SOLVED]

hi
this is uname result:

Linux triton1 2.6.31 #28 PREEMPT Wed Nov 24 15:00:23 CET 2010 armv5tejl GNU/Linux

the reader is "internal" the board is this with imx25 processor module:
http://www.karo-electronics.com/starterkit_5.html
should be SDIO interface

on udev rule i missed the line
KERNEL!="mmcblk[0-9]p[0-9]", GOTO="sd_cards_auto_mount_end"

# Global mount options
ACTION=="add", ENV{mount_options}="noatime"
# Filesystem specific options
ACTION=="add", IMPORT{program}="/sbin/blkid -o udev -p %N"
ACTION=="add", ENV{ID_FS_TYPE}=="vfat", ENV{mount_options}="$env{mount_options},utf8,gid=100,umask=002"
ACTION=="add",RUN+="/bin/mount -o $env{mount_options} /dev/%k /sdcard1"
ACTION=="remove", RUN+="/bin/umount -l /dev/%k"
LABEL="sd_cards_auto_mount_end"

Offline

#4 2010-11-27 12:54:13

dade-73
Member
Registered: 2010-11-26
Posts: 4

Re: SDCARD reader problem [SOLVED]

Problem solved error was in REMOVE action
changed in:
ACTION=="remove", RUN+="/bin/umount -l -f /sdcard1"

Offline

Board footer

Powered by FluxBB