Errors getting JFFS to work

Edmund Troche edmund at troche.org
Thu May 10 23:29:43 EDT 2001


Hi,

I've been following the mtd-howto instructions on how to get JFFS mounted in a
DoC, but with no luck so far, perhaps I'm missing something that might be
obvious to some of you. In a nutshell, I have a 386EX board with a 8MB DoC
2000, which I have had running with Linux 2.4.3 and the M-Systems code. I would
very much prefer to use the MTD code instead of the M-Systems code, therefore
I've been trying to get this working for the last couple of nights. The kernel
( 2.4.3) has the MTD support compiled in, no modules. When I boot it recognizes
the DoC correctly and it seems like I can ntfl_format and fdisk without
problems. The problems seems to start when I try to copy and image created with
mkfs.jffs into the mtd character device 0. Below I have attached some of the
terminal output from some of my commands. The utilities are being built from a
"util" directory that I created under my 2.4.3 kernel distribution (
/usr/src/linux/util ) according to the README in the mtd/util directory. So I
imagine my utilities are using the distribution header files. If anyone needs
some more information regarding this, please let me know and I will be happy to
provide it.


Thanks for your help.

Edmund



----------------------------- TERMINAL OUTPUT ---------------------------

/ # ./fdisk /dev/nftla

Command (m for help): p

Disk /dev/nftla: 16 heads, 1 sectors, 1020 cylinders
Units = cylinders of 16 * 512 bytes

     Device Boot    Start       End    Blocks   Id  System
/dev/nftla1             1      1020      8159+  83  Linux

Command (m for help): q

/ # cp /jffs.image /dev/mtd0
MTD_open
MTD_ioctl
Invalid ioctl 5401 (MEMGETINFO = 80204d01)
MTD_write
.......
....... (lots of MTD_write)
.......
MTD_write
ECC needs a full sector write (adr: 9de00 size 134)
MTD_close
/ # mount -t jffs /dev/mtdblock0 /mnt/jffs
mtdblock_open
ok
JFFS: Trying to mount device 1f:00.
jffs_scan_flash(): start pos = 0x0, end = 0x800000
check_partly_erased_sector():checking sector which contains offset 0x0 for
flipp
ing bits..
Kernel panic: Didn't read all bytes in flash_safe_read(). Returned 0

-----------------------------------------------------------------------





More information about the linux-mtd mailing list