1/1

|
OpenRISC Simulator
by Unknown on Jul 2, 2004 |
Not available! | ||
|
Hi,
I've started work on the OpenRISC 1000 project. I've used this page to setup
my software: http://www.opencores.org/projects.cgi/web/or1k/gnu_toolchain_port
I don't have the hardware setup yet, but I wanted to work with the
architectural simulator. The problem is that there seems to be little to no
documentation online on how to do this! Where do I get the appropriate
software to install and how do I use it? I've basically installed the GNU
toolchain and now am stuck.
Thanks,
Chris Jorgensen
|
|||
|
OpenRISC Simulator
by Unknown on Jul 2, 2004 |
Not available! | ||
|
* jorgensc@ece.pdx.edu (jorgensc@ece.pdx.edu) wrote:
Hi,
I've started work on the OpenRISC 1000 project. I've used this page to setup
my software: http://www.opencores.org/projects.cgi/web/or1k/gnu_toolchain_port
I don't have the hardware setup yet, but I wanted to work with the
architectural simulator. The problem is that there seems to be little to no
documentation online on how to do this! Where do I get the appropriate
software to install and how do I use it? I've basically installed the GNU
toolchain and now am stuck.
The only thing now is for you to write/build an application you want to
try. you can for example checkout or1k/linux/linux-2.4, compile it and run
it in simulator.
or1ksim -f sim.cfg
so for linux just do
or1ksim -f sim.cfg vmlinux
a simpler application are 'hello world' and 'orpmon'. you can get both
on opencores.
documentation about using or1ksim was already posted some time ago on this
list, so you might want to search for it...
best regards,
p.
|
|||
|
OpenRISC Simulator
by Unknown on Jul 2, 2004 |
Not available! | ||
|
There is a software tutorial in the site:
http://emsys.denayer.wenk.be/?proj=empro&page=intro
----- Original Message -----
From: jorgensc@ece.pdx.edu>
To: openrisc@opencores.org>
Sent: Friday, July 02, 2004 5:03 PM
Subject: [openrisc] OpenRISC Simulator
Hi,
I've started work on the OpenRISC 1000 project. I've used this page to setup
my software: http://www.opencores.org/projects.cgi/web/or1k/gnu_toolchain_port
I don't have the hardware setup yet, but I wanted to work with the
architectural simulator. The problem is that there seems to be little to no
documentation online on how to do this! Where do I get the appropriate
software to install and how do I use it? I've basically installed the GNU
toolchain and now am stuck.
Thanks,
Chris Jorgensen
_______________________________________________
http://www.opencores.org/mailman/listinfo/openrisc
|
|||
|
OpenRISC Simulator
by Unknown on Jul 6, 2004 |
Not available! | ||
|
I'm having trouble installing the or1ksim in Cygwin. Has anyone done this
succesfully? It doesn't build correctly. Any ideas?
It gives the error:
-----------------------------------------------
jorgense@entmpc29 /or1k/or1ksim
$ make all install
|
|||
|
OpenRISC Simulator
by Unknown on Jul 6, 2004 |
Not available! | ||
|
I'm having trouble installing the or1ksim in Cygwin. Has anyone done this
succesfully? It doesn't build correctly. Any ideas? It gives miltiple errors like this first one: .. gcc -g -O2 -DOR32 generate.c -o generate /cygdrive/c/Temp/cc1IegwA.o(.text+0x8a4): In function `gen_eval_operands': /or1k/or1ksim/cpu/or32/generate.c:192: undefined reference to `_op_start' .. Sorry for the double email. Chris |
|||
|
OpenRISC Simulator
by Unknown on Jul 6, 2004 |
Not available! | ||
|
* jorgensc@ece.pdx.edu (jorgensc@ece.pdx.edu) wrote:
I'm having trouble installing the or1ksim in Cygwin. Has anyone done this
it should work... well it did work ;). can you try a bit older version
from cvs (lest say end of January) ?
you can also try precompiled binaries, though that might also cause
problems because of different Cygwin versions...
http://www.opencores.org/projects.cgi/web/or1k/or1k-bin/or32-uclinux-2003-04-13.cygwin.tar.gz
best regards,
p.
succesfully? It doesn't build correctly. Any ideas? It gives miltiple errors like this first one: .. gcc -g -O2 -DOR32 generate.c -o generate /cygdrive/c/Temp/cc1IegwA.o(.text+0x8a4): In function `gen_eval_operands': /or1k/or1ksim/cpu/or32/generate.c:192: undefined reference to `_op_start' .. Sorry for the double email. |
|||
|
OpenRISC Simulator
by Unknown on Jul 7, 2004 |
Not available! | ||
|
* jorgensc@ece.pdx.edu (jorgensc@ece.pdx.edu) wrote:
> I'm having trouble installing the or1ksim in Cygwin. Has anyone done this
There are something wrong with the newest version of Cygwin. You can see the document
http://www.teisa.unican.es/~csanchez/guides/building_or1ksim.html to build up the
or1ksim.It force configuration using following old utilities:
autoconf-2.13
autoheader-2.13
automake-1.4
In my configuration, I use following tools for the Cygwin:
autoconf-2.13
autoheader-2.13
automake-1.4-p6
I think it has compability problem on the automake tools. When I meet a error message, I
do a manual step to compile the source code. And it works in my enviroment. Just for
reference, you can try it.
Kuoping
== CUT HERE ==
%> cd or1ksim
%> ./configuration --target=or32-rtems --prefix=/opt/or32-rtems
%> make
... blah ... blah ....
... some error message ....
%> cd cpu/or32
%>
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../cpu/common -I../../cpu/or1k -I../../cp
u/or32 -I../../cache -I../../mmu -I../../bpb -I../../peripheral -I../../tick -I../../perip
heral/channels -I../../pm -I../../pic -I../../debug -I../../vapi -I../../support -I../../c
uc -g -O2 -DOR32 -c `test -f or32.c || echo './'`or32.c
%>
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../cpu/common -I../../cpu/or1k -I../../cp
u/or32 -I../../cache -I../../mmu -I../../bpb -I../../peripheral -I../../tick -I../../perip
heral/channels -I../../pm -I../../pic -I../../debug -I../../vapi -I../../support -I../../c
uc -g -O2 -DOR32 -c `test -f generate.c || echo './'`generate.c
%> gcc -g -O2 -DOR32 -o generate or32.o generate.o
%> cd ../..
%> make
== END ==
> succesfully? It doesn't build correctly. Any ideas? > > It gives miltiple errors like this first one: > > .. > gcc -g -O2 -DOR32 generate.c -o generate > /cygdrive/c/Temp/cc1IegwA.o(.text+0x8a4): In function `gen_eval_operands': > /or1k/or1ksim/cpu/or32/generate.c:192: undefined reference to `_op_start' |
|||
|
OpenRISC Simulator
by Unknown on Jul 8, 2004 |
Not available! | ||
|
* jorgensc@ece.pdx.edu (jorgensc@ece.pdx.edu) wrote:
Thanks for the help all. I'm still struggling through. Everyone's advice has
worked thus far. My next concern is how to get GDB to talk to the simulator. I
see how JTAG is talking to a port but now how to get things going with the
simulator in place of a board.
Example:
(gdb) target jtag jtag://localhost:9999
jtag_connect_to_server: connect failed errno = 111
Connection refused
So where do I insert or1ksim? In place of jtag or its destination port? I
apologize for the stream of simple questions. But I've been basically employed
in a project using OpenRISC and Unix at a university that doesn't speak my
native language. So I'm always a little lost.
you need to supply an argument to or1ksim q:/$ or32-uclinux-sim --srv 9999 WARNING: Cannot read script file from 'sim.cfg', neither '/home/phoenix/.or1k/sim.cfg'. WARNING: No config file read, assuming default configuration. Verbose on, simdebug off, interactive prompt off Machine initialization... Clock cycle: 4ns No data cache. No instruction cache. BPB simulation off. BTIC simulation off. WARNING: Memory not defined, assuming standard configuration. Building automata... done, num uncovered: 0/212. Parsing operands data... done. JTAG Proxy server started on port 9999 Resetting Tick Timer. Resetting Power Management. Resetting PIC. Starting at 0x00000000 regards, p. |
|||
|
OpenRISC Simulator
by Unknown on Jul 8, 2004 |
Not available! | ||
|
Thanks for the help all. I'm still struggling through. Everyone's advice has
worked thus far. My next concern is how to get GDB to talk to the simulator. I
see how JTAG is talking to a port but now how to get things going with the
simulator in place of a board.
Example:
(gdb) target jtag jtag://localhost:9999
jtag_connect_to_server: connect failed errno = 111
Connection refused
So where do I insert or1ksim? In place of jtag or its destination port? I
apologize for the stream of simple questions. But I've been basically employed
in a project using OpenRISC and Unix at a university that doesn't speak my
native language. So I'm always a little lost.
Thanks,
Chris
There are something wrong with the newest version of Cygwin. You can see the
document
http://www.teisa.unican.es/~csanchez/guides/building_or1ksim.html to build up
the
|
|||
|
OpenRISC Simulator
by Unknown on Jul 12, 2004 |
Not available! | ||
|
Hi all,
So I got the simulator running the hello-world program, with the simulator in
place of JTAG. Now I'm trying to get the real JTAG to work. But it has a
segmentation fault any time I try to connect to the parralel port.
admin@entmpc29 /opt/or32-uclinux/include/jtag
$ ./jp1-xilinx 9999
Connected to parallel port at 378
Segmentation fault (core dumped)
Have there been reported problems with Cygwin and JTAG? Perhaps this is a sign
that the physical board isn't setup correctly?
Thanks,
Chris
|
|||
1/1

