This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: eCos for IOP321 running under simulator?
- From: Mark Salter <msalter at redhat dot com>
- To: rickr at mn dot rr dot com
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Mon, 14 Oct 2002 13:52:45 -0400 (EDT)
- Subject: Re: [ECOS] eCos for IOP321 running under simulator?
- References: <20021014124512.A17651@mn.rr.com>
>>>>> Rick Richardson writes:
> Hello all. Newbie eCos user here, playing around with the Intel iq80321
> version of eCos.
> I loaded up the Intel supplied versions of eCos and xscale toolchain
> off the CDROM, marked "Redhat eCos for the Intel IOP321 processor",
> marked with versions: ecos-1.5.13 and xscale-020306. Hosted on Linux.
> Made an ecos build tree thusly:
> $ mkdir ecos-work
> $ cd ecos-work
> $ ecosconfig new iq80321
> $ ecosconfig tree
> $ make
> Then, I made a copy of the ecos examples, and changed the Makefile
> thusly:
> PKG_INSTALL_DIR = /home/rick/proj/ecos-work/install
> XCC = xscale-elf-gcc
> Did a make in the examples directory to build the "Hello World"
> example. No problems so far.
> Then, I fired up gdb with the simulator:
> $ xscale-elf-gdb -nw hello
> This GDB was configured as \
> "--host=i686-pc-linux-gnulibc2.1 --target=xscale-elf"
> (gdb) target sim
> (gdb) load
> Loading section .rom_vectors, size 0x40 vma 0x20000
> Loading section .text, size 0xbd80 vma 0x20040
> Loading section .rodata, size 0x3dc vma 0x2bdc0
> Loading section .data, size 0x378 vma 0x2c19c
> Start address 0x20040
> Transfer rate: 403616 bits in <1 sec.
> (gdb) run
> I let it run for about 30 minutes on a 2Ghz P4. Hit ^C and "cont"
> a few times and could see that it was executing.
> But I never got the "Hello, World" message printed.
> My question is: should this setup have worked? Or is it beyond
> the ability of the xscale simulator to handle running eCos and an
> application?
The simulator is a simple ISA simulator that also handles a few Angel
traps. It doesn't simulate any of the hw found on the IQ80321 board.
So the answer is no, it is not expected to work.
--Mark
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss