[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[openrisc] Question about or1ksim with gdb





Chris Ziomkowski and many forerunner!
Nowasdays i sended many Questions here and i got trouble-shooting answers.
I finished the compilation of "mini-mad" program with or32-rtems-..... thanks to
some of you.
I want to run this code and see the printf message, but even hello.exe(in
rtems4.5) failed.

I see the README.or1k which Chris wrote in or1k/rtems/, the link of or1ksim &
gdb5.0.
There, it seems that he is successful to run "hello.exe" with or1ksim & gdb
interface.
But in my case, gdb does not be connected to the or1ksim (server).
The jtag port is opened for sure, and gdb find the port, but gdb cannot finish
the jtag connection.

I edited memory section of sim.cfg according to configuation file used by
'or32-rtems-ld'
I try the standalone simulation of or1ksim. it resulted in segmentation fault.
If i escape the connection peding, and jump to highly probable start address(in
gdb), it also fails.
I think the critical problem is insufficient jtag connection.

If i success in the hello.exe of rtems4.5, i think all preliminary work for my
minimad analysis was done.
Sincerly.

******** gdb logo *********************
[root@niche or1k]# or32-rtems-gdb bender/samples/hello.exe
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=or32-rtems"...
(gdb) target jtag jtag://localhost:7777
Remote or1k debugging using jtag://localhost:7777

******** or1ksim logo *********************
[root@niche or1ksim]# ./sim
Reading script file from 'sim.cfg'...
Verbose on, simdebug off, interactive prompt off
Machine initialization...
Clock cycle: 100ns
No data cache.
No instruction cache.
BPB simulation off.
BTIC simulation off.

Building automata... done, num uncovered: 0/212.
Parsing operands data... done.
JTAG Proxy server started on port 7777
WARNING: dependstats stats must be enabled to do history analisis.
Resetting 1 UART(s).
UART0 at 0x90000000 uses /tmp/uart0.rx for RX and /tmp/uart0.tx for TX.
0
Cannot open Ethernet RX file "/tmp/eth0.rx"
WARNING: Keyboard has problems with RX file stream.
NOTE   : ata_device, using device type FILE.
file /tmp/sim_atadev0 already exists. Using existing file.
ata_device_debug: requested filesize was: 1 (MBytes).
ata_device_debug: actual filesize is: 1 (MBytes).
NOTE   : ata_device, using type NO_CONNECT.
ata_device_debug: ata_devices_hw_reset.
setting status register BSY 0x80
Resetting Tick Timer.
Resetting Power Management.
Resetting PIC.
Starting at 0x00000000
Exception 0x100 (Reset) at 0x0, EA: 0x0, ppc: 0x0, npc: 0x4


--
To unsubscribe from openrisc mailing list please visit http://www.opencores.org/mailinglists.shtml