2008-01-07 14:56:04     end_request: I/O error, dev spi_mmc, sector 655362

Document created by Aaronwu Employee on Aug 5, 2013
Version 1Show Document
  • View in full screen mode

2008-01-07 14:56:04     end_request: I/O error, dev spi_mmc, sector 655362

pengcheng liu (UNITED STATES)

Message: 49334    Hi,

 

I am working on spi_mmc addon card following the instruction online :

 

http://docs.blackfin.uclinux.org/doku.php?id=mmc_driver&s=mmc%20card

 

everything works fine

 

when I try to copy things to my 1GB sd card , there is error shown

 

end_request: I/O error, dev spi_mmc, sector 655362

 

thanks

pengcheng

QuoteReplyEditDelete

 

 

2008-01-09 02:07:02     Re: end_request: I/O error, dev spi_mmc, sector 655362

Yi Li (CHINA)

Message: 49379    the error comes from: linux/block/ll_rw_blk.c: __end_that_request_first(), but I think you need to do some debug to find out the cause.

QuoteReplyEditDelete

 

 

2008-01-15 09:47:22     Re: end_request: I/O error, dev spi_mmc, sector 655362

pengcheng liu (UNITED STATES)

Message: 49598    Thanks Li

 

I reformat the SD card and the end_request error was gone!

 

I successfully get the bf537 board boot from SD card without the network last week!

 

but something happened when I modified my kernel.

 

my goal is to put my own application on the new system, so I make the whole kernel,

 

get the new vmlinux file , flash it into board memory, and then copy the new filesystem

 

to SD card, all I did is exactly same thing I did last week, but this time it won't boot

 

it give me this info:

 

bfin>

 

U-Boot 1.1.6-svn1072 (ADI-2007R2-pre) (Jan  4 2008 - 17:14:18)

 

CPU:   ADSP bf537-0.2 (Detected Rev: 0.2)

 

Board: ADI BF537 stamp board

Support: http://blackfin.uclinux.org/

Clock: VCO: 500 MHz, Core: 500 MHz, System: 100 MHz

RAM:   64 MB

Flash:  4 MB

In:    serial

Out:   serial

Err:   serial

Net:   Blackfin EMAC

MAC:   92:68:00:15:00:00

I2C:   ready

Hit any key to stop autoboot:  0

Loading .text @ 0x00001000 (1259232 bytes)

Loading .init @ 0x001346e0 (64228 bytes)

Loading .text_l1 @ 0xffa00000 (8608 bytes)

sh_addr: FFA00000, p_paddr: 001441C4

Loading from: 20175000 to 001441C4, size: 8608

Loading .data @ 0x00146364 (247404 bytes)

Clearing .bss @ 0x001829d0 (58396 bytes)

## Starting application at 0x00001000 ...

Linux version 2.6.19.3-ADI-2007R1.1-svn (pliu6@visionlab07-pc) (gcc version 4.1.2 (ADI svn)) #9 Mon Jan 14 16:20:53 EST 2008

Kernel panic - not syncing: Don't boot kernel image without rootfs attached.

 

based on the error information, looks like it can not detect the SD card, but when I boot from network

 

it will automatically detect my SD card. My SD card has two partition spi_mmc1 spi_mmc2

 

I use spi_mmc1 as a ext2 filesystem and in my boot env I set the bootargs root=2401 rw

 

it works fine last week, the only difference I made is the new vmlinux.

 

Do you have any idea where I did wrong or something I forget to take care?

 

thanks

pengcheng

QuoteReplyEditDelete

 

 

2008-01-15 09:47:31     Re: end_request: I/O error, dev spi_mmc, sector 655362

pengcheng liu (UNITED STATES)

Message: 49600    I was thinking may be it has something to do when I build the new kernel

 

it always show this message:

 

make[2]: warning:  Clock skew detected.  Your build may be incomplete.

 

will these affect the building process?

 

and also I found out that vmlinux didn't change size when I add my application into the kernel

 

is this normal?

 

thanks

pengcheng

QuoteReplyEditDelete

 

 

2008-01-15 18:11:04     Re: end_request: I/O error, dev spi_mmc, sector 655362

Mike Frysinger (UNITED STATES)

Message: 49624    the error message told you the problem:

Don't boot kernel image without rootfs attached.

 

you're attempting to boot a kernel with the uClinux MTD romfs option enabled, but without a rootfs actually attached.  disable the MTD option if you dont want it.

QuoteReplyEditDelete

 

 

2008-01-15 18:11:33     Re: end_request: I/O error, dev spi_mmc, sector 655362

Mike Frysinger (UNITED STATES)

Message: 49625    yes, clock skew can screw things up.  fix your system clock and do a `make clean`.

QuoteReplyEditDelete

 

 

2008-01-16 11:53:07     Re: end_request: I/O error, dev spi_mmc, sector 655362

pengcheng liu (UNITED STATES)

Message: 49674    Hi Mike

 

I fixed the clock skew error

 

and disabled the MTD option  under device drive selection

 

the problem remains

 

thanks

pengcheng

QuoteReplyEditDelete

 

 

2008-01-16 12:15:22     Re: end_request: I/O error, dev spi_mmc, sector 655362

pengcheng liu (UNITED STATES)

Message: 49677    Hi Mike

 

I fixed the problem! it is MTD causing the error

 

thank you

pengcheng

QuoteReplyEditDelete

 

 

2008-01-17 08:16:54     Re: end_request: I/O error, dev spi_mmc, sector 655362

Yi Li (CHINA)

Message: 49748    I am wondering how do you fix the "end_request: I/O error"?

Attachments

    Outcomes