2010-05-24 04:31:19 Read sd card from bf516 with error
Bill Xie (CHINA)
Message: 89797
Hi,
If read large file from sd card may be occur errors.
Message:
mmcblk0: error -5 transferring data
end_request: I/O error, dev mmcblk0, sector 717224
mmcblk0: error -5 transferring data
end_request: I/O error, dev mmcblk0, sector 311728
mmcblk0: error -5 transferring data
end_request: I/O error, dev mmcblk0, sector 614360
mmcblk0: error -5 transferring data
end_request: I/O error, dev mmcblk0, sector 666208
mmcblk0: error -5 transferring data
end_request: I/O error, dev mmcblk0, sector 315984
mmcblk0: error -5 transferring data
end_request: I/O error, dev mmcblk0, sector 713880
mmcblk0: error -5 transferring data
end_request: I/O error, dev mmcblk0, sector 719968
mmcblk0: error -5 transferring data
end_request: I/O error, dev mmcblk0, sector 660208
mmcblk0: error -5 transferring data
end_request: I/O error, dev mmcblk0, sector 697304
My platefrom is uClinux-2009R1.1-RC4+bf516 v0.1. How to solve this problem?
Thank you!
Best Regards
-Bill
QuoteReplyEditDelete
2010-05-24 04:39:57 Re: Read sd card from bf516 with error
Sonic Zhang (CHINA)
Message: 89799
Please paste your steps here for us to replicate on bf516.
QuoteReplyEditDelete
2010-05-24 06:31:07 Re: Read sd card from bf516 with error
Bill Xie (CHINA)
Message: 89800
Sonic,
Thank you.
1. mount -t vfat /dev/mmcblk0p1 /mnt;
2.If sd card no big file,from windows xp to send file to sd card (by ftp tool :filezilla) ;
3. get big file from sd card to windows xp ((by ftp tool :filezilla).
or board as nfs client and samba client, copy big file from file from sd card to server(nfs,samba).
It wil occur error message.
Best Regards
-Bill
QuoteReplyEditDelete
2010-05-25 01:15:47 Re: Read sd card from bf516 with error
Cliff Cai (CHINA)
Message: 89815
Hi bill,
Could you tell me the size over which will cause this kind of error,and how about the samller one?
Cliff
QuoteReplyEditDelete
2010-05-25 05:52:28 Re: Read sd card from bf516 with error
Bill Xie (CHINA)
Message: 89831
Cliff,
Thank you. Every time reading 128K from The size of the file about 8M from sd card may be occur errors. If you test a few times more, there will be errors.
-Bill
QuoteReplyEditDelete
2010-05-27 06:38:00 Re: Read sd card from bf516 with error
Cliff Cai (CHINA)
Message: 89913
Hi Bill,
I tried it on my BF518F-BOARD 1.0,it works just fine.
Linux version 2.6.28.10-ADI-2009R1.1-svn8856 (cliff@debiancliff) (gcc version 4.1.2 (ADI svn)) #39 Thu May 27 18:03:26 CST 200
bootconsole [early_shadow0] enabled
bootconsole [early_BFuart0] enabled
early printk enabled on early_BFuart0
Board Memory: 64MB
Kernel Managed Memory: 64MB
Memory map:
fixedcode = 0x00000400-0x00000490
text = 0x00001000-0x0011be40
rodata = 0x0011be40-0x00172e5c
bss = 0x00173000-0x00185330
data = 0x00185330-0x0019a000
stack = 0x00198000-0x0019a000
init = 0x0019a000-0x007fa000
available = 0x007fa000-0x03eff000
DMA Zone = 0x03f00000-0x04000000
Hardware Trace Active and Enabled
Boot Mode: 1
Blackfin support (C) 2004-2009 Analog Devices, Inc.
Compiled for ADSP-BF518 Rev 0.0
Warning: Compiled for Rev 0, but running on Rev 1
Blackfin Linux support by blackfin.uclinux.org/
Processor Speed: 400 MHz core clock and 80 MHz System Clock
NOMPU: setting up cplb tables
Instruction Cache Enabled for CPU0
Data Cache Enabled for CPU0 (write-back)
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 16001
Kernel command line: root=/dev/mtdblock0 rw clkin_hz=25000000 earlyprintk=serial,uart0,57600 console=ttyBF0,57600 ip=10.100.4f
Configuring Blackfin Priority Driven Interrupts
PID hash table entries: 256 (order: 8, 1024 bytes)
Console: colour dummy device 80x25
console [ttyBF0] enabled, bootconsole disabled
console [ttyBF0] enabled, bootconsole disabled
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory available: 55768k/65536k RAM, (6528k init code, 1131k kernel code, 505k data, 1024k dma, 576k reserved)
Calibrating delay loop... 796.67 BogoMIPS (lpj=1593344)
Security Framework initialized
Mount-cache hash table entries: 512
Blackfin Scratchpad data SRAM: 4 KB
Blackfin L1 Data A SRAM: 16 KB (15 KB free)
Blackfin L1 Data B SRAM: 16 KB (16 KB free)
Blackfin L1 Instruction SRAM: 32 KB (26 KB free)
net_namespace: 288 bytes
NET: Registered protocol family 16
Blackfin DMA Controller
ezbrd_init(): registering device resources
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
NET: Registered protocol family 1
msgmni has been set to 108
io scheduler noop registered (default)
Serial: Blackfin serial driver
bfin-uart.1: ttyBF0 at MMIO 0xffc00400 (irq = 29) is a BFIN-UART
brd: module loaded
bfin_mii_bus: probed
bfin_mac: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:01, irq=-1, mdc_clk=2500000Hz(mdc_div=15)@sclk=80MHz)
bfin_mac bfin_mac.0: Blackfin on-chip Ethernet MAC driver, Version 1.1
bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_base@ffc00500, dma channel@7
bfin-spi bfin-spi.1: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_base@ffc03400, dma channel@5
rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0
i2c /dev entries driver
i2c-bfin-twi i2c-bfin-twi.0: Blackfin BF5xx on-chip I2C TWI Contoller, regs_base@ffc01400
bfin-wdt: initialized: timeout=20 sec (nowayout=0)
dma_alloc_init: dma_page @ 0x039b5000 - 256 pages at 0x03f00000
TCP cubic registered
NET: Registered protocol family 17
rtc-bfin rtc-bfin: setting system clock to 2009-10-24 01:48:15 UTC (1256348895)
mmc0: new SD card at address b368
mmcblk0: mmc0:b368 SD 970 MiB
mmcblk0: p1 p2
IP-Config: Gateway not on directly connected network.
Freeing unused kernel memory: 6528k freed
PHY: 0:01 - Link is Up - 100/Full
_____________________________________
a8888b. / Welcome to the uClinux distribution \
d888888b. / _ _ \
8P"YP"Y88 / | | |_| __ __ (TM) |
8|o||o|88 _____/ | | _ ____ _ _ \ \/ / |
8' .88 \ | | | | _ \| | | | \ / |
8`._.' Y8. \ | |__ | | | | | |_| | / \ |
d/ `8b. \ \____||_|_| |_|\____|/_/\_\ |
dP . Y8b. \ For embedded processors including |
d8:' " `::88b \ the Analog Devices Blackfin /
d8" 'Y88b \___________________________________/
:8P ' :888
8a. : _a88P For further information, check out:
._/"Yaa_: .| 88P| - blackfin.uclinux.org/
\ YP" `| 8P `. - docs.blackfin.uclinux.org/
/ \.___.d| .' - www.uclinux.org/
`--..__)8888P`._.' jgs/a:f - www.analog.com/blackfin
Have a lot of fun...
BusyBox v1.13.4 (2010-05-27 18:01:34 CST) built-in shell (msh)
Enter 'help' for a list of built-in commands.
root:/>
root:/>
root:/> fdisk /dev/mmcblk0
The number of cylinders for this disk is set to 31056.
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): p
Disk /dev/mmcblk0: 4 heads, 16 sectors, 31056 cylinders
Units = cylinders of 64 * 512 bytes
Device Boot Start End Blocks Id System
/dev/mmcblk0p1 1 8193 262168 83 Linux
Command (m for help): d
Partition number (1-4): 1
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-31056, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-31056, default 31056): +256M
Command (m for help): t
Partition number (1-4): 1
Hex code (type L to list codes): l
0 Empty 17 Hidden HPFS/NTF 5c Priam Edisk a5 BSD/386
1 FAT12 18 AST Windows swa 61 SpeedStor a6 OpenBSD
2 XENIX root 1b Hidden Win95 FA 63 GNU HURD or Sys a7 NeXTSTEP
3 XENIX usr 1c Hidden Win95 FA 64 Novell Netware b7 BSDI fs
4 FAT16 <32M 1e Hidden Win95 FA 65 Novell Netware b8 BSDI swap
5 Extended 24 NEC DOS 70 DiskSecure Mult c1 DRDOS/sec (FAT-
6 FAT16 3c PartitionMagic 75 PC/IX c4 DRDOS/sec (FAT-
7 HPFS/NTFS 40 Venix 80286 80 Old Minix c6 DRDOS/sec (FAT-
8 AIX 41 PPC PReP Boot 81 Minix / old Lin c7 Syrinx
9 AIX bootable 42 SFS 82 Linux swap db CP/M / CTOS / .
a OS/2 Boot Manag 4d QNX4.x 83 Linux e1 DOS access
b Win95 FAT32 4e QNX4.x 2nd part 84 OS/2 hidden C: e3 DOS R/O
c Win95 FAT32 (LB 4f QNX4.x 3rd part 85 Linux extended e4 SpeedStor
e Win95 FAT16 (LB 50 OnTrack DM 86 NTFS volume set eb BeOS fs
f Win95 Ext'd (LB 51 OnTrack DM6 Aux 87 NTFS volume set f1 SpeedStor
10 OPUS 52 CP/M 8e Linux LVM f4 SpeedStor
11 Hidden FAT12 53 OnTrack DM6 Aux 93 Amoeba f2 DOS secondary
12 Compaq diagnost 54 OnTrackDM6 94 Amoeba BBT fd Linux raid auto
14 Hidden FAT16 <3 55 EZ-Drive 9f BSD/OS fe LANstep
16 Hidden FAT16 56 Golden Bow a0 IBM Thinkpad hi ff BBT
Hex code (type L to list codes): b
Changed system type of partition 1 to b (Win95 FAT32)
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
mmcblk0: 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:/> mkfs.vfat -F 32 /dev/mmcblk0p1
mkfs.vfat 3.0.2 (28 Feb 2009)
root:/> mount -t vfat /dev/mmcblk0p1 /mnt
root:/> cd /mnt
root:/mnt> tftp -g -r any.mp3 10.100.4.174
root:/mnt> ls
any.mp3
root:/mnt> ls -l any.mp3
-rwxr-xr-x 1 root root 9152025 Oct 24 01:55 any.mp3
root:/mnt>
CTRL-A Z for help | 57600 8N1 | NOR | Minicom 2.4-rc | VT102 | Online 00:23
On PC side(debian):
ftp 10.100.4.50
......
ftp> mget any.mp3
mget any.mp3?
200 PORT command sucessful.
150 Opening BINARY mode data connection for 'any.mp3' (9152025 bytes).
226 Transfer complete.
9152025 bytes received in 4.75 secs (1882.9 kB/s)
ftp> mget any.mp3
mget any.mp3?
200 PORT command sucessful.
150 Opening BINARY mode data connection for 'any.mp3' (9152025 bytes).
226 Transfer complete.
9152025 bytes received in 4.66 secs (1919.2 kB/s)
ftp> mget any.mp3
mget any.mp3?
200 PORT command sucessful.
150 Opening BINARY mode data connection for 'any.mp3' (9152025 bytes).
226 Transfer complete.
9152025 bytes received in 4.71 secs (1896.7 kB/s)
ftp> mget any.mp3
mget any.mp3?
200 PORT command sucessful.
150 Opening BINARY mode data connection for 'any.mp3' (9152025 bytes).
226 Transfer complete.
9152025 bytes received in 4.68 secs (1910.4 kB/s)
ftp> mget any.mp3
mget any.mp3?
200 PORT command sucessful.
150 Opening BINARY mode data connection for 'any.mp3' (9152025 bytes).
226 Transfer complete.
9152025 bytes received in 4.46 secs (2003.8 kB/s)
ftp> mget any.mp3
mget any.mp3?
200 PORT command sucessful.
150 Opening BINARY mode data connection for 'any.mp3' (9152025 bytes).
226 Transfer complete.
9152025 bytes received in 4.70 secs (1901.4 kB/s)
ftp> mget any.mp3
mget any.mp3?
200 PORT command sucessful.
150 Opening BINARY mode data connection for 'any.mp3' (9152025 bytes).
226 Transfer complete.
9152025 bytes received in 4.63 secs (1929.5 kB/s)
ftp> mget any.mp3
mget any.mp3?
200 PORT command sucessful.
150 Opening BINARY mode data connection for 'any.mp3' (9152025 bytes).
226 Transfer complete.
9152025 bytes received in 4.76 secs (1878.8 kB/s)
ftp> mget any.mp3
mget any.mp3?
200 PORT command sucessful.
150 Opening BINARY mode data connection for 'any.mp3' (9152025 bytes).
226 Transfer complete.
9152025 bytes received in 4.62 secs (1936.4 kB/s)
ftp> mget any.mp3
mget any.mp3?
200 PORT command sucessful.
150 Opening BINARY mode data connection for 'any.mp3' (9152025 bytes).
226 Transfer complete.
9152025 bytes received in 4.48 secs (1994.9 kB/s)
ftp> mget any.mp3
mget any.mp3?
200 PORT command sucessful.
150 Opening BINARY mode data connection for 'any.mp3' (9152025 bytes).
226 Transfer complete.
9152025 bytes received in 4.66 secs (1918.2 kB/s)
ftp>
QuoteReplyEditDelete
2010-05-27 23:43:03 Re: Read sd card from bf516 with error
Bill Xie (CHINA)
Message: 89936
Cliff,
Thank you very much. I redo fdisk and mkfs.vfat for sd card.
Linux version 2.6.28.10-ADI-2009R1.1 (xiechl@localhost) (gcc version 4.1.2 (ADI svn)) #348 Fri May 21 15:15:30 CST 2010
bootconsole [early_shadow0] enabled
bootconsole [early_BFuart0] enabled
early printk enabled on early_BFuart0
Board Memory: 32MB
Kernel Managed Memory: 32MB
Memory map:
fixedcode = 0x00000400-0x00000490
text = 0x00001000-0x00125aa0
rodata = 0x00125aa0-0x0019a8f0
bss = 0x0019b000-0x001ac368
data = 0x001ac380-0x001be000
stack = 0x001bc000-0x001be000
init = 0x001be000-0x004cd000
available = 0x004cd000-0x01eff000
DMA Zone = 0x01f00000-0x02000000
Hardware Trace Active and Enabled
Boot Mode: 3
Reset caused by Software reset
Blackfin support (C) 2004-2009 Analog Devices, Inc.
Compiled for ADSP-BF516 Rev 0.1
Blackfin Linux support by blackfin.uclinux.org/
Processor Speed: 400 MHz core clock and 80 MHz System Clock
NOMPU: setting up cplb tables
Instruction Cache Enabled for CPU0
Data Cache Enabled for CPU0 (write-back)
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 7873
Kernel command line: root=/dev/mtdblock0 rw clkin_hz=25000000 earlyprintk=serial,uart0,115200 console=ttyBF0,115200 ip=192.168.0.190:192.168.0.204:192.168.0.253:255.255.255.0:bf518f-ezbrd:eth0:off
Configuring Blackfin Priority Driven Interrupts
PID hash table entries: 128 (order: 7, 512 bytes)
console [ttyBF0] enabled, bootconsole disabled
console [ttyBF0] enabled, bootconsole disabled
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory available: 26536k/32768k RAM, (3132k init code, 1170k kernel code, 610k data, 1024k dma, 292k reserved)
Calibrating delay loop... 796.67 BogoMIPS (lpj=1593344)
Mount-cache hash table entries: 512
Blackfin Scratchpad data SRAM: 4 KB
Blackfin L1 Data A SRAM: 16 KB (16 KB free)
Blackfin L1 Data B SRAM: 32 KB (32 KB free)
Blackfin L1 Instruction SRAM: 32 KB (31 KB free)
net_namespace: 288 bytes
NET: Registered protocol family 16
Blackfin DMA Controller
ezbrd_init(): registering device resources
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
NET: Registered protocol family 1
JFFS2 version 2.2. (NAND) 漏 2001-2006 Red Hat, Inc.
io scheduler noop registered (default)
Serial: Blackfin serial driver
bfin-uart.1: ttyBF0 at MMIO 0xffc00400 (irq = 29) is a BFIN-UART
brd: module loaded
bfin_mii_bus: probed
bfin_mac: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:00, irq=-1, mdc_clk=2500000Hz(mdc_div=15)@sclk=80MHz)
bfin_mac bfin_mac.0: Blackfin on-chip Ethernet MAC driver, Version 1.1
bus_num=0 select:2
m25p80 spi0.2: w25Q32 (4096 Kbytes)
Creating 3 MTD partitions on "m25p80":
0x00000000-0x00028000 : "bootloader(spi)"
0x00028000-0x00328000 : "linux kernel(spi)"
0x00328000-0x003fa000 : "file system(spi)"
bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_base@ffc00500, dma channel@7
rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0
bfin-wdt: initialized: timeout=20 sec (nowayout=0)
SoftDog: cannot register miscdev on minor=130 (err=-16)
dma_alloc_init: dma_page @ 0x00669000 - 256 pages at 0x01f00000
TCP cubic registered
NET: Registered protocol family 17
NET: Registered protocol family 33
rtc-bfin rtc-bfin: setting system clock to 2010-05-28 10:09:01 UTC (1275041341)
mmc0: new SDHC card at address b368
mmcblk0: mmc0:b368 USD 7.46 GiB
mmcblk0: p1
IP-Config: Complete:
device=eth0, addr=192.168.0.190, mask=255.255.255.0, gw=192.168.0.253,
host=bf518f-ezbrd, domain=, nis-domain=(none),
bootserver=192.168.0.204, rootserver=192.168.0.204, rootpath=
Freeing unused kernel memory: 3132k freed
PHY: 0:00 - Link is Up - 100/Full
BusyBox v1.13.4 (2010-05-21 09:37:55 CST) built-in shell (msh)
Enter 'help' for a list of built-in commands.
root:/> mount -t vfat /dev/mmclk0p1 /mnt
root:/> cd /mnt/
root:/mnt> ls -l
-rwxr-xr-x 1 root root 14934074 May 28 10:50 a.wav
-rwxr-xr-x 1 root root 29868090 May 28 10:53 b.wav
-rwxr-xr-x 1 root root 9600058 May 28 10:59 c.wav
-rwxr-xr-x 1 root root 101376000 May 28 10:43 origin.dat
In PC linux by ftp,get c.wav 10 time for bf516 board. bf516 system is not occur error. It may be luck and alse test little times. Getting a.wav and c.wav some time be occur eror. If getting origin.data(100M size),every time can occur error.
root:/mnt> mmcblk0: error -5 transferring data
end_request: I/O error, dev mmcblk0, sector 59294
mmcblk0: error -5 transferring data
end_request: I/O error, dev mmcblk0, sector 70686
mmcblk0: error -5 transferring data
end_request: I/O error, dev mmcblk0, sector 74102
mmcblk0: error -5 transferring data
end_request: I/O error, dev mmcblk0, sector 100694
mmcblk0: error -5 transferring data
end_request: I/O error, dev mmcblk0, sector 104094
mmcblk0: error -5 transferring data
end_request: I/O error, dev mmcblk0, sector 126910
mmcblk0: error -5 transferring data
end_request: I/O error, dev mmcblk0, sector 127502
end_request: I/O error, dev mmcblk0, sector 126910
mmcblk0: error -5 transferring data
end_request: I/O error, dev mmcblk0, sector 127502
mmcblk0: error -5 transferring data
end_request: I/O error, dev mmcblk0, sector 188206
mmcblk0: error -5 transferring data
end_request: I/O error, dev mmcblk0, sector 189574
mmcblk0: error -5 transferring data
end_request: I/O error, dev mmcblk0, sector 191206
mmcblk0: error -5 transferring data
end_request: I/O error, dev mmcblk0, sector 191918
mmcblk0: error -5 transferring data
end_request: I/O error, dev mmcblk0, sector 192062
mmcblk0: error -5 transferring data
end_request: I/O error, dev mmcblk0, sector 194230
mmcblk0: error -5 transferring data
end_request: I/O error, dev mmcblk0, sector 196382
mmcblk0: error -5 transferring data
end_request: I/O error, dev mmcblk0, sector 197030
mmcblk0: error -5 transferring data
end_request: I/O error, dev mmcblk0, sector 219166
mmcblk0: error -5 transferring data
end_request: I/O error, dev mmcblk0, sector 251798
I test three type micro sd card:
Transcend 8GB class 6
SanDisk 4GB class 2
SanDisk 8GB class 2
If you have time please test with big file(about 100M) and using 8G sd card.
QuoteReplyEditDelete
2010-05-30 22:35:42 Re: Read sd card from bf516 with error
Cliff Cai (CHINA)
Message: 90006
Hi Bill,
I did the test again,but this time the file size is over 100M.
it still works fine both on my 1G SD and 8G SDHC.
.....
mmc0: new SDHC card at address b368
mmcblk0: mmc0:b368 SDC 7.51 GiB
mmcblk0: p1
.......
root:/> mount /dev/mmcblk0p1 /mnt
root:/> cd /mnt
root:/mnt> ls
root:/mnt> tftp -g -r bfin.test 10.100.4.174
root:/mnt> ls -l bfin.test
-rwxr-xr-x 1 root root 113281782 Oct 27 17:57 bfin.test
On PC side:
ftp> mget bfin.test
mget bfin.test?
200 PORT command sucessful.
150 Opening BINARY mode data connection for 'bfin.test' (113281782 bytes).
226 Transfer complete.
113281782 bytes received in 42.49 secs (2603.8 kB/s)
ftp> mget bfin.test
mget bfin.test?
200 PORT command sucessful.
150 Opening BINARY mode data connection for 'bfin.test' (113281782 bytes).
226 Transfer complete.
113281782 bytes received in 42.46 secs (2605.4 kB/s)
ftp> mget bfin.test
mget bfin.test?
200 PORT command sucessful.
150 Opening BINARY mode data connection for 'bfin.test' (113281782 bytes).
226 Transfer complete.
113281782 bytes received in 42.68 secs (2592.0 kB/s)
ftp> mget bfin.test
mget bfin.test?
200 PORT command sucessful.
150 Opening BINARY mode data connection for 'bfin.test' (113281782 bytes).
226 Transfer complete.
113281782 bytes received in 42.94 secs (2576.4 kB/s)
ftp> mget bfin.test
mget bfin.test?
200 PORT command sucessful.
150 Opening BINARY mode data connection for 'bfin.test' (113281782 bytes).
226 Transfer complete.
113281782 bytes received in 43.14 secs (2564.6 kB/s)
....
QuoteReplyEditDelete
2010-05-31 04:37:41 Re: Read sd card from bf516 with error
Bill Xie (CHINA)
Message: 90014
Hi Cliff,
Thank you very much. I am confused with the two result. In my system when board insert 1G sd card,it will occur other error:
root:/> mount /dev/mmcblk0 /mnt/
mmcblk0: error -110 sending read/write command
end_request: I/O error, dev mmcblk0, sector 0
FAT: unable to read boot sector
mount: mounting /dev/mmcblk0 on /mnt/ failed: Invalid argument
Is the sdhc driver the same to in Linux version 2.6.28.10-ADI-2009R1.1-svn8856 and Linux version 2.6.28.10-ADI-2009R1.1 ?
Do all error occur due to my hardware? In my board using micro sd card instead of sd card. Micro sd card and sd card are basically the same, except it looks like different sizes.
Regards
-Bill
QuoteReplyEditDelete
2010-05-31 21:31:17 Re: Read sd card from bf516 with error
Cliff Cai (CHINA)
Message: 90027
> Is the sdhc driver the same to in Linux version 2.6.28.10-ADI-2009R1.1-svn8856 and Linux version 2.6.28.10-ADI-2009R1.1
confused,anyway using the latest revision should be OK.
> Do all error occur due to my hardware? In my board using micro sd card instead of sd card. Micro sd card and sd card >are basically the same, except it looks like different sizes.
The old BF518F EZ-BOARDs(REV 0.1, 0.2) seem have problem with the SD HW circuit,but the REV 1.0 one works fine.
and hope you won't share sd signal lines with other device,see: docs.blackfin.uclinux.org/doku.php?id=hw:boards:bf518f-ezbrd
Cliff
QuoteReplyEditDelete
2010-05-31 23:45:31 Re: Read sd card from bf516 with error
Bill Xie (CHINA)
Message: 90030
Hi Cliff,
Thank you very much. Sd card interface independently have the signal lines and not share with other interface
in my board.
> The old BF518F EZ-BOARDs(REV 0.1, 0.2) seem have problem with the SD HW circuit,but the REV 1.0 one works fine.
Please tell me how the different with SD HW circuit in the three revision BF518F Ez-boards.
Thank you.
Regards
-Bill
QuoteReplyEditDelete
2010-06-01 03:41:52 Re: Read sd card from bf516 with error
Cliff Cai (CHINA)
Message: 90039
see below:
0.2 revision:
www.analog.com/static/imported-files/eval_kit_manuals/ADSP-BF518F_EZ-Board_Rev1.0_Jan%202009.pdf
1.0 revision:
www.analog.com/static/imported-files/eval_kit_manuals/ADSP-BF518F%20EZ-Board%20Manual,%20Rev%201_1%20June%202009.pdf
BTW,there is a config item to select sdio irq support in Kconfig of 2009r1,it should not be chose for SD CARD.
Cliff
QuoteReplyEditDelete
2010-06-01 06:33:34 Re: Read sd card from bf516 with error
Bill Xie (CHINA)
Message: 90045
Hi Cliff,
Thank you for your informantion. I will compare the two files. I ask about another question.
Have you confirm sd reading with error with 518 ezboard Rev 0.1 and REv 0.2 from sd card as the same to my system? If bf518 ezboard Rev 0.1 and Rev 0.2 have the question for reading sd card, I donn't borrow bf518 ezboard from ADI agent to test sd card.
Regards
-Bill
QuoteReplyEditDelete
2010-06-01 23:04:21 Re: Read sd card from bf516 with error
Bill Xie (CHINA)
Message: 90055
Hi Cliff,
The sd card circuit diagram have 16 pins from www.analog.com/static/imported-files/eval_kit_manuals/ADSP-BF518F%20EZ-Board%20Manual,%20Rev%201_1%20June%202009.pdf, but sd card set is only 10 pins . I
don't understand why have a few more pins than 0.2 revision sd card circuit diagram.
Regards
-Bill
QuoteReplyEditDelete
2010-06-02 02:31:33 Re: Read sd card from bf516 with error
Cliff Cai (CHINA)
Message: 90056
1.I would say sometimes it's even worse than what you see with 0.1 and 0.2 board.
2.I'm not hardware guy,but I did see that different socket has different signal lines.(most of the difference is the number of vss)
Cliff
QuoteReplyEditDelete
2010-06-09 00:29:45 Re: Read sd card from bf516 with error
Bill Xie (CHINA)
Message: 90199
Hi Cliff,
I use ADSP-BF518F EZ-BORAD REV 1.0 to test sd read by the same way with my board. It also occur error.
Message:
## Booting kernel from Legacy Image at 01000000 ...
Image Name: Linux-2.6.28.10-ADI-2009R1.1
Created: 2010-06-02 1:29:27 UTC
Image Type: Blackfin Linux Kernel Image (gzip compressed)
Data Size: 2489218 Bytes = 2.4 MB
Load Address: 00001000
Entry Point: 001c8c88
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting Kernel at = 001c8c88
Linux version 2.6.28.10-ADI-2009R1.1 (xiechl@localhost) (gcc version 4.1.2 (ADI svn)) #385 Wed Jun 2 09:29:16 CST 2010
bootconsole [early_shadow0] enabled
bootconsole [early_BFuart0] enabled
early printk enabled on early_BFuart0
Board Memory: 64MB
Kernel Managed Memory: 64MB
Memory map:
fixedcode = 0x00000400-0x00000490
text = 0x00001000-0x00122c60
rodata = 0x00122c60-0x00197f98
bss = 0x00198000-0x001aa3b0
data = 0x001aa3c0-0x001bc000
stack = 0x001ba000-0x001bc000
init = 0x001bc000-0x004a5000
available = 0x004a5000-0x03eff000
DMA Zone = 0x03f00000-0x04000000
Hardware Trace Active and Enabled
Boot Mode: 1
Reset caused by Software reset
Blackfin support (C) 2004-2009 Analog Devices, Inc.
Compiled for ADSP-BF518 Rev 0.1
Blackfin Linux support by blackfin.uclinux.org/
Processor Speed: 400 MHz core clock and 80 MHz System Clock
NOMPU: setting up cplb tables
Instruction Cache Enabled for CPU0
Data Cache Enabled for CPU0 (write-back)
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 16001
Kernel command line: root=/dev/mtdblock0 rw clkin_hz=25000000 earlyprintk=serial,uart0,57600 console=ttyBF0,57600 ip=192.168.0.15:192.168.0.204:192.168.0.1:255.255.255.0:bf518f-ezbrd:eth0:off
Configuring Blackfin Priority Driven Interrupts
PID hash table entries: 256 (order: 8, 1024 bytes)
console [ttyBF0] enabled, bootconsole disabled
console [ttyBF0] enabled, bootconsole disabled
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory available: 59184k/65536k RAM, (2980k init code, 1159k kernel code, 613k data, 1024k dma, 572k reserved)
Calibrating delay loop... 796.67 BogoMIPS (lpj=1593344)
Mount-cache hash table entries: 512
Blackfin Scratchpad data SRAM: 4 KB
Blackfin L1 Data A SRAM: 16 KB (16 KB free)
Blackfin L1 Data B SRAM: 32 KB (32 KB free)
Blackfin L1 Instruction SRAM: 32 KB (31 KB free)
net_namespace: 288 bytes
NET: Registered protocol family 16
Blackfin DMA Controller
ezbrd_init(): registering device resources
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
NET: Registered protocol family 1
JFFS2 version 2.2. (NAND) 漏 2001-2006 Red Hat, Inc.
io scheduler noop registered (default)
Serial: Blackfin serial driver
bfin-uart.1: ttyBF0 at MMIO 0xffc00400 (irq = 29) is a BFIN-UART
brd: module loaded
bfin_mii_bus: probed
MAC address: B2:66:6C:3B:07::07
bfin_mac: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:01, irq=-1, mdc_clk=2500000Hz(mdc_div=15)@sclk=80MHz)
bfin_mac bfin_mac.0: Blackfin on-chip Ethernet MAC driver, Version 1.1
bus_num=0 select:2
m25p80 spi0.2: unrecognized JEDEC id ffffff
m25p80 spi0.2: found UNKNOWN, expected w25Q32
bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_base@ffc00500, dma channel@7
rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0
bfin-wdt: initialized: timeout=20 sec (nowayout=0)
SoftDog: cannot register miscdev on minor=130 (err=-16)
dma_alloc_init: dma_page @ 0x0066d000 - 256 pages at 0x03f00000
TCP cubic registered
NET: Registered protocol family 17
rtc-bfin rtc-bfin: setting system clock to 1998-04-29 12:07:02 UTC (893851622)
mmc0: new SDHC card at address 892f
mmcblk0: mmc0:892f SU08G 7.40 GiB
mmcblk0: p1
IP-Config: Complete:
device=eth0, addr=192.168.0.15, mask=255.255.255.0, gw=192.168.0.1,
host=bf518f-ezbrd, domain=, nis-domain=(none),
bootserver=192.168.0.204, rootserver=192.168.0.204, rootpath=
Freeing unused kernel memory: 2980k freed
PHY: 0:01 - Link is Up - 100/Full
BusyBox v1.13.4 (2010-05-21 23:04:53 CST) built-in shell (msh)
Enter 'help' for a list of built-in commands.
root:/> ping 192.168.0.204
PING 192.168.0.204 (192.168.0.204): 56 data bytes
64 bytes from 192.168.0.204: seq=0 ttl=64 time=4.000 ms
64 bytes from 192.168.0.204: seq=1 ttl=64 time=0.000 ms
64 bytes from 192.168.0.204: seq=2 ttl=64 time=0.000 ms
^C
--- 192.168.0.204 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 0.000/1.333/4.000 ms
root:/> mmcblk0: error -5 transferring data
end_request: I/O error, dev mmcblk0, sector 861830
mmcblk0: error -5 transferring data
end_request: I/O error, dev mmcblk0, sector 910998
mmcblk0: error -5 transferring data
end_request: I/O error, dev mmcblk0, sector 1020846
mmcblk0: error -5 transferring data
end_request: I/O error, dev mmcblk0, sector 1124494
mmcblk0: error -5 transferring data
end_request: I/O error, dev mmcblk0, sector 1354566
mmcblk0: error -5 transferring data
end_request: I/O error, dev mmcblk0, sector 1362230
mmcblk0: error -5 transferring data
end_request: I/O error, dev mmcblk0, sector 1377510
But compared orignal file and file reading from sd card,the two file are same. Although the results do not affect, I hope that it not occur error as you test.
Regards
-Bill
QuoteReplyEditDelete
2010-06-11 22:47:26 Re: Read sd card from bf516 with error
Bill Xie (CHINA)
Message: 90271
RX_OVERRUN error in RSI_STATUS register cause this error. The hardware datasheet not explain the
reason to RX_OVERRUN. The driver bfin_sdh.c file also deal with RX_OVERRUN error to modify recevie date
lenght.