Is this correct ?
Hi,
Is this output indicating an error codition ?
# /sbin/erase /dev/mtd0 MTD_open Erase Total 1 UnMTD_ioctl its MTD_ioctl Performing FlasMTD_ioctl h Erase of lengtMTD do_erase_oneblock(): ERASE 0x00000000 h 65536 at offseMTD do_erase_oneblock(): Check 0x00000044 0x00000004 t 0x0MTD do_erase_oneblock(): Check 0x0000004c 0x0000000c MTD do_erase_oneblock(): Check 0x0000005c 0x0000001c MTD do_erase_oneblock(): Check 0x0000005c 0x0000001c MTD do_erase_oneblock(): Check 0x00000058 0x0000001c MTD do_erase_oneblock(): Check 0x0000005c 0x0000001c MTD do_erase_oneblock(): Check 0x0000005c 0x0000001c MTD do_erase_oneblock(): Check 0x00000058 0x0000001c MTD do_erase_oneblock(): Check 0x00000058 0x0000001c MTD do_erase_oneblock(): Check 0x000000ff 0x000000ff MTD do_erase_oneblock(): Check 0x000000ff 0x000000ff MTD do_erase_oneblock(): Check 0x000000ff 0x000000ff doneMTD_close
I did a 'mount -t jffs2 /dev/mdtblock2 /mnt/ffs2' that went away for a very long time <more that miniutes> but the next day it was mounted, I could even create a file on it - which cat'ed ok.
Any help please ?
If I can get this working I will submit the info back to the card manufacture so they can add it to there linux/sbc docs.
TIA,
Frank.
ps. Thanks Jörn CONFIG_MTD_CHAR = yes fixed my last problem
More information !
When copying a jffs2 filesystem to the device I get the following ioctl error
# cp /myapp/jffs2_file_sys.img /dev/mtd0 MTD_open MTD_ioctl Invalid ioctl 5401 (MEMGETINFO = 80204d01) MTD_write MTD_close # # mount -t jffs2 /dev/mtdblock0 /var/fixed_flash/ mtdblock_open ok
<wait forever>
What can I do to find the problem ?
-------------------------
kernel 2.4.19 +
uClibc.0.9.19 +
rtai-24.1.11 +
mtd from CVS (today)
-------------------------