[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[microblaze-uclinux] JFFS2 and MTD
Hi folks,
The port progresses at a great rate - no longer fiddling in the bowels
of the kernel thankfully! Anyway, does anybody have experience with
jffs2 mounts on top of the MTD drivers?
I've created a MTD map for the flash devices on the Insight board, and
can happily do direct access to and from the flash via /dev/mtdXX and
/dev/mtdblockXX.
However, when I try to mount a JFFS2 partition on the MTD block devices,
I get errors like
"Node totlen on flash (0x...) != totlen in node ref".
See the attached session transcripts for more details.
Any suggestions on the cause (and potential resolution) of these errors
would be greatly appreciated.
Thanks,
John
/> dd if=/etc/motd of=/dev/mtd0
0+1 records in
0+1 records out
/> dd if=/dev/mtd0 of=/dev/ttyS0 bs=1 count=385
Welcome to
____ _ _
_ _ / ___| (_)_ __ _ _ _ _
| | | | | | | | '_ \| | | < \/ >
| |_| | |___| | | | | | |_| |> <
| __,_|\____|_|_|_| |_|\__,_/_/\_>
|_)
on Xilinx Microblaze.
For further information check:
http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux (Microblaze uClinux Home)
or
http://www.uclinux.org/ (The home of 385+0 records in
385+0 records out
/>
/> cat /etc/motd
Welcome to
____ _ _
_ _ / ___| (_)_ __ _ _ _ _
| | | | | | | | '_ \| | | < \/ >
| |_| | |___| | | | | | |_| |> <
| __,_|\____|_|_|_| |_|\__,_/_/\_>
|_)
on Xilinx Microblaze.
For further information check:
http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux (Microblaze uClinux Home)
or
http://www.uclinux.org/ (The home of uClinux)
/> cat /proc/mtd
dev: size erasesize name
mtd0: 00020000 00004000 "Bootloader"
mtd1: 00020000 00020000 "Bootargs"
mtd2: 00020000 00020000 "MAC"
mtd3: 00080000 00020000 "Config"
mtd4: 00020000 00020000 "Spare"
mtd5: 00200000 00020000 "Image"
mtd6: 00500000 00020000 "JFFS2"
mtd7: 00800000 00020000 "Flash"
mtd8: 0004b000 00001000 "Romfs"
/> eraseall /dev/mtd6
/> mount -t jffs2 /dev/mtdblock6 /var
/>
/> cd var
/var> ls -al
drwxr-xr-x 1 0 0 0 Jan 1 00:22 .
drwxr-xr-x 1 0 0 32 Jan 1 00:00 ..
/var> cp /etc/motd ./motd
Node totlen on flash (0x0000000c) != totlen in node ref (0x00000044)
/var> ls -al
drwxr-xr-x 1 0 0 0 Jan 1 00:22 .
drwxr-xr-x 1 0 0 32 Jan 1 00:00 ..
-rwxr-xr-x 1 0 0 0 Jan 1 00:22 motd
/var> cat motd
/var> cd ..
/> umount /var
/> mount -t jffs2 /dev/mtdblock6 /var
jffs2_scan_dirent_node(): Name CRC failed on node at 0x002a0050: Read 0x8b4bba70, calculated 0xc662b466
jffs2_scan_inode_node(): Data CRC failed on node at 0x002a007c: Read 0x2a1b425f, calculated 0x22e5fe71
Node totlen on flash (0x0000000c) != totlen in node ref (0x00000044)
/> cd var
/var> ls
/var> ls -al
drwxr-xr-x 1 0 0 0 Jan 1 00:23 .
drwxr-xr-x 1 0 0 32 Jan 1 00:00 ..