kernel cross-compile

Igor Muratov migor at lrn.ru
Fri Jun 21 02:55:21 EST 2002


Ken Tossell пишет:

>Quoting Igor Muratov <migor at lrn.ru>:
>
>
>
>>Hi All.
>>
>>I'm build kernel for 7044-170 (uniproc.).
>>I'm go  step by step corresponding by penguinppc64.org. Now i have
>>binutils-2.12.90.0.9 and gcc-3.1 successfully compiled with
>>--target=powerpc64-linux
>>
[ Skip ]

>>
>>`.eeh_memset'
>>make: *** [vmlinux] Error 1
>>
>>Where is my fault?
>>
>>--
>>With best regards                    System administrator
>>Igor Muratov                         mailto:migor at lrn.ru
>>
>>
>>
>>
>>
>
>The problem may be that the kernel won't build well as uniprocessor. Sometimes
>it will build, but then it will be buggy. Make sure that you are building a SMP
>kernel. I run ppc64 Linux on a p44 170 UP and smp works fine.
>
>
Thanks Ken.
For SMP kernel i have

/opt/ppc64/bin/powerpc64-linux-ld -T arch/ppc64/vmlinux.lds -Bstatic -e
0xc000000000000000 -Ttext 0xc000000000000000 arch/ppc64/kernel/head.o
init/main.o init/version.o init/do_mounts.o \
        --start-group \
        arch/ppc64/kernel/kernel.o arch/ppc64/mm/mm.o
arch/ppc64/lib/lib.o kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o
arch/ppc64/xmon/x.o \
         drivers/char/char.o drivers/block/block.o drivers/misc/misc.o
drivers/net/net.o drivers/media/media.o drivers/scsi/scsidrv.o
drivers/cdrom/driver.o drivers/pci/driver.o drivers/video/video.o
drivers/input/inputdrv.o \
        net/network.o \
        /opt/cross/linux/lib/lib.a \
        --end-group \
        -o vmlinux
drivers/net/net.o(.data.init+0x78): undefined reference to `de4x5_probe'
drivers/net/net.o(.toc1+0x3d8): undefined reference to `tr_header'
drivers/net/net.o(.toc1+0x3e0): undefined reference to `tr_rebuild_header'
drivers/video/video.o: In function `.tdfxfb_probe':
drivers/video/video.o(.text.init+0x1954): undefined reference to
`.eeh_memset'
net/network.o(__ksymtab+0xdf0): undefined reference to `tr_type_trans'
net/network.o(.data+0x11e0): undefined reference to `sysctl_tr_rif_timeout'
make: *** [vmlinux] Error 1

I use config from
http://oss.software.ibm.com/developerworks/opensource/linux/projects/ppc/config.power3
with some small changes. Maybe i need to disable something?

--
With best regards                    System administrator
Igor Muratov                         mailto:migor at lrn.ru


** Sent via the linuxppc64-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc64-dev mailing list