Bug 1800 - u-boot env missing
Summary: u-boot env missing
Status: RESOLVED FIXED
Alias: None
Product: BSPs
Classification: Build System, Metadata & Runtime
Component: bsps-configuration (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Low enhancement
Target Milestone: 1.2
Assignee: Frans Meulenbroeks
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2011-12-01 02:01 UTC by Frans Meulenbroeks
Modified: 2012-05-15 11:12 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frans Meulenbroeks 2011-12-01 02:01:03 UTC
it would be nice if u-boot also would build the env tools
(fw_printenv, fw_setenv)
oe classic used to do this
Comment 1 Darren Hart 2011-12-08 15:23:54 UTC
Frans, can you prepare a patch series pulling in the features you would like to see from OE?
Comment 2 Frans Meulenbroeks 2011-12-08 23:32:09 UTC
Actually found that the later versions of the u-boot recipe in OE classic also do not contain this functionality any more.
This is due to a change in the build system of u-boot introduced mid 2010.
As I needed it I fixed this locally. 
I'll try to submit a fix in the near future, but at the moment I am heavily loaded due to end-of-year project delivery things etc, so it may take some time.
Comment 3 Frans Meulenbroeks 2011-12-27 12:38:27 UTC
I've just submitted a patch to the oe core mailing list.
As this is authored and tested under oe classic, I suggest it to be reviewed and tested carefully.

At least it shows the idea.
Note that tools and env need to have HOSTCC redefined.
(see also http://old.nabble.com/-U-Boot---PATCH-1-4--tools%3A-enable-img2srec-for-%22all%22-target-td29440508.html#a29440510)
Comment 4 Frans Meulenbroeks 2011-12-27 12:39:19 UTC
oops, forgot to mention:

an alternative scenario would be to make this a separate recipe (like the u-boot-mkimage ones). I'm leaving that up to the maintainer to decide.
Comment 5 Darren Hart 2012-05-01 15:40:28 UTC
Frans, is this now resolved?
Comment 6 Darren Hart 2012-05-01 15:40:48 UTC
.
Comment 7 Frans Meulenbroeks 2012-05-15 11:12:55 UTC
I verified this in 1.2.

A new package u-boot-fw-utils has been added to recipes-bsp/u-boot.
This provides the requested functionality
I have build the package and it builds fine for my board.

Only minor remark I can make is that recipes-bsp/u-boot contains recipes for u-boot 2011.03 and 2011.06. For u-boot-fw-utils only a 2011.06 version exist.
(Then again the data format has not changed so the 2011.06 package will work without problems on a 2011.03 u-boot environment).