* Re: [ECOS] HELP with target.ld file syntax...SOLUTION
[not found] <BAY16-DAV22hA53ZpEV0002047b@hotmail.com>
@ 2004-04-14 21:53 ` Leo McManus
2004-04-16 8:21 ` Richard.von.Lehe
0 siblings, 1 reply; 4+ messages in thread
From: Leo McManus @ 2004-04-14 21:53 UTC (permalink / raw)
To: openwince-list, EcosMailList EcosList
Added ram2 to the MEMORY in my target.ld:
MEMORY
{
ram : ORIGIN = 0x0000000, LENGTH = 0x800000
ram1 : ORIGIN = 0x0000000, LENGTH = 0x800000
ram2 : ORIGIN = 0x80000000, LENGTH = 0x800000
}
and my usb_buffs to my SECTIONS
SECTIONS
{
...
...
...
.fixed_vectors 0x20 : { . = .; KEEP (*(.fixed_vectors)) } > ram1
.usb_buff 0x80000000 : { . = .; KEEP (*(.usb_buff)) } > ram2
...
...
...
}
the attribute Gregoire mentioned to my C file:
uchar ECHO_ENDPOINT_BUFFER_1[1000] __attribute__((section(".usb_buff")));
uchar ECHO_ENDPOINT_BUFFER_2[1000] __attribute__((section(".usb_buff")));
uchar ECHO_ENDPOINT_RECV_BUFFER[1000] __attribute__((section(".usb_buff")));
and now my map file reads:
.usb_buff 0x80000000 0xbb8
0x80000000 . = .
*(.usb_buff)
.usb_buff 0x80000000 0xbb8 myFile.o
0x80000000 ECHO_ENDPOINT_BUFFER_1
0x800003e8 ECHO_ENDPOINT_BUFFER_2
0x800007d0 ECHO_ENDPOINT_RECV_BUFFER
Perfect...(before testing :)
Thanks
Leo
--- Gregoire ETIENNE <etiennegr@hotmail.com> wrote: > well, in you'r position,
I would declare that these buffer belong to a
> custom section with the __attribute__ keyword
>
> uchar ECHO_ENDPOINT_BUFFER_1[1000]
> __attribute__((section(".zone_name")));
>
> This will creat a section .zone_name with ECHO_ENDPOINT_BUFFER_1 in it
> once the section appears in your map file, adapt your target.ld file to
> simply place this section to the right address
>
> Greg
>
> ----- Original Message -----
> From: "Leo McManus" <leomcmanusir@yahoo.com>
> To: "OpenWinCE Project" <openwince-list-request@lists.sourceforge.net>;
> "EcosMailList EcosList" <ecos-discuss@sources.redhat.com>
> Sent: Wednesday, April 14, 2004 5:14 PM
> Subject: [ECOS] HELP with target.ld file syntax
>
>
> Running eCos on ARM Integreator board with ARM720T processor.
>
> I have 3 high speed USB OTG buffers which need to be above address
> 0x80000000
> on an ARM Integrator board, so my USB chip and the ARM can share the memory.
>
> uchar ECHO_ENDPOINT_BUFFER_1[1000];
> uchar ECHO_ENDPOINT_BUFFER_2[1000];
> uchar ECHO_ENDPOINT_RECV_BUFFER[1000];
>
> I am after the syntax to relocate the buffers using my target.ld linker
> file.
>
>
> Thanks
>
> Leo
>
>
> =====
> Mobile Belgium: +32 (0)495 89 59 65
> Contact in France: +33 (0)476 275661
>
> Registered Linux User Number 205935.
> http://counter.li.org.
>
>
>
>
>
> ____________________________________________________________
> Yahoo! Messenger - Communicate instantly..."Ping"
> your friends today! Download Messenger Now
> http://uk.messenger.yahoo.com/download/index.html
>
> --
> Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
> and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
>
=====
Mobile Belgium: +32 (0)495 89 59 65
Contact in France: +33 (0)476 275661
Registered Linux User Number 205935.
http://counter.li.org.
____________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping"
your friends today! Download Messenger Now
http://uk.messenger.yahoo.com/download/index.html
--
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] 4+ messages in thread
* Re: [ECOS] HELP with target.ld file syntax...SOLUTION
2004-04-14 21:53 ` [ECOS] HELP with target.ld file syntax...SOLUTION Leo McManus
@ 2004-04-16 8:21 ` Richard.von.Lehe
2004-04-16 10:02 ` Leo McManus
0 siblings, 1 reply; 4+ messages in thread
From: Richard.von.Lehe @ 2004-04-16 8:21 UTC (permalink / raw)
To: LeoM; +Cc: openwince-list, ecos-discuss
I am interested in this discussion and have a question about your
solution. Are you editing the actual target.ld file or are you editing
the mlt_xxx_xxx_xxx.ldi file that is used to generate the target.ld
file? Based on the syntax it looks like you are talking about the
actual target.ld file.
Is this a safe practice? In other words, when does the target.ld file
get re-generated? If it does, won't you lose your changes? I don't
fully know how this all works - hopefully you can straighten me out.
Regards,
Rich von Lehe
Leo McManus wrote:
>Added ram2 to the MEMORY in my target.ld:
>
> MEMORY
>{
> ram : ORIGIN = 0x0000000, LENGTH = 0x800000
> ram1 : ORIGIN = 0x0000000, LENGTH = 0x800000
> ram2 : ORIGIN = 0x80000000, LENGTH = 0x800000
>}
>
>and my usb_buffs to my SECTIONS
>
>SECTIONS
>{
>...
>...
>...
> .fixed_vectors 0x20 : { . = .; KEEP (*(.fixed_vectors)) } > ram1
> .usb_buff 0x80000000 : { . = .; KEEP (*(.usb_buff)) } > ram2
>...
>...
>...
>}
>
>the attribute Gregoire mentioned to my C file:
>
>uchar ECHO_ENDPOINT_BUFFER_1[1000] __attribute__((section(".usb_buff")));
>uchar ECHO_ENDPOINT_BUFFER_2[1000] __attribute__((section(".usb_buff")));
>uchar ECHO_ENDPOINT_RECV_BUFFER[1000] __attribute__((section(".usb_buff")));
>
>and now my map file reads:
>
>.usb_buff 0x80000000 0xbb8
> 0x80000000 . = .
> *(.usb_buff)
> .usb_buff 0x80000000 0xbb8 myFile.o
> 0x80000000 ECHO_ENDPOINT_BUFFER_1
> 0x800003e8 ECHO_ENDPOINT_BUFFER_2
> 0x800007d0 ECHO_ENDPOINT_RECV_BUFFER
>
>Perfect...(before testing :)
>
>Thanks
>
>Leo
>
> --- Gregoire ETIENNE <etiennegr@hotmail.com> wrote: > well, in you'r position,
>I would declare that these buffer belong to a
>
>
>>custom section with the __attribute__ keyword
>>
>>uchar ECHO_ENDPOINT_BUFFER_1[1000]
>>__attribute__((section(".zone_name")));
>>
>>This will creat a section .zone_name with ECHO_ENDPOINT_BUFFER_1 in it
>>once the section appears in your map file, adapt your target.ld file to
>>simply place this section to the right address
>>
>>Greg
>>
>>----- Original Message -----
>>From: "Leo McManus" <leomcmanusir@yahoo.com>
>>To: "OpenWinCE Project" <openwince-list-request@lists.sourceforge.net>;
>>"EcosMailList EcosList" <ecos-discuss@sources.redhat.com>
>>Sent: Wednesday, April 14, 2004 5:14 PM
>>Subject: [ECOS] HELP with target.ld file syntax
>>
>>
>>Running eCos on ARM Integreator board with ARM720T processor.
>>
>>I have 3 high speed USB OTG buffers which need to be above address
>>0x80000000
>>on an ARM Integrator board, so my USB chip and the ARM can share the memory.
>>
>>uchar ECHO_ENDPOINT_BUFFER_1[1000];
>>uchar ECHO_ENDPOINT_BUFFER_2[1000];
>>uchar ECHO_ENDPOINT_RECV_BUFFER[1000];
>>
>>I am after the syntax to relocate the buffers using my target.ld linker
>>file.
>>
>>
>>Thanks
>>
>>Leo
>>
>>
>>=====
>>Mobile Belgium: +32 (0)495 89 59 65
>>Contact in France: +33 (0)476 275661
>>
>>Registered Linux User Number 205935.
>>http://counter.li.org.
>>
>>
>>
>>
>>
>>____________________________________________________________
>>Yahoo! Messenger - Communicate instantly..."Ping"
>>your friends today! Download Messenger Now
>>http://uk.messenger.yahoo.com/download/index.html
>>
>>--
>>Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
>>and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
>>
>>
>>
>
>=====
>Mobile Belgium: +32 (0)495 89 59 65
>Contact in France: +33 (0)476 275661
>
>Registered Linux User Number 205935.
>http://counter.li.org.
>
>
>
>
>
>____________________________________________________________
>Yahoo! Messenger - Communicate instantly..."Ping"
>your friends today! Download Messenger Now
>http://uk.messenger.yahoo.com/download/index.html
>
>
>
--
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] 4+ messages in thread
* Re: [ECOS] HELP with target.ld file syntax...SOLUTION
2004-04-16 8:21 ` Richard.von.Lehe
@ 2004-04-16 10:02 ` Leo McManus
2004-04-16 12:20 ` Robert Cragie
0 siblings, 1 reply; 4+ messages in thread
From: Leo McManus @ 2004-04-16 10:02 UTC (permalink / raw)
To: openwince-list, ecos-discuss
I have generated an eCos library and am just linking to it, so am not
regenerating, (which I didn't know it did), the target.ld file. You are correct
and I am modifying the target.ld file, but I will look at the file you have
mentioned...if I can find the bugger..and see how my mods would be addable!
Thanks
Leo
--- Richard.von.Lehe@gd-ais.com wrote: > I am interested in this discussion
and have a question about your
> solution. Are you editing the actual target.ld file or are you editing
> the mlt_xxx_xxx_xxx.ldi file that is used to generate the target.ld
> file? Based on the syntax it looks like you are talking about the
> actual target.ld file.
>
> Is this a safe practice? In other words, when does the target.ld file
> get re-generated? If it does, won't you lose your changes? I don't
> fully know how this all works - hopefully you can straighten me out.
>
> Regards,
> Rich von Lehe
>
> Leo McManus wrote:
>
> >Added ram2 to the MEMORY in my target.ld:
> >
> > MEMORY
> >{
> > ram : ORIGIN = 0x0000000, LENGTH = 0x800000
> > ram1 : ORIGIN = 0x0000000, LENGTH = 0x800000
> > ram2 : ORIGIN = 0x80000000, LENGTH = 0x800000
> >}
> >
> >and my usb_buffs to my SECTIONS
> >
> >SECTIONS
> >{
> >...
> >...
> >...
> > .fixed_vectors 0x20 : { . = .; KEEP (*(.fixed_vectors)) } > ram1
> > .usb_buff 0x80000000 : { . = .; KEEP (*(.usb_buff)) } > ram2
> >...
> >...
> >...
> >}
> >
> >the attribute Gregoire mentioned to my C file:
> >
> >uchar ECHO_ENDPOINT_BUFFER_1[1000] __attribute__((section(".usb_buff")));
> >uchar ECHO_ENDPOINT_BUFFER_2[1000] __attribute__((section(".usb_buff")));
> >uchar ECHO_ENDPOINT_RECV_BUFFER[1000]
> __attribute__((section(".usb_buff")));
> >
> >and now my map file reads:
> >
> >.usb_buff 0x80000000 0xbb8
> > 0x80000000 . = .
> > *(.usb_buff)
> > .usb_buff 0x80000000 0xbb8 myFile.o
> > 0x80000000 ECHO_ENDPOINT_BUFFER_1
> > 0x800003e8 ECHO_ENDPOINT_BUFFER_2
> > 0x800007d0 ECHO_ENDPOINT_RECV_BUFFER
> >
> >Perfect...(before testing :)
> >
> >Thanks
> >
> >Leo
> >
> > --- Gregoire ETIENNE <etiennegr@hotmail.com> wrote: > well, in you'r
> position,
> >I would declare that these buffer belong to a
> >
> >
> >>custom section with the __attribute__ keyword
> >>
> >>uchar ECHO_ENDPOINT_BUFFER_1[1000]
> >>__attribute__((section(".zone_name")));
> >>
> >>This will creat a section .zone_name with ECHO_ENDPOINT_BUFFER_1 in it
> >>once the section appears in your map file, adapt your target.ld file to
> >>simply place this section to the right address
> >>
> >>Greg
> >>
> >>----- Original Message -----
> >>From: "Leo McManus" <leomcmanusir@yahoo.com>
> >>To: "OpenWinCE Project" <openwince-list-request@lists.sourceforge.net>;
> >>"EcosMailList EcosList" <ecos-discuss@sources.redhat.com>
> >>Sent: Wednesday, April 14, 2004 5:14 PM
> >>Subject: [ECOS] HELP with target.ld file syntax
> >>
> >>
> >>Running eCos on ARM Integreator board with ARM720T processor.
> >>
> >>I have 3 high speed USB OTG buffers which need to be above address
> >>0x80000000
> >>on an ARM Integrator board, so my USB chip and the ARM can share the
> memory.
> >>
> >>uchar ECHO_ENDPOINT_BUFFER_1[1000];
> >>uchar ECHO_ENDPOINT_BUFFER_2[1000];
> >>uchar ECHO_ENDPOINT_RECV_BUFFER[1000];
> >>
> >>I am after the syntax to relocate the buffers using my target.ld linker
> >>file.
> >>
> >>
> >>Thanks
> >>
> >>Leo
> >>
> >>
> >>=====
> >>Mobile Belgium: +32 (0)495 89 59 65
> >>Contact in France: +33 (0)476 275661
> >>
> >>Registered Linux User Number 205935.
> >>http://counter.li.org.
> >>
> >>
> >>
> >>
> >>
> >>____________________________________________________________
> >>Yahoo! Messenger - Communicate instantly..."Ping"
> >>your friends today! Download Messenger Now
> >>http://uk.messenger.yahoo.com/download/index.html
> >>
> >>--
> >>Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
> >>and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
> >>
> >>
> >>
> >
> >=====
> >Mobile Belgium: +32 (0)495 89 59 65
> >Contact in France: +33 (0)476 275661
> >
> >Registered Linux User Number 205935.
> >http://counter.li.org.
> >
> >
> >
> >
> >
> >____________________________________________________________
> >Yahoo! Messenger - Communicate instantly..."Ping"
> >your friends today! Download Messenger Now
> >http://uk.messenger.yahoo.com/download/index.html
> >
> >
> >
>
=====
Mobile Belgium: +32 (0)495 89 59 65
Contact in France: +33 (0)476 275661
Registered Linux User Number 205935.
http://counter.li.org.
____________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping"
your friends today! Download Messenger Now
http://uk.messenger.yahoo.com/download/index.html
--
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] 4+ messages in thread
* RE: [ECOS] HELP with target.ld file syntax...SOLUTION
2004-04-16 10:02 ` Leo McManus
@ 2004-04-16 12:20 ` Robert Cragie
0 siblings, 0 replies; 4+ messages in thread
From: Robert Cragie @ 2004-04-16 12:20 UTC (permalink / raw)
To: LeoM, ecos-discuss
Another way of doing it is altering the architecture .ld file (e.g.
hal/arm/arch/current/src/arm.ld) and add a
#define SECTION_ram2(_region_, _vma_, _lma_)
part. You can then include this in your mlt_xxx.ldi file so target.ld will
always be generated properly. The MEMORY part is already in the mlt_xxx.ldi
file.
There may also be a way to do it like this specifically for a platform but I
haven't figured it out yet.
Robert Cragie, Design Engineer
_______________________________________________________________
Jennic Ltd, Furnival Street, Sheffield, S1 4QT, UK
http://www.jennic.com Tel: +44 (0) 114 281 2655
_______________________________________________________________
> -----Original Message-----
> From: ecos-discuss-owner@ecos.sourceware.org
> [mailto:ecos-discuss-owner@ecos.sourceware.org]On Behalf Of Leo McManus
> Sent: 16 April 2004 09:21
> To: openwince-list@lists.sourceforge.net;
> ecos-discuss@sources.redhat.com
> Subject: Re: [ECOS] HELP with target.ld file syntax...SOLUTION
>
>
> I have generated an eCos library and am just linking to it, so am not
> regenerating, (which I didn't know it did), the target.ld file.
> You are correct
> and I am modifying the target.ld file, but I will look at the
> file you have
> mentioned...if I can find the bugger..and see how my mods would
> be addable!
>
> Thanks
>
> Leo
>
>
>
>
> --- Richard.von.Lehe@gd-ais.com wrote: > I am interested in this
> discussion
> and have a question about your
> > solution. Are you editing the actual target.ld file or are you editing
> > the mlt_xxx_xxx_xxx.ldi file that is used to generate the target.ld
> > file? Based on the syntax it looks like you are talking about the
> > actual target.ld file.
> >
> > Is this a safe practice? In other words, when does the target.ld file
> > get re-generated? If it does, won't you lose your changes? I don't
> > fully know how this all works - hopefully you can straighten me out.
> >
> > Regards,
> > Rich von Lehe
> >
> > Leo McManus wrote:
> >
> > >Added ram2 to the MEMORY in my target.ld:
> > >
> > > MEMORY
> > >{
> > > ram : ORIGIN = 0x0000000, LENGTH = 0x800000
> > > ram1 : ORIGIN = 0x0000000, LENGTH = 0x800000
> > > ram2 : ORIGIN = 0x80000000, LENGTH = 0x800000
> > >}
> > >
> > >and my usb_buffs to my SECTIONS
> > >
> > >SECTIONS
> > >{
> > >...
> > >...
> > >...
> > > .fixed_vectors 0x20 : { . = .; KEEP (*(.fixed_vectors)) } > ram1
> > > .usb_buff 0x80000000 : { . = .; KEEP (*(.usb_buff)) } > ram2
> > >...
> > >...
> > >...
> > >}
> > >
> > >the attribute Gregoire mentioned to my C file:
> > >
> > >uchar ECHO_ENDPOINT_BUFFER_1[1000]
> __attribute__((section(".usb_buff")));
> > >uchar ECHO_ENDPOINT_BUFFER_2[1000]
> __attribute__((section(".usb_buff")));
> > >uchar ECHO_ENDPOINT_RECV_BUFFER[1000]
> > __attribute__((section(".usb_buff")));
> > >
> > >and now my map file reads:
> > >
> > >.usb_buff 0x80000000 0xbb8
> > > 0x80000000 . = .
> > > *(.usb_buff)
> > > .usb_buff 0x80000000 0xbb8 myFile.o
> > > 0x80000000 ECHO_ENDPOINT_BUFFER_1
> > > 0x800003e8 ECHO_ENDPOINT_BUFFER_2
> > > 0x800007d0 ECHO_ENDPOINT_RECV_BUFFER
> > >
> > >Perfect...(before testing :)
> > >
> > >Thanks
> > >
> > >Leo
> > >
> > > --- Gregoire ETIENNE <etiennegr@hotmail.com> wrote: > well, in you'r
> > position,
> > >I would declare that these buffer belong to a
> > >
> > >
> > >>custom section with the __attribute__ keyword
> > >>
> > >>uchar ECHO_ENDPOINT_BUFFER_1[1000]
> > >>__attribute__((section(".zone_name")));
> > >>
> > >>This will creat a section .zone_name with ECHO_ENDPOINT_BUFFER_1 in it
> > >>once the section appears in your map file, adapt your
> target.ld file to
> > >>simply place this section to the right address
> > >>
> > >>Greg
> > >>
> > >>----- Original Message -----
> > >>From: "Leo McManus" <leomcmanusir@yahoo.com>
> > >>To: "OpenWinCE Project"
> <openwince-list-request@lists.sourceforge.net>;
> > >>"EcosMailList EcosList" <ecos-discuss@sources.redhat.com>
> > >>Sent: Wednesday, April 14, 2004 5:14 PM
> > >>Subject: [ECOS] HELP with target.ld file syntax
> > >>
> > >>
> > >>Running eCos on ARM Integreator board with ARM720T processor.
> > >>
> > >>I have 3 high speed USB OTG buffers which need to be above address
> > >>0x80000000
> > >>on an ARM Integrator board, so my USB chip and the ARM can share the
> > memory.
> > >>
> > >>uchar ECHO_ENDPOINT_BUFFER_1[1000];
> > >>uchar ECHO_ENDPOINT_BUFFER_2[1000];
> > >>uchar ECHO_ENDPOINT_RECV_BUFFER[1000];
> > >>
> > >>I am after the syntax to relocate the buffers using my
> target.ld linker
> > >>file.
> > >>
> > >>
> > >>Thanks
> > >>
> > >>Leo
> > >>
> > >>
> > >>=====
> > >>Mobile Belgium: +32 (0)495 89 59 65
> > >>Contact in France: +33 (0)476 275661
> > >>
> > >>Registered Linux User Number 205935.
> > >>http://counter.li.org.
> > >>
> > >>
> > >>
> > >>
> > >>
> > >>____________________________________________________________
> > >>Yahoo! Messenger - Communicate instantly..."Ping"
> > >>your friends today! Download Messenger Now
> > >>http://uk.messenger.yahoo.com/download/index.html
> > >>
> > >>--
> > >>Before posting, please read the FAQ:
> http://ecos.sourceware.org/fom/ecos
> > >>and search the list archive:
> http://ecos.sourceware.org/ml/ecos-discuss
> > >>
> > >>
> > >>
> > >
> > >=====
> > >Mobile Belgium: +32 (0)495 89 59 65
> > >Contact in France: +33 (0)476 275661
> > >
> > >Registered Linux User Number 205935.
> > >http://counter.li.org.
> > >
> > >
> > >
> > >
> > >
> > >____________________________________________________________
> > >Yahoo! Messenger - Communicate instantly..."Ping"
> > >your friends today! Download Messenger Now
> > >http://uk.messenger.yahoo.com/download/index.html
> > >
> > >
> > >
> >
>
> =====
> Mobile Belgium: +32 (0)495 89 59 65
> Contact in France: +33 (0)476 275661
>
> Registered Linux User Number 205935.
> http://counter.li.org.
>
>
>
>
>
> ____________________________________________________________
> Yahoo! Messenger - Communicate instantly..."Ping"
> your friends today! Download Messenger Now
> http://uk.messenger.yahoo.com/download/index.html
>
> --
> Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
> and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
>
>
--
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] 4+ messages in thread
end of thread, other threads:[~2004-04-16 11:47 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <BAY16-DAV22hA53ZpEV0002047b@hotmail.com>
2004-04-14 21:53 ` [ECOS] HELP with target.ld file syntax...SOLUTION Leo McManus
2004-04-16 8:21 ` Richard.von.Lehe
2004-04-16 10:02 ` Leo McManus
2004-04-16 12:20 ` Robert Cragie
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).