LinuxQuestions.org
Help answer threads with 0 replies.
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, Firefox OS, Sailfish OS, Maemo, MeeGo, Ubuntu Mobile, WebOS, 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-17-2011, 10:29 PM   #1
preetb123
LQ Newbie
 
Registered: Jan 2011
Posts: 28

Rep: Reputation: 0
error while compiling linux kernel source for android


I have downloaded the Linux Kernel Source and trying to build Linux kernel for android emulator. Now I get error while compiling the Linux Kernel Source, here I use cross-compiling tool-chain that is downloaded with android source.

When I try this:

ARCH=arm CROSS_COMPILE=~/mydroid/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi- make

I get the following error:

root@ubuntu:~# ARCH=arm CROSS_COMPILE=~/mydroid/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi- make
make: *** No targets specified and no makefile found. Stop.
root@ubuntu:~#

i am following the instructions from http://linuxclues.blogspot.com/2010/...l-android.html

so, What is the error, or do I have to execute this in some other directory?

Please help. Thank you!
 
Old 03-18-2011, 04:49 AM   #2
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,231

Rep: Reputation: 578Reputation: 578Reputation: 578Reputation: 578Reputation: 578Reputation: 578
Ithink you're running emulater? This is in the link you provided.
http://linuxclues.blogspot.com/2010/...ebian-sid.html
 
Old 03-18-2011, 08:29 AM   #3
preetb123
LQ Newbie
 
Registered: Jan 2011
Posts: 28

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by EDDY1 View Post
Ithink you're running emulater? This is in the link you provided.
http://linuxclues.blogspot.com/2010/...ebian-sid.html

if also i close the emulator, same error appears...
there must be some problem with make files, i am not able to find where this make file is and how to get this done.
 
Old 03-19-2011, 06:30 AM   #4
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 231Reputation: 231Reputation: 231
Why is this marked "[SOLVED]"? -- Your last post sounds like you are still looking for an answer.
 
Old 03-19-2011, 06:44 AM   #5
preetb123
LQ Newbie
 
Registered: Jan 2011
Posts: 28

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by archtoad6 View Post
Why is this marked "[SOLVED]"? -- Your last post sounds like you are still looking for an answer.
I changed the directory to "common", that is, from root@ubuntu:~# to root@ubuntu:~/common# and the compilation started.
now there is problem with some files when i "make". most of the things are done, the last error is


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
CC drivers/rtc/alarm.o
drivers/rtc/alarm.c:16: fatal error: asm/mach/time.h: No such file or directory
compilation terminated.
make[2]: *** [drivers/rtc/alarm.o] Error 1
make[1]: *** [drivers/rtc] Error 2
make: *** [drivers] Error 2
root@ubuntu:~/common#



and i am still finding, how to resolve this...


anyways, thankyou very much...!!!
 
Old 03-19-2011, 09:56 AM   #6
preetb123
LQ Newbie
 
Registered: Jan 2011
Posts: 28

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by preetb123 View Post
I changed the directory to "common", that is, from root@ubuntu:~# to root@ubuntu:~/common# and the compilation started.
now there is problem with some files when i "make". most of the things are done, the last error is


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
CC drivers/rtc/alarm.o
drivers/rtc/alarm.c:16: fatal error: asm/mach/time.h: No such file or directory
compilation terminated.
make[2]: *** [drivers/rtc/alarm.o] Error 1
make[1]: *** [drivers/rtc] Error 2
make: *** [drivers] Error 2
root@ubuntu:~/common#



and i am still finding, how to resolve this...


anyways, thankyou very much...!!!


Well this is resolved too...!! i found this link

http://labs.beatcraft.com/en/index.p...id%20for%20x86

thanks linuxquestions.org!!
 
Old 05-17-2013, 09:06 PM   #7
xlu2000
Member
 
Registered: Aug 2010
Posts: 53

Rep: Reputation: 1
hi preetb,

Can I use this way to compile a kernel in which I added new codes?

Thank you,
 
  


Reply

Tags
android, crosscompile, kernel source, linux


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
I got some problems when i compiling the android source code hmczj Programming 2 05-04-2010 02:05 AM
LXer: Google open source guru says Android code will be in Linux kernel in time LXer Syndicated Linux News 0 03-06-2010 12:10 PM
Error when compiling kernel linux-2.6.22 : make: ***[_modinst_post] Error 137 ngoclan.it Linux - General 1 12-11-2007 07:54 AM
Error when compiling kernel linux-2.6.22 : make: ***[_modinst_post] Error 137 ngoclan.it Linux - Newbie 0 12-11-2007 07:49 AM


All times are GMT -5. The time now is 03:13 PM.

Main Menu
Advertisement
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