|
Message
From: Jeremy Bennett<jeremy.bennett@e...>
Date: Tue Jul 29 15:48:41 CEST 2008
Subject: [openrisc] [Fwd: [esl-forum] building command log]
Forwarding a further email from Hsu Chen-Wei, which was sent to the SystemC ESL forum.
The answer seems to be in the .config file. You probably now have a confused, mixed build. Before building Linux, copy rgd_dot_config to .config, i.e.
cp rgd_dot_config .config
You also need to set up the ramdisk filing system as described in section 3.4.2.
I suggest you make a clean build of the tools and Linux from the start - delete all your work so far. You can leave out the GDB step for now.
Rich D'Addio (who reads this forum) is the expert on Linux for OR32. Please would you post your Linux .config file (i.e the one created by copying rgd_dot_config) and also the output from
gcc -v
HTH,
Jeremy
- Tel: +44 (1202) 416955 Cell: +44 (7970) 676050 SkypeID: jeremybennett Email: jeremy.bennett@e... Web: www.embecosm.com
-------- Forwarded Message -------- > From: Chen Wei Hsu <cwhsu1984@g...> > To: esl-forum@l... > Subject: [esl-forum] building command log > Date: Tue, 29 Jul 2008 21:09:48 +0800 > > Hi, Jeremy > > I compiled everything and recorded the commands that I used. I also > found a section that I didn't know what to do about it. > > Here is the log > > //linux environment > // Linux angels 2.6.9-34.ELsmp #1 SMP Fri Feb 24 16:56:28 EST 2006 > x86_64 x86_64 //x86_64 GNU/Linux > > //--------------------------------------------installation of binutils > tar xjvf binutils-2.16.1.tar.bz2 > // I didn't use "bunzip2 binutils-2.16.1.tar.bz2" because this command > didn't unzip the file > // into a directory. Instead, it simply unzip the file into > binutils-2.16.1.tar. I will have to untar it > // again so I use tar xjvf directly. > > cd binutils-2.16.1 > bzcat -dc ../binutils_2.16.1_unified.diff_rgd_fixed.bz2 | patch -p1 > > // mkdir buildir_binutils <- I thought it should be "mkdir > builddir_binutils" to be consistency > > mkdir builddir_binutils > cd builddir_binutils > ../binutils-2.16.1/configure --target=or32-uclinux --prefix= > $HOME/tools/or32 > > make all > make install > > setenv PATH $HOME/tools/or32/bin:$PATH > //since we use .tcshrc to set environment variable, I assume that we > use tcsh! > > //----------------------------------------------------end of binutils > > //----------------------------------------------------installation of > gcc > tar xjvf gcc-3.4.4.tar.bz2 > cd gcc-3.4.4 > bzcat -dc ../gcc-3.4.4-or32-unified.diff.bz2 | patch -p1 > > mkdir builddir-gcc > cd builddir-gcc > ../gcc-3.4.4/configure --target=or32-uclinux --prefix=$HOME/tools/or32 > --enable-languages=c > > make all > make install > //----------------------------------------------------end of gcc > > //---------------------------------------------------installation of > gdb > tar xzf gdb-5.3.tar.gz > cd gdb-5.3 > bzcat -dc ../embecosm-or32-gdb-5.3-patch.bz2 | patch -p1 >
> mkdir builddir-gdb
> cd builddir-gdb
> ../gdb-5.3/configure --target=or32-uclinux
>
> make all
> // I got the error messages which I told you before
> // make[1]: *** [or1k-tdep.o] Error 1
> // make[1]: Leaving directory
> `/home/users2007/cwhsu/iss/builddir-gdb/gdb'
> // make: *** [all-gdb] Error 2
> //--------------------------------------------------------stop at this
> step
>
> //---------------------------------------------------------installation of linux kernel
> tar xjvf linux-2.6.19.tar.bz2
> cd linux-2.6.19
> bzcat -dc ../linux_2.6.19_or32_unified_simtested.bz2 | patch -p1
> bzcat -dc ../embecosm-or32-linux-2.6.19-general-patch.bz2 | patch -p1
> //-----------------------------------------------------------stop at
> this step
> // cause the following section confused me!
>
> 3.4.2. Configuring Linux
> The configuration options for a Linux kernel are held in the .config
> file in the top directory
> of the kernel. The code patched for OpenRISC has a suitable file in
> rgd_dot_config, which
> should be copied to .config.
>
> Does this mean that we have to copy a file called rgd_dot_config to
> the top directory of the kernel?
> I didn't do that at the first time I complied the linux kernel.
> If we should copy "rgd_dot_config", where could we find this file?
> I tried to search the directory of or1ksim-0.2.0, but I didn't find
> anything.
> Please reply. Thank you again!
>
> Best Regards,
>
> Chen-Wei
>
|
 |