|
Message
From: Jeremy Bennett<jeremy.bennett@e...>
Date: Mon Aug 25 19:53:26 CEST 2008
Subject: [openrisc] linux 2.6.19 problem with or1ksim according
to embecosm or1k_setup.pdf
On Tue, 2008-08-26 at 01:24 +0800, Ding Xiaoliang wrote: > I'm using Ubuntu 8.04 i386 version, gcc 4.2.3 > 1. The segment fault problem has been avoided, by using "tcp:XXXX" > instead of "xterm:" in sim.cfg > 2. The linux compile problem is still there, I've made a few shell > scripts to re-produce the linux compile problem. > the scripts are attached.
Hi Xiaoliang,
I think I can see what is going wrong.
PROBLEM 1 =========
At the end of step 1, you must add the new binutils to your path. So use either
export PATH=/opt/or32/bin:$PATH
or
setenv PATH /opt/or32/bin:$PATH
whichever is appropriate for your shell. The first is for sh or bash, the second for csh or tcsh.
PROBLEM 2 =========
In step 4, you need to copy Rich D'Addio's config file into .config after applying the patches (you have missed this step in your transcript). In the main Linux directory:
cp rgd_dot_config .config
This is almost certainly why your Linux will not build. You do not need the "make defconfig" step (that will probably undo things). Just use
make menuconfig ARCH=or32 CROSS_COMPILE=/opt/or32/bin/or32-uclinux-
and step through the menus to disable Ethernet. This is only done, because of a known problem with Ethernet and the version of the simulator you will be using. Then you should be able to build the kernel with:
make vmlinux ARCH=or32 CROSS_COMPILE=/opt/or32/bin/or32-uclinux-
PROBLEM 3 =========
You have not given the transcript for building Or1ksim, but I see you have only downloaded the patches for GDB 6.8. These are incremental patches IN ADDITION to the patches required to support earlier tools. So you must first apply
embecosm-or32-or1ksim-0.2.0-patch.bz2
And afterwards apply
embecosm-or32-or1ksim-0.2.0-gdb-6.8v2-patch.bz2
One of the bugs fixed by the first patch was a problem handling xterms, so that explains your crash. Even though your simulator runs with telnet, you should rebuild including the first patch, since it also fixes some silent faults in the modeling of the OpenRISC 1000.
I hope this enables you to get your system running successfully.
Best wishes,
Jeremy
-- Tel: +44 (1202) 416955 Cell: +44 (7970) 676050 SkypeID: jeremybennett Email: jeremy.bennett@e... Web: www.embecosm.com
|
 |