This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: the freebsd stack influence the program"hello world"?


On Mon, Mar 17, 2008 at 02:32:59PM +0800, venice wrote:
> Hi, my board is sam7x256ek; I take the redboot off and when I build the  
> program "hello world" without any network configuration it gets the right 
> result.
>        the hello.c :
> #include <stdio.h>
>
> int main(void)
> {
>  printf("Hello, eCos world!\n");
>  return 0;
> }
>
>     But if I joined the three packages "Common ethernet support." 
> "FreeBSD Stack." and "Networking." I get the following messages:
>
> arm-elf-gcc 
> -I/d/ecos/project/sam7x/system/at91sam7x256_sys_network_01_install/include 
> hello.c 
> -L/d/ecos/project/sam7x/system/at91sam7x256_sys_network_01_install/lib  
> -Ttarget.ld -nostdlib
 
> /ecos-d/ecos/gnutools/arm-elf/bin/../lib/gcc-lib/arm-elf/3.2.1/../../../../arm-elf/bin/ld: 
> address 0x143f64 of a.out section .text is not within region rom

The FreeBSD network stack is big, too big to fit in 256Kbytes of ROM.

Try the lwip 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]