Personal tools

Log in

Changes

From IGEP - ISEE Wiki

Jump to: navigation, search

How to modify the uboot environment from userspace

152 bytes removed, 11:22, 31 December 2013
m
References
== Overview ==
This How-To is meant to be a starting point for people to learn how access to the uboot environment from userspace.
This is my first wiki page so please be benevolent with the formatting :-)
== Tools needed ==
In order to modify the uboot environment variables from userspace we will need a program called fw_setenv, we can compile this program ourselves from the u-boot sources, follow the instructions in this wiki page and then proceed to compile with (don't modify the .h file as it says in the tools/env/README file):
#Flash sector size ---> 40.000
#Number of sectors (ignored in NOR)----> nothing
 
Pretty easy right? wrong!!! The right values are:
 
#MTD device name ----> /dev/mtd2
== Feedback and Contributing ==
Creating articles in the wiki is a collaborative process, at any point, if you see a mistake you can contribute to this article.
There is a set of [[Wiki contribution guidelines]].
== References == *http://www.igep.es/index.php?option=com_kunena&Itemid=97&func=view&catid=13&id=1666&limit=6&limitstart=6#2161 [[Category:How_to_forgeBoot loaders|U-Boot]]
4,199
edits