Commit a417ab0e authored by Alessandro Rubini's avatar Alessandro Rubini

barebox patches and build: copy over config, don't add as patches

This patch has no functional change, it only changes the procedure for
easier modification of configuration items.
parent 3d4f0f1a
......@@ -23,14 +23,16 @@ dirname="barebox-2012.05.0"
rm -rf $dirname
tar xjf ${WRS_DOWNLOAD_DIR}/$tarname || wrs_die "untar $tarname"
cd $dirname
patchdir="$WRS_BASE_DIR/../patches/barebox/"
wrs_echo "Patching Barebox"
for n in $WRS_BASE_DIR/../patches/barebox/*patch; do
for n in $patchdir/*patch; do
# the shell passes the "*" over if no matches are there, so check
if test -f "$n"; then
patch -p1 < $n || wrs_die "Apply $n"
fi
done
cp "$patchdir/wrs3_defconfig" arch/arm/configs
cp -r $patchdir/env/* arch/arm/boards/pm9g45/env
wrs_echo "Building Barebox"
export ARCH=arm
......
......@@ -956,13 +956,12 @@ the set is made up of the following ones:
@smallexample
0001-sam945-include-mtd-nand.h-in-device-file.patch
0002-arm-config-added-wrs3_defconfig-and-fixed-default-at.patch
0003-nand-wrs-it-s-16-bits-not-8.patch
0002-arm-change-prompt-for-pm9263-wrs-piggy-backs-on-that.patch
0003-nand-wrs-our-nand-is-16-bit-connected-fix-accordingl.patch
0004-add-DHCP-retries-by-tom.patch
0005-gpio-add-function-to-check-them.patch
0006-startup-load-default-environment-when-loading-env-fa.patch
0007-nand-Fix-wrongly-removed-line-for-16bits-NAND.patch
0008-wrs-init-config-script-with-menu-support-v3.2.patch
0007-wrs-on-pm9g45-change-nand-setup.patch
@end smallexample
If you build using a local @i{git} repository, we suggest to use
......
From e3ea3052ee7cd6ad45e3456a05e9bbf124c226cb Mon Sep 17 00:00:00 2001
From ab00d84a5a40103540929e0f568936e732de1561 Mon Sep 17 00:00:00 2001
From: Alessandro Rubini <rubini@gnudd.com>
Date: Fri, 16 Sep 2011 01:12:15 +0200
Subject: [PATCH 1/8] sam945: include mtd/nand.h in device file
Subject: [PATCH 1/7] sam945: include mtd/nand.h in device file
---
arch/arm/mach-at91/at91sam9g45_devices.c | 1 +
......
From 1346e9eb583d9e986aaed7827c9808e755f5f9b9 Mon Sep 17 00:00:00 2001
From: Alessandro Rubini <rubini@gnudd.com>
Date: Thu, 15 Sep 2011 23:53:57 +0200
Subject: [PATCH 2/7] arm: change prompt for pm9263 (wrs piggy-backs on that
code)
---
arch/arm/mach-at91/Kconfig | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/arm/mach-at91/Kconfig b/arch/arm/mach-at91/Kconfig
index 1bec3e5..85becd0 100644
--- a/arch/arm/mach-at91/Kconfig
+++ b/arch/arm/mach-at91/Kconfig
@@ -20,7 +20,7 @@ config BOARDINFO
default "Calao USB-A9G20" if MACH_USB_A9G20
default "Ronetix PM9261" if MACH_PM9261
default "Ronetix PM9263" if MACH_PM9263
- default "Ronetix PM9G45" if MACH_PM9G45
+ default "CERN White Rabbit Switch V3" if MACH_PM9G45
default "Aizo dSS11" if MACH_DSS11
default "Calao TNY-A9260" if MACH_TNY_A9260
default "Calao TNY-A9263" if MACH_TNY_A9263
--
1.7.7.2
From a273273231f1544b8b9a01f5a27293b849c641e7 Mon Sep 17 00:00:00 2001
From: Alessandro Rubini <rubini@gnudd.com>
Date: Thu, 15 Sep 2011 23:53:57 +0200
Subject: [PATCH 2/8] arm config: added wrs3_defconfig and fixed default
at91/Kconfig
---
arch/arm/configs/wrs3_defconfig | 305 +++++++++++++++++++++++++++++++++++++++
arch/arm/mach-at91/Kconfig | 2 +-
2 files changed, 306 insertions(+), 1 deletions(-)
create mode 100644 arch/arm/configs/wrs3_defconfig
diff --git a/arch/arm/configs/wrs3_defconfig b/arch/arm/configs/wrs3_defconfig
new file mode 100644
index 0000000..c289768
--- /dev/null
+++ b/arch/arm/configs/wrs3_defconfig
@@ -0,0 +1,305 @@
+#
+# Automatically generated make config: don't edit
+# Linux/arm 2011.09.0 Barebox Configuration
+# Tue Jan 24 21:02:43 2012
+#
+# CONFIG_BOARD_LINKER_SCRIPT is not set
+CONFIG_GENERIC_LINKER_SCRIPT=y
+CONFIG_ARM=y
+CONFIG_ARM_LINUX=y
+
+#
+# System Type
+#
+CONFIG_ARCH_AT91=y
+# CONFIG_ARCH_EP93XX is not set
+# CONFIG_ARCH_IMX is not set
+# CONFIG_ARCH_MXS is not set
+# CONFIG_ARCH_NETX is not set
+# CONFIG_ARCH_NOMADIK is not set
+# CONFIG_ARCH_OMAP is not set
+# CONFIG_ARCH_S3C24xx is not set
+# CONFIG_ARCH_VERSATILE is not set
+
+#
+# Processor Type
+#
+CONFIG_CPU_32=y
+CONFIG_CPU_ARM926T=y
+CONFIG_CPU_32v5=y
+
+#
+# processor features
+#
+# CONFIG_BOOT_ENDIANNESS_SWITCH is not set
+CONFIG_ARCH_TEXT_BASE=0x73f00000
+CONFIG_BOARDINFO="CERN White Rabbit Switch V3"
+
+#
+# Atmel AT91 System-on-Chip
+#
+# CONFIG_ARCH_AT91RM9200 is not set
+# CONFIG_ARCH_AT91SAM9260 is not set
+# CONFIG_ARCH_AT91SAM9261 is not set
+# CONFIG_ARCH_AT91SAM9263 is not set
+# CONFIG_ARCH_AT91SAM9G10 is not set
+# CONFIG_ARCH_AT91SAM9G20 is not set
+CONFIG_ARCH_AT91SAM9G45=y
+# CONFIG_MACH_AT91SAM9M10G45EK is not set
+CONFIG_MACH_PM9G45=y
+
+#
+# AT91 Board Options
+#
+# CONFIG_AEABI is not set
+
+#
+# Arm specific settings
+#
+CONFIG_CMD_ARM_CPUINFO=y
+CONFIG_ARM_OPTIMZED_STRING_FUNCTIONS=y
+CONFIG_ARM_EXCEPTIONS=y
+CONFIG_DEFCONFIG_LIST="$ARCH_DEFCONFIG"
+CONFIG_GREGORIAN_CALENDER=y
+CONFIG_HAS_KALLSYMS=y
+CONFIG_HAS_MODULES=y
+CONFIG_CMD_MEMORY=y
+CONFIG_ENV_HANDLING=y
+CONFIG_GENERIC_GPIO=y
+
+#
+# General Settings
+#
+CONFIG_LOCALVERSION_AUTO=y
+CONFIG_ENVIRONMENT_VARIABLES=y
+
+#
+# memory layout
+#
+# CONFIG_MMU is not set
+CONFIG_HAVE_CONFIGURABLE_TEXT_BASE=y
+CONFIG_TEXT_BASE=0x73f00000
+CONFIG_HAVE_CONFIGURABLE_MEMORY_LAYOUT=y
+CONFIG_MEMORY_LAYOUT_DEFAULT=y
+# CONFIG_MEMORY_LAYOUT_FIXED is not set
+CONFIG_STACK_SIZE=0x8000
+CONFIG_MALLOC_SIZE=0x400000
+# CONFIG_BROKEN is not set
+# CONFIG_EXPERIMENTAL is not set
+CONFIG_MALLOC_DLMALLOC=y
+# CONFIG_KALLSYMS is not set
+CONFIG_PROMPT="WRS-3> "
+CONFIG_BAUDRATE=115200
+CONFIG_LONGHELP=y
+CONFIG_CBSIZE=1024
+CONFIG_MAXARGS=16
+CONFIG_SHELL_HUSH=y
+# CONFIG_SHELL_SIMPLE is not set
+CONFIG_GLOB=y
+CONFIG_PROMPT_HUSH_PS2="y"
+CONFIG_HUSH_FANCY_PROMPT=y
+CONFIG_HUSH_GETOPT=y
+CONFIG_CMDLINE_EDITING=y
+CONFIG_AUTO_COMPLETE=y
+CONFIG_MENU=y
+CONFIG_PASSWORD=y
+# CONFIG_PASSWD_SUM_MD5 is not set
+CONFIG_PASSWD_SUM_SHA1=y
+# CONFIG_PASSWD_SUM_SHA256 is not set
+CONFIG_DYNAMIC_CRC_TABLE=y
+CONFIG_ERRNO_MESSAGES=y
+CONFIG_TIMESTAMP=y
+CONFIG_CONSOLE_FULL=y
+CONFIG_CONSOLE_ACTIVATE_FIRST=y
+# CONFIG_OF_FLAT_TREE is not set
+CONFIG_PARTITION=y
+CONFIG_DEFAULT_ENVIRONMENT=y
+CONFIG_DEFAULT_ENVIRONMENT_GENERIC=y
+CONFIG_DEFAULT_ENVIRONMENT_PATH="arch/arm/boards/pm9g45/env"
+# CONFIG_POLLER is not set
+
+#
+# Debugging
+#
+CONFIG_DEBUG_INFO=y
+CONFIG_ENABLE_FLASH_NOISE=y
+CONFIG_ENABLE_PARTITION_NOISE=y
+CONFIG_ENABLE_DEVICE_NOISE=y
+CONFIG_COMMAND_SUPPORT=y
+
+#
+# commands
+#
+
+#
+# scripting
+#
+CONFIG_CMD_EDIT=y
+CONFIG_CMD_SLEEP=y
+CONFIG_CMD_SAVEENV=y
+CONFIG_CMD_LOADENV=y
+CONFIG_CMD_EXPORT=y
+CONFIG_CMD_PRINTENV=y
+CONFIG_CMD_READLINE=y
+CONFIG_CMD_TRUE=y
+CONFIG_CMD_FALSE=y
+CONFIG_CMD_MENU=y
+CONFIG_CMD_MENU_MANAGEMENT=y
+CONFIG_CMD_LOGIN=y
+CONFIG_CMD_PASSWD=y
+CONFIG_PASSWD_MODE_HIDE=y
+# CONFIG_PASSWD_MODE_STAR is not set
+# CONFIG_PASSWD_MODE_CLEAR is not set
+# CONFIG_CMD_TIME is not set
+
+#
+# file commands
+#
+CONFIG_CMD_LS=y
+CONFIG_CMD_RM=y
+CONFIG_CMD_CAT=y
+CONFIG_CMD_MKDIR=y
+CONFIG_CMD_RMDIR=y
+CONFIG_CMD_CP=y
+CONFIG_CMD_PWD=y
+CONFIG_CMD_CD=y
+CONFIG_CMD_MOUNT=y
+CONFIG_CMD_UMOUNT=y
+CONFIG_CMD_NAND=y
+
+#
+# console
+#
+CONFIG_CMD_CLEAR=y
+CONFIG_CMD_ECHO=y
+CONFIG_CMD_ECHO_E=y
+
+#
+# memory
+#
+CONFIG_CMD_LOADB=y
+CONFIG_CMD_MEMINFO=y
+CONFIG_CMD_CRC=y
+CONFIG_CMD_CRC_CMP=y
+# CONFIG_CMD_MD5SUM is not set
+# CONFIG_CMD_SHA1SUM is not set
+# CONFIG_CMD_SHA256SUM is not set
+CONFIG_CMD_MTEST=y
+CONFIG_CMD_MTEST_ALTERNATIVE=y
+
+#
+# flash
+#
+CONFIG_CMD_FLASH=y
+# CONFIG_CMD_UBI is not set
+
+#
+# booting
+#
+CONFIG_CMD_BOOTM=y
+CONFIG_CMD_BOOTM_ZLIB=y
+CONFIG_CMD_BOOTM_BZLIB=y
+CONFIG_CMD_BOOTM_SHOW_TYPE=y
+CONFIG_CMD_BOOTZ=y
+CONFIG_CMD_BOOTU=y
+CONFIG_CMD_RESET=y
+CONFIG_CMD_GO=y
+CONFIG_CMD_TIMEOUT=y
+CONFIG_CMD_PARTITION=y
+CONFIG_CMD_TEST=y
+CONFIG_CMD_VERSION=y
+CONFIG_CMD_HELP=y
+CONFIG_CMD_DEVINFO=y
+CONFIG_CMD_GPIO=y
+CONFIG_CMD_UNLZO=y
+CONFIG_NET=y
+CONFIG_NET_DHCP=y
+CONFIG_NET_NFS=y
+CONFIG_NET_PING=y
+CONFIG_NET_TFTP=y
+CONFIG_NET_TFTP_PUSH=y
+CONFIG_NET_NETCONSOLE=y
+CONFIG_NET_RESOLV=y
+
+#
+# Drivers
+#
+
+#
+# serial drivers
+#
+# CONFIG_DRIVER_SERIAL_ARM_DCC is not set
+# CONFIG_DRIVER_SERIAL_NS16550 is not set
+CONFIG_DRIVER_SERIAL_ATMEL=y
+CONFIG_HAS_MACB=y
+CONFIG_MIIDEV=y
+
+#
+# Network drivers
+#
+# CONFIG_DRIVER_NET_SMC911X is not set
+# CONFIG_DRIVER_NET_SMC91111 is not set
+CONFIG_DRIVER_NET_MACB=y
+
+#
+# SPI drivers
+#
+CONFIG_SPI=y
+# CONFIG_I2C is not set
+
+#
+# flash drivers
+#
+# CONFIG_DRIVER_CFI is not set
+CONFIG_MTD=y
+CONFIG_NAND=y
+CONFIG_NAND_WRITE=y
+CONFIG_NAND_ECC_SOFT=y
+CONFIG_NAND_ECC_HW=y
+CONFIG_NAND_ECC_HW_SYNDROME=y
+CONFIG_NAND_ECC_HW_NONE=y
+CONFIG_NAND_INFO=y
+CONFIG_NAND_BBT=y
+CONFIG_NAND_READ_OOB=y
+CONFIG_NAND_ATMEL=y
+CONFIG_MTD_NAND_VERIFY_WRITE=y
+# CONFIG_MTD_NAND_ECC_SMC is not set
+CONFIG_MTD_NAND_IDS=y
+# CONFIG_UBI is not set
+# CONFIG_ATA is not set
+# CONFIG_USB is not set
+# CONFIG_USB_GADGET is not set
+# CONFIG_VIDEO is not set
+# CONFIG_MCI is not set
+CONFIG_CLKDEV_LOOKUP=y
+
+#
+# MFD
+#
+# CONFIG_I2C_MC13892 is not set
+# CONFIG_DRIVER_SPI_MC13783 is not set
+# CONFIG_LED is not set
+
+#
+# EEPROM support
+#
+CONFIG_EEPROM_AT25=y
+
+#
+# Filesystem support
+#
+# CONFIG_FS_CRAMFS is not set
+CONFIG_FS_RAMFS=y
+CONFIG_FS_DEVFS=y
+# CONFIG_FS_FAT is not set
+CONFIG_ZLIB=y
+CONFIG_BZLIB=y
+CONFIG_CRC32=y
+CONFIG_CRC16=y
+CONFIG_DIGEST=y
+# CONFIG_MD5 is not set
+CONFIG_SHA1=y
+# CONFIG_SHA256 is not set
+# CONFIG_GENERIC_FIND_NEXT_BIT is not set
+CONFIG_PROCESS_ESCAPE_SEQUENCE=y
+CONFIG_LZO_DECOMPRESS=y
diff --git a/arch/arm/mach-at91/Kconfig b/arch/arm/mach-at91/Kconfig
index 1bec3e5..85becd0 100644
--- a/arch/arm/mach-at91/Kconfig
+++ b/arch/arm/mach-at91/Kconfig
@@ -20,7 +20,7 @@ config BOARDINFO
default "Calao USB-A9G20" if MACH_USB_A9G20
default "Ronetix PM9261" if MACH_PM9261
default "Ronetix PM9263" if MACH_PM9263
- default "Ronetix PM9G45" if MACH_PM9G45
+ default "CERN White Rabbit Switch V3" if MACH_PM9G45
default "Aizo dSS11" if MACH_DSS11
default "Calao TNY-A9260" if MACH_TNY_A9260
default "Calao TNY-A9263" if MACH_TNY_A9263
--
1.7.7.2
From adb77bf754050ddd0339ce2b966c652bea4dc394 Mon Sep 17 00:00:00 2001
From: Alessandro Rubini <rubini@gnudd.com>
Date: Tue, 6 Mar 2012 01:26:28 +0100
Subject: [PATCH 3/8] nand wrs: it's 16-bits not 8
---
arch/arm/boards/pm9g45/init.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/arm/boards/pm9g45/init.c b/arch/arm/boards/pm9g45/init.c
index 9b22276..9ecd628 100644
--- a/arch/arm/boards/pm9g45/init.c
+++ b/arch/arm/boards/pm9g45/init.c
@@ -44,9 +44,9 @@ static struct atmel_nand_data nand_pdata = {
.ale = 21,
.cle = 22,
/* .det_pin = ... not connected */
- .rdy_pin = AT91_PIN_PD3,
+ .rdy_pin = AT91_PIN_PC8,
.enable_pin = AT91_PIN_PC14,
- .bus_width_16 = 0,
+ .bus_width_16 = 1,
};
static struct sam9_smc_config pm_nand_smc_config = {
@@ -69,7 +69,7 @@ static struct sam9_smc_config pm_nand_smc_config = {
static void pm_add_device_nand(void)
{
- pm_nand_smc_config.mode |= AT91_SMC_DBW_8;
+ pm_nand_smc_config.mode |= AT91_SMC_DBW_16;
/* configure chip-select 3 (NAND) */
sam9_smc_configure(3, &pm_nand_smc_config);
--
1.7.7.2
From 889d0e4db5a3aba95688411700c217cef1554a52 Mon Sep 17 00:00:00 2001
From: Benoit Rat <benoit@sevensols.com>
Date: Mon, 2 Jul 2012 13:00:43 +0200
Subject: [PATCH 7/8] nand: Fix wrongly removed line for 16bits NAND
From 1bc1314180bad7c821dfb464b35f0fbaa4445afb Mon Sep 17 00:00:00 2001
From: Alessandro Rubini <rubini@gnudd.com>
Date: Tue, 6 Mar 2012 01:26:28 +0100
Subject: [PATCH 3/7] nand wrs: our nand is 16-bit connected: fix accordingly
---
arch/arm/boards/pm9g45/init.c | 6 +++---
drivers/mtd/nand/atmel_nand.c | 26 ++++++++++++++++++++++----
1 files changed, 22 insertions(+), 4 deletions(-)
2 files changed, 25 insertions(+), 7 deletions(-)
diff --git a/arch/arm/boards/pm9g45/init.c b/arch/arm/boards/pm9g45/init.c
index 9b22276..9ecd628 100644
--- a/arch/arm/boards/pm9g45/init.c
+++ b/arch/arm/boards/pm9g45/init.c
@@ -44,9 +44,9 @@ static struct atmel_nand_data nand_pdata = {
.ale = 21,
.cle = 22,
/* .det_pin = ... not connected */
- .rdy_pin = AT91_PIN_PD3,
+ .rdy_pin = AT91_PIN_PC8,
.enable_pin = AT91_PIN_PC14,
- .bus_width_16 = 0,
+ .bus_width_16 = 1,
};
static struct sam9_smc_config pm_nand_smc_config = {
@@ -69,7 +69,7 @@ static struct sam9_smc_config pm_nand_smc_config = {
static void pm_add_device_nand(void)
{
- pm_nand_smc_config.mode |= AT91_SMC_DBW_8;
+ pm_nand_smc_config.mode |= AT91_SMC_DBW_16;
/* configure chip-select 3 (NAND) */
sam9_smc_configure(3, &pm_nand_smc_config);
diff --git a/drivers/mtd/nand/atmel_nand.c b/drivers/mtd/nand/atmel_nand.c
index 96624a1..bad75a9 100644
--- a/drivers/mtd/nand/atmel_nand.c
......
From a28e0d77a1cd896a049dfd5b7a28d28f72cf73b6 Mon Sep 17 00:00:00 2001
From d1a2f69e329a2affd7d201916e43c7d758392932 Mon Sep 17 00:00:00 2001
From: Benoit Rat <benoit@sevensols.com>
Date: Tue, 15 May 2012 17:08:41 +0200
Subject: [PATCH 4/8] add DHCP retries by tom
Subject: [PATCH 4/7] add DHCP retries by tom
---
net/dhcp.c | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/net/dhcp.c b/net/dhcp.c
index ad32b53..88febea 100644
index ad32b53..befb536 100644
--- a/net/dhcp.c
+++ b/net/dhcp.c
@@ -607,6 +607,7 @@ static void dhcp_reset_env(void)
......@@ -37,12 +37,12 @@ index ad32b53..88febea 100644
while (dhcp_state != BOUND) {
if (ctrlc())
break;
+ if (!retries)
+ if (!retries)
+ {
+ ret = ETIMEDOUT;
+ goto out1;
+ }
+
+
net_poll();
if (is_timeout(dhcp_start, 3 * SECOND)) {
dhcp_start = get_time_ns();
......
From 6ea20bbe79dd86fd5d95bff00f8b685a2aa38ce9 Mon Sep 17 00:00:00 2001
From 870d9b65b080f1c20cba7d1aa0850d10d03a416c Mon Sep 17 00:00:00 2001
From: Benoit Rat <benoit@sevensols.com>
Date: Mon, 28 May 2012 12:23:13 +0200
Subject: [PATCH 5/8] gpio: add function to check them
Subject: [PATCH 5/7] gpio: add function to check them
---
arch/arm/boards/pm9g45/init.c | 21 +++++++++++++++++++++
1 files changed, 21 insertions(+), 0 deletions(-)
diff --git a/arch/arm/boards/pm9g45/init.c b/arch/arm/boards/pm9g45/init.c
index 9ecd628..a84e431 100644
index 9ecd628..4fba7c2 100644
--- a/arch/arm/boards/pm9g45/init.c
+++ b/arch/arm/boards/pm9g45/init.c
@@ -40,6 +40,25 @@
......@@ -18,7 +18,7 @@ index 9ecd628..a84e431 100644
+/*
+ * board revision encoding
+ * V3.1 => by default: PA4 is 1 & PC7 is 0.
+ * V3.2 => by default: PA4 is 0 & PC7 is 1
+ * V3.2 => by default: PA4 is 0 & PC7 is 1
+ */
+static void wrs3_check_gpios(void)
+{
......@@ -27,25 +27,25 @@ index 9ecd628..a84e431 100644
+ {
+ printf("GPIOs: PA4=%d (%d), PC7=%d (%d)\n",
+ gpio_get_value(AT91_PIN_PA4),AT91_PIN_PA4,gpio_get_value(AT91_PIN_PC7),AT91_PIN_PC7);
+ }
+ else
+ }
+ else
+ {
+ printf("Error: unable to acquire board GPIOs\n");
+ }
+ }
+}
+
static struct atmel_nand_data nand_pdata = {
.ale = 21,
.cle = 22,
@@ -148,6 +167,8 @@ static int pm9g45_devices_init(void)
@@ -149,6 +168,8 @@ static int pm9g45_devices_init(void)
armlinux_set_bootparams((void *)(AT91_CHIPSELECT_6 + 0x100));
armlinux_set_architecture(MACH_TYPE_PM9G45);
+
+ wrs3_check_gpios();
+ wrs3_check_gpios();
+
return 0;
}
device_initcall(pm9g45_devices_init);
--
1.7.7.2
From 505eadc6d9766c0e0732ef09548a750847708e00 Mon Sep 17 00:00:00 2001
From 2e8236836297567aa26d011c7d83c34ecc245b28 Mon Sep 17 00:00:00 2001
From: Benoit Rat <benoit@sevensols.com>
Date: Mon, 2 Jul 2012 12:59:15 +0200
Subject: [PATCH 6/8] startup: load default environment when loading env
Subject: [PATCH 6/7] startup: load default environment when loading env
failed
---
......
From ac10c839955dd332630cc497f6a5f69d5bfb9201 Mon Sep 17 00:00:00 2001
From: Benoit Rat <benoit@sevensols.com>
Date: Mon, 9 Jul 2012 13:40:30 +0200
Subject: [PATCH 7/7] wrs (on pm9g45): change nand setup
---
arch/arm/boards/pm9g45/init.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/arch/arm/boards/pm9g45/init.c b/arch/arm/boards/pm9g45/init.c
index 4fba7c2..182afd5 100644
--- a/arch/arm/boards/pm9g45/init.c
+++ b/arch/arm/boards/pm9g45/init.c
@@ -19,7 +19,6 @@
* MA 02111-1307 USA
*
*/
-
#include <common.h>
#include <net.h>
#include <init.h>
@@ -160,8 +159,7 @@ static int pm9g45_devices_init(void)
at91_add_device_eth(0, &macb_pdata);
pm9g45_add_device_usbh();
- devfs_add_partition("nand0", 0x00000, 0x80000, PARTITION_FIXED, "self_raw");
- dev_add_bb_dev("self_raw", "self0");
+ //device, offset, size, flag, name
devfs_add_partition("nand0", 0x40000, 0x40000, PARTITION_FIXED, "env_raw");
dev_add_bb_dev("env_raw", "env0");
--
1.7.7.2
From a0a89716ee84c0bc09697211e5ce234bcbdd58c2 Mon Sep 17 00:00:00 2001
From: Alessandro Rubini <rubini@gnudd.com>
Date: Mon, 9 Jul 2012 13:40:30 +0200
Subject: [PATCH 8/8] wrs: init & config script with menu (support v3.2)
Author: Benoit Rat <benoit@sevensols.com>
---
arch/arm/boards/pm9g45/env/bin/init | 228 ++++++++++++++++++++++++
arch/arm/boards/pm9g45/env/config | 40 ++---
arch/arm/boards/pm9g45/env/this_is_compiled_in | 3 +
arch/arm/boards/pm9g45/init.c | 4 +-
4 files changed, 247 insertions(+), 28 deletions(-)
create mode 100644 arch/arm/boards/pm9g45/env/bin/init
create mode 100644 arch/arm/boards/pm9g45/env/this_is_compiled_in
diff --git a/arch/arm/boards/pm9g45/env/bin/init b/arch/arm/boards/pm9g45/env/bin/init
new file mode 100644
index 0000000..c6e8b46
--- /dev/null
+++ b/arch/arm/boards/pm9g45/env/bin/init
@@ -0,0 +1,228 @@
+#!/bin/sh
+#
+# Init script for WRS barebox
+# ========================
+# Syntax: Hush shell script
+# Authors: Benoit Rat, Tomasz Wlostowski
+# Environment variables:
+# - autoboot_timeout: number of seconds
+# - autoboot_altforced: "1" or "0"
+# - default_altmode: i.e "the menu number"
+# - ip: dhcp or none (in this case setup by eth0)
+#######################################
+
+echo ""
+echo "=============================================="
+
+### Default value ": ${VISUAL:=vi}"
+autoboot_timeout="10";
+autoboot_altforced="0";
+autoboot_altmode="2";
+error_timeout="60";
+net="0"
+bootargs="console=ttyS0,115200"
+
+### Override default value using /env/config
+. /env/config
+echo "Starting up barebox [wrs3] (MAC=$eth0.ethaddr)"
+
+
+### Generic setup
+PATH=/env/bin
+export PATH
+
+if [ x$autoboot_timeout != x ]; then menu_timeout="-A $autoboot_timeout"; fi
+
+gpio_set_value 33 0 #Set 2nd LED ON (PA2)
+PS1="wrs-$eth0.ethaddr# "
+mode=""
+ok="0"
+run="1"
+
+### Creating the partitions:
+if [ -e /dev/mem.kernel ]; then; else addpart /dev/mem 8M@0x71000000(kernel); fi
+if [ -e /dev/nand0.kernel ]; then; else addpart /dev/nand0 256k@0x4000(bareboxenv),8M@0x100000(kernel),-@0x4000000(rootfs); fi
+if [ -e /dev/nand0.kernel.bb ]; then; else nand -a /dev/nand0.*; fi
+
+### Create the menu for various boot in case we don't run the autoboot
+menu -r -m boot
+menu -a -m boot -d "Welcome on WRSv3 Boot Sequence"
+menu -e -a -m boot -c 'init -m nand' -d "boot from nand (default)"
+menu -e -a -m boot -c 'init -m df' -d "boot from dataflash (failsafe)"
+menu -e -a -m boot -c 'init -m script -n' -d "boot from script"
+menu -e -a -m boot -c 'init -m ram -r tftp -n' -d "boot from ram"
+menu -e -a -m boot -c 'init -m tftp -r nfs -n' -d "boot from nfs"
+menu -e -a -m boot -c 'init -m tftp -r nfs -n -x test' -d "boot from nfs (test)"
+menu -e -a -m boot -c 'init -m config' -d "edit & save config"
+menu -e -a -m boot -c 'exit 0' -d "shell (prompt terminal)"
+menu -e -a -m boot -c reset -d "reset barebox"
+
+### Check init arguments
+while getopt "m:r:x:n" Option
+do
+if [ ${Option} = m ]; then
+ mode=${OPTARG}
+elif [ ${Option} = r ]; then
+ rootfs_loc=${OPTARG}
+elif [ ${Option} = n ]; then
+ net="1"
+elif [ ${Option} = x ]; then
+ xtra="-${OPTARG}"
+else
+fi
+done
+
+
+### In case mode is not set
+if [ x$run = x1 -a x$mode = x ]; then ### Check if an alternative mode is on or off
+ run="0"
+
+ gpio_get_value 103 #Obtain value of alternative boot jumper (only for v3.2+)
+ if [ "$?" -eq "0" ]; then
+ autoboot_altforced="1" #Force alternative boot if FGPA button is pushed
+ fi
+
+ ## Check if there is an alternative boot
+ if [ "$autoboot_altforced" -eq "1" ]; then
+ menu -m boot -S -n $autoboot_altmode
+ ok="1"
+ else
+ ### If barebox is not already set in NAND (first boot or NAND formatted)
+ if [ -f /env/this_is_compiled_in ]; then
+ echo "You might save & edit the config to run from NAND"
+ menu -m boot -S -n 6 #Select automatic NFS (test) option for next boot
+ ok="1"
+ ### Otherwise boot from NAND
+ else
+ menu -m boot -S -n 1
+ ok="1"
+ fi
+ fi
+fi
+
+################################# Boot modes
+
+
+
+
+
+### Try booting from NAND (default mode)
+if [ x$run = x1 -a x$mode = xnand ]; then
+ echo "booting from NAND"
+ run="0"
+
+ cp /dev/nand0.kernel /dev/mem.kernel
+ bootargs="$bootargs root=1f01 rootfstype=jffs2 mem=32m init=/init"
+ bootz /dev/mem.kernel
+ menu -m boot -S -n $autoboot_altmode #Select the alternative boot
+fi
+
+### Edit and save config mode
+if [ x$run = x1 -a x$mode = xconfig ]; then
+ echo "Editing config..."
+ run="0"
+
+ edit /env/config
+ . /env/config
+ if [ -f /env/this_is_compiled_in ]; then
+ echo "No NAND environment..."
+ rm /env/this_is_compiled_in
+ fi
+ saveenv
+ ok="1"
+fi
+
+
+### Try failsafe boot from DF
+if [ x$run = x1 -a x$mode = xdf ]; then
+ run="0"
+
+ echo "not implemented"
+fi
+
+
+### Try booting from RAM
+if [ x$run = x1 -a x$mode = xram ]; then
+ echo "booting from RAM"
+ run="0"
+
+ echo "Kernel+FS must have been set using usb-loader"
+ addpart /dev/mem 8M@0x72000000(fs)
+ bootargs="$bootargs initrd=0x72000000,8388608"
+ bootz /dev/mem.kernel
+
+ ## Otherwise try to load from TFTP
+ run="1"
+ ip=dhcp
+ mode=tftp
+ rootfs_loc=tftp
+fi
+
+
+### Obtain DHCP
+if [ x$run = x1 -a x$net = x1 -a x$ip = xdhcp ]; then
+ dhcp 5
+ if [ "$?" -eq "1" ]; then
+ echo "Enable to obtain IP from DHCP (Required for $mode)"
+ run="0"
+ ok="0"
+ fi
+
+fi
+
+### Try autoboot from loading script
+if [ x$run = x1 -a x$mode = xscript ]; then
+ echo "booting from Script"
+ run="0"
+
+ ### Search customboot based on MAC address
+ tftp $eth0.ethaddr/wrboot /customboot
+ if [ "$?" -eq "0" ]; then
+ echo "We have got a custom boot file for this particular switch."
+ ./customboot
+
+ ### Load generic script
+ else
+ tftp wrboot
+ if [ "$?" -eq "0" ]; then
+ ./wrboot
+ fi
+ fi
+fi
+
+### Try booting from TFTP
+if [ x$run = x1 -a x$mode = xtftp ]; then
+ echo "booting from TFTP"
+ run="0"
+
+ #loading the kernel
+ tftp zImage /dev/mem.kernel
+ if [ x$rootfs_loc = xnfs ]; then
+ bootargs="$bootargs ip=${eth0.ipaddr}:${eth0.gateway}:${eth0.netmask}:${eth0.gateway}"
+ bootargs="$bootargs root=/dev/nfs nfsroot=/tftpboot/rootfs${xtra},tcp mem=32m"
+ bootz /dev/mem.kernel
+ elif [ x$rootfs_loc = xtftp ]; then
+ addpart /dev/mem 8M@0x72000000(fs)
+ tftp wrs-image.cpio.gz /dev/mem.fs
+ bootargs="$bootargs initrd=0x72000000,8388608"
+ bootz /dev/mem.kernel
+ else
+ echo "not implemented"
+ fi
+fi
+
+
+
+### Error message and go back to the menu
+if [ "$ok" -eq "0" ]; then
+ echo "Error: Loading kernel+FS from $mode!"
+ echo -n "hit any key to go to menu..."; timeout -a $error_timeout
+ menu_timeout=""
+fi
+menu -s boot $menu_timeout
+exit 0
+
+
+
+
+
diff --git a/arch/arm/boards/pm9g45/env/config b/arch/arm/boards/pm9g45/env/config
index 5f05e6f..c25398f 100644
--- a/arch/arm/boards/pm9g45/env/config
+++ b/arch/arm/boards/pm9g45/env/config
@@ -1,37 +1,27 @@
#!/bin/sh
+## You must use Ctrl+D to Save & Ctrl+C to Exit
-# use 'dhcp' to do dhcp in barebox and in kernel
-# use 'none' if you want to skip kernel ip autoconfiguration
+
+##eth0.ethaddr corresponds to the MAC address of the switch, it can also be changes using flasher
+eth0.ethaddr=02:0B:AD:C0:FF:EE
+
+## use 'dhcp' to do dhcp in barebox and in kernel
ip=dhcp
-# or set your networking parameters here
+## or set your networking parameters here
+#eth0.serverip=a.b.c.d
#eth0.ipaddr=a.b.c.d
#eth0.netmask=a.b.c.d
#eth0.gateway=a.b.c.d
-#eth0.serverip=a.b.c.d
-
-# can be either 'nfs', 'tftp' or 'nand'
-kernel_loc=nand
-# can be either 'net', 'nand' or 'initrd'
-rootfs_loc=nand
-
-# can be either 'jffs2' or 'ubifs'
-rootfs_type=ubifs
-rootfsimage=root.$rootfs_type
-
-#kernelimage=zImage
-kernelimage=uImage
-#kernelimage=Image
-#kernelimage=Image.lzo
-nand_device=atmel_nand
-nand_parts="128k(bootstrap)ro,256k(barebox)ro,1664k(bareboxenv),3M(kernel),-(root)"
-rootfs_mtdblock_nand=4
+## Timeout to autoboot in the pre-selected menu
+autoboot_timeout="10";
-autoboot_timeout=3
+## In case the default boot doesn't work we can use a specified alternative boot
+#autoboot_altforced="0";
+#autoboot_altmode="2";
-bootargs="console=ttyS0,115200"
+## Timeout to show the error Message
+#error_timeout="10";
-# set a fancy prompt (if support is compiled in)
-PS1="\e[1;32mbarebox@\e[1;31m\h:\w\e[0m "
diff --git a/arch/arm/boards/pm9g45/env/this_is_compiled_in b/arch/arm/boards/pm9g45/env/this_is_compiled_in
new file mode 100644
index 0000000..6acf206
--- /dev/null
+++ b/arch/arm/boards/pm9g45/env/this_is_compiled_in
@@ -0,0 +1,3 @@
+# File to check if we are using environment on NAND or not
+#
+# It is supposed to be automatically deleted when environment is installed in NAND
diff --git a/arch/arm/boards/pm9g45/init.c b/arch/arm/boards/pm9g45/init.c
index a84e431..bbdf297 100644
--- a/arch/arm/boards/pm9g45/init.c
+++ b/arch/arm/boards/pm9g45/init.c
@@ -19,7 +19,6 @@
* MA 02111-1307 USA
*
*/
-
#include <common.h>
#include <net.h>
#include <init.h>
@@ -160,8 +159,7 @@ static int pm9g45_devices_init(void)
at91_add_device_eth(0, &macb_pdata);
pm9g45_add_device_usbh();
- devfs_add_partition("nand0", 0x00000, 0x80000, PARTITION_FIXED, "self_raw");
- dev_add_bb_dev("self_raw", "self0");
+ //device, offset, size, flag, name
devfs_add_partition("nand0", 0x40000, 0x40000, PARTITION_FIXED, "env_raw");
dev_add_bb_dev("env_raw", "env0");
--
1.7.7.2
#!/bin/sh
#
# Init script for WRS barebox
# ========================
# Syntax: Hush shell script
# Authors: Benoit Rat, Tomasz Wlostowski
# Environment variables:
# - autoboot_timeout: number of seconds
# - autoboot_altforced: "1" or "0"
# - default_altmode: i.e "the menu number"
# - ip: dhcp or none (in this case setup by eth0)
#######################################
echo ""
echo "=============================================="
### Default value ": ${VISUAL:=vi}"
autoboot_timeout="10";
autoboot_altforced="0";
autoboot_altmode="2";
error_timeout="60";
net="0"
bootargs="console=ttyS0,115200"
### Override default value using /env/config
. /env/config
echo "Starting up barebox [wrs3] (MAC=$eth0.ethaddr)"
### Generic setup
PATH=/env/bin
export PATH
if [ x$autoboot_timeout != x ]; then menu_timeout="-A $autoboot_timeout"; fi
gpio_set_value 33 0 #Set 2nd LED ON (PA2)
PS1="wrs-$eth0.ethaddr# "
mode=""
ok="0"
run="1"
### Creating the partitions:
if [ -e /dev/mem.kernel ]; then; else addpart /dev/mem 8M@0x71000000(kernel); fi
if [ -e /dev/nand0.kernel ]; then; else addpart /dev/nand0 256k@0x4000(bareboxenv),8M@0x100000(kernel),-@0x4000000(rootfs); fi
if [ -e /dev/nand0.kernel.bb ]; then; else nand -a /dev/nand0.*; fi
### Create the menu for various boot in case we don't run the autoboot
menu -r -m boot
menu -a -m boot -d "Welcome on WRSv3 Boot Sequence"
menu -e -a -m boot -c 'init -m nand' -d "boot from nand (default)"
menu -e -a -m boot -c 'init -m df' -d "boot from dataflash (failsafe)"
menu -e -a -m boot -c 'init -m script -n' -d "boot from script"
menu -e -a -m boot -c 'init -m ram -r tftp -n' -d "boot from ram"
menu -e -a -m boot -c 'init -m tftp -r nfs -n' -d "boot from nfs"
menu -e -a -m boot -c 'init -m tftp -r nfs -n -x test' -d "boot from nfs (test)"
menu -e -a -m boot -c 'init -m config' -d "edit & save config"
menu -e -a -m boot -c 'exit 0' -d "shell (prompt terminal)"
menu -e -a -m boot -c reset -d "reset barebox"
### Check init arguments
while getopt "m:r:x:n" Option
do
if [ ${Option} = m ]; then
mode=${OPTARG}
elif [ ${Option} = r ]; then
rootfs_loc=${OPTARG}
elif [ ${Option} = n ]; then
net="1"
elif [ ${Option} = x ]; then
xtra="-${OPTARG}"
else
fi
done
### In case mode is not set
if [ x$run = x1 -a x$mode = x ]; then ### Check if an alternative mode is on or off
run="0"
gpio_get_value 103 #Obtain value of alternative boot jumper (only for v3.2+)
if [ "$?" -eq "0" ]; then
autoboot_altforced="1" #Force alternative boot if FGPA button is pushed
fi
## Check if there is an alternative boot
if [ "$autoboot_altforced" -eq "1" ]; then
menu -m boot -S -n $autoboot_altmode
ok="1"
else
### If barebox is not already set in NAND (first boot or NAND formatted)
if [ -f /env/this_is_compiled_in ]; then
echo "You might save & edit the config to run from NAND"
menu -m boot -S -n 6 #Select automatic NFS (test) option for next boot
ok="1"
### Otherwise boot from NAND
else
menu -m boot -S -n 1
ok="1"
fi
fi
fi
################################# Boot modes
### Try booting from NAND (default mode)
if [ x$run = x1 -a x$mode = xnand ]; then
echo "booting from NAND"
run="0"
cp /dev/nand0.kernel /dev/mem.kernel
bootargs="$bootargs root=1f01 rootfstype=jffs2 mem=32m init=/init"
bootz /dev/mem.kernel
menu -m boot -S -n $autoboot_altmode #Select the alternative boot
fi
### Edit and save config mode
if [ x$run = x1 -a x$mode = xconfig ]; then
echo "Editing config..."
run="0"
edit /env/config
. /env/config
if [ -f /env/this_is_compiled_in ]; then
echo "No NAND environment..."
rm /env/this_is_compiled_in
fi
saveenv
ok="1"
fi
### Try failsafe boot from DF
if [ x$run = x1 -a x$mode = xdf ]; then
run="0"
echo "not implemented"
fi
### Try booting from RAM
if [ x$run = x1 -a x$mode = xram ]; then
echo "booting from RAM"
run="0"
echo "Kernel+FS must have been set using usb-loader"
addpart /dev/mem 8M@0x72000000(fs)
bootargs="$bootargs initrd=0x72000000,8388608"
bootz /dev/mem.kernel
## Otherwise try to load from TFTP
run="1"
ip=dhcp
mode=tftp
rootfs_loc=tftp
fi
### Obtain DHCP
if [ x$run = x1 -a x$net = x1 -a x$ip = xdhcp ]; then
dhcp 5
if [ "$?" -eq "1" ]; then
echo "Enable to obtain IP from DHCP (Required for $mode)"
run="0"
ok="0"
fi
fi
### Try autoboot from loading script
if [ x$run = x1 -a x$mode = xscript ]; then
echo "booting from Script"
run="0"
### Search customboot based on MAC address
tftp $eth0.ethaddr/wrboot /customboot
if [ "$?" -eq "0" ]; then
echo "We have got a custom boot file for this particular switch."
./customboot
### Load generic script
else
tftp wrboot
if [ "$?" -eq "0" ]; then
./wrboot
fi
fi
fi
### Try booting from TFTP
if [ x$run = x1 -a x$mode = xtftp ]; then
echo "booting from TFTP"
run="0"
#loading the kernel
tftp zImage /dev/mem.kernel
if [ x$rootfs_loc = xnfs ]; then
bootargs="$bootargs ip=${eth0.ipaddr}:${eth0.gateway}:${eth0.netmask}:${eth0.gateway}"
bootargs="$bootargs root=/dev/nfs nfsroot=/tftpboot/rootfs${xtra},tcp mem=32m"
bootz /dev/mem.kernel
elif [ x$rootfs_loc = xtftp ]; then
addpart /dev/mem 8M@0x72000000(fs)
tftp wrs-image.cpio.gz /dev/mem.fs
bootargs="$bootargs initrd=0x72000000,8388608"
bootz /dev/mem.kernel
else
echo "not implemented"
fi
fi
### Error message and go back to the menu
if [ "$ok" -eq "0" ]; then
echo "Error: Loading kernel+FS from $mode!"
echo -n "hit any key to go to menu..."; timeout -a $error_timeout
menu_timeout=""
fi
menu -s boot $menu_timeout
exit 0
#!/bin/sh
## You must use Ctrl+D to Save & Ctrl+C to Exit
##eth0.ethaddr corresponds to the MAC address of the switch, it can also be changes using flasher
eth0.ethaddr=02:0B:AD:C0:FF:EE
## use 'dhcp' to do dhcp in barebox and in kernel
ip=dhcp
## or set your networking parameters here
#eth0.serverip=a.b.c.d
#eth0.ipaddr=a.b.c.d
#eth0.netmask=a.b.c.d
#eth0.gateway=a.b.c.d
## Timeout to autoboot in the pre-selected menu
autoboot_timeout="10";
## In case the default boot doesn't work we can use a specified alternative boot
#autoboot_altforced="0";
#autoboot_altmode="2";
## Timeout to show the error Message
#error_timeout="10";
# File to check if we are using environment on NAND or not
#
# It is supposed to be automatically deleted when environment is installed in NAND
#
# Automatically generated make config: don't edit
# Linux/arm 2011.09.0 Barebox Configuration
# Tue Jan 24 21:02:43 2012
#
# CONFIG_BOARD_LINKER_SCRIPT is not set
CONFIG_GENERIC_LINKER_SCRIPT=y
CONFIG_ARM=y
CONFIG_ARM_LINUX=y
#
# System Type
#
CONFIG_ARCH_AT91=y
# CONFIG_ARCH_EP93XX is not set
# CONFIG_ARCH_IMX is not set
# CONFIG_ARCH_MXS is not set
# CONFIG_ARCH_NETX is not set
# CONFIG_ARCH_NOMADIK is not set
# CONFIG_ARCH_OMAP is not set
# CONFIG_ARCH_S3C24xx is not set
# CONFIG_ARCH_VERSATILE is not set
#
# Processor Type
#
CONFIG_CPU_32=y
CONFIG_CPU_ARM926T=y
CONFIG_CPU_32v5=y
#
# processor features
#
# CONFIG_BOOT_ENDIANNESS_SWITCH is not set
CONFIG_ARCH_TEXT_BASE=0x73f00000
CONFIG_BOARDINFO="CERN White Rabbit Switch V3"
#
# Atmel AT91 System-on-Chip
#
# CONFIG_ARCH_AT91RM9200 is not set
# CONFIG_ARCH_AT91SAM9260 is not set
# CONFIG_ARCH_AT91SAM9261 is not set
# CONFIG_ARCH_AT91SAM9263 is not set
# CONFIG_ARCH_AT91SAM9G10 is not set
# CONFIG_ARCH_AT91SAM9G20 is not set
CONFIG_ARCH_AT91SAM9G45=y
# CONFIG_MACH_AT91SAM9M10G45EK is not set
CONFIG_MACH_PM9G45=y
#
# AT91 Board Options
#
# CONFIG_AEABI is not set
#
# Arm specific settings
#
CONFIG_CMD_ARM_CPUINFO=y
CONFIG_ARM_OPTIMZED_STRING_FUNCTIONS=y
CONFIG_ARM_EXCEPTIONS=y
CONFIG_DEFCONFIG_LIST="$ARCH_DEFCONFIG"
CONFIG_GREGORIAN_CALENDER=y
CONFIG_HAS_KALLSYMS=y
CONFIG_HAS_MODULES=y
CONFIG_CMD_MEMORY=y
CONFIG_ENV_HANDLING=y
CONFIG_GENERIC_GPIO=y
#
# General Settings
#
CONFIG_LOCALVERSION_AUTO=y
CONFIG_ENVIRONMENT_VARIABLES=y
#
# memory layout
#
# CONFIG_MMU is not set
CONFIG_HAVE_CONFIGURABLE_TEXT_BASE=y
CONFIG_TEXT_BASE=0x73f00000
CONFIG_HAVE_CONFIGURABLE_MEMORY_LAYOUT=y
CONFIG_MEMORY_LAYOUT_DEFAULT=y
# CONFIG_MEMORY_LAYOUT_FIXED is not set
CONFIG_STACK_SIZE=0x8000
CONFIG_MALLOC_SIZE=0x400000
# CONFIG_BROKEN is not set
# CONFIG_EXPERIMENTAL is not set
CONFIG_MALLOC_DLMALLOC=y
# CONFIG_KALLSYMS is not set
CONFIG_PROMPT="WRS-3> "
CONFIG_BAUDRATE=115200
CONFIG_LONGHELP=y
CONFIG_CBSIZE=1024
CONFIG_MAXARGS=16
CONFIG_SHELL_HUSH=y
# CONFIG_SHELL_SIMPLE is not set
CONFIG_GLOB=y
CONFIG_PROMPT_HUSH_PS2="y"
CONFIG_HUSH_FANCY_PROMPT=y
CONFIG_HUSH_GETOPT=y
CONFIG_CMDLINE_EDITING=y
CONFIG_AUTO_COMPLETE=y
CONFIG_MENU=y
CONFIG_PASSWORD=y
# CONFIG_PASSWD_SUM_MD5 is not set
CONFIG_PASSWD_SUM_SHA1=y
# CONFIG_PASSWD_SUM_SHA256 is not set
CONFIG_DYNAMIC_CRC_TABLE=y
CONFIG_ERRNO_MESSAGES=y
CONFIG_TIMESTAMP=y
CONFIG_CONSOLE_FULL=y
CONFIG_CONSOLE_ACTIVATE_FIRST=y
# CONFIG_OF_FLAT_TREE is not set
CONFIG_PARTITION=y
CONFIG_DEFAULT_ENVIRONMENT=y
CONFIG_DEFAULT_ENVIRONMENT_GENERIC=y
CONFIG_DEFAULT_ENVIRONMENT_PATH="arch/arm/boards/pm9g45/env"
# CONFIG_POLLER is not set
#
# Debugging
#
CONFIG_DEBUG_INFO=y
CONFIG_ENABLE_FLASH_NOISE=y
CONFIG_ENABLE_PARTITION_NOISE=y
CONFIG_ENABLE_DEVICE_NOISE=y
CONFIG_COMMAND_SUPPORT=y
#
# commands
#
#
# scripting
#
CONFIG_CMD_EDIT=y
CONFIG_CMD_SLEEP=y
CONFIG_CMD_SAVEENV=y
CONFIG_CMD_LOADENV=y
CONFIG_CMD_EXPORT=y
CONFIG_CMD_PRINTENV=y
CONFIG_CMD_READLINE=y
CONFIG_CMD_TRUE=y
CONFIG_CMD_FALSE=y
CONFIG_CMD_MENU=y
CONFIG_CMD_MENU_MANAGEMENT=y
CONFIG_CMD_LOGIN=y
CONFIG_CMD_PASSWD=y
CONFIG_PASSWD_MODE_HIDE=y
# CONFIG_PASSWD_MODE_STAR is not set
# CONFIG_PASSWD_MODE_CLEAR is not set
# CONFIG_CMD_TIME is not set
#
# file commands
#
CONFIG_CMD_LS=y
CONFIG_CMD_RM=y
CONFIG_CMD_CAT=y
CONFIG_CMD_MKDIR=y
CONFIG_CMD_RMDIR=y
CONFIG_CMD_CP=y
CONFIG_CMD_PWD=y
CONFIG_CMD_CD=y
CONFIG_CMD_MOUNT=y
CONFIG_CMD_UMOUNT=y
CONFIG_CMD_NAND=y
#
# console
#
CONFIG_CMD_CLEAR=y
CONFIG_CMD_ECHO=y
CONFIG_CMD_ECHO_E=y
#
# memory
#
CONFIG_CMD_LOADB=y
CONFIG_CMD_MEMINFO=y
CONFIG_CMD_CRC=y
CONFIG_CMD_CRC_CMP=y
# CONFIG_CMD_MD5SUM is not set
# CONFIG_CMD_SHA1SUM is not set
# CONFIG_CMD_SHA256SUM is not set
CONFIG_CMD_MTEST=y
CONFIG_CMD_MTEST_ALTERNATIVE=y
#
# flash
#
CONFIG_CMD_FLASH=y
# CONFIG_CMD_UBI is not set
#
# booting
#
CONFIG_CMD_BOOTM=y
CONFIG_CMD_BOOTM_ZLIB=y
CONFIG_CMD_BOOTM_BZLIB=y
CONFIG_CMD_BOOTM_SHOW_TYPE=y
CONFIG_CMD_BOOTZ=y
CONFIG_CMD_BOOTU=y
CONFIG_CMD_RESET=y
CONFIG_CMD_GO=y
CONFIG_CMD_TIMEOUT=y
CONFIG_CMD_PARTITION=y
CONFIG_CMD_TEST=y
CONFIG_CMD_VERSION=y
CONFIG_CMD_HELP=y
CONFIG_CMD_DEVINFO=y
CONFIG_CMD_GPIO=y
CONFIG_CMD_UNLZO=y
CONFIG_NET=y
CONFIG_NET_DHCP=y
CONFIG_NET_NFS=y
CONFIG_NET_PING=y
CONFIG_NET_TFTP=y
CONFIG_NET_TFTP_PUSH=y
CONFIG_NET_NETCONSOLE=y
CONFIG_NET_RESOLV=y
#
# Drivers
#
#
# serial drivers
#
# CONFIG_DRIVER_SERIAL_ARM_DCC is not set
# CONFIG_DRIVER_SERIAL_NS16550 is not set
CONFIG_DRIVER_SERIAL_ATMEL=y
CONFIG_HAS_MACB=y
CONFIG_MIIDEV=y
#
# Network drivers
#
# CONFIG_DRIVER_NET_SMC911X is not set
# CONFIG_DRIVER_NET_SMC91111 is not set
CONFIG_DRIVER_NET_MACB=y
#
# SPI drivers
#
CONFIG_SPI=y
# CONFIG_I2C is not set
#
# flash drivers
#
# CONFIG_DRIVER_CFI is not set
CONFIG_MTD=y
CONFIG_NAND=y
CONFIG_NAND_WRITE=y
CONFIG_NAND_ECC_SOFT=y
CONFIG_NAND_ECC_HW=y
CONFIG_NAND_ECC_HW_SYNDROME=y
CONFIG_NAND_ECC_HW_NONE=y
CONFIG_NAND_INFO=y
CONFIG_NAND_BBT=y
CONFIG_NAND_READ_OOB=y
CONFIG_NAND_ATMEL=y
CONFIG_MTD_NAND_VERIFY_WRITE=y
# CONFIG_MTD_NAND_ECC_SMC is not set
CONFIG_MTD_NAND_IDS=y
# CONFIG_UBI is not set
# CONFIG_ATA is not set
# CONFIG_USB is not set
# CONFIG_USB_GADGET is not set
# CONFIG_VIDEO is not set
# CONFIG_MCI is not set
CONFIG_CLKDEV_LOOKUP=y
#
# MFD
#
# CONFIG_I2C_MC13892 is not set
# CONFIG_DRIVER_SPI_MC13783 is not set
# CONFIG_LED is not set
#
# EEPROM support
#
CONFIG_EEPROM_AT25=y
#
# Filesystem support
#
# CONFIG_FS_CRAMFS is not set
CONFIG_FS_RAMFS=y
CONFIG_FS_DEVFS=y
# CONFIG_FS_FAT is not set
CONFIG_ZLIB=y
CONFIG_BZLIB=y
CONFIG_CRC32=y
CONFIG_CRC16=y
CONFIG_DIGEST=y
# CONFIG_MD5 is not set
CONFIG_SHA1=y
# CONFIG_SHA256 is not set
# CONFIG_GENERIC_FIND_NEXT_BIT is not set
CONFIG_PROCESS_ESCAPE_SEQUENCE=y
CONFIG_LZO_DECOMPRESS=y
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment