public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] AT91EB40 networking problem
@ 2001-09-21  0:31 Bryan Mok
  2001-09-21  1:44 ` Jesper Skov
  0 siblings, 1 reply; 4+ messages in thread
From: Bryan Mok @ 2001-09-21  0:31 UTC (permalink / raw)
  To: ecos-discuss

Hi all,
	I am working on AT91EB40 with AT91R40807 processor. I
have downloaded the pre-built binary in web and
followed the Redboot's user guide to install Redboot
to the board. Then I have built eCos and compiled
"hello world" testing program. It runs very well. 
	Now I am working on the communication programming for
the same board. I have add the TCP/IP
packet(net-1.0b1.epk) to eCos. I can build the eCos
from net template without error. But I can't build the
network testing program. The following is the commands
that I used to build the eCos and the testing program.

% ecosconfig new eb40 net
% ecosconfig tree
% make
% make -C net/tcpip/current tests

make: Entering directory
`/opt/ecos/ecos-1.3.1/eb40-net/net/tcpip/current'
arm-elf-gcc -mcpu=arm7tdmi -mno-short-load-words
-Wl,--gc-sections -Wl,-static -g -nostdlib
-L/opt/ecos/ecos-1.3.1/eb40-net/install/lib
-Ttarget.ld -o
/opt/ecos/ecos-1.3.1/eb40-net/install/tests/net/tcpip/current/tests/ping_lo_test
tests/ping_lo_test.o
/tools/H-i686-pc-linux-gnu/arm-elf/bin/ld: address
0x20a113c of
/opt/ecos/ecos-1.3.1/eb40-net/install/tests/net/tcpip/current/tests/ping_lo_test

section .bss is not within region ram
collect2: ld returned 1 exit status
make: ***
[/opt/ecos/ecos-1.3.1/eb40-net/install/tests/net/tcpip/current/tests/ping_lo_test]
Error 1
make: Leaving directory
`/opt/ecos/ecos-1.3.1/eb40-net/net/tcpip/current' 

	What should I do? Should I modify the memory layout
so that section .bss become within region ram? If yes,
which file should I modify?

	Thx for any help!

Regards,
  Bryan Mok

__________________________________________________
Terrorist Attacks on U.S. - How can you help?
Donate cash, emergency relief information
http://dailynews.yahoo.com/fc/US/Emergency_Information/

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

* Re: [ECOS] AT91EB40 networking problem
  2001-09-21  0:31 [ECOS] AT91EB40 networking problem Bryan Mok
@ 2001-09-21  1:44 ` Jesper Skov
  2001-09-23 18:56   ` Bryan Mok
  0 siblings, 1 reply; 4+ messages in thread
From: Jesper Skov @ 2001-09-21  1:44 UTC (permalink / raw)
  To: Bryan Mok; +Cc: ecos-discuss

>>>>> "Bryan" == Bryan Mok <mkyui@yahoo.com> writes:

Bryan> make: Entering directory
Bryan> `/opt/ecos/ecos-1.3.1/eb40-net/net/tcpip/current' arm-elf-gcc
Bryan> -mcpu=arm7tdmi -mno-short-load-words -Wl,--gc-sections
Bryan> -Wl,-static -g -nostdlib
Bryan> -L/opt/ecos/ecos-1.3.1/eb40-net/install/lib -Ttarget.ld -o
Bryan> /opt/ecos/ecos-1.3.1/eb40-net/install/tests/net/tcpip/current/tests/ping_lo_test
Bryan> tests/ping_lo_test.o /tools/H-i686-pc-linux-gnu/arm-elf/bin/ld:
Bryan> address 0x20a113c of
Bryan> /opt/ecos/ecos-1.3.1/eb40-net/install/tests/net/tcpip/current/tests/ping_lo_test

Bryan> section .bss is not within region ram collect2: ld returned 1
Bryan> exit status make: ***
Bryan> [/opt/ecos/ecos-1.3.1/eb40-net/install/tests/net/tcpip/current/tests/ping_lo_test]
Bryan> Error 1 make: Leaving directory
Bryan> `/opt/ecos/ecos-1.3.1/eb40-net/net/tcpip/current'

Bryan> 	What should I do? Should I modify the memory layout so that
Bryan> section .bss become within region ram? If yes, which file
Bryan> should I modify?

Problem appears to be that the test is too big for the available
memory. Look for the RAM startup .ldi file and make sure the memory
size is correct. If it is, there's little you can do, other than try
to reduce the size of the test.

Jesper

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

* Re: [ECOS] AT91EB40 networking problem
  2001-09-21  1:44 ` Jesper Skov
@ 2001-09-23 18:56   ` Bryan Mok
  2001-09-23 19:14     ` Gary Thomas
  0 siblings, 1 reply; 4+ messages in thread
From: Bryan Mok @ 2001-09-23 18:56 UTC (permalink / raw)
  To: ecos-discuss

--- Jesper Skov <jskov@redhat.com> wrote:
> >>>>> "Bryan" == Bryan Mok <mkyui@yahoo.com> writes:
> 
> Bryan> make: Entering directory
> Bryan>
> `/opt/ecos/ecos-1.3.1/eb40-net/net/tcpip/current'
> arm-elf-gcc
> Bryan> -mcpu=arm7tdmi -mno-short-load-words
> -Wl,--gc-sections
> Bryan> -Wl,-static -g -nostdlib
> Bryan> -L/opt/ecos/ecos-1.3.1/eb40-net/install/lib
> -Ttarget.ld -o
> Bryan>
>
/opt/ecos/ecos-1.3.1/eb40-net/install/tests/net/tcpip/current/tests/ping_lo_test
> Bryan> tests/ping_lo_test.o
> /tools/H-i686-pc-linux-gnu/arm-elf/bin/ld:
> Bryan> address 0x20a113c of
> Bryan>
>
/opt/ecos/ecos-1.3.1/eb40-net/install/tests/net/tcpip/current/tests/ping_lo_test
> 
> Bryan> section .bss is not within region ram
> collect2: ld returned 1
> Bryan> exit status make: ***
> Bryan>
>
[/opt/ecos/ecos-1.3.1/eb40-net/install/tests/net/tcpip/current/tests/ping_lo_test]
> Bryan> Error 1 make: Leaving directory
> Bryan>
> `/opt/ecos/ecos-1.3.1/eb40-net/net/tcpip/current'
> 
> Bryan> 	What should I do? Should I modify the memory
> layout so that
> Bryan> section .bss become within region ram? If
> yes, which file
> Bryan> should I modify?
> 
> Problem appears to be that the test is too big for
> the available
> memory. Look for the RAM startup .ldi file and make
> sure the memory
> size is correct. If it is, there's little you can
> do, other than try
> to reduce the size of the test.
> 
> Jesper


Hi,

I have checked the .ldi file. The memory size is
correct there. And I also tried to compile a "hello
world" test. It fails again with the same error :
"section .bss is not within region ram collect2: ld
returned 1". 
Is the problem of the starting address? Or does the
tcpip stack not available for the AT91EB40 platform
yet?

Bryan

__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger. http://im.yahoo.com

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

* Re: [ECOS] AT91EB40 networking problem
  2001-09-23 18:56   ` Bryan Mok
@ 2001-09-23 19:14     ` Gary Thomas
  0 siblings, 0 replies; 4+ messages in thread
From: Gary Thomas @ 2001-09-23 19:14 UTC (permalink / raw)
  To: Bryan Mok; +Cc: eCos Discussion

On Mon, 2001-09-24 at 10:56, Bryan Mok wrote:

> Hi,
> 
> I have checked the .ldi file. The memory size is
> correct there. And I also tried to compile a "hello
> world" test. It fails again with the same error :
> "section .bss is not within region ram collect2: ld
> returned 1". 
> Is the problem of the starting address? Or does the
> tcpip stack not available for the AT91EB40 platform
> yet?
> 
> Bryan

Including the TCP/IP stack makes no sense on this hardware at
this time - there is no ethernet driver defined for it and we
do not yet support serial (PPP) based networking.

Sorry.

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

end of thread, other threads:[~2001-09-23 19:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-21  0:31 [ECOS] AT91EB40 networking problem Bryan Mok
2001-09-21  1:44 ` Jesper Skov
2001-09-23 18:56   ` Bryan Mok
2001-09-23 19:14     ` Gary Thomas

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).