public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] Extending bootm command.
@ 2003-09-29 10:26 Steven Scholz
  2003-10-07  8:54 ` Steven Scholz
  2003-10-08 22:52 ` Wolfgang Denk
  0 siblings, 2 replies; 4+ messages in thread
From: Steven Scholz @ 2003-09-29 10:26 UTC (permalink / raw)
  To: u-boot

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 

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

* [U-Boot-Users] Extending bootm command.
  2003-09-29 10:26 [U-Boot-Users] Extending bootm command Steven Scholz
@ 2003-10-07  8:54 ` Steven Scholz
  2003-10-07  9:13   ` Wolfgang Denk
  2003-10-08 22:52 ` Wolfgang Denk
  1 sibling, 1 reply; 4+ messages in thread
From: Steven Scholz @ 2003-10-07  8:54 UTC (permalink / raw)
  To: u-boot

Steven Scholz wrote:

 > ...
 > from time to time it might be necessary to (decompress and) copy some
 > data from
 > flash to ram.
 > ...
 >
 > * 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

Any comments on that?

Thanks,

Steven

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

* [U-Boot-Users] Extending bootm command.
  2003-10-07  8:54 ` Steven Scholz
@ 2003-10-07  9:13   ` Wolfgang Denk
  0 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Denk @ 2003-10-07  9:13 UTC (permalink / raw)
  To: u-boot

Dear Steven,

in message <3F827F5E.6060609@imc-berlin.de> you wrote:
> 
>  > Then one could do something like
>  >
>  > if bootm $fpgadata $some_free_ram ; then
>  >     fpga load 0 $some_free_ram $filesize ;
>  > fi
> 
> Any comments on that?

I think Detlev already ACKed that this is a good thing to do.

It's in "The Queue" - sorry, I'm just back from vacation and there is
a _huge_ backlog.

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
That Microsoft, the Trabant of the operating  system  world,  may  be
glancing  over the Berlin Wall at the Audis and BMWs and Mercedes. In
their own universe Trabants and Ladas were mainstream too...
                                                   -- Evan Leibovitch

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

* [U-Boot-Users] Extending bootm command.
  2003-09-29 10:26 [U-Boot-Users] Extending bootm command Steven Scholz
  2003-10-07  8:54 ` Steven Scholz
@ 2003-10-08 22:52 ` Wolfgang Denk
  1 sibling, 0 replies; 4+ messages in thread
From: Wolfgang Denk @ 2003-10-08 22:52 UTC (permalink / raw)
  To: u-boot

In message <3F7808C9.2020708@imc-berlin.de> you wrote:
> 
> * 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".

Thanks, added. Will show up on CVS soon.

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
Virtue is a relative term.
	-- Spock, "Friday's Child", stardate 3499.1

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

end of thread, other threads:[~2003-10-08 22:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-29 10:26 [U-Boot-Users] Extending bootm command Steven Scholz
2003-10-07  8:54 ` Steven Scholz
2003-10-07  9:13   ` Wolfgang Denk
2003-10-08 22:52 ` Wolfgang Denk

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