public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* Fast rollout process on jffs2?
@ 2005-05-26 15:22 Robert Schwebel
  2005-05-26 15:39 ` David Vrabel
  0 siblings, 1 reply; 12+ messages in thread
From: Robert Schwebel @ 2005-05-26 15:22 UTC (permalink / raw)
  To: linux-mtd

Hi, 

Is there a method for faster rollout of an embedded root filesystem on
jffs2? I'm currently first erase the chip from u-boot, then copy the
image created with mkfs.jffs2 into the empty flash. On first startup it
seems to detect that the partition is larger than the actual image and
it takes quite some time before the / mount is finished. 

Does anybody know a faster variant? 

Robert
-- 
 Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
 Pengutronix - Linux Solutions for Science and Industry
   Handelsregister:  Amtsgericht Hildesheim, HRA 2686
     Hannoversche Str. 2, 31134 Hildesheim, Germany
   Phone: +49-5121-206917-0 |  Fax: +49-5121-206917-9

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Fast rollout process on jffs2?
  2005-05-26 15:22 Fast rollout process on jffs2? Robert Schwebel
@ 2005-05-26 15:39 ` David Vrabel
  2005-05-26 15:42   ` Steven Scholz
  0 siblings, 1 reply; 12+ messages in thread
From: David Vrabel @ 2005-05-26 15:39 UTC (permalink / raw)
  To: Robert Schwebel; +Cc: linux-mtd

Robert Schwebel wrote:
> 
> Is there a method for faster rollout of an embedded root filesystem on
> jffs2? I'm currently first erase the chip from u-boot, then copy the
> image created with mkfs.jffs2 into the empty flash. On first startup it
> seems to detect that the partition is larger than the actual image and
> it takes quite some time before the / mount is finished. 
> 
> Does anybody know a faster variant? 

You can pad the JFFS2 image with the --pad option to mkfs.jffs2.

David Vrabel
-- 
David Vrabel, Design Engineer

Arcom, Clifton Road           Tel: +44 (0)1223 411200 ext. 3233
Cambridge CB1 7EA, UK         Web: http://www.arcom.com/

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Fast rollout process on jffs2?
  2005-05-26 15:39 ` David Vrabel
@ 2005-05-26 15:42   ` Steven Scholz
  2005-05-26 16:04     ` David Vrabel
  0 siblings, 1 reply; 12+ messages in thread
From: Steven Scholz @ 2005-05-26 15:42 UTC (permalink / raw)
  To: linux-mtd

David Vrabel wrote:

> Robert Schwebel wrote:
> 
>>Is there a method for faster rollout of an embedded root filesystem on
>>jffs2? I'm currently first erase the chip from u-boot, then copy the
>>image created with mkfs.jffs2 into the empty flash. On first startup it
>>seems to detect that the partition is larger than the actual image and
>>it takes quite some time before the / mount is finished. 
>>
>>Does anybody know a faster variant? 
> 
> 
> You can pad the JFFS2 image with the --pad option to mkfs.jffs2.

But isn't it padded with 0xFF only?

Or will it place the magic "1985 2003" as well?

--
Steven

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Fast rollout process on jffs2?
  2005-05-26 15:42   ` Steven Scholz
@ 2005-05-26 16:04     ` David Vrabel
  2005-05-26 16:46       ` Robert Schwebel
  0 siblings, 1 reply; 12+ messages in thread
From: David Vrabel @ 2005-05-26 16:04 UTC (permalink / raw)
  To: Steven Scholz; +Cc: linux-mtd

Steven Scholz wrote:
> David Vrabel wrote:
>> You can pad the JFFS2 image with the --pad option to mkfs.jffs2.
> 
> But isn't it padded with 0xFF only?
> 
> Or will it place the magic "1985 2003" as well?

Since I happened to have an image lying around I checked and it does
place the clean markers at the start of every erase zone.

David Vrabel
-- 
David Vrabel, Design Engineer

Arcom, Clifton Road           Tel: +44 (0)1223 411200 ext. 3233
Cambridge CB1 7EA, UK         Web: http://www.arcom.com/

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Fast rollout process on jffs2?
  2005-05-26 16:04     ` David Vrabel
@ 2005-05-26 16:46       ` Robert Schwebel
  2005-05-26 16:54         ` Steven Scholz
  2005-05-27 12:37         ` David Woodhouse
  0 siblings, 2 replies; 12+ messages in thread
From: Robert Schwebel @ 2005-05-26 16:46 UTC (permalink / raw)
  To: linux-mtd

On Thu, May 26, 2005 at 05:04:52PM +0100, David Vrabel wrote:
> Since I happened to have an image lying around I checked and it does
> place the clean markers at the start of every erase zone.

Hmm, sounds good, but that probably means that the jffs2 images have to
be the full flash size (which is 32 MB in my case) compared to about 8
MB at the moment? 

Robert
-- 
 Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
 Pengutronix - Linux Solutions for Science and Industry
   Handelsregister:  Amtsgericht Hildesheim, HRA 2686
     Hannoversche Str. 2, 31134 Hildesheim, Germany
   Phone: +49-5121-206917-0 |  Fax: +49-5121-206917-9

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Fast rollout process on jffs2?
  2005-05-26 16:46       ` Robert Schwebel
@ 2005-05-26 16:54         ` Steven Scholz
  2005-05-26 17:17           ` Robert Schwebel
  2005-05-27 12:37         ` David Woodhouse
  1 sibling, 1 reply; 12+ messages in thread
From: Steven Scholz @ 2005-05-26 16:54 UTC (permalink / raw)
  To: linux-mtd

Robert Schwebel wrote:

> On Thu, May 26, 2005 at 05:04:52PM +0100, David Vrabel wrote:
> 
>>Since I happened to have an image lying around I checked and it does
>>place the clean markers at the start of every erase zone.
> 
> 
> Hmm, sounds good, but that probably means that the jffs2 images have to
> be the full flash size (which is 32 MB in my case) compared to about 8
> MB at the moment? 

You could {g,b}zip it. The many 0xFF should compress quite nice... ;-)

--
Steven

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Fast rollout process on jffs2?
  2005-05-26 16:54         ` Steven Scholz
@ 2005-05-26 17:17           ` Robert Schwebel
  2005-05-26 17:26             ` Steven Scholz
  0 siblings, 1 reply; 12+ messages in thread
From: Robert Schwebel @ 2005-05-26 17:17 UTC (permalink / raw)
  To: linux-mtd

On Thu, May 26, 2005 at 06:54:26PM +0200, Steven Scholz wrote:
> You could {g,b}zip it. The many 0xFF should compress quite nice... ;-)

Yes, but is there a way to decompress gzip/bzip in u-boot? 

Robert
-- 
 Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
 Pengutronix - Linux Solutions for Science and Industry
   Handelsregister:  Amtsgericht Hildesheim, HRA 2686
     Hannoversche Str. 2, 31134 Hildesheim, Germany
   Phone: +49-5121-206917-0 |  Fax: +49-5121-206917-9

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Fast rollout process on jffs2?
  2005-05-26 17:17           ` Robert Schwebel
@ 2005-05-26 17:26             ` Steven Scholz
  2005-05-29 21:48               ` Wolfgang Denk
  0 siblings, 1 reply; 12+ messages in thread
From: Steven Scholz @ 2005-05-26 17:26 UTC (permalink / raw)
  To: linux-mtd

Robert Schwebel wrote:

> On Thu, May 26, 2005 at 06:54:26PM +0200, Steven Scholz wrote:
> 
>>You could {g,b}zip it. The many 0xFF should compress quite nice... ;-)
> 
> 
> Yes, but is there a way to decompress gzip/bzip in u-boot? 

Sure.
But maybe not yet as a user command. But the code is there. I use it to 
unzip boot logos at start up.

--
Steven

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Fast rollout process on jffs2?
  2005-05-26 16:46       ` Robert Schwebel
  2005-05-26 16:54         ` Steven Scholz
@ 2005-05-27 12:37         ` David Woodhouse
  2005-05-27 12:53           ` Ian Campbell
  1 sibling, 1 reply; 12+ messages in thread
From: David Woodhouse @ 2005-05-27 12:37 UTC (permalink / raw)
  To: Robert Schwebel; +Cc: linux-mtd

On Thu, 2005-05-26 at 18:46 +0200, Robert Schwebel wrote:
> Hmm, sounds good, but that probably means that the jffs2 images have to
> be the full flash size (which is 32 MB in my case) compared to about 8
> MB at the moment? 

You don't have to pad the image. If you use the '-j' argument to
RedBoot's 'fis create' command, it'll erase the extra space and write
cleanmarkers for you.

-- 
dwmw2

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Fast rollout process on jffs2?
  2005-05-27 12:37         ` David Woodhouse
@ 2005-05-27 12:53           ` Ian Campbell
  2005-05-27 13:07             ` David Woodhouse
  0 siblings, 1 reply; 12+ messages in thread
From: Ian Campbell @ 2005-05-27 12:53 UTC (permalink / raw)
  To: David Woodhouse; +Cc: Robert Schwebel, linux-mtd

On Fri, 2005-05-27 at 13:37 +0100, David Woodhouse wrote:
> On Thu, 2005-05-26 at 18:46 +0200, Robert Schwebel wrote:
> > Hmm, sounds good, but that probably means that the jffs2 images have to
> > be the full flash size (which is 32 MB in my case) compared to about 8
> > MB at the moment? 
> 
> You don't have to pad the image. If you use the '-j' argument to
> RedBoot's 'fis create' command, it'll erase the extra space and write
> cleanmarkers for you.

That doesn't seem to be in upstream CVS, is it very new or unmerged?

Ian.
-- 
Ian Campbell, Senior Design Engineer
                                        Web: http://www.arcom.com
Arcom, Clifton Road,                    Direct: +44 (0)1223 403 465
Cambridge CB1 7EA, United Kingdom       Phone:  +44 (0)1223 411 200

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Fast rollout process on jffs2?
  2005-05-27 12:53           ` Ian Campbell
@ 2005-05-27 13:07             ` David Woodhouse
  0 siblings, 0 replies; 12+ messages in thread
From: David Woodhouse @ 2005-05-27 13:07 UTC (permalink / raw)
  To: Ian Campbell; +Cc: Robert Schwebel, linux-mtd

On Fri, 2005-05-27 at 13:53 +0100, Ian Campbell wrote:
> That doesn't seem to be in upstream CVS, is it very new or unmerged?

Er, it's certainly not new. It must be unmerged. I'm trying to remember
where I was using it now -- perhaps on the Symbol2800 port? That's the
project which funded JFFS2 in the first place.

-- 
dwmw2

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Fast rollout process on jffs2?
  2005-05-26 17:26             ` Steven Scholz
@ 2005-05-29 21:48               ` Wolfgang Denk
  0 siblings, 0 replies; 12+ messages in thread
From: Wolfgang Denk @ 2005-05-29 21:48 UTC (permalink / raw)
  To: Steven Scholz, Robert Schwebel; +Cc: linux-mtd

In message <429606D3.3050704@imc-berlin.de> you wrote:
> 
> >>You could {g,b}zip it. The many 0xFF should compress quite nice... ;-)
> > 
> > Yes, but is there a way to decompress gzip/bzip in u-boot? 
> 
> Sure.
> But maybe not yet as a user command. But the code is there. I use it to 
> unzip boot logos at start up.

Sometimes it helps to read the FAQ:
http://www.denx.de/twiki/bin/view/DULG/HowCanILoadAndUncompressACompressedImage

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
The joys of love made her human and the  agonies  of  love  destroyed
her.
	-- Spock, "Requiem for Methuselah", stardate 5842.8

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2005-05-29 21:49 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-26 15:22 Fast rollout process on jffs2? Robert Schwebel
2005-05-26 15:39 ` David Vrabel
2005-05-26 15:42   ` Steven Scholz
2005-05-26 16:04     ` David Vrabel
2005-05-26 16:46       ` Robert Schwebel
2005-05-26 16:54         ` Steven Scholz
2005-05-26 17:17           ` Robert Schwebel
2005-05-26 17:26             ` Steven Scholz
2005-05-29 21:48               ` Wolfgang Denk
2005-05-27 12:37         ` David Woodhouse
2005-05-27 12:53           ` Ian Campbell
2005-05-27 13:07             ` David Woodhouse

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox