public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* RE: [ECOS] Simulator problems on EB40a
       [not found] <20040423181157.1B2DF100007@hermes.chez-thomas.org>
@ 2004-04-23 22:50 ` Gary Thomas
  0 siblings, 0 replies; 8+ messages in thread
From: Gary Thomas @ 2004-04-23 22:50 UTC (permalink / raw)
  To: Martin; +Cc: 'Martin', ecos-discuss

On Fri, 2004-04-23 at 12:11, Martin wrote:
> -----Original Message-----
> From: Gary Thomas [mailto:gary@mlbassoc.com] 
> Sent: 23. april 2004 16:18
> To: Martin
> Cc: ecos-discuss@sources.redhat.com
> Subject: Re: [ECOS] Simulator problems on EB40a
> 
> On Fri, 2004-04-23 at 05:59, Martin wrote:
> > Regards
> > 
> > I am trying to run the classic "hello world" on a simulator for EB40a. 
> > I have done the following:
> > 
> > 1) Compiled the ecos: Template: "EB40a", startup type "rom", build 
> > library
> > 
> > 2) Linked and compiled the program: "arm-elf-gcc -g -I 
> > opt/ecos/work/ecos_rom_std_install/include hello.c -L 
> > /opt/ecos/work/ecos_rom_std_install/lib/ -Ttarget.ld -nostdlib"
> > 
> > 3) Connect to the target: "arm-elf-gdb a.out"
> >         GNU gdb 5.3 (eCosCentric)
> >         Copyright 2002 Free Software Foundation, Inc.
> >         GDB is free software, covered by the GNU General Public 
> > License, and you are welcome to change it and/or distribute copies of 
> > it under certain conditions.
> >         Type "show copying" to see the conditions.
> >         There is absolutely no warranty for GDB.  Type "show warranty" 
> > for details.
> >         This GDB was configured as "--host=i686-pc-linux-gnu 
> > --target=arm- elf"...
> > 
> >    a) tar sim --board=eb40a
> >         Connected to the simulator.
> >             
> >    b) load
> >         Loading section .rom_vectors, size 0x40 vma 0x1000000
> >         Loading section .text, size 0xfedc vma 0x1000040
> >         Loading section .rodata, size 0x2a0 vma 0x100ff1c
> >         Loading section .data, size 0x378 vma 0x4000
> >         Start address 0x1000040
> >         Transfer rate: 534944 bits in <1 sec.
> > 
> >    c) run
> >         Starting program: /opt/ecos/ecos-2.0/examples/a.out
> > 
> > Afterwards nothing happens. Is it correct that I need to build the 
> > tree for "ROM startup", when I want to run my program on the simulator 
> > without any monitor? Am I missing anything here? I checked out the 
> > eCos CVS about two weeks ago.
> > 
> > /Martin
> 
> Does this simulator support the *exact* peripheral set that eCos is looking
> for?  Where/how did you get/build it?
> 
> --
> Gary Thomas <gary@mlbassoc.com>
> MLB Associates
> 
> What do you mean by peripheral? I installed eCos as described in the
> documentation (http://ecos.sourceware.org/getstart.html) on a Mandrake 9.2
> distribution. I know this is working, as I have build eCos and linked it
> with the hello world program, and executed it succesfully on the board. As
> far as I have understood, the board is directly supported by eCos. Do I need
> to configure anything particular about the simulator? Is it correct that I
> need to build the tree for "ROM startup", when I want to run my program on
> the simulator without any monitor? An earlier post on this mailing list
> (http://sources.redhat.com/ml/ecos-discuss/2003-05/msg00138.html) shows an
> example of succesfully simulation upon this board. He doesn't mention any
> particular config for the simulator. 
> 
> I appreciate your response.

In order to run eCos, a simulator needs to support more than just an
instruction set (and possibly memory map).  Certain peripheral devices
such as timers, interrupt controllers, serial ports, etc, need to be
simulated.  If not, eCos can't do much since it's designed to run on
real hardware that *does* have such items.

As for the message quoted - it looks like Ovind was suffering the same
problem as you.  I don't know if he ever found a solution.

-- 
Gary Thomas <gary@mlbassoc.com>
MLB Associates


-- 
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] 8+ messages in thread

* Re: [ECOS] Simulator problems on EB40a
  2004-04-26  9:13   ` Øyvind Harboe
@ 2004-04-26 13:27     ` Jani Monoses
  0 siblings, 0 replies; 8+ messages in thread
From: Jani Monoses @ 2004-04-26 13:27 UTC (permalink / raw)
  To: ecos-discuss


> If you are developing under Windows, setting up a virtual linux machine
> isn't too much bother these days. www.oclinux.org is an interesting
> recent addition. www.oclinux.org is free, though vmware is probably a
> bit easier to set up.

www.colinux.org :)

-- 
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] 8+ messages in thread

* RE: [ECOS] Simulator problems on EB40a
  2004-04-26  9:05 ` Robert Cragie
@ 2004-04-26  9:13   ` Øyvind Harboe
  2004-04-26 13:27     ` Jani Monoses
  0 siblings, 1 reply; 8+ messages in thread
From: Øyvind Harboe @ 2004-04-26  9:13 UTC (permalink / raw)
  To: Robert Cragie; +Cc: msie02, ecos-discuss

On Mon, 2004-04-26 at 10:40, Robert Cragie wrote:
> Although the GDB simulator doesn't support peripherals, I have successfully
> run eCos on SID (http://sources.redhat.com/sid/) using SID's pre-configured
> ARM PID target supplied with it (see http://www.asisi.co.uk/ecos_sid.html).

Depending on what you need to achieve, the Linux synthetic target could
also be a good alterntive.

If you are developing under Windows, setting up a virtual linux machine
isn't too much bother these days. www.oclinux.org is an interesting
recent addition. www.oclinux.org is free, though vmware is probably a
bit easier to set up.


-- 

Øyvind Harboe
http://www.zylin.com




-- 
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] 8+ messages in thread

* RE: [ECOS] Simulator problems on EB40a
  2004-04-24 17:03 Øyvind Harboe
@ 2004-04-26  9:05 ` Robert Cragie
  2004-04-26  9:13   ` Øyvind Harboe
  0 siblings, 1 reply; 8+ messages in thread
From: Robert Cragie @ 2004-04-26  9:05 UTC (permalink / raw)
  To: Øyvind Harboe, msie02; +Cc: ecos-discuss

Although the GDB simulator doesn't support peripherals, I have successfully
run eCos on SID (http://sources.redhat.com/sid/) using SID's pre-configured
ARM PID target supplied with it (see http://www.asisi.co.uk/ecos_sid.html).
You could have a go at configuring and 'building' the EB40A target in SID,
although I would say it's quite a lot of work to fully understand all SID's
inner workings. It might be worth it if you really need to simulate the
hardware in fine detail.

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 Øyvind
> Harboe
> Sent: 24 April 2004 08:18
> To: ecos-discuss@sources.redhat.com
> Subject: RE: [ECOS] Simulator problems on EB40a
>
>
> For the record:
>
> As Gary points out, and I discovered in my early eCos days, the GDB
> simulator isn't enough to run eCos, as no peripherals are simulated.
>
>
>
>
> --
>
> Øyvind Harboe
> http://www.zylin.com
>
>
>
>
> --
> 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] 8+ messages in thread

* RE: [ECOS] Simulator problems on EB40a
@ 2004-04-24 17:03 Øyvind Harboe
  2004-04-26  9:05 ` Robert Cragie
  0 siblings, 1 reply; 8+ messages in thread
From: Øyvind Harboe @ 2004-04-24 17:03 UTC (permalink / raw)
  To: ecos-discuss

For the record: 

As Gary points out, and I discovered in my early eCos days, the GDB
simulator isn't enough to run eCos, as no peripherals are simulated.




-- 

Øyvind Harboe
http://www.zylin.com




-- 
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] 8+ messages in thread

* RE: [ECOS] Simulator problems on EB40a
  2004-04-23 18:21 ` Gary Thomas
@ 2004-04-23 20:56   ` Martin
  0 siblings, 0 replies; 8+ messages in thread
From: Martin @ 2004-04-23 20:56 UTC (permalink / raw)
  To: 'Gary Thomas', 'Martin'; +Cc: ecos-discuss

-----Original Message-----
From: Gary Thomas [mailto:gary@mlbassoc.com] 
Sent: 23. april 2004 16:18
To: Martin
Cc: ecos-discuss@sources.redhat.com
Subject: Re: [ECOS] Simulator problems on EB40a

On Fri, 2004-04-23 at 05:59, Martin wrote:
> Regards
> 
> I am trying to run the classic "hello world" on a simulator for EB40a. 
> I have done the following:
> 
> 1) Compiled the ecos: Template: "EB40a", startup type "rom", build 
> library
> 
> 2) Linked and compiled the program: "arm-elf-gcc -g -I 
> opt/ecos/work/ecos_rom_std_install/include hello.c -L 
> /opt/ecos/work/ecos_rom_std_install/lib/ -Ttarget.ld -nostdlib"
> 
> 3) Connect to the target: "arm-elf-gdb a.out"
>         GNU gdb 5.3 (eCosCentric)
>         Copyright 2002 Free Software Foundation, Inc.
>         GDB is free software, covered by the GNU General Public 
> License, and you are welcome to change it and/or distribute copies of 
> it under certain conditions.
>         Type "show copying" to see the conditions.
>         There is absolutely no warranty for GDB.  Type "show warranty" 
> for details.
>         This GDB was configured as "--host=i686-pc-linux-gnu 
> --target=arm- elf"...
> 
>    a) tar sim --board=eb40a
>         Connected to the simulator.
>             
>    b) load
>         Loading section .rom_vectors, size 0x40 vma 0x1000000
>         Loading section .text, size 0xfedc vma 0x1000040
>         Loading section .rodata, size 0x2a0 vma 0x100ff1c
>         Loading section .data, size 0x378 vma 0x4000
>         Start address 0x1000040
>         Transfer rate: 534944 bits in <1 sec.
> 
>    c) run
>         Starting program: /opt/ecos/ecos-2.0/examples/a.out
> 
> Afterwards nothing happens. Is it correct that I need to build the 
> tree for "ROM startup", when I want to run my program on the simulator 
> without any monitor? Am I missing anything here? I checked out the 
> eCos CVS about two weeks ago.
> 
> /Martin

Does this simulator support the *exact* peripheral set that eCos is looking
for?  Where/how did you get/build it?

--
Gary Thomas <gary@mlbassoc.com>
MLB Associates

What do you mean by peripheral? I installed eCos as described in the
documentation (http://ecos.sourceware.org/getstart.html) on a Mandrake 9.2
distribution. I know this is working, as I have build eCos and linked it
with the hello world program, and executed it succesfully on the board. As
far as I have understood, the board is directly supported by eCos. Do I need
to configure anything particular about the simulator? Is it correct that I
need to build the tree for "ROM startup", when I want to run my program on
the simulator without any monitor? An earlier post on this mailing list
(http://sources.redhat.com/ml/ecos-discuss/2003-05/msg00138.html) shows an
example of succesfully simulation upon this board. He doesn't mention any
particular config for the simulator. 

I appreciate your response.

/Martin


-- 
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] 8+ messages in thread

* Re: [ECOS] Simulator problems on EB40a
  2004-04-23 13:14 Martin
@ 2004-04-23 18:21 ` Gary Thomas
  2004-04-23 20:56   ` Martin
  0 siblings, 1 reply; 8+ messages in thread
From: Gary Thomas @ 2004-04-23 18:21 UTC (permalink / raw)
  To: Martin; +Cc: ecos-discuss

On Fri, 2004-04-23 at 05:59, Martin wrote:
> Regards
> 
> I am trying to run the classic В”hello worldВ” on a simulator for EB40a. I
> have done the following:
> 
> 1) Compiled the ecos: Template: В“EB40aВ”, startup type В“romВ”, build library
> 
> 2) Linked and compiled the program: В“arm-elf-gcc -g -I
> opt/ecos/work/ecos_rom_std_install/include hello.c -L
> /opt/ecos/work/ecos_rom_std_install/lib/ -Ttarget.ld В–nostdlibВ”
> 
> 3) Connect to the target: В“arm-elf-gdb a.outВ”
>         GNU gdb 5.3 (eCosCentric)
>         Copyright 2002 Free Software Foundation, Inc.
>         GDB is free software, covered by the GNU General Public License, and
> you are welcome to change it and/or distribute copies of it under
> certain conditions.
>         Type "show copying" to see the conditions.
>         There is absolutely no warranty for GDB.  Type "show warranty" for
> details.
>         This GDB was configured as "--host=i686-pc-linux-gnu --target=arm-
> elf"...
> 
>    a) tar sim --board=eb40a
>         Connected to the simulator.
>             
>    b) load
>         Loading section .rom_vectors, size 0x40 vma 0x1000000
>         Loading section .text, size 0xfedc vma 0x1000040
>         Loading section .rodata, size 0x2a0 vma 0x100ff1c
>         Loading section .data, size 0x378 vma 0x4000
>         Start address 0x1000040
>         Transfer rate: 534944 bits in <1 sec.
> 
>    c) run
>         Starting program: /opt/ecos/ecos-2.0/examples/a.out
> 
> Afterwards nothing happens. Is it correct that I need to build the tree for
> В“ROM startupВ”, when I want to run my program on the simulator without any
> monitor? Am I missing anything here? I checked out the eCos CVS about two
> weeks ago.
> 
> /Martin

Does this simulator support the *exact* peripheral set that eCos is 
looking for?  Where/how did you get/build it?

-- 
Gary Thomas <gary@mlbassoc.com>
MLB Associates


-- 
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] 8+ messages in thread

* [ECOS] Simulator problems on EB40a
@ 2004-04-23 13:14 Martin
  2004-04-23 18:21 ` Gary Thomas
  0 siblings, 1 reply; 8+ messages in thread
From: Martin @ 2004-04-23 13:14 UTC (permalink / raw)
  To: ecos-discuss

Regards

I am trying to run the classic ”hello world” on a simulator for EB40a. I
have done the following:

1) Compiled the ecos: Template: “EB40a”, startup type “rom”, build library

2) Linked and compiled the program: “arm-elf-gcc -g -I
opt/ecos/work/ecos_rom_std_install/include hello.c -L
/opt/ecos/work/ecos_rom_std_install/lib/ -Ttarget.ld –nostdlib”

3) Connect to the target: “arm-elf-gdb a.out”
        GNU gdb 5.3 (eCosCentric)
        Copyright 2002 Free Software Foundation, Inc.
        GDB is free software, covered by the GNU General Public License, and
you are welcome to change it and/or distribute copies of it under
certain conditions.
        Type "show copying" to see the conditions.
        There is absolutely no warranty for GDB.  Type "show warranty" for
details.
        This GDB was configured as "--host=i686-pc-linux-gnu --target=arm-
elf"...

   a) tar sim --board=eb40a
        Connected to the simulator.
            
   b) load
        Loading section .rom_vectors, size 0x40 vma 0x1000000
        Loading section .text, size 0xfedc vma 0x1000040
        Loading section .rodata, size 0x2a0 vma 0x100ff1c
        Loading section .data, size 0x378 vma 0x4000
        Start address 0x1000040
        Transfer rate: 534944 bits in <1 sec.

   c) run
        Starting program: /opt/ecos/ecos-2.0/examples/a.out

Afterwards nothing happens. Is it correct that I need to build the tree for
“ROM startup”, when I want to run my program on the simulator without any
monitor? Am I missing anything here? I checked out the eCos CVS about two
weeks ago.

/Martin


--
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] 8+ messages in thread

end of thread, other threads:[~2004-04-26  9:05 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20040423181157.1B2DF100007@hermes.chez-thomas.org>
2004-04-23 22:50 ` [ECOS] Simulator problems on EB40a Gary Thomas
2004-04-24 17:03 Øyvind Harboe
2004-04-26  9:05 ` Robert Cragie
2004-04-26  9:13   ` Øyvind Harboe
2004-04-26 13:27     ` Jani Monoses
  -- strict thread matches above, loose matches on Subject: below --
2004-04-23 13:14 Martin
2004-04-23 18:21 ` Gary Thomas
2004-04-23 20:56   ` Martin

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