Re: [U-Boot] Can I boot at image from a jffs2 filesystem

2011-10-09 Thread Wolfgang Denk
Dear Owain,

In message 0e168e936a32d3409718ad71277afe210988085...@mchp057a.global-ad.net 
you wrote:

 I am trying to squeeze new features onto a uboot based system where we have  
 run out of flash.
 In tandum with general optimisation of apps, removal of redundant code etc  
 I wanted to rework our boot schema to reclaim some free space in other part 
 itions.

Please trim your line length to some 70 characters or so.

 1) Reduce size of kernel partition and increase that of root partition.
 2) modify boot to boot kernel from jffs2 root partition.

 I favour option 2 as this means we maximise flash utilisation; all free spa 
 ce lands in root partition.

 But can uboot boot a kernel from a JFFS2 partition?

Yes, it can.  But you usually do not want to do that.  Mounting
(large) JFFS2 file systems takes considerable time, and you don't
really want to have this delay twice - both in U-Boot and in Linux.

 Such a boot schema does not seem to be documented anywhere?

No.  Why should it be specifically documnted?  Loading a file from a
file system is not exactly rocket science...

BTW: you might consider moving from JFFS2 to UBIFS...

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH, MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de
In the bathtub of history the truth is harder to hold than the  soap,
and much more difficult to find ... - Terry Pratchett, _Sourcery_
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] Can I boot at image from a jffs2 filesystem

2011-10-07 Thread Phillips, Owain
Hi,

I am trying to squeeze new features onto a uboot based system where we have run 
out of flash.
In tandum with general optimisation of apps, removal of redundant code etc I 
wanted to rework our boot schema to reclaim some free space in other partitions.

Kernel currently boots from its own partition before mounting JFFS2 root 
partition; this seems to be the standard uboot approach.
JFFS2 is nearly full; Kernel partition has free space.

I see two options -

1) Reduce size of kernel partition and increase that of root partition.
2) modify boot to boot kernel from jffs2 root partition.

I favour option 2 as this means we maximise flash utilisation; all free space 
lands in root partition.

But can uboot boot a kernel from a JFFS2 partition?
Such a boot schema does not seem to be documented anywhere?

Is this possible?
Does anyone boot like this?

Regards,
Owain


___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot