You are not logged in.
Pages: 1
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
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
Offline
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
Problem solved error was in REMOVE action
changed in:
ACTION=="remove", RUN+="/bin/umount -l -f /sdcard1"
Offline
Pages: 1