LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Mobile
User Name
Password
Linux - Mobile This forum is for the discussion of all topics relating to Mobile Linux. This includes Android, Tizen, LiMo, Maemo, MeeGo, Openmoko, Ubuntu Mobile, WebOS, Firefox OS, Open Mobile Alliance and other similar projects and products.
A reminder that LQ now has a dedicated Android sister site: AndroidQuestions.org

Notices

Reply
 
Search this Thread
Old 03-19-2011, 11:00 AM   #1
preetb123
LQ Newbie
 
Registered: Jan 2011
Posts: 28

Rep: Reputation: 0
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!
 
Old 03-19-2011, 02:13 PM   #2
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,129

Rep: Reputation: 526Reputation: 526Reputation: 526Reputation: 526Reputation: 526Reputation: 526
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
 
Old 03-19-2011, 05:37 PM   #3
preetb123
LQ Newbie
 
Registered: Jan 2011
Posts: 28

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by business_kid View Post
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


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.

Last edited by preetb123; 03-19-2011 at 05:43 PM.
 
Old 11-26-2011, 09:58 AM   #4
Neelima Krishnan
LQ Newbie
 
Registered: Nov 2011
Posts: 1

Rep: Reputation: Disabled
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
 
Old 12-14-2011, 12:43 AM   #5
preetb123
LQ Newbie
 
Registered: Jan 2011
Posts: 28

Original Poster
Rep: Reputation: 0
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.

Last edited by preetb123; 12-14-2011 at 12:48 AM.
 
  


Reply

Tags
android, crosscompile, emulator, kernel


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] error with “pmem.c” compiling linux source code for android preetb123 Linux - Mobile 2 03-20-2011 05:40 PM
[SOLVED] "missing kernel .config file" error while compiling linux source code for android preetb123 Linux - Mobile 3 03-19-2011 07:46 AM
[SOLVED] jdk-5 error while building android source code preetb123 Linux - Mobile 2 03-16-2011 01:11 PM
LXer: Google open source guru says Android code will be in Linux kernel in time LXer Syndicated Linux News 0 03-06-2010 11:10 AM
Source-code error in Tripwire when building Ephracis Linux - Software 2 02-24-2005 12:02 PM


All times are GMT -5. The time now is 12:34 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration