Skip to contentSkip to conversation

Accessing U-Boot ENV variables from Linux

U-Boot-Users Ben Warren 1 participant 1 message Jul 27, 2007 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Ben Warren

author
#1 lore raw

Nethra,

Quoted 7 lines · nethra_gmit at yahoo.co.in

i m not getting 'fw_printenv' after compiling u-boot..

[nethra at localhost u-boot-1.1.2]$ cd tools/env
[nethra at localhost env]$ ls
fw_env.c fw_env.config fw_env.h fw_env_main.c Makefile README

can i know how to use this proprerly..?

A few things:

1. Please don't e-mail me without including the U-boot list unless it's something only I would be interested in, such as cheap Cialis or maybe the chance to help recover millions of dollars from the widow of Saddam Hussein's cousin-in-law.

2. Please don't top post.

That out of the way...

This tool isn't built by default. I've attached a couple of patches that apply cleanly to the latest git tree:

- The first turns on building of the tool.
- The second fixes compile errors and warnings that I came across a few months ago. I expect you'll need it if you're using Linux 2.6. If you're using a 2.4 kernel, I don't know if this is needed or not.

regards,
Ben

-------------- next part --------------
A non-text attachment was scrubbed...
Name: build_fw_printenv.patch
Type: text/x-patch
Size: 363 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20070727/08aabdbf/attachment.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fw_printenv.patch
Type: application/mbox
Size: 7128 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20070727/08aabdbf/attachment-0001.bin