Define __io to get harddrive working.
Fix saving of environment into OneNAND.
Boot from harddrive when possible.

Signed-off-by: Marek Vasut <marek.va...@gmail.com>
---
 include/configs/vpac270.h |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/include/configs/vpac270.h b/include/configs/vpac270.h
index 6d02995..a0383b2 100644
--- a/include/configs/vpac270.h
+++ b/include/configs/vpac270.h
@@ -36,7 +36,7 @@
 /*
  * Environment settings
  */
-#define        CONFIG_ENV_SIZE                 0x4000
+#define        CONFIG_ENV_SIZE                 0x20000
 #define        CONFIG_SYS_MALLOC_LEN           (CONFIG_ENV_SIZE + 128*1024)
 #define        CONFIG_SYS_GBL_DATA_SIZE        128
 
@@ -49,6 +49,9 @@
        "if usb reset && fatload usb 0 0xa4000000 uImage; then "        \
                "bootm 0xa4000000; "                                    \
        "fi; "                                                          \
+       "if ide reset && fatload ide 0 0xa4000000 uImage; then "        \
+               "bootm 0xa4000000; "                                    \
+       "fi; "                                                          \
        "bootm 0x40000;"
 #define        CONFIG_BOOTARGS                 "console=tty0 
console=ttyS0,115200"
 #define        CONFIG_TIMESTAMP
@@ -116,6 +119,7 @@
 #define        CONFIG_PXA_MMC
 #define        CONFIG_SYS_MMC_BASE             0xF0000000
 #define        CONFIG_CMD_FAT
+#define        CONFIG_CMD_EXT2
 #define        CONFIG_DOS_PARTITION
 #endif
 
@@ -228,6 +232,12 @@
 #undef CONFIG_IDE_LED
 #undef CONFIG_IDE_RESET
 
+/*
+ * HACK WARNING: __io
+ * This MUST go away once the readb/writeb and inb/outb issue is solved
+ */
+#define __io
+
 #define CONFIG_SYS_IDE_MAXBUS          1
 #define CONFIG_SYS_IDE_MAXDEVICE       1
 
-- 
1.7.1

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to