[U-Boot] [PATCH] tools/envcrc: add --binary option to export embedded env

Wolfgang Denk wd at denx.de
Tue Apr 28 15:45:38 CEST 2009


Dear Mike Frysinger,

In message <200904280854.53669.vapier at gentoo.org> you wrote:
>
> > You mean in the code? Well, if you're using a separate section for it
> > (like the ppcenv section) this should be  straightforward  using  the
> > `=FILLEXP' output section attribute for the linker.
>
> hmm, a quick grep shows that almost no one has a dedicated section.  the 

Everybody who uses CONFIG_SYS_USE_PPCENV or CONFIG_NAND_U_BOOT has:

-> find * -name 'u-boot*.lds' | xargs fgrep -l .ppcenv | wc -l
50


> majority of people (Blackfin boards included) insert it into the middle of
> their .text section.  this is the use case i was thinking of when i said "no 
> way" because i hadnt seen anyone using a dedicated section before.

But that would be easy to change - see how it's done on ppc.

> if you want the "--binary" thing, i can post a new patch.  otherwise yes, i  
> dont see any changes to be made for now.

OK.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
While money can't buy happiness, it certainly lets  you  choose  your
own form of misery.


More information about the U-Boot mailing list