[U-Boot] [PATCH 11/13] eNET: Add eNET_RAM_config

Graeme Russ graeme.russ at gmail.com
Sun Aug 22 12:51:05 CEST 2010


This patch allows configuration of the eNET board for generation of a
U-Boot image which can be loaded into RAM (using tftp for example).
Executing the image loaded into RAM is very similar to a cold-boot (the
image is relocated to upper memory etc). This allows very rapid development
and testing of new features without needing to burn Boot-ROMs

Signed-off-by: Graeme Russ <graeme.russ at gmail.com>
---
 Makefile             |   12 ++++++++++++
 board/eNET/config.mk |    7 ++++++-
 boards.cfg           |    1 -
 3 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 4f1cb1b..972c6aa 100644
--- a/Makefile
+++ b/Makefile
@@ -2428,6 +2428,18 @@ espt_config  :   unconfig
 	@echo "#define CONFIG_ESPT 1" > $(obj)include/config.h
 	@$(MKCONFIG) -a $@ sh sh4 espt
 
+#========================================================================
+# x86
+#========================================================================
+eNET_config	\
+eNET_RAM_config	:	unconfig
+	@if [ "$(findstring RAM,$@)" ]; then					\
+		echo "TEXT_BASE = 0x06000000" > $(obj)board/eNET/config.tmp;	\
+	else									\
+		echo "TEXT_BASE = 0x38040000" > $(obj)board/eNET/config.tmp;	\
+	fi
+	@$(MKCONFIG) eNET i386 i386 eNET - sc520
+
 #########################################################################
 #########################################################################
 
diff --git a/board/eNET/config.mk b/board/eNET/config.mk
index 63a58fd..2c0b514 100644
--- a/board/eNET/config.mk
+++ b/board/eNET/config.mk
@@ -21,7 +21,12 @@
 # MA 02111-1307 USA
 #
 
-TEXT_BASE = 0x06000000
+sinclude $(OBJTREE)/board/$(BOARDDIR)/config.tmp
+
+ifndef TEXT_BASE
+ TEXT_BASE = 0x38040000
+endif
+
 CFLAGS_common/dlmalloc.o += -Wa,--no-warn -fno-strict-aliasing
 PLATFORM_RELFLAGS += -fvisibility=hidden
 PLATFORM_CPPFLAGS += -fno-dwarf2-cfi-asm
diff --git a/boards.cfg b/boards.cfg
index fc2e67a..3f6d2040 100644
--- a/boards.cfg
+++ b/boards.cfg
@@ -70,7 +70,6 @@ gcplus		arm	sa1100
 lart		arm	sa1100
 shannon		arm	sa1100
 mimc200		avr32	at32ap		-		mimc		at32ap700x
-eNET		i386	i386		-		-		sc520
 idmr		m68k	mcf52x2
 TASREG		m68k	mcf52x2		tasreg		esd
 M5272C3		m68k	mcf52x2		m5272c3		freescale
-- 
1.7.1.422.g049e9



More information about the U-Boot mailing list