]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
* Fix configuration for ERIC board (needs more room)
authorwdenk <wdenk>
Sun, 24 Oct 2004 23:54:40 +0000 (23:54 +0000)
committerwdenk <wdenk>
Sun, 24 Oct 2004 23:54:40 +0000 (23:54 +0000)
* Adjust MIPS compiler options at run-time depending on tools version
  ("-march=4kc -mtune=4kc -Wa,-mips_allow_branch_to_undefined" for new,
  "-mcpu=4kc" for old tools)

CHANGELOG
board/eric/config.mk
cpu/mips/config.mk
include/configs/lwmon.h

index 9a18000017069fb46317a0007172824a929b3b67..baa3bb828dccd40e4d19fedfd31bc00aee208f69 100644 (file)
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -2,6 +2,12 @@
 Changes since U-Boot 1.1.1:
 ======================================================================
 
+* Fix configuration for ERIC board (needs more room)
+
+* Adjust MIPS compiler options at run-time depending on tools version
+  ("-march=4kc -mtune=4kc -Wa,-mips_allow_branch_to_undefined" for new,
+  "-mcpu=4kc" for old tools)
+
 * Add passing of the command line and memory size information to  the
   kernel on xaeniax board.
 
index c7552a357f8f172de68edbb8be04e7f45c5a0685..dd0b412095bffcdcd52d07c1e68c475182b4357c 100644 (file)
@@ -26,5 +26,4 @@
 #
 
 #TEXT_BASE = 0xFFF80000
-#TEXT_BASE = 0xFFFC0000
-TEXT_BASE = 0xFFFE0000
+TEXT_BASE = 0xFFFC0000
index 1664e14bc06bc80f8d4dade233d59573933b414b..3c9aab8dfe64b18110f541bc9277e2c864c48ac4 100644 (file)
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston,
 # MA 02111-1307 USA
 #
+v=$(shell \
+mips-linux-as --version|grep "GNU assembler"|awk '{print $$3}'|awk -F . '{print $$2}')
+MIPSFLAGS=$(shell \
+if [ "$v" -lt "14" ]; then \
+       echo "-mcpu=4kc -EB -mabicalls"; \
+else \
+       echo "-march=4kc -mtune=4kc -Wa,-mips_allow_branch_to_undefined -EB -mabicalls"; \
+fi)
 
-PLATFORM_CPPFLAGS += -mcpu=4kc -EB -mabicalls
+PLATFORM_CPPFLAGS += $(MIPSFLAGS)
index 74186a86ee2c124b1a4fc5075057344310425da3..3ed4727e20a52583afd75788dbb5fa17e532da10 100644 (file)
 #define CONFIG_MPC823          1       /* This is a MPC823E CPU        */
 #define CONFIG_LWMON           1       /* ...on a LWMON board          */
 
+/* Default Ethernet MAC address */
+#define CONFIG_ETHADDR          00:11:B0:00:00:00
+
+/* The default Ethernet MAC address can be overwritten just once */
+#ifdef CONFIG_ETHADDR
+#define CONFIG_OVERWRITE_ETHADDR_ONCE   1
+#endif
+
 #define CONFIG_BOARD_EARLY_INIT_F 1    /* Call board_early_init_f      */
 #define CONFIG_BOARD_POSTCLK_INIT 1    /* Call board_postclk_init      */
 
                                 CFG_POST_SPR      | \
                                 CFG_POST_SYSMON)
 
-#define CONFIG_BOOTCOMMAND     "run flash_self"
-
 /*
  * Keyboard commands:
  * # = 0x28 = ENTER :          enable bootmessages on LCD
  * 2 = 0x3A+0x3C = F1 + F3 :   enable update mode
  * 3 = 0x3C+0x3F = F3 + F6 :   enable test mode
  */
+
+#define CONFIG_BOOTCOMMAND "autoscr 40040000;saveenv"
+
+/*     "gatewayip=10.8.211.250\0"                                      \ */
 #define        CONFIG_EXTRA_ENV_SETTINGS                                       \
        "kernel_addr=40080000\0"                                        \
        "ramdisk_addr=40280000\0"                                       \
+       "netmask=255.255.192.0\0"                                       \
+       "serverip=10.8.2.101\0"                                         \
+       "ipaddr=10.8.57.0\0"                                            \
        "magic_keys=#23\0"                                              \
        "key_magic#=28\0"                                               \
        "key_cmd#=setenv addfb setenv 'bootargs $bootargs console=tty0'\0" \