ltib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ltib] jffs2 file size suddenly doubled


From: Stuart Hughes
Subject: Re: [Ltib] jffs2 file size suddenly doubled
Date: Tue, 08 Jun 2010 10:38:37 +0100
User-agent: Thunderbird 2.0.0.16 (X11/20080707)

Hi Todd,

I'm not sure why your jffs2 has grown.  It should be possible to mount
your jffs2 on your host machine by following:

https://wiki.maemo.org/Advanced_booting

However, when I tried I end up with:
# mount -t jffs2 -o ro /dev/mtdblock0 /tmp/jffs2
mount: /dev/mtdblock0: can't read superblock

and looking /var/log/messages, I see: "You cannot use older JFFS2
filesystems with newer kernels"

So on my machine at least, I'm not able to do this.  Maybe someone else
knows a better way? or it may work on your box.

There is also /opt/ltib/usr/bin/jffs2dump, but this seems to only output
raw data (block info).

If you have the old/new BSPs around, you  could look/compare the size of
the staging area used to make the rootfs for the jffs2 (you need to
select Target Image Generation / Options / Keep temporary staging
directory in ./ltib -m config).  This is probably your best option.

Another thought is that if you have enough RAM, you may be able to boot
your target NFS and then copy in your jffs2 image to a mtdram device,
and then mount it (you'd need to google for details, I've not tried).

Good luck and if anyone else has any ideas about this, I'd be interested
too.

NOTE:  the message about "You cannot use older JFFS2 filesystems with
newer kernels" worries me, if true, it looks like I should update
/opt/ltib/..../mtd-utils.  This is a PITA as I suspect it will break
backward compatibility (worse, probably the older kernels would be able
to mount jffs2 generated with a newer tool?).  Does anyone have any
insight into the change and the implications?

Regards, Stuart

address@hidden wrote:
> My jffs2 file size went from 14mB to 25mB.  OK, so I'm playing with
> settings so I tried to figure out what I did to make it increase so
> much.  I finally ran my old original LTIB in an old virtual machine to
> compare.  Without making any changes to the old environment, the jffs2
> file size also increased from about 14mB to 25mB.  So it seems that the
> thing that changed was maybe data downloaded from the GPP, (maybe.)
> 
> So now I have a copy of my old 14mB jffs2 file and the new 25mB jffs2
> file.  The question is: How can I compare these to files to see what the
> difference is?  I can't boot the new 25mB file because I only have a
> 16mB flash.  Can I somehow mount a jffs2 file in Ubuntu even though it's
> a file and not in a flash.  Is there some other way I can look into the
> jffs2 files?  Does anybody know why my file size doubled without
> changing any settings?
> 
> My original LTIB version is: 6.4.1
> My current LTIB version is: ltib 10.1.1 ($Revision: 1.62 $)
> Target: MPC5200
> 
> Thanks!
> 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]