This is the mail archive of the sid@sources.redhat.com mailing list for the SID project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

running eCos under sid


hi all,

Because I am trying to avoid launching my vmware/win2k/arm simulator, I
decided to try to use sid to run a hello-world with eCos...

I built an eCos kernel for the INTEGRATOR ARM development card. Then, I
built a hello world with:
arm-elf-gcc -I/infinite/ecos/ecos/test_install/include
-L/infinite/ecos/ecos/test_install/lib -Ttarget.ld main.c -o main

I got a 1.3 MB elf binary which I tried to run in sid (yesterday's CVS)
with:
arm-elf-sif main
which gave:
bash$ arm-elf-sid -EL main
Fault (memory, 0x1a000004) pc=0x8048

I am not really experienced with such embedded systems. I can imagine
twenty thing which went wrong. (such as wrong start address,
incompatible libc, etc...). So, I tried to run a gdb thing in sid:
arm-elf-sif -EL --gdb=1024 main 
which seems to get into an infinite loop because sid never returns.

So, I tried to connect my gdb to this gdb stub with:
bash$ arm-elf-gdb main
GNU gdb 5.0
Copyright 2000 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"...
(gdb) target cisco localhost:1024
which also seems to hang into a loop.


Any comments are welcome.

Mathieu
-- 
Mathieu Lacage <mathieu_lacage@realmagic.fr>
#p: +33 1 69 19 61 97


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]