|
Message
From: Jeremy Bennett<jeremy.bennett@e...>
Date: Tue Sep 16 10:04:00 CEST 2008
Subject: [openrisc] Problem running simulator
On Mon, 2008-09-15 at 15:17 +0200, aggemous@h... wrote:> I need help getting architectural simulator run. Using Fedora 9, I > followed instructions as found in Embecosm's "The OpenCores OpenRISC > 1000 Simulator and Tool Chain: Installation Guide ". > Everything seems OK up to the point I am trying to run the simulator. > Here follows the output: > > Copying Linux... Ok, booting the kernel.
< stuff deleted>
> NET: Registered protocol family 1 > NET: Registered protocol family 17 > NET: Registered protocol family 15 > EXCEPTION: read out of memory (32-bit access to 4000002c) > > Runarunaround: Unhandled exception 0x200: EPC=0x4104 > EXCEPTION: read out of memory (32-bit access to 4000032c) > > Runarunaround: Unhandled exception 0x200: EPC=0x4104 > EXCEPTION: read out of memory (32-bit access to 4000032c) > > Runarunaround: Unhandled exception 0x200: EPC=0x4104 > EXCEPTION: read out of memory (32-bit access to 4000032c) > > Runarunaround: Unhandled exception 0x200: EPC=0x4104 > EXCEPTION: read out of memory (32-bit access to 4000032c) > > Runarunaround: Unhandled exception 0x200: EPC=0x4104 > EXCEPTION: read out of memory (32-bit access to 4000032c) > > The exception message keeps on repeating. > > What am I doing wrong? Has someone seen the same error before?
Hi Aggemous,
The simulator is complaining about a read to a location (0x4000002c initially) where it has no memory.
Three questions:
1. Are you using the correct version of Or1ksim (0.2.0, NOT 0.2.0rc1, 0.2.0rc2 or 0.2.0rc3) and have you patched this as in the Embecosm application note?
2. Have you disabled the Ethernet before building Linux as described in the application note? This is known not to work with Or1ksim 0.2.0.
3. Are you using the correct simulator configuration file. You must use the sim.cfg in the Linux root directory, NOT the one in the Or1ksim root directory.
I suspect the last of these, since it seems Linux is trying to use its virtual addresses as physical addresses, as though the configuration had the MMUs disabled.
If this doesn't work, could you post the exact sequence of commands you used to download, patch, configure and build the tool chain, library, Linux and Or1ksim. I run on Fedora 9, so I'm confident we can get your system working.
I updated the instructions for building the tool chain, Linux and simulator earlier this month (they are a bit simpler now). Make sure you are using issue 2 of the application note.
http://www.embecosm.com/download/ean2.html
HTH,
Jeremy
-- Tel: +44 (1202) 416955 Cell: +44 (7970) 676050 SkypeID: jeremybennett Email: jeremy.bennett@e... Web: www.embecosm.com
|
 |