NAND : check my modification in kernel2.2.13

Kim, Sanghun shkim at fdma.snu.ac.kr
Tue Oct 30 23:26:54 EST 2001


I said my environment in above messages....( see below..)

I can not have 2.2.18 for my board, so I use 2.2.13....

in porting to 2.2.18.....

kernel wants "compatmac.h", so I copied "/linux/include/compatmac.h" in 2.2.18 to "/linux/include/compatmac.h" in 2.2.13..
and compile the kernel. there's no error...

is it possible that generating my problem (ll_rw_block...)?

~~~ Before saying problem, i'll explain my environment...
~~~ 
~~~ ARM920T + NAND Flash...
~~~ 
~~~ Linux kernel 2.2.13
~~~ 
~~~ So, I use MTD for 2.2.18 and patch manualy...
~~~ 
~~~ and modify spia.c
~~~ 
~~~ Kernel configuration is
~~~ 
~~~ CONFIG_MTD=y
~~~ CONFIG_MTD_DEBUG=y
~~~ CONFIG_MTD_DEBUG_VERBOSE=0
~~~ CONFIG_MTD_NAND=y
~~~ CONFIG_MTD_NAND_ECC=y
~~~ CONFIG_MTD_NAND_SPIA=y
~~~ CONFIG_MTD_CHAR=y
~~~ CONFIG_MTD_BLOCK=y
~~~ 
~~~ and.... booting linux
~~~ 
~~~ > root> cat /proc/mtd
~~~ > mtd0: 0x00200000 "spia NAND flash partition 1"
~~~ ---> Find my nand flash...(ok?)
~~~ 
~~~ When I command read/write/erase using /dev/mtd0 , all operations work
~~~ well.
~~~ 
~~~ PROBLEM..........PROBLEM.........
~~~ 
~~~ but. 
~~~ To use JFFS.
~~~ > root> dd of=/dev/mtdblock0 if=jffs.img
~~~ > mtdblock_open
~~~ > ok
~~~ > ll_rw_block: Trying to read nonexistent block-device 1f:00 (0)
~~~ > /dev/mtdblock_release
~~~ > mtdblock0: Input/output error
~~~ > nand_sync:called
~~~ > ok
~~~ 
~~~ Failure happen in  "checking dev->request_fn" ( in functin
~~~ ll_rw_block)
~~~ 
~~~ I don't know the reason why this happen...?


More information about the linux-mtd mailing list