public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Build Error when Compiling redboot
@ 2006-06-01 21:56 Moussa A. Ba
  2006-06-01 22:52 ` Gary Thomas
  0 siblings, 1 reply; 6+ messages in thread
From: Moussa A. Ba @ 2006-06-01 21:56 UTC (permalink / raw)
  To: ecos-discuss

I am attempting to recompile Redboot for the at91 I am getting the 
following error

arm-elf-gcc -c  -I/ecos-c/cygwin/opt/dev/ecos/work/ecos_install/include 
-I/opt/dev/ecos/pa
ckages/redboot/current -I/opt/dev/ecos/packages/redboot/current/src 
-I/opt/dev/ecos/packag
es/redboot/current/tests -I. 
-I/opt/dev/ecos/packages/redboot/current/src/ -finline-limit=
7000 -mthumb-interwork -mcpu=arm7tdmi -Wall -Wpointer-arith 
-Wstrict-prototypes -Winline -
Wundef  -g -O2 -ffunction-sections -fdata-sections  -fno-exceptions   
-Wp,-MD,src/main.tmp
 -o src/redboot_main.o /opt/dev/ecos/packages/redboot/current/src/main.c
In file included from /opt/dev/ecos/packages/redboot/current/src/main.c:57:
/ecos-c/cygwin/opt/dev/ecos/work/ecos_install/include/redboot.h:65:25: 
cyg/crc/crc.h: No s
uch file or directory
make[1]: *** [src/main.o.d] Error 1
make[1]: Leaving directory `/opt/dev/ecos/work/ecos_build/redboot/current'
make: *** [build] Error 2


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [ECOS] Build Error when Compiling redboot
  2006-06-01 21:56 [ECOS] Build Error when Compiling redboot Moussa A. Ba
@ 2006-06-01 22:52 ` Gary Thomas
  2006-06-02 20:11   ` Moussa Ba
  0 siblings, 1 reply; 6+ messages in thread
From: Gary Thomas @ 2006-06-01 22:52 UTC (permalink / raw)
  To: Moussa A. Ba; +Cc: ecos-discuss

On Thu, 2006-06-01 at 17:56 -0400, Moussa A. Ba wrote:
> I am attempting to recompile Redboot for the at91 I am getting the 
> following error
> 
> arm-elf-gcc -c  -I/ecos-c/cygwin/opt/dev/ecos/work/ecos_install/include 
> -I/opt/dev/ecos/pa
> ckages/redboot/current -I/opt/dev/ecos/packages/redboot/current/src 
> -I/opt/dev/ecos/packag
> es/redboot/current/tests -I. 
> -I/opt/dev/ecos/packages/redboot/current/src/ -finline-limit=
> 7000 -mthumb-interwork -mcpu=arm7tdmi -Wall -Wpointer-arith 
> -Wstrict-prototypes -Winline -
> Wundef  -g -O2 -ffunction-sections -fdata-sections  -fno-exceptions   
> -Wp,-MD,src/main.tmp
>  -o src/redboot_main.o /opt/dev/ecos/packages/redboot/current/src/main.c
> In file included from /opt/dev/ecos/packages/redboot/current/src/main.c:57:
> /ecos-c/cygwin/opt/dev/ecos/work/ecos_install/include/redboot.h:65:25: 
> cyg/crc/crc.h: No s
> uch file or directory
> make[1]: *** [src/main.o.d] Error 1
> make[1]: Leaving directory `/opt/dev/ecos/work/ecos_build/redboot/current'
> make: *** [build] Error 2


Which target?  How did you configure eCos?

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [ECOS] Build Error when Compiling redboot
  2006-06-01 22:52 ` Gary Thomas
@ 2006-06-02 20:11   ` Moussa Ba
  2006-06-03  8:09     ` Andrew Lunn
  0 siblings, 1 reply; 6+ messages in thread
From: Moussa Ba @ 2006-06-02 20:11 UTC (permalink / raw)
  To: Gary Thomas, ecos-discuss

I was able to successfully do the following
ecosconfig new at91sam7s
ecosconfig tree
ecosconfig check
make
make tests

After this I launched the configtool, I did a Build->Packages->Redboot...

I am probably doing this wrong, I am simply trying to compile Redboot 
for the at91 and look a memory usage to confirm or infirm that I am able 
to run Redboot on aa 128K/16KRAM Oki ARM processor.

Moussa


Gary Thomas wrote:
> On Thu, 2006-06-01 at 17:56 -0400, Moussa A. Ba wrote:
>   
>> I am attempting to recompile Redboot for the at91 I am getting the 
>> following error
>>
>> arm-elf-gcc -c  -I/ecos-c/cygwin/opt/dev/ecos/work/ecos_install/include 
>> -I/opt/dev/ecos/pa
>> ckages/redboot/current -I/opt/dev/ecos/packages/redboot/current/src 
>> -I/opt/dev/ecos/packag
>> es/redboot/current/tests -I. 
>> -I/opt/dev/ecos/packages/redboot/current/src/ -finline-limit=
>> 7000 -mthumb-interwork -mcpu=arm7tdmi -Wall -Wpointer-arith 
>> -Wstrict-prototypes -Winline -
>> Wundef  -g -O2 -ffunction-sections -fdata-sections  -fno-exceptions   
>> -Wp,-MD,src/main.tmp
>>  -o src/redboot_main.o /opt/dev/ecos/packages/redboot/current/src/main.c
>> In file included from /opt/dev/ecos/packages/redboot/current/src/main.c:57:
>> /ecos-c/cygwin/opt/dev/ecos/work/ecos_install/include/redboot.h:65:25: 
>> cyg/crc/crc.h: No s
>> uch file or directory
>> make[1]: *** [src/main.o.d] Error 1
>> make[1]: Leaving directory `/opt/dev/ecos/work/ecos_build/redboot/current'
>> make: *** [build] Error 2
>>     
>
>
> Which target?  How did you configure eCos?
>
>   


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [ECOS] Build Error when Compiling redboot
  2006-06-02 20:11   ` Moussa Ba
@ 2006-06-03  8:09     ` Andrew Lunn
  2006-06-03 15:12       ` Moussa Ba
  0 siblings, 1 reply; 6+ messages in thread
From: Andrew Lunn @ 2006-06-03  8:09 UTC (permalink / raw)
  To: Moussa Ba; +Cc: ecos-discuss

On Fri, Jun 02, 2006 at 04:11:09PM -0400, Moussa Ba wrote:
> I was able to successfully do the following
> ecosconfig new at91sam7s
> ecosconfig tree
> ecosconfig check
> make
> make tests
> 
> After this I launched the configtool, I did a Build->Packages->Redboot...
> 
> I am probably doing this wrong, I am simply trying to compile Redboot 
> for the at91 and look a memory usage to confirm or infirm that I am able 
> to run Redboot on aa 128K/16KRAM Oki ARM processor.
> 
> Moussa

The correct way to build redboot is:

~/eCos/work$ rm -fr *
~/eCos/work$ ecosconfig new at91sam7sek redboot
U CYGHWR_HAL_ARM_AT91, new inferred value AT91SAM7S
U CYGHWR_HAL_ARM_AT91_FIQ, new inferred value 1
U CYGSEM_HAL_ROM_MONITOR, new inferred value 1
U CYGIMP_HAL_COMMON_INTERRUPTS_USE_INTERRUPT_STACK, new inferred value 0
~/eCos/work$ ecosconfig import ../anoncvs-clean/packages/hal/arm/at91/at91sam7s/current/misc/redboot_ROM.ecm
~/eCos/work$ ecosconfig tree
~/eCos/work$ make -s
headers finished
build finished
~/eCos/work$ ls -l install/bin/
total 740
-rwxr-xr-x 1 lunn lunn  65572 Jun  3 10:06 redboot.bin*
-rwxr-xr-x 1 lunn lunn 410942 Jun  3 10:06 redboot.elf*
-rwxr-xr-x 1 lunn lunn 120656 Jun  3 10:06 redboot.img*
-rwxr-xr-x 1 lunn lunn 188648 Jun  3 10:06 redboot.srec*

The redboot user guide contains a section about rebuilding Redboot:
http://ecos.sourceware.org/docs-latest/redboot/redboot-guide.html

           Andrew

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [ECOS] Build Error when Compiling redboot
  2006-06-03  8:09     ` Andrew Lunn
@ 2006-06-03 15:12       ` Moussa Ba
  2006-06-06  7:18         ` Andrew Lunn
  0 siblings, 1 reply; 6+ messages in thread
From: Moussa Ba @ 2006-06-03 15:12 UTC (permalink / raw)
  To: Andrew Lunn, ecos-discuss

Thank you I had went back and figured it out from the RedBoot manual.  
Thank you for the help.  I have recompiled the mcb2100 version of ecos, 
and to save RAM I decreased the stack size allocated to the main from 
8192 to 2048 is this reasonable, I don't expect to be going too deep in 
the stack but I am not sure if ecos related functions needed this much.

Moussa

Andrew Lunn wrote:
> On Fri, Jun 02, 2006 at 04:11:09PM -0400, Moussa Ba wrote:
>   
>> I was able to successfully do the following
>> ecosconfig new at91sam7s
>> ecosconfig tree
>> ecosconfig check
>> make
>> make tests
>>
>> After this I launched the configtool, I did a Build->Packages->Redboot...
>>
>> I am probably doing this wrong, I am simply trying to compile Redboot 
>> for the at91 and look a memory usage to confirm or infirm that I am able 
>> to run Redboot on aa 128K/16KRAM Oki ARM processor.
>>
>> Moussa
>>     
>
> The correct way to build redboot is:
>
> ~/eCos/work$ rm -fr *
> ~/eCos/work$ ecosconfig new at91sam7sek redboot
> U CYGHWR_HAL_ARM_AT91, new inferred value AT91SAM7S
> U CYGHWR_HAL_ARM_AT91_FIQ, new inferred value 1
> U CYGSEM_HAL_ROM_MONITOR, new inferred value 1
> U CYGIMP_HAL_COMMON_INTERRUPTS_USE_INTERRUPT_STACK, new inferred value 0
> ~/eCos/work$ ecosconfig import ../anoncvs-clean/packages/hal/arm/at91/at91sam7s/current/misc/redboot_ROM.ecm
> ~/eCos/work$ ecosconfig tree
> ~/eCos/work$ make -s
> headers finished
> build finished
> ~/eCos/work$ ls -l install/bin/
> total 740
> -rwxr-xr-x 1 lunn lunn  65572 Jun  3 10:06 redboot.bin*
> -rwxr-xr-x 1 lunn lunn 410942 Jun  3 10:06 redboot.elf*
> -rwxr-xr-x 1 lunn lunn 120656 Jun  3 10:06 redboot.img*
> -rwxr-xr-x 1 lunn lunn 188648 Jun  3 10:06 redboot.srec*
>
> The redboot user guide contains a section about rebuilding Redboot:
> http://ecos.sourceware.org/docs-latest/redboot/redboot-guide.html
>
>            Andrew
>
>   


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [ECOS] Build Error when Compiling redboot
  2006-06-03 15:12       ` Moussa Ba
@ 2006-06-06  7:18         ` Andrew Lunn
  0 siblings, 0 replies; 6+ messages in thread
From: Andrew Lunn @ 2006-06-06  7:18 UTC (permalink / raw)
  To: Moussa Ba; +Cc: Andrew Lunn, ecos-discuss

On Sat, Jun 03, 2006 at 11:12:01AM -0400, Moussa Ba wrote:
> Thank you I had went back and figured it out from the RedBoot manual.  
> Thank you for the help.  I have recompiled the mcb2100 version of ecos, 
> and to save RAM I decreased the stack size allocated to the main from 
> 8192 to 2048 is this reasonable, I don't expect to be going too deep in 
> the stack but I am not sure if ecos related functions needed this much.

You need to watch out for diag_printf(). It can use a lot of stack.

    Andrew

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-06-06  7:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-01 21:56 [ECOS] Build Error when Compiling redboot Moussa A. Ba
2006-06-01 22:52 ` Gary Thomas
2006-06-02 20:11   ` Moussa Ba
2006-06-03  8:09     ` Andrew Lunn
2006-06-03 15:12       ` Moussa Ba
2006-06-06  7:18         ` Andrew Lunn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).