summaryrefslogtreecommitdiff
path: root/packages/uboot-utils/fw_env.h.patch
diff options
context:
space:
mode:
authorAndrew Wilcox <andy@protium.com>2006-12-07 19:40:25 +0000
committerAndrew Wilcox <andy@protium.com>2006-12-07 19:40:25 +0000
commit0165cbef046ef6a02bf096806f2e72d3785358a5 (patch)
tree6f99f4e9035a5dcecfc17c6654ef03e44d0a7b0a /packages/uboot-utils/fw_env.h.patch
parentaa5a787f25f567632f53decbaee305315e6d1c58 (diff)
uboot: OS native utils for accessing the boot environment vars.
Diffstat (limited to 'packages/uboot-utils/fw_env.h.patch')
-rw-r--r--packages/uboot-utils/fw_env.h.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/packages/uboot-utils/fw_env.h.patch b/packages/uboot-utils/fw_env.h.patch
new file mode 100644
index 0000000000..2ef2bb83c4
--- /dev/null
+++ b/packages/uboot-utils/fw_env.h.patch
@@ -0,0 +1,24 @@
+--- u-boot-1.1.2.orig/tools/env/fw_env.h 2003-06-27 14:32:49.000000000 -0700
++++ u-boot-1.1.2/tools/env/fw_env.h 2006-11-16 10:51:01.000000000 -0800
+@@ -27,14 +27,15 @@
+ * See included "fw_env.config" sample file (TRAB board)
+ * for notes on configuration.
+ */
+-#define CONFIG_FILE "/etc/fw_env.config"
+
+-#define HAVE_REDUND /* For systems with 2 env sectors */
+-#define DEVICE1_NAME "/dev/mtd1"
++/* #define CONFIG_FILE "/etc/fw_env.config" */
++
++#undef HAVE_REDUND /* For systems with 2 env sectors */
++#define DEVICE1_NAME "/dev/mtd/3"
+ #define DEVICE2_NAME "/dev/mtd2"
+-#define DEVICE1_OFFSET 0x0000
+-#define ENV1_SIZE 0x4000
+-#define DEVICE1_ESIZE 0x4000
++#define DEVICE1_OFFSET 0x30000
++#define ENV1_SIZE 0x10000
++#define DEVICE1_ESIZE 0x10000
+ #define DEVICE2_OFFSET 0x0000
+ #define ENV2_SIZE 0x4000
+ #define DEVICE2_ESIZE 0x4000