|
Message
From: Ding Xiaoliang<dingsm@g...>
Date: Mon Aug 25 19:34:21 CEST 2008
Subject: [openrisc] linux 2.6.19 problem with or1ksim according to embecosm
or1k_setup.pdf
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 script: # download: # step 1: binutils wget -c kernel_compile.log.bin -O rgd_initrd-fb-03.ext2.bz2
# build # step 0: clear /opt/or32 rm -rf /opt/or32/* export PATH=$PATH:/opt/or32/bin
# step 1: binutils echo Building binutils-2.16.1
tar xjf binutils-2.16.1.tar.bz2 cd binutils-2.16.1 bzcat -dc ../binutils_2.16.1_unified.diff_rgd_fixed.bz2 | patch -p1 cd .. mkdir build_binutils cd build_binutils ../binutils-2.16.1/configure --target=or32-uclinux --prefix=/opt/or32
make all make check make install cd ..
# step 2: gcc basic echo Building gcc-3.4.4 the first pass
tar xjf gcc-3.4.4.tar.bz2 cd gcc-3.4.4 bzcat -dc ../gcc-3.4.4-or32-unified.diff.bz2 | patch -p1 cd .. mkdir build_gcc cd build_gcc ../gcc-3.4.4/configure --target=or32-uclinux --prefix=/opt/or32 --enable-languages=c
make all make install cd ..
# step 3: gdb 6.8 echo Building gdb-6.8
tar xjf gdb-6.8.tar.bz2 cd gdb-6.8 bzcat -dc ../embecosm-or32-gdb-6.8-unified-patch.bz2 | patch -p1 cd ..
mkdir build_gdb cd build_gdb ../gdb-6.8/configure --target=or32-uclinux --prefix=/opt/or32 make all make install cd ..
# step 4: linux 2.6.19 echo Configuring linux-2.6.19
tar xjf 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 cp ../rgd_initrd-fb-03.ext2.bz2 arch/or32/support/initrd-fb-03.ext2.bz2 bunzip2 arch/or32/support/initrd-fb-03.ext2.bz2
# in menuconfig, deselect OpenRISC Ethernet support
make ARCH=or32 CROSS_COMPILE=or32-uclinux- defconfig
make ARCH=or32 CROSS_COMPILE=or32-uclinux- menuconfig
echo Building linux-2.6.19
make ARCH=or32 CROSS_COMPILE=or32-uclinux- vmlinux
Jeremy Bennett 写道:
> On Sun, 2008-08-24 at 15:07 +0800, Ding Xiaoliang wrote:
>
>
>> please execuse me for posting this to the big list.
>>
>> I've tried to compile the or32 toolchain, simulator and linux kernel
>> according to the document shows.
>> The problem I met:
>> * When try to compile linux 2.6.19 kernel, it seems some "kallsyms"
>> symbols are missed, so that the compilation failed.
>> * The linux configuration (.config) and compilation error log has been
>> attached (linux_compile.log)
>>
>> I then deselected the CONFIG_KALLSYMS and CONFIG_MODULES, the
>> compilation can continue with some warnings.
>>
>> * when try "make check" in or1ksim/testbench, the fb_test failed , while
>> other tests passed
>>
>> Then, I try to boot linux with the or1ksim, but failed with a
>> "Segmentation Fault" message.
>> * The or1ksim outputlog (sim.log) has been
>> attached
>>
>
> Hi Xiaoliang,
>
> Please do post to this list - the more questions that are asked, the
> more we will know.
>
> What platform are you running on (Linux version, 32 or 64 bit)?
>
> Please would you post a transcript of each command you used when
> building the tool chain in the sequence you used them (include all the
> commands to unzip tar files, patch sources etc). This will help work out
> where the problem is occurring.
>
> I think it is very unlikely that Linux will work if you deselect these
> modules, but you should not get a segmentation fault in Or1ksim.
>
> You can ignore the failure with "make check" in or1ksim/testbench. The
> test bench does not have a very reliable check for success. It sometimes
> checks for success before the test has finished, and reports a failure.
> This often occurs with the fb test.
>
> Hope this helps,
>
>
> Jeremy
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kernel_compile.log.bz2
Type: application/x-bzip
Size: 4236 bytes
Desc: not available
Url : kernel_compile.log.bin
|
 |