linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* RE: Another try at the run-from-Flash issue for MPC8xx/MBX/custom
@ 2000-03-30 14:56 Brown, David (dbrown03)
  2000-03-30 15:24 ` Dan Malek
  0 siblings, 1 reply; 6+ messages in thread
From: Brown, David (dbrown03) @ 2000-03-30 14:56 UTC (permalink / raw)
  To: linuxppc-embedded


I agree, 40 seconds is too long: he must be doing something wrong.
But even 5 seconds is annoyingly long for an embedded system.

I haven't found anything better than LZO for compressing flash.
It is wicked fast, takes very little code, and no dynamic memory for
decompression.
Compressing takes some memory, and can be slow at higher compression levels,
but that happens once on the host so it isn't an issue.

LZO is available under GPL.  Perhaps someone could investigate using this
for compressing the Linux kernel and initrd.  Alas, I don't have time right
now.
--
Dave Brown <dbrown03@harris.com>
Principal Software Engineer, Harris Corporation

http://wildsau.idv.uni-linz.ac.at/mfx/lzo.html

> -----Original Message-----
> From: Dan Malek [mailto:dan@netx4.com]
> Sent: Wednesday, March 29, 2000 8:26 PM
> To: Doug Rogers
> Cc: linuxppc-embedded@lists.linuxppc.org
> Subject: Re: Another try at the run-from-Flash issue for
> MPC8xx/MBX/custom
>
>
>
> Doug Rogers wrote:
>
> > ..... It is simply a matter of size.
>
> So, what methods are you planning to use for storing the applications,
> libraries and other files you need to use and update?
>
> > ....... I've timed the decompression of our smaller test image
> > and it takes over 40 seconds on a 40MHz MBX860 board.
> That's too slow.
>
> You are doing something very wrong.  I have worked on production
> set top boxes that uncompress a kernel and 16 Mbyte ram disk from an
> 8-bit flash rom that are executing in the application in
> under 5 seconds.
> This is a 50 Mhz 860......turn on some caches, align some data, use
> faster memory.....
>
>
> > I was hoping that Linux was to that point, but apparently not. Just
> > having the kernel run from ROM would be helpful for now,
>
> That saves only about 800K or so of memory.  If you are counting bytes
> at that level you are in trouble already.
>
>
> 	-- Dan
>

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread
* Another try at the run-from-Flash issue for MPC8xx/MBX/custom
@ 2000-03-29 21:24 Doug Rogers
  2000-03-30  1:25 ` Dan Malek
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Doug Rogers @ 2000-03-29 21:24 UTC (permalink / raw)
  To: linuxppc-embedded


I, too, would like to run from Flash. The question for me isn't speed,
isn't cost, nor EMI effects. It is simply a matter of size. We have a
very small area in which to squeeze the parts, and the best we could do
is 32M RAM and 16M ROM. Our application code is in the 10M range (text
only, even after chopping over half of it out!), but it is expected to
grow. So for us it's not really a matter of cost or (running) speed,
since the Flash runs fast enough for our purposes.

As another constraint, our card needs to be able to run very soon after
power-up. I've hacked the LynxOS startup monitor to detect either gzip'd
or bzip2'd KDI's. I've timed the decompression of our smaller test image
and it takes over 40 seconds on a 40MHz MBX860 board. That's too slow.
We could live with 20, perhaps, but not much more than that. For now I
boot my images over the network since our MBX board has only 4M Flash.
It's faster than decompressing!

With LynxOS, we're able to keep in Flash both the text sections of the
kernel AND of all binaries on the filesystem. Wow! That allows us to put
only the RAM disk and vector/data/bss sections into RAM. Shweet!

I was hoping that Linux was to that point, but apparently not. Just
having the kernel run from ROM would be helpful for now, so if anyone
out there has done so, I'd be very appreciative of any feedback.

Thanks!

Doug

--
--_._-__-____------_--_-_-_-___-___-____-_--_-___--____-___--_-__--___-_
Doug Rogers, ICI   | The strongest reason for the people to retain the
V:703.893.2007x220 | right to keep and bear arms is, as a last resort,
www.innocon.com    | to protect themselves against tyranny in
___________________| Government. [Thomas Jefferson]


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

end of thread, other threads:[~2000-03-30 20:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-03-30 14:56 Another try at the run-from-Flash issue for MPC8xx/MBX/custom Brown, David (dbrown03)
2000-03-30 15:24 ` Dan Malek
  -- strict thread matches above, loose matches on Subject: below --
2000-03-29 21:24 Doug Rogers
2000-03-30  1:25 ` Dan Malek
2000-03-30  8:51 ` Markus Sundberg
2000-03-30 20:39 ` Richard Hendricks

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).