kernel cross-compile
Igor Muratov
migor at lrn.ru
Sat Jun 22 01:12:10 EST 2002
Peter Bergner пишет:
>Igor Muratov wrote:
>: 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?
>
>For your 170, just do a "make oldconfig && make dep && make vmlinux".
>You shouldn't need anything more than that. Remember to clean out
>the old build cruft with "make mrproper" first.
>
Sorry, Peter, But this is not enought.
After "make mrproper && make oldconfig && make dep && make zImage" I have:
/opt/ppc64/bin/powerpc64-linux-nm vmlinux | grep -v
'\(compiled\)\|\(\.o$\)\|\( [aUw] \)\|\(\.\.ng$\)\|\(LASH[RL]DI\)' |
sort > System.map
make[1]: Entering directory `/opt/cross/linux/arch/ppc64/boot'
gcc -D__ASSEMBLY__ -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
-I/opt/cross/linux/include -traditional -c -o crt0.o crt0.S
/home/migor/tmp/ccFavuGr.s: Assembler messages:
/home/migor/tmp/ccFavuGr.s:134: Error: no such instruction: `lis 9,_start at h'
/home/migor/tmp/ccFavuGr.s:135: Error: no such instruction: `lis
8,_etext at ha'
/home/migor/tmp/ccFavuGr.s:136: Error: no such instruction: `addi
8,8,_etext at l'
/home/migor/tmp/ccFavuGr.s:137: Error: no such instruction: `dcbf 0,9'
/home/migor/tmp/ccFavuGr.s:138: Error: no such instruction: `icbi 0,9'
/home/migor/tmp/ccFavuGr.s:139: Error: no such instruction: `addi 9,9,0x20'
/home/migor/tmp/ccFavuGr.s:140: Error: no such instruction: `cmplwi 0,9,8'
/home/migor/tmp/ccFavuGr.s:141: Error: no such instruction: `blt 1b'
/home/migor/tmp/ccFavuGr.s:142: Error: no such instruction: `sync'
/home/migor/tmp/ccFavuGr.s:143: Error: no such instruction: `isync'
/home/migor/tmp/ccFavuGr.s:147: Error: no such instruction: `lis 7,_end at ha'
/home/migor/tmp/ccFavuGr.s:148: Error: no such instruction: `addi
7,7,_end at l'
/home/migor/tmp/ccFavuGr.s:149: Error: no such instruction: `lis
8,__bss_start at ha'
/home/migor/tmp/ccFavuGr.s:150: Error: no such instruction: `addi
8,8,__bss_start at l'
/home/migor/tmp/ccFavuGr.s:154: Error: no such instruction: `subf 7,8,7'
/home/migor/tmp/ccFavuGr.s:155: Error: no such instruction: `addi 7,7,3'
/home/migor/tmp/ccFavuGr.s:156: Error: invalid character '.' in mnemonic
/home/migor/tmp/ccFavuGr.s:157: Error: no such instruction: `beq 3f'
/home/migor/tmp/ccFavuGr.s:158: Error: no such instruction: `addi 8,8,-4'
/home/migor/tmp/ccFavuGr.s:159: Error: no such instruction: `mtctr 7'
/home/migor/tmp/ccFavuGr.s:160: Error: no such instruction: `li 0,0'
/home/migor/tmp/ccFavuGr.s:161: Error: no such instruction: `stwu 0,4(8)'
/home/migor/tmp/ccFavuGr.s:162: Error: no such instruction: `bdnz 2b'
/home/migor/tmp/ccFavuGr.s:164: Error: no such instruction: `b start'
make[1]: *** [crt0.o] Error 1
make[1]: Leaving directory `/opt/cross/linux/arch/ppc64/boot'
make: *** [zImage] Error 2
It is too difficult for me :-(
>
>
>Peter
>
>--
>Peter Bergner
>Linux PPC64 & GLIBC Kernel Development
>IBM Rochester, MN
>bergner at vnet.ibm.com
>
>
--
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