Sorry my wrong character code.... (Message again)
Kim Sang Hun
shkim at dsp.snu.ac.kr
Tue Oct 30 23:26:35 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...?
######################################
Sang-Hun , Kim
Multimedia Systems Lab. SNU
School of EE. Seoul National Univ.
E-Mail : shkim at fdma.snu.ac.kr
Http://fdma.snu.ac.kr/~shkim
HP : 017-398-6203
######################################
More information about the linux-mtd
mailing list