From: Steven Scholz <steven.scholz@imc-berlin.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Extending bootm command.
Date: Mon, 29 Sep 2003 12:26:17 +0200 [thread overview]
Message-ID: <3F7808C9.2020708@imc-berlin.de> (raw)
Hi there,
from time to time it might be necessary to (decompress and) copy some data from
flash to ram.
The configuration data for an Altera ACEX 1K FPGA for instance is about 163KB.
The gzipped file (for a quite complex design) is only 54kB. So instead of
wasting three flash sectors one could store a gzipped and mkimage wrapped
version of the data in flash. If calling mkimage with the type STANDALONE like
[1] proposes one could then use "bootm" to decompress and copy these data to
ram. In order to call "fpga load" afterwards one need the location and the
resulting size of the data. That is why I suggest the following patch:
* Patch by Steven Scholz, 29 Sep 2003:
- A second parameter for bootm overwrites the load address for
"Standalone Application" images.
- bootm sets environment variable "filesize" to the resulting data lenght
for "Standalone Application" images when autostart is set to "no".
Then one could do something like
if bootm $fpgadata $some_free_ram ; then
fpga load 0 $some_free_ram $filesize ;
fi
Cheers,
Steven
[1] https://www.denx.de/twiki/bin/view/DULG/HowCanILoadAndUncompressACompressedImage
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: bootm_ext.patch
Url: http://lists.denx.de/pipermail/u-boot/attachments/20030929/13303943/attachment.txt
next reply other threads:[~2003-09-29 10:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-29 10:26 Steven Scholz [this message]
2003-10-07 8:54 ` [U-Boot-Users] Extending bootm command Steven Scholz
2003-10-07 9:13 ` Wolfgang Denk
2003-10-08 22:52 ` Wolfgang Denk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3F7808C9.2020708@imc-berlin.de \
--to=steven.scholz@imc-berlin.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox