public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* RE: [ECOS] PPP on eCos(eb40a), continued...
@ 2003-10-16 19:06 Transferencia de Archivos
  2003-10-16 20:54 ` [ECOS] gdb stubs in ecos Ottawa Guy
  2003-10-17  8:26 ` [ECOS] PPP on eCos(eb40a), continued Eric de Jong
  0 siblings, 2 replies; 7+ messages in thread
From: Transferencia de Archivos @ 2003-10-16 19:06 UTC (permalink / raw)
  To: ecos-discuss

>This is not going to be much help, But I think you are right. It sounds like
>you are running out of RAM memory. Just the net component on its own without
>the PPP stack is large (in embedded terms).  
>
>How much memory have you setup the target to have? 

Well, the eb40a has 512k of RAM, I suposse that the space avaliable for the 
stack is much less,cuz the other pakgs. 


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

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

* [ECOS] gdb stubs in ecos.
  2003-10-16 19:06 [ECOS] PPP on eCos(eb40a), continued Transferencia de Archivos
@ 2003-10-16 20:54 ` Ottawa Guy
  2003-10-17  9:32   ` Nick Garnett
  2003-10-17  8:26 ` [ECOS] PPP on eCos(eb40a), continued Eric de Jong
  1 sibling, 1 reply; 7+ messages in thread
From: Ottawa Guy @ 2003-10-16 20:54 UTC (permalink / raw)
  To: ecos-discuss


Hello everyone, 
I have an interesting problem. I am running a
simulator. This simulator has interface similar to
redBoot. That means I could request the simulator to
load an ELF object file and start executing code at
some memory address. 


Now I want to run gdb-stubs on that simulator and then
use the host gdb program to connect to the simulator.

Can someone suggest me what to do.
           Hadi 



__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

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

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

* Re: [ECOS] PPP on eCos(eb40a), continued...
  2003-10-16 19:06 [ECOS] PPP on eCos(eb40a), continued Transferencia de Archivos
  2003-10-16 20:54 ` [ECOS] gdb stubs in ecos Ottawa Guy
@ 2003-10-17  8:26 ` Eric de Jong
  1 sibling, 0 replies; 7+ messages in thread
From: Eric de Jong @ 2003-10-17  8:26 UTC (permalink / raw)
  To: ecos-discuss

The eb40a has for a RAM application 256kb internal ram which is shared for both
debugger (redboot, ~60kb), program code and data (stack, heap, constants, bss).
If you have placed external ram, the linker script must be changed to use it,
providing that the memory interface (EBI) is already configured for that memory.
Redboot should have done this already in vector.S and hal_platform_setup.h
For a ROM application, the program code comes in FLASH and  no debugger has to
be used to load your application. This will give you more free ram. But as you
replace redboot, I would not recommend it. Too much trouble.

1) expand your eb40a with extra ram, if not already placed (I have never done it
myself)
2) check if redboot does set up the EBI interface correctly.
3) change your linker script (target.ld) to place the bss section in the
external ram. See if there is enough stack space and heap space left.

Eric de Jong

----- Original Message -----
>This is not going to be much help, But I think you are right. It sounds like
>you are running out of RAM memory. Just the net component on its own without
>the PPP stack is large (in embedded terms).
>
>How much memory have you setup the target to have?

Well, the eb40a has 512k of RAM, I suposse that the space avaliable for the
stack is much less,cuz the other pakgs.



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

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

* Re: [ECOS] gdb stubs in ecos.
  2003-10-16 20:54 ` [ECOS] gdb stubs in ecos Ottawa Guy
@ 2003-10-17  9:32   ` Nick Garnett
  0 siblings, 0 replies; 7+ messages in thread
From: Nick Garnett @ 2003-10-17  9:32 UTC (permalink / raw)
  To: Ottawa Guy; +Cc: ecos-discuss

Ottawa Guy <ottawaguy81@yahoo.com> writes:

> Hello everyone, 
> I have an interesting problem. I am running a
> simulator. This simulator has interface similar to
> redBoot. That means I could request the simulator to
> load an ELF object file and start executing code at
> some memory address. 
> 
> 
> Now I want to run gdb-stubs on that simulator and then
> use the host gdb program to connect to the simulator.
> 
> Can someone suggest me what to do.

This all depends on the level of hardware emulation that the simulator
supports. Does the simulator have full emulation of things like the
interrupt controller, UARTs, etc?

One approach we used in the past was for the simulator to connect its
UART device emulation to a TCP socket. We could then connect GDB to
that socket and treat it like a serial line. However, it was all very
slow because all debug interations were handled by simuated target
code.

-- 
Nick Garnett                    eCos Kernel Architect
http://www.ecoscentric.com      The eCos and RedBoot experts


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

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

* RE: [ECOS] PPP on eCos(eb40a), continued...
@ 2003-10-17  7:59 Retallack, Mark (Siemens)
  0 siblings, 0 replies; 7+ messages in thread
From: Retallack, Mark (Siemens) @ 2003-10-17  7:59 UTC (permalink / raw)
  To: 'Transferencia de Archivos'; +Cc: ecos-discuss

You might want to try the LWIP with its ppp stack, it should be smaller.


-----Original Message-----
From: Transferencia de Archivos [mailto:transfers@phaber.com]
Sent: Thursday 16 October 2003 08:07 PM
To: ecos-discuss@sources.redhat.com
Subject: RE: [ECOS] PPP on eCos(eb40a), continued...


>This is not going to be much help, But I think you are right. It sounds
like
>you are running out of RAM memory. Just the net component on its own
without
>the PPP stack is large (in embedded terms).  
>
>How much memory have you setup the target to have? 

Well, the eb40a has 512k of RAM, I suposse that the space avaliable for the 
stack is much less,cuz the other pakgs. 


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


Siemens Traffic Controls is a division of Siemens plc. Registered No.
727817, England. 
Registered office: Siemens House, Oldbury, Bracknell, Berkshire, RG12 8FZ. 

This communication contains information which is confidential and 
may also be privileged. It is for the exclusive use of the addressee. 
If you are not the addressee please note that any distribution, 
reproduction, copying, publication or use of this communication 
or the information in it is prohibited.  If you have received this 
communication in error, please contact us immediately and also 
delete the communication from your computer. 



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

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

* RE: [ECOS] PPP on eCos(eb40a), continued...
@ 2003-10-16  7:47 Retallack, Mark (Siemens)
  0 siblings, 0 replies; 7+ messages in thread
From: Retallack, Mark (Siemens) @ 2003-10-16  7:47 UTC (permalink / raw)
  To: 'Transferencia de Archivos'; +Cc: ecos-discuss

This is not going to be much help, But I think you are right. It sounds like
you are running out of RAM memory. Just the net component on its own without
the PPP stack is large (in embedded terms). 

How much memory have you setup the target to have? 



-----Original Message-----
From: Transferencia de Archivos [mailto:transfers@phaber.com]
Sent: Thursday 16 October 2003 05:49 AM
To: ecos-discuss@sources.redhat.com
Subject: [ECOS] PPP on eCos(eb40a), continued...



Again I used this lines to compile the kernel with "NET" support
> $ecosconfig new eb40a net
> $ecosconfig tree
> $make  
> 
No errors during compiling, still, compiling the examples, the same error 
appeared on all, 

../arm-elf/bin/ld: address 0x85df8 of hello section .bss is not within 
region ram 

Well, I dont know why this happened, but I suppose that the eb40a has not 
enough memory to suppor the stack, I have gotten this error before and was 
when I overpassed the ram limit of the board, therefore, why the error 
appears in a code like  a simple hello-world? 

Or that template NET is not intended to run for the eb40a? 

Thanx you all. 

Xcuze me If the questions has "obvious" answers. I'm still learning the eCos

thing.

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


Siemens Traffic Controls is a division of Siemens plc. Registered No.
727817, England. 
Registered office: Siemens House, Oldbury, Bracknell, Berkshire, RG12 8FZ. 

This communication contains information which is confidential and 
may also be privileged. It is for the exclusive use of the addressee. 
If you are not the addressee please note that any distribution, 
reproduction, copying, publication or use of this communication 
or the information in it is prohibited.  If you have received this 
communication in error, please contact us immediately and also 
delete the communication from your computer. 



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

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

* [ECOS] PPP on eCos(eb40a), continued...
  2003-10-16  4:32 [ECOS] PPP on eCos(eb40a) Transferencia de Archivos
@ 2003-10-16  4:48 ` Transferencia de Archivos
  0 siblings, 0 replies; 7+ messages in thread
From: Transferencia de Archivos @ 2003-10-16  4:48 UTC (permalink / raw)
  To: ecos-discuss


Again I used this lines to compile the kernel with "NET" support
> $ecosconfig new eb40a net
> $ecosconfig tree
> $make  
> 
No errors during compiling, still, compiling the examples, the same error 
appeared on all, 

../arm-elf/bin/ld: address 0x85df8 of hello section .bss is not within 
region ram 

Well, I dont know why this happened, but I suppose that the eb40a has not 
enough memory to suppor the stack, I have gotten this error before and was 
when I overpassed the ram limit of the board, therefore, why the error 
appears in a code like  a simple hello-world? 

Or that template NET is not intended to run for the eb40a? 

Thanx you all. 

Xcuze me If the questions has "obvious" answers. I'm still learning the eCos 
thing.

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

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

end of thread, other threads:[~2003-10-17  9:32 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-16 19:06 [ECOS] PPP on eCos(eb40a), continued Transferencia de Archivos
2003-10-16 20:54 ` [ECOS] gdb stubs in ecos Ottawa Guy
2003-10-17  9:32   ` Nick Garnett
2003-10-17  8:26 ` [ECOS] PPP on eCos(eb40a), continued Eric de Jong
  -- strict thread matches above, loose matches on Subject: below --
2003-10-17  7:59 Retallack, Mark (Siemens)
2003-10-16  7:47 Retallack, Mark (Siemens)
2003-10-16  4:32 [ECOS] PPP on eCos(eb40a) Transferencia de Archivos
2003-10-16  4:48 ` [ECOS] PPP on eCos(eb40a), continued Transferencia de Archivos

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