* RedBoot: Auto-detection of gzipped/non-gzipped images
@ 2007-11-27 9:57 René Nielsen
2007-11-30 9:05 ` René Nielsen
0 siblings, 1 reply; 2+ messages in thread
From: René Nielsen @ 2007-11-27 9:57 UTC (permalink / raw)
To: ecos-devel
Hi folks,
This suggestion is meant for RedBoot's flash.c:
In our product, we are soon running out of flash space, which has forced us
to start using gzipped images. This means that we've enabled the
CYGPRI_REDBOOT_ZLIB_FLASH and started using the "-d" option in the boot
script for unpacking the images:
fis load -d my_image
This works fine.
However, we need to be backwards compatible, so that old, non-gzipped images
can be loaded without passing it through the uncompressor. Loading such an
image would require a script change so that the "-d" option was ommited:
fis load my_image
In order to avoid this script change, I've added an auto-detect mechanism,
where - when enabled - the image will first be passed through the
uncompressor, and only if that one fails, it is one-to-one copied from Flash
to RAM. In this way, both types of images will be able to load correctly
using:
fis load -a my_image
I've attached a patch. Please have a look and let me know what you think.
http://www.nabble.com/file/p13967870/diff.patch diff.patch
Thx.
René Schipp von Branitz Nielsen
Vitesse Semiconductors
--
View this message in context: http://www.nabble.com/RedBoot%3A-Auto-detection-of-gzipped-non-gzipped-images-tf4880764.html#a13967870
Sent from the Sourceware - ecos-devel mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: RedBoot: Auto-detection of gzipped/non-gzipped images
2007-11-27 9:57 RedBoot: Auto-detection of gzipped/non-gzipped images René Nielsen
@ 2007-11-30 9:05 ` René Nielsen
0 siblings, 0 replies; 2+ messages in thread
From: René Nielsen @ 2007-11-30 9:05 UTC (permalink / raw)
To: ecos-devel
Hello again,
I posted a bug regarding "fis load -d" on ecos-discuss the day before
yesterday (see e.g.
http://www.nabble.com/forum/ViewPost.jtp?post=13993780&framed=y).
Gary Thomas asked me to send a patch for that, so I have merged the "fis
load -d" bug patch with the zip-image auto-detect patch, and attached it to
this post.
Also, I've snail-mailed an eCos Copyright Assignment as suggested by Gary in
the aforementioned mail.
/René
http://www.nabble.com/file/p14042399/diff2.patch diff2.patch
--
View this message in context: http://www.nabble.com/RedBoot%3A-Auto-detection-of-gzipped-non-gzipped-images-tf4880764.html#a14042399
Sent from the Sourceware - ecos-devel mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-11-30 9:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-27 9:57 RedBoot: Auto-detection of gzipped/non-gzipped images René Nielsen
2007-11-30 9:05 ` René Nielsen
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 read-only IMAP folder(s) and NNTP newsgroup(s).