AnsweredAssumed Answered

spi-SD write error

Question asked by icyrat on Feb 13, 2012
Latest reply on Feb 14, 2012 by Aaronwu

Hello everybody!

I have an error in copying large files.

Here is my system information:

Hardware: bf561(0.5)  

Software: Linux version 2.6.34.7-ADI-2010R1 (qianxin@azure) (gcc version 4.3.5 (ADI-2010R1-RC4) )

My operation is:

root:/mnt/azure_demo> cp novo novo1    (novo file size is 10M)

root:/mnt/azure_demo> cp novo novo1

root:/mnt/azure_demo> cp novo novo1

root:/mnt/azure_demo> cp novo novo1

root:/mnt/azure_demo> cp novo novo1

root:/mnt/azure_demo> cp novo novo1

root:/mnt/azure_demo> cp novo novo1

root:/mnt/azure_demo> cp novo novo1

root:/mnt/azure_demo> cp novo novo1

root:/mnt/azure_demo> cp novo novo1

root:/mnt/azure_demo> cp novo novo1

root:/mnt/azure_demo> cp novo novo1

root:/mnt/azure_demo> cp novo novo1

root:/mnt/azure_demo> cp novo novo1

root:/mnt/azure_demo> cp novo novo1

root:/mnt/azure_demo> cp novo novo1

root:/mnt/azure_demo> cp novo novo1

root:/mnt/azure_demo> cp novo novo1

root:/mnt/azure_demo> cp novo novo1

root:/mnt/azure_demo> cp novo novo1

root:/mnt/azure_demo> cp novo novo1

root:/mnt/azure_demo> cp novo novo1

root:/mnt/azure_demo> cp novo novo1

root:/mnt/azure_demo> cp novo novo1

root:/mnt/azure_demo> cp novo novo1

root:/mnt/azure_demo> cp novo novo1

root:/mnt/azure_demo> cp novo novo1

root:/mnt/azure_demo> cp novo novo1

root:/mnt/azure_demo> cp novo novo1

root:/mnt/azure_demo> cp novo novo1

root:/mnt/azure_demo> cp novo novo1

root:/mnt/azure_demo> cp novo novo1

root:/mnt/azure_demo> cp novo novo1

root:/mnt/azure_demo> cp novo novo1

root:/mnt/azure_demo> cp novo novo1

root:/mnt/azure_demo> cp novo novo1

cp: write error: Input/output error

root:/mnt/azure_demo>

 

 

The dmesg Information is:

root:/> dmesg

Linux version 2.6.34.7-ADI-2010R1 (qianxin@azure) (gcc version 4.3.5 (ADI-2010R1-RC4) ) #1473 Wed Jan 4 11:25:45 CST 2012

register early platform devices

Board Memory: 128MB

Kernel Managed Memory: 74MB

Memory map:

  fixedcode = 0x00000400-0x00000490

  text      = 0x00100000-0x00214520

  rodata    = 0x00214520-0x0026d0c8

  bss       = 0x0026e000-0x0027e2c8

  data      = 0x0027e2c8-0x00290000

    stack   = 0x0028e000-0x00290000

  init      = 0x00290000-0x004a0000

  available = 0x004a0000-0x04800000

  DMA Zone  = 0x04800000-0x04a00000

Hardware Trace Active and Enabled

Boot Mode: 2

Blackfin support (C) 2004-2010 Analog Devices, Inc.

Compiled for ADSP-BF561 Rev 0.5

Blackfin Linux support by http://blackfin.uclinux.org/

Processor Speed: 528 MHz core clock and 132 MHz System Clock

boot memmap: 00000000004a0000 - 0000000004800000 (usable)

On node 0 totalpages: 18432

free_area_init_node: node 0, pgdat 0028ba88, node_mem_map 004a2000

  DMA zone: 144 pages used for memmap

  DMA zone: 0 pages reserved

  DMA zone: 18288 pages, LIFO batch:0

NOMPU: setting up cplb tables

Instruction Cache Enabled for CPU0

  External memory: cacheable in instruction cache

  L2 SRAM        : uncacheable in instruction cache

Data Cache Enabled for CPU0

  External memory: cacheable (write-through) in data cache

  L2 SRAM        : uncacheable in data cache

Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 18288

Kernel command line: root=/dev/mtdblock0 rw mem=74M max_mem=128M$# clkin_hz=33000000 console= quiet lpj=2097152

PID hash table entries: 512 (order: -1, 2048 bytes)

Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)

Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)

Kernel managed physical pages: 18432

Memory available: 68120k/75776k RAM, (2112k init code, 1105k kernel code, 495k data, 2048k dma, 1896k reserved)

Hierarchical RCU implementation.

NR_IRQS:153

Configuring Blackfin Priority Driven Interrupts

Calibrating delay loop (skipped) preset value.. 1048.57 BogoMIPS (lpj=2097152)

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: 16 KB (16 KB free)

Blackfin L1 Instruction SRAM: 16 KB (5 KB free)

Blackfin L2 SRAM: 128 KB (128 KB free)

NET: Registered protocol family 16

Blackfin DMA Controller

ezkit_init(): registering device resources

bio: create slab <bio-0> at 0

bfin-spi bfin-spi.0: chipselect 5 already in use

bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_base@ffc00500, dma channel@16

i2c-gpio i2c-gpio.0: using pins 45 (SDA) and 26 (SCL)

Switching to clocksource bfin_cs_cycles

NET: Registered protocol family 2

IP route cache hash table entries: 1024 (order: 0, 4096 bytes)

TCP established hash table entries: 4096 (order: 3, 32768 bytes)

TCP bind hash table entries: 4096 (order: 2, 16384 bytes)

TCP: Hash tables configured (established 4096 bind 4096)

TCP reno registered

UDP hash table entries: 256 (order: 0, 4096 bytes)

UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)

NET: Registered protocol family 1

msgmni has been set to 133

io scheduler noop registered (default)

dma_alloc_init: dma_page @ 0x0216d000 - 512 pages at 0x04800000

bfin-lq035q1 bfin-lq035q1: 480x272 16-bit RGB FrameBuffer initialized

brd: module loaded

net2272: PLX NET2272 USB Peripheral Controller

net2272: irq 103, mapped mem 28000000, chip rev 0011

net2272: running in 16-bit, no byte swap local bus mode

net2272: version: 2005 Sept 8

g_ether gadget: using random self ethernet address

g_ether gadget: using random host ethernet address

usb0: MAC 5e:0d:61:5d:ad:9a

usb0: HOST MAC 0a:ed:5f:8e:ef:b4

g_ether gadget: Ethernet Gadget, version: Memorial Day 2008

g_ether gadget: g_ether ready

bfin-gpio: GPIO 0 is already reserved by BFIN-GPIO! (Documentation/blackfin/bfin-gpio-notes.txt)

bfin-gpio: GPIO 1 is already reserved by BFIN-GPIO! (Documentation/blackfin/bfin-gpio-notes.txt)

bfin-gpio: GPIO 10 is already reserved by BFIN-GPIO! (Documentation/blackfin/bfin-gpio-notes.txt)

bfin-gpio: GPIO 11 is already reserved by BFIN-GPIO! (Documentation/blackfin/bfin-gpio-notes.txt)

bfin-gpio: GPIO 2 is already reserved by BFIN-GPIO! (Documentation/blackfin/bfin-gpio-notes.txt)

bfin-gpio: GPIO 3 is already reserved by BFIN-GPIO! (Documentation/blackfin/bfin-gpio-notes.txt)

bfin-gpio: GPIO 4 is already reserved by BFIN-GPIO! (Documentation/blackfin/bfin-gpio-notes.txt)

bfin-gpio: GPIO 8 is already reserved by BFIN-GPIO! (Documentation/blackfin/bfin-gpio-notes.txt)

bfin-gpio: GPIO 9 is already reserved by BFIN-GPIO! (Documentation/blackfin/bfin-gpio-notes.txt)

bfin-gpio: GPIO 12 is already reserved by BFIN-GPIO! (Documentation/blackfin/bfin-gpio-notes.txt)

bfin-gpio: GPIO 13 is already reserved by BFIN-GPIO! (Documentation/blackfin/bfin-gpio-notes.txt)

bfin-gpio: GPIO 24 is already reserved by BFIN-GPIO! (Documentation/blackfin/bfin-gpio-notes.txt)

input: gpio-keys as /devices/platform/gpio-keys.0/input/input0

i2c /dev entries driver

mmc_spi spi0.7: ASSUMING 3.2-3.4 V slot power

mmc_spi spi0.7: SD/MMC host mmc0, no DMA, no WP, no poweroff

TCP cubic registered

NET: Registered protocol family 17

Warning: unable to open an initial console.

Freeing unused kernel memory: 2112k freed

mmc_spi spi0.7: can't change chip-select polarity

mmc0: host does not support reading read-only switch. assuming write-enable.

mmc0: new SD card on SPI

mmcblk0: mmc0:0000 SA02G 1.83 GiB

mmcblk0:

g_ether gadget: high speed config #2: RNDIS

dma rx:12 tx:13, err irq:13, regs:ffc00800

qian:No device for DAI tlv320aic23

qian:soc_probe!

AIC23 Audio Codec 0.1

asoc: tlv320aic23 <-> bf5xx-i2s mapping ok

mmcblk0: error -38 sending read/write command, response 0x4, card status 0x0

end_request: I/O error, dev mmcblk0, sector 1348

Buffer I/O error on device mmcblk0, logical block 1348

lost page write due to I/O error on mmcblk0

end_request: I/O error, dev mmcblk0, sector 1349

Buffer I/O error on device mmcblk0, logical block 1349

lost page write due to I/O error on mmcblk0

end_request: I/O error, dev mmcblk0, sector 1350

Buffer I/O error on device mmcblk0, logical block 1350

lost page write due to I/O error on mmcblk0

end_request: I/O error, dev mmcblk0, sector 1351

Buffer I/O error on device mmcblk0, logical block 1351

lost page write due to I/O error on mmcblk0

end_request: I/O error, dev mmcblk0, sector 1352

Buffer I/O error on device mmcblk0, logical block 1352

lost page write due to I/O error on mmcblk0

end_request: I/O error, dev mmcblk0, sector 1353

Buffer I/O error on device mmcblk0, logical block 1353

lost page write due to I/O error on mmcblk0

end_request: I/O error, dev mmcblk0, sector 1354

Buffer I/O error on device mmcblk0, logical block 1354

lost page write due to I/O error on mmcblk0

end_request: I/O error, dev mmcblk0, sector 1355

Buffer I/O error on device mmcblk0, logical block 1355

lost page write due to I/O error on mmcblk0

end_request: I/O error, dev mmcblk0, sector 1356

Buffer I/O error on device mmcblk0, logical block 1356

lost page write due to I/O error on mmcblk0

end_request: I/O error, dev mmcblk0, sector 1357

Buffer I/O error on device mmcblk0, logical block 1357

lost page write due to I/O error on mmcblk0

end_request: I/O error, dev mmcblk0, sector 1358

end_request: I/O error, dev mmcblk0, sector 1359

end_request: I/O error, dev mmcblk0, sector 1360

end_request: I/O error, dev mmcblk0, sector 1361

end_request: I/O error, dev mmcblk0, sector 1362

end_request: I/O error, dev mmcblk0, sector 1363

end_request: I/O error, dev mmcblk0, sector 1364

end_request: I/O error, dev mmcblk0, sector 1365

end_request: I/O error, dev mmcblk0, sector 1366

end_request: I/O error, dev mmcblk0, sector 1367

end_request: I/O error, dev mmcblk0, sector 1368

end_request: I/O error, dev mmcblk0, sector 1369

end_request: I/O error, dev mmcblk0, sector 1370

end_request: I/O error, dev mmcblk0, sector 1371

end_request: I/O error, dev mmcblk0, sector 1372

end_request: I/O error, dev mmcblk0, sector 1373

end_request: I/O error, dev mmcblk0, sector 1374

end_request: I/O error, dev mmcblk0, sector 1375

end_request: I/O error, dev mmcblk0, sector 1376

end_request: I/O error, dev mmcblk0, sector 1377

end_request: I/O error, dev mmcblk0, sector 1378

end_request: I/O error, dev mmcblk0, sector 1379

end_request: I/O error, dev mmcblk0, sector 1380

end_request: I/O error, dev mmcblk0, sector 1381

end_request: I/O error, dev mmcblk0, sector 1382

mmcblk0: error -38 sending read/write command, response 0x4, card status 0x0

end_request: I/O error, dev mmcblk0, sector 5105

end_request: I/O error, dev mmcblk0, sector 5106

end_request: I/O error, dev mmcblk0, sector 5107

end_request: I/O error, dev mmcblk0, sector 5108

end_request: I/O error, dev mmcblk0, sector 5109

end_request: I/O error, dev mmcblk0, sector 5110

end_request: I/O error, dev mmcblk0, sector 5111

end_request: I/O error, dev mmcblk0, sector 5112

end_request: I/O error, dev mmcblk0, sector 5113

end_request: I/O error, dev mmcblk0, sector 5114

end_request: I/O error, dev mmcblk0, sector 5115

end_request: I/O error, dev mmcblk0, sector 5116

end_request: I/O error, dev mmcblk0, sector 5117

end_request: I/O error, dev mmcblk0, sector 5118

end_request: I/O error, dev mmcblk0, sector 5119

end_request: I/O error, dev mmcblk0, sector 5120

end_request: I/O error, dev mmcblk0, sector 5121

end_request: I/O error, dev mmcblk0, sector 5122

end_request: I/O error, dev mmcblk0, sector 5123

end_request: I/O error, dev mmcblk0, sector 5124

end_request: I/O error, dev mmcblk0, sector 5125

end_request: I/O error, dev mmcblk0, sector 5126

end_request: I/O error, dev mmcblk0, sector 5127

end_request: I/O error, dev mmcblk0, sector 5128

end_request: I/O error, dev mmcblk0, sector 5129

end_request: I/O error, dev mmcblk0, sector 5130

end_request: I/O error, dev mmcblk0, sector 5131

end_request: I/O error, dev mmcblk0, sector 5132

end_request: I/O error, dev mmcblk0, sector 5133

end_request: I/O error, dev mmcblk0, sector 5134

end_request: I/O error, dev mmcblk0, sector 5135

end_request: I/O error, dev mmcblk0, sector 5136

end_request: I/O error, dev mmcblk0, sector 5137

end_request: I/O error, dev mmcblk0, sector 5138

end_request: I/O error, dev mmcblk0, sector 5139

mmcblk0: error -38 sending read/write command, response 0x4, card status 0x0

end_request: I/O error, dev mmcblk0, sector 9246

mmcblk0: error -38 sending read/write command, response 0x4, card status 0x0

end_request: I/O error, dev mmcblk0, sector 1369712

end_request: I/O error, dev mmcblk0, sector 1369720

end_request: I/O error, dev mmcblk0, sector 1369728

end_request: I/O error, dev mmcblk0, sector 1369736

end_request: I/O error, dev mmcblk0, sector 1369744

end_request: I/O error, dev mmcblk0, sector 1369752

end_request: I/O error, dev mmcblk0, sector 1369760

end_request: I/O error, dev mmcblk0, sector 1369768

end_request: I/O error, dev mmcblk0, sector 1369776

end_request: I/O error, dev mmcblk0, sector 1369784

end_request: I/O error, dev mmcblk0, sector 1369792

end_request: I/O error, dev mmcblk0, sector 1369800

end_request: I/O error, dev mmcblk0, sector 1369808

end_request: I/O error, dev mmcblk0, sector 1369816

end_request: I/O error, dev mmcblk0, sector 1369824

end_request: I/O error, dev mmcblk0, sector 1369832

mmcblk0: error -38 sending read/write command, response 0x4, card status 0x0

end_request: I/O error, dev mmcblk0, sector 1369874

end_request: I/O error, dev mmcblk0, sector 1369880

end_request: I/O error, dev mmcblk0, sector 1369888

end_request: I/O error, dev mmcblk0, sector 1369896

end_request: I/O error, dev mmcblk0, sector 1369904

end_request: I/O error, dev mmcblk0, sector 1369912

end_request: I/O error, dev mmcblk0, sector 1369920

end_request: I/O error, dev mmcblk0, sector 1369928

end_request: I/O error, dev mmcblk0, sector 1369936

end_request: I/O error, dev mmcblk0, sector 1369944

end_request: I/O error, dev mmcblk0, sector 1369952

end_request: I/O error, dev mmcblk0, sector 1369960

FAT: Filesystem error (dev mmcblk0)

    fat_get_cluster: invalid cluster chain (i_pos 147938)

    File system has been set read-only

FAT: Filesystem error (dev mmcblk0)

    fat_get_cluster: invalid cluster chain (i_pos 147938)

root:/>

 

thanks!

Outcomes