2 * (C) Copyright 2000-2010
3 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5 * (C) Copyright 2001 Sysgo Real-Time Solutions, GmbH <www.elinos.com>
6 * Andreas Heppel <aheppel@sysgo.de>
8 * See file CREDITS for list of people who contributed to this
11 * This program is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License as
13 * published by the Free Software Foundation; either version 2 of
14 * the License, or (at your option) any later version.
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
27 #ifdef DEFAULT_ENV_INSTANCE_EMBEDDED
28 env_t environment __PPCENV__ = {
29 ENV_CRC, /* CRC Sum */
30 #ifdef CONFIG_SYS_REDUNDAND_ENVIRONMENT
34 #elif defined(DEFAULT_ENV_INSTANCE_STATIC)
35 static char default_environment[] = {
37 const uchar default_environment[] = {
39 #ifdef CONFIG_BOOTARGS
40 "bootargs=" CONFIG_BOOTARGS "\0"
42 #ifdef CONFIG_BOOTCOMMAND
43 "bootcmd=" CONFIG_BOOTCOMMAND "\0"
45 #ifdef CONFIG_RAMBOOTCOMMAND
46 "ramboot=" CONFIG_RAMBOOTCOMMAND "\0"
48 #ifdef CONFIG_NFSBOOTCOMMAND
49 "nfsboot=" CONFIG_NFSBOOTCOMMAND "\0"
51 #if defined(CONFIG_BOOTDELAY) && (CONFIG_BOOTDELAY >= 0)
52 "bootdelay=" __stringify(CONFIG_BOOTDELAY) "\0"
54 #if defined(CONFIG_BAUDRATE) && (CONFIG_BAUDRATE >= 0)
55 "baudrate=" __stringify(CONFIG_BAUDRATE) "\0"
57 #ifdef CONFIG_LOADS_ECHO
58 "loads_echo=" __stringify(CONFIG_LOADS_ECHO) "\0"
61 "ethaddr=" __stringify(CONFIG_ETHADDR) "\0"
63 #ifdef CONFIG_ETH1ADDR
64 "eth1addr=" __stringify(CONFIG_ETH1ADDR) "\0"
66 #ifdef CONFIG_ETH2ADDR
67 "eth2addr=" __stringify(CONFIG_ETH2ADDR) "\0"
69 #ifdef CONFIG_ETH3ADDR
70 "eth3addr=" __stringify(CONFIG_ETH3ADDR) "\0"
72 #ifdef CONFIG_ETH4ADDR
73 "eth4addr=" __stringify(CONFIG_ETH4ADDR) "\0"
75 #ifdef CONFIG_ETH5ADDR
76 "eth5addr=" __stringify(CONFIG_ETH5ADDR) "\0"
78 #ifdef CONFIG_ETHPRIME
79 "ethprime=" CONFIG_ETHPRIME "\0"
82 "ipaddr=" __stringify(CONFIG_IPADDR) "\0"
84 #ifdef CONFIG_SERVERIP
85 "serverip=" __stringify(CONFIG_SERVERIP) "\0"
87 #ifdef CONFIG_SYS_AUTOLOAD
88 "autoload=" CONFIG_SYS_AUTOLOAD "\0"
91 "preboot=" CONFIG_PREBOOT "\0"
93 #ifdef CONFIG_ROOTPATH
94 "rootpath=" CONFIG_ROOTPATH "\0"
96 #ifdef CONFIG_GATEWAYIP
97 "gatewayip=" __stringify(CONFIG_GATEWAYIP) "\0"
100 "netmask=" __stringify(CONFIG_NETMASK) "\0"
102 #ifdef CONFIG_HOSTNAME
103 "hostname=" __stringify(CONFIG_HOSTNAME) "\0"
105 #ifdef CONFIG_BOOTFILE
106 "bootfile=" CONFIG_BOOTFILE "\0"
108 #ifdef CONFIG_LOADADDR
109 "loadaddr=" __stringify(CONFIG_LOADADDR) "\0"
111 #ifdef CONFIG_CLOCKS_IN_MHZ
114 #if defined(CONFIG_PCI_BOOTDELAY) && (CONFIG_PCI_BOOTDELAY > 0)
115 "pcidelay=" __stringify(CONFIG_PCI_BOOTDELAY)"\0"
117 #ifdef CONFIG_ENV_VARS_UBOOT_CONFIG
118 "arch=" CONFIG_SYS_ARCH "\0"
119 "cpu=" CONFIG_SYS_CPU "\0"
120 "board=" CONFIG_SYS_BOARD "\0"
121 "board_name=" CONFIG_SYS_BOARD "\0"
122 #ifdef CONFIG_SYS_VENDOR
123 "vendor=" CONFIG_SYS_VENDOR "\0"
125 #ifdef CONFIG_SYS_SOC
126 "soc=" CONFIG_SYS_SOC "\0"
129 #ifdef CONFIG_EXTRA_ENV_SETTINGS
130 CONFIG_EXTRA_ENV_SETTINGS
133 #ifdef DEFAULT_ENV_INSTANCE_EMBEDDED