[ECOS] problems with building redboot for an eb40 target

Gary Thomas gthomas@ecoscentric.com
Sat Dec 7 04:55:00 GMT 2002


On Fri, 2002-12-06 at 22:06, Shannon Holland wrote:
> Hello,
> 
> I'm very new to ecos, so I'm sure I've done something stupid here....
> 
> The problem that I'm hitting is that when building redboot for an eb40
> target, I'm hitting a #error in arm/arch/current/src/redboot_linux_exec.c
> (line 75 - CYGARC_PHYSICAL_ADDRESS is undefined).
> 
> I'm building under cygwin. I've just rebuilt the latest binutils, gcc-3.1.1
> (I used this as I had already downloaded it, this may well be my problem)
> and gdb 5.2.1 as per the instructions on
> http://sources.redhat.com/ecos/tools/win-thumb-elf.html
> 
> To configure redboot I did:
> 
> check out the latest sources from cvs (this may also be bad!)
> set ECOS_REPOSITORY to my packages dir
> mkdir redboot-eb40
> cd redboot-eb40
> 
> ecosconfig new eb40 redboot
> ecosconfig.exe import
> ../ecos/packages/hal/arm/at91/current/misc/redboot_RAM.ecm
> ecosconfig tree
> make
> 
> Is there something I've done incorrectly? Is the eb40 target happy with the
> latest sources? I actually have an eb40a dev board, but I figured I worry
> about getting the eb40 to build before I went about changing things!
> 

Apply the attached patch (or update from CVS) and then redo the 
'import'.  This should fix the problem.

-- 
------------------------------------------------------------
Gary Thomas                       |
eCosCentric, Ltd.                 |  
+1 (970) 229-1963                 |  eCos & RedBoot experts
http://www.ecoscentric.com/       |
email: <gthomas@ecoscentric.com>  |
gpg: http://www.chez-thomas.org/gary/gpg_key.asc
------------------------------------------------------------
-------------- next part --------------
Index: hal/arm/at91/current/ChangeLog
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/arm/at91/current/ChangeLog,v
retrieving revision 1.6
diff -u -5 -p -r1.6 ChangeLog
--- hal/arm/at91/current/ChangeLog	23 Sep 2002 16:09:08 -0000	1.6
+++ hal/arm/at91/current/ChangeLog	7 Dec 2002 12:54:13 -0000
@@ -1,5 +1,12 @@
+2002-12-07  Gary Thomas  <gthomas@ecoscentric.com>
+
+	* misc/redboot_ROMRAM.ecm: 
+	* misc/redboot_ROM.ecm: 
+	* misc/redboot_RAM.ecm: Suppress building Linux 'exec' command
+	(which makes little sense on this platform).
+
 2002-09-23  Gary Thomas  <gthomas@ecoscentric.com> on behalf of
 2002-11-23  Scott Dattalo <scott@dattalo.com>	
 
 	* include/plf_io.h: Add some missing register definitions.
 
Index: hal/arm/at91/current/misc/redboot_RAM.ecm
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/arm/at91/current/misc/redboot_RAM.ecm,v
retrieving revision 1.1
diff -u -5 -p -r1.1 redboot_RAM.ecm
--- hal/arm/at91/current/misc/redboot_RAM.ecm	31 Jul 2001 21:15:37 -0000	1.1
+++ hal/arm/at91/current/misc/redboot_RAM.ecm	7 Dec 2002 12:53:08 -0000
@@ -50,6 +50,9 @@ cdl_option CYGOPT_REDBOOT_FIS {
 
 cdl_component CYGSEM_REDBOOT_FLASH_CONFIG {
     user_value 0
 };
 
+cdl_option CYGBLD_BUILD_REDBOOT_WITH_EXEC {
+    user_value 0
+};
 
Index: hal/arm/at91/current/misc/redboot_ROM.ecm
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/arm/at91/current/misc/redboot_ROM.ecm,v
retrieving revision 1.2
diff -u -5 -p -r1.2 redboot_ROM.ecm
--- hal/arm/at91/current/misc/redboot_ROM.ecm	20 May 2002 22:21:46 -0000	1.2
+++ hal/arm/at91/current/misc/redboot_ROM.ecm	7 Dec 2002 12:53:08 -0000
@@ -57,5 +57,10 @@ cdl_option CYGOPT_REDBOOT_FIS {
 };
 
 cdl_component CYGSEM_REDBOOT_FLASH_CONFIG {
     user_value 0
 };
+
+
+cdl_option CYGBLD_BUILD_REDBOOT_WITH_EXEC {
+    user_value 0
+};
Index: hal/arm/at91/current/misc/redboot_ROMRAM.ecm
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/arm/at91/current/misc/redboot_ROMRAM.ecm,v
retrieving revision 1.2
diff -u -5 -p -r1.2 redboot_ROMRAM.ecm
--- hal/arm/at91/current/misc/redboot_ROMRAM.ecm	20 May 2002 22:21:46 -0000	1.2
+++ hal/arm/at91/current/misc/redboot_ROMRAM.ecm	7 Dec 2002 12:53:07 -0000
@@ -62,6 +62,8 @@ cdl_component CYGSEM_REDBOOT_FLASH_CONFI
 
 cdl_option CYGNUM_FLASH_WORKSPACE_SIZE {
     user_value 0x00000200
 };
 
-
+cdl_option CYGBLD_BUILD_REDBOOT_WITH_EXEC {
+    user_value 0
+};

-------------- next part --------------
-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


More information about the Ecos-discuss mailing list