|
From: | Todd Sampson |
Subject: | Re: [Ltib] u-boot Default Environment Variables Location |
Date: | Thu, 23 Aug 2012 15:35:23 -0400 |
In your board-specific configs header file (include/configs/your-header.h) you will have a section something like this:
/*
* Environment Configuration
*/
#define CONFIG_ENV_OVERWRITE
#define CONFIG_BAUDRATE 115200
#define CONFIG_LOADADDR 800000 /* default location for tftp and bootm */
#define CONFIG_BOOTDELAY 3 /* -1 disables auto-boot */
#undef CONFIG_BOOTARGS /* the boot command will set bootargs */
#define CONFIG_EXTRA_ENV_SETTINGS \
"autoload=n\0" \
"consoledev=ttyS0\0" \
""
#define CONFIG_BOOTCOMMAND "run ramboot"
Some of the commands are set with CONFIG_XXX macros (e.g. CONFIG_BOOTCOMMAND), the rest go in CONFIG_EXTRA_ENV_SETTINGS.
Douglas Peterson
_______________________________________________
-----Original Message-----
From: ltib-bounces+douglas.peterson=address@hidden [mailto:ltib-bounces+douglas.peterson=address@hidden] On Behalf Of Mike Goins
Sent: Wednesday, August 22, 2012 6:34 AM
To: ltib
Cc: Todd Sampson
Subject: Re: [Ltib] u-boot Default Environment Variables Location
On Wed, Aug 22, 2012 at 9:16 AM, Todd Sampson <address@hidden> wrote:
> Each time I configure a target, I have to go into u-boot and use 'setenv' to
> change some environment variables.
>
> Where are the default environment variables for u-boot stored in the LTIB
> world? I want to edit these so each time I flash a target, the u-boot
> environment variables are correct.
The uboot parameters are stored in flash on your target.
You want printenv and savenv:
http://www.denx.de/wiki/DULG/UBootCmdGroupEnvironment
> Thanks!
>
LTIB home page: http://ltib.org
Ltib mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/ltib
[Prev in Thread] | Current Thread | [Next in Thread] |