error after building Linux source code for android
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 don't understand where i am doing wrong, i have done something stupid, please someone tell how can i solve this.? thank you! |
It's looking for /usr/include/linux/ containing the kernel headers, I think. Don't understand your setup enough to be of much help. maybe set $INCLUDEDIR? Have you something to pass -I/path/to/kernel/headers to?
If everything works is lined up safely, you might manage by installing them. make headers check make headers install |
Quote:
if i execute the command for make, i get the following error, now what exactly is wrong and what will i have to do??(I was thinking of deleting all the downloaded files and download them again from start and carry the process to do this successfully, but that is very big process, in fact it took me days to download and do this). I just want to make it happen here somehow... root@ubuntu:~/common# ARCH=arm CROSS_COMPILE=/home/preetam/mydroid/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi- make HOSTCC scripts/basic/fixdep scripts/basic/fixdep.c: In function ‘traps’: scripts/basic/fixdep.c:377: warning: dereferencing type-punned pointer will break strict-aliasing rules scripts/basic/fixdep.c:379: warning: dereferencing type-punned pointer will break strict-aliasing rules HOSTCC scripts/basic/docproc HOSTCC scripts/basic/hash HOSTCC scripts/kconfig/conf.o scripts/kconfig/conf.c: In function ‘conf_askvalue’: scripts/kconfig/conf.c:105: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result scripts/kconfig/conf.c: In function ‘conf_choice’: scripts/kconfig/conf.c:307: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result HOSTCC scripts/kconfig/kxgettext.o HOSTCC scripts/kconfig/zconf.tab.o HOSTLD scripts/kconfig/conf scripts/kconfig/conf -s arch/arm/Kconfig arch/arm/Kconfig:682: can't open file "arch/arm/mach-ks8695/Kconfig" make[2]: *** [silentoldconfig] Error 1 make[1]: *** [silentoldconfig] Error 2 CHK include/linux/version.h make[1]: `include/asm-arm/mach-types.h' is up to date. make: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'. Stop. root@ubuntu:~/common# and i am Linux newbie so please tell how to, if any suggestions? please help. thank you. |
Emulator error with bzImage
Hello Preetam,
I was wondering how you got around this error. Could you guide me through this, I seem to be having the same issue Neelima |
Hello Neelima,
Sorry for the late reply. just let me know if you are building it for the emulator or phone??? & why?? by the way, i did all these to enable iptables inside Android kernel i.e. Android emulator(Android Eclair 2.1) & i had a working kernel image after some tries. |
All times are GMT -5. The time now is 04:46 PM. |