[U-Boot-Users] Accessing U-Boot ENV variables from Linux
Ben Warren
bwarren at qstreams.com
Wed Jul 25 21:05:13 CEST 2007
Raghu,
On Wed, 2007-07-25 at 11:50 -0700, Raghu wrote:
> Hello All,
>
> I have a serial number and a MAC address stored as the
> U-Boot environment variables. A block of NAND flash
> device of size 128K is assigned for persistance.
>
> Is there a way that I can modify or change these
> variables from Linux kernel, OR what would I have to
> do to get this done.
>
> Warm Regards,
> Raghu
There's source code for a Linux user-space utility in /tools/env called
'fw_printenv' that will allow you to access the U-boot environment
through MTD. I use it all the time.
regards,
Ben
More information about the U-Boot
mailing list