Compiling android kernel in an x86 machine for x86 target

25 views
Skip to first unread message

SergioSilva

unread,
Sep 8, 2008, 3:18:16 PM9/8/08
to Android Internals
Hi everyone,

today I have tried to compile the android kernel in an x86 machine
(and also to an x86 target).

So I tried compiling the kernel by changing the CROSS-COMPILE variable
to

CROSS-COMPILE=
and ran

make ARCH=x86 CROSS-COMPILE= mrproper
make ARCH=x86 CROSS-COMPILE= menuconfig (no changes to the default)
make ARCH=x86 CROSS-COMPILE=

which eventually gave the error:

(...)
Root device is (8, 1)
Setup is 11708 bytes (padded to 11776 bytes).
System is 1903 kB
Kernel: arch/x86/boot/bzImage is ready (#1)
Building modules, stage 2.
MODPOST 1906 modules
ERROR: "groups_search" [net/ipv6/ipv6.ko] undefined!
ERROR: "groups_search" [net/bluetooth/bluetooth.ko] undefined!
WARNING: modpost: Found 15 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2


any ideas?

SergioSilva

unread,
Sep 11, 2008, 5:23:38 AM9/11/08
to Android Internals
A quick update on this... removing the ipv6 and bluetooth modules from
the kernel configuration fixes the problem... then I am able to boot
this kernel, but as someone from google pointed out this will be as
far as we go in getting android running natively on an x86 machine.
The middleware stuff is still available as binary only it seems...

Cheers

leo.nomdedeu

unread,
Sep 19, 2008, 6:26:24 AM9/19/08
to Android Internals
Hope they release sources asap ;)

allneed

unread,
Oct 7, 2008, 12:23:50 AM10/7/08
to Android Internals
Hi,
Great!
Can yoiu tell me how to boot this kernel? The output file is
vmlinux.bin. I can not load this kernel with grub.
Thank you.
> > any ideas?- Hide quoted text -
>
> - Show quoted text -
Reply all
Reply to author
Forward
0 new messages