* [U-Boot] How to handle binary data file in u-boot
@ 2010-07-29 3:38 Lv Terry-R65388
2010-07-29 7:45 ` Reinhard Meyer
2010-07-30 7:44 ` Stefano Babic
0 siblings, 2 replies; 4+ messages in thread
From: Lv Terry-R65388 @ 2010-07-29 3:38 UTC (permalink / raw)
To: u-boot
Hi Experts,
We have implemented an display utilty in u-boot and this utlity
needs a waveform file.
We are planning to release this display utility, but we don't know
how to do with the waveform file. The file is as large as 800KB.
Now we just put the waveform file on mmc and read it out in boot.
Is there any better way to deliver this binary waveform file as part
of the bootloader?
How is this case typically handled?
Thanks in advance.
Yours
Terry
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] How to handle binary data file in u-boot
2010-07-29 3:38 [U-Boot] How to handle binary data file in u-boot Lv Terry-R65388
@ 2010-07-29 7:45 ` Reinhard Meyer
2010-07-30 4:11 ` Lv Terry-R65388
2010-07-30 7:44 ` Stefano Babic
1 sibling, 1 reply; 4+ messages in thread
From: Reinhard Meyer @ 2010-07-29 7:45 UTC (permalink / raw)
To: u-boot
Lv Terry-R65388 wrote:
> Hi Experts,
>
> We have implemented an display utilty in u-boot and this utlity
> needs a waveform file.
>
> We are planning to release this display utility, but we don't know
> how to do with the waveform file. The file is as large as 800KB.
>
Files that large are usually not embedded within the u-boot image.
>
> Now we just put the waveform file on mmc and read it out in boot.
>
It depends where your u-boot image is. If its in NOR flash, for example,
one would add a partition of suitable size to put the data in.
If the external location can be flexibly defined (filename for SD/MMC or
location for others) it is great.
>
> Is there any better way to deliver this binary waveform file as part
> of the bootloader?
>
As part of the bootloader (image) you'd need to convert the bytestream
into a lengthy initialized array and link it into the image. I'm not
sure the toolchain can handle that and I am sure that method is not
welcome in the repository (800kb binary --> several MB c-source)...
> How is this case typically handled?
>
Have a look at the code to handle FPGA images, you can probably even
reuse or share code with there.
Reinhard
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] How to handle binary data file in u-boot
2010-07-29 7:45 ` Reinhard Meyer
@ 2010-07-30 4:11 ` Lv Terry-R65388
0 siblings, 0 replies; 4+ messages in thread
From: Lv Terry-R65388 @ 2010-07-30 4:11 UTC (permalink / raw)
To: u-boot
Hi Reinhard,
Thank you very much.
:)
Yours
Terry
> -----Original Message-----
> From: Reinhard Meyer [mailto:reinhard.meyer at emk-elektronik.de]
> Sent: 2010?7?29? 15:45
> To: Lv Terry-R65388
> Cc: u-boot at lists.denx.de
> Subject: Re: [U-Boot] How to handle binary data file in u-boot
>
> Lv Terry-R65388 wrote:
> > Hi Experts,
> >
> > We have implemented an display utilty in u-boot and this utlity
> > needs a waveform file.
> >
> > We are planning to release this display utility, but we
> don't know
> > how to do with the waveform file. The file is as large as 800KB.
> >
> Files that large are usually not embedded within the u-boot image.
> >
> > Now we just put the waveform file on mmc and read it
> out in boot.
> >
> It depends where your u-boot image is. If its in NOR flash,
> for example, one would add a partition of suitable size to
> put the data in.
> If the external location can be flexibly defined (filename
> for SD/MMC or location for others) it is great.
> >
> > Is there any better way to deliver this binary waveform file as
> > part of the bootloader?
> >
> As part of the bootloader (image) you'd need to convert the
> bytestream into a lengthy initialized array and link it into
> the image. I'm not sure the toolchain can handle that and I
> am sure that method is not welcome in the repository (800kb
> binary --> several MB c-source)...
> > How is this case typically handled?
> >
> Have a look at the code to handle FPGA images, you can
> probably even reuse or share code with there.
>
> Reinhard
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] How to handle binary data file in u-boot
2010-07-29 3:38 [U-Boot] How to handle binary data file in u-boot Lv Terry-R65388
2010-07-29 7:45 ` Reinhard Meyer
@ 2010-07-30 7:44 ` Stefano Babic
1 sibling, 0 replies; 4+ messages in thread
From: Stefano Babic @ 2010-07-30 7:44 UTC (permalink / raw)
To: u-boot
Lv Terry-R65388 wrote:
> Hi Experts,
>
> We have implemented an display utilty in u-boot and this utlity
> needs a waveform file.
>
> We are planning to release this display utility, but we don't know
> how to do with the waveform file. The file is as large as 800KB.
>
> Now we just put the waveform file on mmc and read it out in boot.
>
> Is there any better way to deliver this binary waveform file as part
> of the bootloader?
> How is this case typically handled?
Because the file is raw data, it is normally not linked to u-boot code.
I mean, you can convert the data in a C-array and link it to the
bootloader, but is it worth ?
The same issue is for images used as splashscreen in u-boot, in some
case quite huge (but not so big as yours). They are often saved in
different areas (or after the bootloader), but not linked together.
You could easier concatenate u-boot and your waveform data in a single
file using "cat", padding bytes if you need to reserve some areas, and
probably you reach easier the same goal, if you want only to deliver a
single file containing both bootloader and data.
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-07-30 7:44 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-29 3:38 [U-Boot] How to handle binary data file in u-boot Lv Terry-R65388
2010-07-29 7:45 ` Reinhard Meyer
2010-07-30 4:11 ` Lv Terry-R65388
2010-07-30 7:44 ` Stefano Babic
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox