Troubles building kernel for h2200
Hey!
Has anyone recently tried to build (HP iPAQ) h2200 target?
I'm currently getting following build failure when trying to compile kernel via bitbake virtual/kernel:
[snip]
SYSMAP System.map
SYSMAP .tmp_System.map
MODPOST vmlinux
OBJCOPY arch/arm/boot/Image
Kernel: arch/arm/boot/Image is ready
AS arch/arm/boot/compressed/head-h2200.o GZIP arch/arm/boot/compressed/piggy.gz CC arch/arm/boot/compressed/misc.o In file included from arch/arm/boot/compressed/misc.c:30:0: include/asm/arch/uncompress.h:20:20: warning: conflicting types for built-in function 'putc' AS arch/arm/boot/compressed/head-xscale.o AS arch/arm/boot/compressed/piggy.o LD arch/arm/boot/compressed/vmlinux
arch/arm/boot/compressed/head-h2200.o:(.start+0x0): undefined reference to `no symbol' make[2]: *** [arch/arm/boot/compressed/vmlinux] Error 1
make[1]: *** [arch/arm/boot/compressed/vmlinux] Error 2
make: *** [zImage] Error 2
ERROR: oe_runmake failed
[/snip]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 2 lines · Priit Laes
include/asm/arch/uncompress.h:20:20: warning: conflicting types for built-in function 'putc'
what version of binutils+gcc is in play and which version of kernel is it ?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk+lgSgACgkQuwUzVZGdMxRFwACgg6DMdhmtvMgfW6i8hKKEY8eA ZF4AoIsYfuNkJ6yo9Iu7vvkR9jMFpcFv
=jkVY
-----END PGP SIGNATURE-----
Ühel kenal päeval, L, 05.05.2012 kell 12:36, kirjutas Khem Raj:
Quoted 6 lines · Priit Laes
Quoted 2 lines
include/asm/arch/uncompress.h:20:20: warning: conflicting types for built-in function 'putc'what version of binutils+gcc is in play and which version of kernel is it ?
binutils-2.20.1-r9
gcc-4.5-r49+svnr184907
And kernel is linux-handhelds-2.6-2.6.21-hh20-r27
It's quite possible that I'm posting to the wrong place because I've set up the system using Angstrom's setup-scripts
( https://github.com/angstrom-distribution/setup-scripts ) using the following tutorial:
http://www.angstrom-distribution.org/building-angstrom
Päikest,
Priit Laes
Quoted 10 lines · Priit Laes
Ühel kenal päeval, L, 05.05.2012 kell 12:36, kirjutas Khem Raj:
Quoted 6 lines · Priit Laes
Quoted 2 lines
include/asm/arch/uncompress.h:20:20: warning: conflicting types for built-in function 'putc'what version of binutils+gcc is in play and which version of kernel is it ?
binutils-2.20.1-r9
gcc-4.5-r49+svnr184907
Quoted 9 lines
And kernel is linux-handhelds-2.6-2.6.21-hh20-r27
It's quite possible that I'm posting to the wrong place because I've set up the system using Angstrom's setup-scripts
( https://github.com/angstrom-distribution/setup-scripts ) using the following tutorial:
http://www.angstrom-distribution.org/building-angstrom
OK what does arch/arm/boot/compressed/head-h2200.s looks like ? it could be a linker problem. If you have option of chosing a different version of binutils then please try that to confirm
Quoted 7 lines
Päikest,
Priit Laes_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Ühel kenal päeval, L, 05.05.2012 kell 16:32, kirjutas Khem Raj:
Quoted 21 lines · Priit Laes
Quoted 10 lines
Ühel kenal päeval, L, 05.05.2012 kell 12:36, kirjutas Khem Raj:
Quoted 6 lines · Priit Laes
Quoted 2 lines
include/asm/arch/uncompress.h:20:20: warning: conflicting types for built-in function 'putc'what version of binutils+gcc is in play and which version of kernel is it ?
binutils-2.20.1-r9
gcc-4.5-r49+svnr184907Quoted 9 lines
And kernel is linux-handhelds-2.6-2.6.21-hh20-r27
It's quite possible that I'm posting to the wrong place because I've set up the system using Angstrom's setup-scripts
( https://github.com/angstrom-distribution/setup-scripts ) using the following tutorial:
http://www.angstrom-distribution.org/building-angstrom
Quoted 3 lines
OK what does
arch/arm/boot/compressed/head-h2200.slooks like ? it could be a linker problem. If you have option of chosing a different version of binutils then please try that to confirm
I've yet to figure out the proper steps to change the toolchain (which I assume is the culprit), though head-h2200.s looks like this, after I removed the header comments:
[snip]
#include <asm/mach-types.h> .section ".start", "ax" b 0x1000 .org 0x40 .ascii "ECEC" .org 0x1000 mov r0, #0 mov r1, #(MACH_TYPE_H2200 & 0xff) orr r1, r1, #(MACH_TYPE_H2200 & 0xff00) mov r2, #0
#include "head.S"
[/snip]
I tried building for h2200 and had the same error:
arch/arm/boot/compressed/head-h2200.o:(.start+0x0): undefined reference to `no symbol'
I ran it on debian squeeze.
binutils 2.20.1-16
gcc 4:4.4.5-1
Is there a solution to the problem?