2010-12-30 02:02:08 Some error about the SD card
zhang zhihua (CHINA)
Message: 97062
Hi,
I want to use the SD card on my BF518-EZBRD,Frist,I set it like this:
root:/> fdisk /dev/mmcblk0
The number of cylinders for this disk is set to 60352.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help):n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-60352, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-60352, default 60352): 30000
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
mmcblk0:<7>mmc0: starting CMD18 arg 00000000 flags 000000b5
p1
mmcblk0: p1
WARNING: If you have created or modified any DOS 6.x
partitions, please see the fdisk manual page for additional
information.
Syncing disks.
root:/> mkdosfs -F 32 /dev/mmcblk0p1
mkdosfs 3.0.2 (28 Feb 2009)
root:> mount /dev/mmcblk0p1 /mnt/
Then I run my project to creat a file in /mnt/ and write something to the file Per second,but after some minutes,there was a error!
mmcblk0: error -110 sending stop command
end_request: I/O error, dev mmcblk0, sector 4928
mmcblk0: error -110 sending read/write command
end_request: I/O error, dev mmcblk0, sector 4936
mmcblk0: error -110 sending read/write command
end_request: I/O error, dev mmcblk0, sector 4944
mmcblk0: error -110 sending read/write command
end_request: I/O error, dev mmcblk0, sector 4952
mmcblk0: error -110 sending read/write command
end_request: I/O error, dev mmcblk0, sector 4960
mmcblk0: error -110 sending read/write command
end_request: I/O error, dev mmcblk0, sector 17
Buffer I/O error on device mmcblk0p1, logical block 1
lost page write due to I/O error on mmcblk0p1
mmcblk0: error -110 sending read/write command
end_request: I/O error, dev mmcblk0, sector 48
Buffer I/O error on device mmcblk0p1, logical block 32
lost page write due to I/O error on mmcblk0p1
end_request: I/O error, dev mmcblk0, sector 49
Buffer I/O error on device mmcblk0p1, logical block 33
lost page write due to I/O error on mmcblk0p1
mmcblk0: error -110 sending read/write command
end_request: I/O error, dev mmcblk0, sector 1920
Buffer I/O error on device mmcblk0p1, logical block 1904
lost page write due to I/O error on mmcblk0p1
end_request: I/O error, dev mmcblk0, sector 1921
Buffer I/O error on device mmcblk0p1, logical block 1905
lost page write due to I/O error on mmcblk0p1
mmcblk0: error -110 sending read/write command
end_request: I/O error, dev mmcblk0, sector 3792
Buffer I/O error on device mmcblk0p1, logical block 3776
lost page write due to I/O error on mmcblk0p1
Why?
TranslateQuoteReplyEditDelete
2010-12-30 20:04:21 Re: Some error about the SD card
Mike Frysinger (UNITED STATES)
Message: 97078
what version of uclinux-dist and toolchain are you using exactly ? and what rev is your bf518f-ezbrd ?
QuoteReplyEditDelete
2010-12-31 00:40:59 Re: Some error about the SD card
zhang zhihua (CHINA)
Message: 97082
Hi,Mike,
My version of uclinux-dist is linux-2.6.28, the toolchain is bfin-uclinux-g++,The rev of bf518f-ezbrd is 0.2@2008,
TranslateQuoteReplyEditDelete
2010-12-31 00:59:35 Re: Some error about the SD card
Mike Frysinger (UNITED STATES)
Message: 97084
please upgrade to 2010R1
QuoteReplyEditDelete
2010-12-31 01:00:35 Re: Some error about the SD card
zhang zhihua (CHINA)
Message: 97085
root:/> mount /dev/mmcblk0p1 /mnt/
mmcblk0: error -110 sending read/write command
end_request: I/O error, dev mmcblk0, sector 255
FAT: unable to read boot sector
mmcblk0: error -110 sending read/write command
end_request: I/O error, dev mmcblk0, sector 255
FAT: unable to read boot sector
mmcblk0: error -110 sending read/write command
end_request: I/O error, dev mmcblk0, sector 257
EXT2-fs: unable to read superblock
mmcblk0: error -110 sending read/write command
end_request: I/O error, dev mmcblk0, sector 255
FAT: unable to read boot sector
mmcblk0: error -110 sending read/write command
end_request: I/O error, dev mmcblk0, sector 255
FAT: unable to read boot sector
mmcblk0: error -110 sending read/write command
end_request: I/O error, dev mmcblk0, sector 255
mount: mounting /dev/mmcblk0p1 on /mnt/ failed: Invalid argument
TranslateQuoteReplyEditDelete
2011-01-03 23:37:43 Re: Some error about the SD card
Aaron Wu (CHINA)
Message: 97152
What's the detail module type for the card you are trying? I tried a 256MB BLASKs SD memory card and it works fine. I can make dos fs on it and mount to write, exactly as what you did. There is a chance that different modules of SD card has different timming charactor which may lead to I/O error. You may try more cards and fingure out.