Guest Preetam Posted March 19, 2011 Report Posted March 19, 2011 I have compiled the Linux kernel source for android. After building the source i got error, that is, after $ARCH=arm CROSS_COMPILE=/path/to/mydroid/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi- make i got: CALL scripts/checksyscalls.sh CHK include/linux/compile.h Kernel: arch/x86/boot/bzImage is ready (#1) Building modules, stage 2. MODPOST 2283 modules WARNING: modpost: Found 1 section mismatch(es). To see full details build your kernel with: 'make CONFIG_DEBUG_SECTION_MISMATCH=y' so i did the following: root@ubuntu:~/common# make CONFIG_DEBUG_SECTION_MISMATCH=y CHK include/linux/version.h CHK include/linux/utsrelease.h After even after this i got the same output root@ubuntu:~/common# make CHK include/linux/version.h CHK include/linux/utsrelease.h SYMLINK include/asm -> include/asm-x86 CALL scripts/checksyscalls.sh CHK include/linux/compile.h Kernel: arch/x86/boot/bzImage is ready (#3) Building modules, stage 2. MODPOST 2283 modules WARNING: modpost: Found 1 section mismatch(es). To see full details build your kernel with: 'make CONFIG_DEBUG_SECTION_MISMATCH=y' The actual output should be Kernel: arch/arm/boot/Image is ready Kernel: arch/arm/boot/zImage is ready Also i have executed "make" command many times, now there is no "image" in the arch/arm/boot/ directory. I tried to run the emulator with the image from arch/x86/boot but that didn't work. It gave me an error. The actual command is ./emulator -avd my_avd -kernel ~/common/arch/arm/boot/zImage -show-kernel -verbose Now, as i don't have any image in /arch/arm/boot i did: root@ubuntu:~/android-sdk-linux_x86/tools# ./emulator -avd avd1.5 -kernel ~/common/arch/x86/boot/bzImage -show-kernel -verbose and i got this error: emulator: control console listening on port 5554, ADB on port 5555 emulator: can't connect to ADB server: Connection refused emulator: ping program: /home/preetam/android-sdk-linux_x86/tools/ddms emulator: ping command: /home/preetam/android-sdk-linux_x86/tools/ddms ping emulator 10.0 Unknown cp14 write op1:6 crn:0 crm:8 op2:6 qemu: fatal: Trying to execute code outside RAM or ROM at 0xff91c756 R00=00000000 R01=000005a1 R02=00000100 R03=00000000 R04=00000000 R05=00000000 R06=00000000 R07=00000000 R08=00000000 R09=00000000 R10=00000000 R11=00000000 R12=00000000 R13=00000000 R14=00010010 R15=ff91c756 PSR=400001f3 -Z-- T svc32 Aborted root@ubuntu:~/android-sdk-linux_x86/tools# i use this reference http://linuxclues.blogspot.com/2010/05/bui...el-android.html I don't understand where i am doing wrong, i have done something stupid, please someone tell how can i solve this.? thank you!
Guest gnufabio Posted March 19, 2011 Report Posted March 19, 2011 (edited) Where have you downlaoded the sources? Edited March 19, 2011 by gnufabio
Guest Preetam Posted March 19, 2011 Report Posted March 19, 2011 Where have you downlaoded the sources? i downloaded it from $git clone git://android.git.kernel.org/kernel/common and it is in $~/common directory the android source is from $repo init -u git://android.git.kernel.org/platform/manifest.git and is in $~/mydroid directory i refer http://linuxclues.blogspot.com/2010/05/bui...el-android.html thank you.
Guest gnufabio Posted March 19, 2011 Report Posted March 19, 2011 (edited) I think you must use the goldfish version, as your reference says :D Edit: Are you sure to have cleaned the source with make clean and to have entered the correct patch for your gnueabi compiler? I suggest you to use my script to download kernel and ramdisk and pack them in a boot.img: https://github.com/gnufabio/stuff/blob/mast...il/mkliquidboot Edited March 19, 2011 by gnufabio
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now