Re: [maemo-developers] flasher not flashing rootfs?

2006-12-13 Thread DJ Delorie

> The minimum size for a rootfs is 4MB at the moment.

My testing shows that a jffs2 file of *exactly* 8 Mb (8,388,608 bytes)
will NOT flash.  Anything bigger than that (the next largest jffs2
image is 8,389,752 bytes) WILL flash.

Note that this is the jffs2 image as produced by tar2jffs, including
the sumtool step - i.e.  this is the size of the file transferred to
the 770, not the output of mkfs.jffs2.

Thanks for the tips, I'm back to work now :-)

DJ
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] flasher not flashing rootfs?

2006-12-13 Thread DJ Delorie

> The minimum size for a rootfs is 4MB at the moment.

The image was a little bigger than 4Mb, but that was enough to help me
out.  I added gcc to the rootfs (now 12Mb) and if flashes now.  I'll
try to track down a more precise minimum size.  Can you add a message
to the flasher tool?  Or release the sources so I can?

Thanks!
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] flasher not flashing rootfs?

2006-12-13 Thread Daniel Stone
On Wed, Dec 13, 2006 at 11:48:58AM -0500, ext DJ Delorie wrote:
> > Well, then it looks OK. Maybe your image is too small (4MB from your 
> > output? some test?)
> 
> I was working on a "minimum rootfs to get a console shell" test.  The
> next step is "minimum rootfs to get an X app".

The minimum size for a rootfs is 4MB at the moment.

Cheers,
Daniel


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] flasher not flashing rootfs?

2006-12-13 Thread DJ Delorie

> Well, then it looks OK. Maybe your image is too small (4MB from your 
> output? some test?)

I was working on a "minimum rootfs to get a console shell" test.  The
next step is "minimum rootfs to get an X app".

> In any case if you are sure the image is ok and want experiment with 
> booting from mmc, have a look here 

What I did yesterday is make an ext2 file system image on my desktop,
then dd it over to the 770 right into the mmc card (using Nokia's 2.1
rootfs, which I can flash).  Now I can boot off the mmc card.  I need
to get a bigger card if I want to go much further with this, though
;-)

> Flashing rootfs can be done with this too when booted from mmc. Tried 
> myself.

Assuming you have a big enough mmc to hold a full rootfs image.  I
still only have the pre-supplied 64m card.

But, I'll keep that in mind.  It would be better if the flasher just
worked, or at least told me why it wasn't.
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] flasher not flashing rootfs?

2006-12-13 Thread Frantisek Dufka

DJ Delorie wrote:

Yup, right from the tar2jffs2.sh script:

mkfs.jffs2 -r $TEMPDIR -o $name.temp  -e 128 -l -n

It does the sumtool line too:

sumtool -i $name.temp -o $name -e 128KiB -l -n



Well, then it looks OK. Maybe your image is too small (4MB from your 
output? some test?) and this is bug/feature of flasher?


In any case if you are sure the image is ok and want experiment with 
booting from mmc, have a look here 
http://fanoush.webpark.cz/maemo/#initfs for precompiled mtd-utils. 
Flashing rootfs can be done with this too when booted from mmc. Tried 
myself.


Frantisek
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] flasher not flashing rootfs?

2006-12-13 Thread DJ Delorie

> Better would be to paste your mkfs.jffs2 line directly. I guess you did 
> use something like
> # mkfs.jffs2 -r rootfs -o rootfs.jffs2 -e 128 -l -n
> right? I guess '-e 128 -l' is critical.

Yup, right from the tar2jffs2.sh script:

mkfs.jffs2 -r $TEMPDIR -o $name.temp  -e 128 -l -n

It does the sumtool line too:

sumtool -i $name.temp -o $name -e 128KiB -l -n

> You can also flash rootfs via mtd-utils when booted from mmc but flasher 
> probably has some reason why it is refusing the flashing.

I assumed there was some reason, but (1) it doesn't tell me, and (2)
there's no source, so I can't figure it out myself.
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] flasher not flashing rootfs?

2006-12-13 Thread Frantisek Dufka

DJ Delorie wrote:

I'm pretty sure the jffs2 image is OK, as I can mount it on my desktop
via mtdram.


Better would be to paste your mkfs.jffs2 line directly. I guess you did 
use something like

# mkfs.jffs2 -r rootfs -o rootfs.jffs2 -e 128 -l -n
right? I guess '-e 128 -l' is critical.

You can also flash rootfs via mtd-utils when booted from mmc but flasher 
probably has some reason why it is refusing the flashing.



Frantisek
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers