Hi Harald,
Thanks for your reply.
I am not sure what you mean by "don't break threads"? Do you mean leave
the subject line as this mail has? I hope so.
I tried a bunch of things as you can see below.
I wasn't aware of the "headers". That sounds like my problem. Thanks.
I'll try what you suggest later today.
You ask whether JFFS2 is endian specific? From what I can tell, yes it
is. I get different results if I do jssf2dump with the -l verses the -b
flag.
warm regards,
John
1. Re: Xilinx Spartan 3E Starter Kit port - JFFS2 question
(Harald Schi?berg)
> Hi Harald,
>
> I tried to mount jffs2 today with Ubuntu (please see below) without
> success. I know the jffs2 file is OK since I "install" it in a Meraki Mini
> and the Meraki Mini runs OK. However, I tried to mount the file on the
> Meraki Mini with "mount file.jffs2 mnt -t jffs2". Again it didn't work.
I just tried with a recent asus-image on ubuntu => works.
You must not take the images from bin/ , because they usually contain
headers for the bootloader, the kernel and the image in some mangled
layout.
(This may be different on the meraki, it's totaly arch specific)
Take the raw jffs2 images from build_dir/linux-<subarch>/*.jffs
> Thanks for the pointer to image.sh I will look at it tomorrow.
>
> Is there more than one JFFS2 format?
I don't know whether jffs2 is fixed-endian or host-endian.
harald
ps: please try not to break threads by replying to arbitrary mails.
-------------------------------------------------------------
------- notes ------------
1. mtd-20050122 was recently downloaded from debian.org as source
and compiled for i386 (on Knoppix 5.0.1 dist. of Debian). The results
are the same when the Debian.org .deb file is used for jffs2dump.
1.5. There is a jffsreader program that does not compile here.
2. The version downloaded from Debian.org "seems" to match the
version in use by OpenWRT. Perhaps there is some sort of header
problem?? (wrong crc header being used in one compilation or the other)?
3. Running jffs2dump suggests that the actual CRC used
by OpenWRT when meraki-atheros.jffs2 is created is different??!!
Also, the "bitmask" doesn't "match" (whatever that means).
4. This was the closest I could come to a version of jffs2dump that
"appeared to work" somewhat.
------- pwd -------------
/mount/jmhwork/mtd/mtd-20050122.orig/util
---------- jffs2dump command of known good meraki-atheros jffs2 file ----
./jffs2dump -v -c /mount/jmhwork/meraki/openwrt-atheros-2.6-root.jffs2-64k
------ result of running jffs2dump command -----------
Wrong bitmask at 0x00000000, 0x8519
Wrong hdr_crc at 0x0001612c, 0x33c467e2 instead of 0x5152c1df
Wrong bitmask at 0x00016130, 0xfb53
Wrong hdr_crc at 0x000a1248, 0x1d673ef0 instead of 0xf52eba1a
Wrong bitmask at 0x000a124c, 0x7d61
Wrong hdr_crc at 0x000a5d74, 0x8836a835 instead of 0x184e0842
Wrong bitmask at 0x000a5d78, 0xfea5
Wrong hdr_crc at 0x0010f8c8, 0x0acd1072 instead of 0xfcdbe3f5
Wrong bitmask at 0x0010f8cc, 0x6fcf
Wrong hdr_crc at 0x0011b31c, 0x06f8f0f1 instead of 0x16fd3147
Wrong bitmask at 0x0011b320, 0x73ee
Wrong hdr_crc at 0x001c4010, 0x7fa02471 instead of 0x1d214567
Wrong bitmask at 0x001c4014, 0xfa03
Wrong hdr_crc at 0x001ddce8, 0xafc759ad instead of 0x80ca45d0
Wrong bitmask at 0x001ddcec, 0xa95d
Wrong hdr_crc at 0x001e9c08, 0xafac8f01 instead of 0xd74e3520
Wrong bitmask at 0x001e9c0c, 0x12f2
Wrong hdr_crc at 0x00201a38, 0x207e3dc8 instead of 0x3543f8a7
Wrong bitmask at 0x00201a3c, 0xf1f7
Wrong hdr_crc at 0x0021179c, 0xd4603883 instead of 0xd106f254
Wrong bitmask at 0x002117a0, 0x4b8c
Wrong hdr_crc at 0x00283f20, 0x416226c1 instead of 0x7bf15829
Wrong bitmask at 0x00283f24, 0xe63b
Wrong hdr_crc at 0x002962c0, 0x9f836b1f instead of 0x743050c5
Wrong bitmask at 0x002962c4, 0xd45d
Wrong hdr_crc at 0x002a301c, 0x70fcb8e1 instead of 0xc3591420
Wrong bitmask at 0x002a3020, 0x3900
Wrong hdr_crc at 0x002ee494, 0x0c2dd7ac instead of 0x52f69d3a
Wrong bitmask at 0x002ee498, 0xdd6f
Empty space: 26992, dirty space: 3643024
_______________________________________________
openwrt-devel mailing list
[email protected]
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel