1*4882a593Smuzhiyun /* 2*4882a593Smuzhiyun * (C) Copyright 2002-2008 3*4882a593Smuzhiyun * Wolfgang Denk, DENX Software Engineering, wd@denx.de. 4*4882a593Smuzhiyun * 5*4882a593Smuzhiyun * SPDX-License-Identifier: GPL-2.0+ 6*4882a593Smuzhiyun */ 7*4882a593Smuzhiyun 8*4882a593Smuzhiyun /* Pull in the current config to define the default environment */ 9*4882a593Smuzhiyun #include <linux/kconfig.h> 10*4882a593Smuzhiyun 11*4882a593Smuzhiyun #ifndef __ASSEMBLY__ 12*4882a593Smuzhiyun #define __ASSEMBLY__ /* get only #defines from config.h */ 13*4882a593Smuzhiyun #include <config.h> 14*4882a593Smuzhiyun #undef __ASSEMBLY__ 15*4882a593Smuzhiyun #else 16*4882a593Smuzhiyun #include <config.h> 17*4882a593Smuzhiyun #endif 18*4882a593Smuzhiyun 19*4882a593Smuzhiyun /* 20*4882a593Smuzhiyun * To build the utility with the static configuration 21*4882a593Smuzhiyun * comment out the next line. 22*4882a593Smuzhiyun * See included "fw_env.config" sample file 23*4882a593Smuzhiyun * for notes on configuration. 24*4882a593Smuzhiyun */ 25*4882a593Smuzhiyun #define CONFIG_FILE "/etc/fw_env.config" 26*4882a593Smuzhiyun 27*4882a593Smuzhiyun #ifndef CONFIG_FILE 28*4882a593Smuzhiyun #define HAVE_REDUND /* For systems with 2 env sectors */ 29*4882a593Smuzhiyun #define DEVICE1_NAME "/dev/mtd1" 30*4882a593Smuzhiyun #define DEVICE2_NAME "/dev/mtd2" 31*4882a593Smuzhiyun #define DEVICE1_OFFSET 0x0000 32*4882a593Smuzhiyun #define ENV1_SIZE 0x4000 33*4882a593Smuzhiyun #define DEVICE1_ESIZE 0x4000 34*4882a593Smuzhiyun #define DEVICE1_ENVSECTORS 2 35*4882a593Smuzhiyun #define DEVICE2_OFFSET 0x0000 36*4882a593Smuzhiyun #define ENV2_SIZE 0x4000 37*4882a593Smuzhiyun #define DEVICE2_ESIZE 0x4000 38*4882a593Smuzhiyun #define DEVICE2_ENVSECTORS 2 39*4882a593Smuzhiyun #endif 40*4882a593Smuzhiyun 41*4882a593Smuzhiyun #ifndef CONFIG_BAUDRATE 42*4882a593Smuzhiyun #define CONFIG_BAUDRATE 115200 43*4882a593Smuzhiyun #endif 44*4882a593Smuzhiyun 45*4882a593Smuzhiyun #ifndef CONFIG_BOOTDELAY 46*4882a593Smuzhiyun #define CONFIG_BOOTDELAY 5 /* autoboot after 5 seconds */ 47*4882a593Smuzhiyun #endif 48*4882a593Smuzhiyun 49*4882a593Smuzhiyun #ifndef CONFIG_BOOTCOMMAND 50*4882a593Smuzhiyun #define CONFIG_BOOTCOMMAND \ 51*4882a593Smuzhiyun "bootp; " \ 52*4882a593Smuzhiyun "setenv bootargs root=/dev/nfs nfsroot=${serverip}:${rootpath} "\ 53*4882a593Smuzhiyun "ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off; "\ 54*4882a593Smuzhiyun "bootm" 55*4882a593Smuzhiyun #endif 56