ltib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ltib] u-boot Default Environment Variables Location


From: Todd Sampson
Subject: Re: [Ltib] u-boot Default Environment Variables Location
Date: Thu, 23 Aug 2012 15:35:23 -0400

Perfect.  It's working.  Now I can Flash and ship with no extra typing.

Thanks all for your kind help.
Todd

On Thu, Aug 23, 2012 at 1:26 PM, Douglas Peterson <address@hidden> wrote:
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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]