problem is that I am not able to repeat the steps on my system as I donot have a linux system with me.
I never built Android kernel for x86. google using "android for x86" , this is a seperate branch for android x86 development. This site has NDK for x86 , can use this, instead of android ndk for arm. Hope this helps. Raja On Thu, Feb 17, 2011 at 12:38 PM, Soumen Debnath < [email protected]> wrote: > Morning raja, > I am again stuck with some problems , I am sending u full details how i am > doing this. > > 1) First I had download the kernel code and android-ndk-r5b , it has one > folder named Common. I downloaded it using git:// & repo://. > 2) In the folder common there is one make file . I edited the CROSS_COMPILE > line ->CROSS_COMPILE ?= $(CONFIG_CROSS_COMPILE:"%"=%) with your > prescribed version->CROSS_COMPILE ?= > /home/soumen/Desktop/android-ndk-r5b/toolchains/arm-linux-androideai-4.4.3/prebuilt/linux-x86/bin/arm-linux- > Image -j2[ the path of the android-ndk-r5b]. > 3)After that I am running make command . But it thoughs some errors. > > soumen@soumen-laptop:~/Desktop/android/common$ make > /home/soumen/Desktop/android/common/arch/x86/Makefile:81: stack protector > enabled but no compiler support > make: > /home/soumen/Desktop/android-ndk-r5b/toolchains/arm-linux-androideai-4.4.3/prebuilt/linux-x86/bin/arm-linux-: > Command not found > scripts/kconfig/conf --silentoldconfig arch/x86/Kconfig > * > * Restart config... > * > * > * General setup > * > Prompt for development and/or incomplete code/drivers (EXPERIMENTAL) > [Y/n/?] y > Cross-compiler tool prefix (CROSS_COMPILE) [] > Local version - append to kernel release (LOCALVERSION) [] > Automatically append version information to the version string > (LOCALVERSION_AUTO) [N/y/?] n > Kernel compression mode > > 1. Gzip (KERNEL_GZIP) > 2. Bzip2 (KERNEL_BZIP2) (NEW) > 3. LZMA (KERNEL_LZMA) > 4. LZO (KERNEL_LZO) > choice[1-4?]: > > > > Please help me I am busting my head with it for many days. > > > On Wed, Feb 16, 2011 at 6:24 PM, raja pavan <[email protected]> wrote: > >> search for the key word in the .config and you will get clue (which head >> in make menuconfig list has the setting) >> >> then do make menuconfig and uncheck .... >> >> similar for other errors, the feature enabled is not supported by the >> kernel chosen by you. >> >> On Wed, Feb 16, 2011 at 6:21 PM, Soumen Debnath < >> [email protected]> wrote: >> >>> should I do this by the command "make menuconfig" >>> >>> On Wed, Feb 16, 2011 at 5:46 PM, raja pavan <[email protected]> wrote: >>> >>>> "stack protector enabled but no compiler support" >>>> >>>> Also try disabling stack protector in the android kernel configuration, >>>> search for the same in .config of your kernel, >>>> >>>> On Wed, Feb 16, 2011 at 5:43 PM, raja pavan <[email protected]>wrote: >>>> >>>>> make alone will not suffice, pass full command line ... >>>>> >>>>> revert back if any error ... >>>>> >>>>> On Wed, Feb 16, 2011 at 5:18 PM, Soumen Debnath < >>>>> [email protected]> wrote: >>>>> >>>>>> raja pavan, >>>>>> >>>>>> now i get the error is : >>>>>> root@soumen-laptop:/home/soumen/Desktop/android/common# make >>>>>> >>>>>> /home/soumen/Desktop/android/common/arch/x86/Makefile:81: stack >>>>>> protector enabled but no compiler support >>>>>> CHK include/linux/version.h >>>>>> CHK include/generated/utsrelease.h >>>>>> CC kernel/bounds.s >>>>>> cc1: error: unrecognized command line option "-mregparm=3" >>>>>> kernel/bounds.c:1: error: bad value (i586) for -march= switch >>>>>> make[1]: *** [kernel/bounds.s] Error 1 >>>>>> make: *** [prepare0] Error 2 >>>>>> >>>>>> please help me how can I solve... >>>>>> >>>>>> >>>>>> On Wed, Feb 16, 2011 at 5:04 PM, raja pavan <[email protected]>wrote: >>>>>> >>>>>>> give CROSS_COMPILE=/usr/local/arm/MYTC/bin/arm-linux- (no need to >>>>>>> specify full name of the gcc binary) , >>>>>>> >>>>>>> make -j1 alone will not suffice. MYTC is the root directory of arm >>>>>>> tool chain setup. >>>>>>> >>>>>>> Full command will be like >>>>>>> >>>>>>> make ARCH=arm CROSS_COMPILE=/usr/local/arm/MYTC/bin/arm-linux- Image >>>>>>> -j2 (customize for your setup of Cross Compiler) >>>>>>> >>>>>>> NDK has the cross compiler which can build the android kernel as >>>>>>> kernel needs only a C compiler. >>>>>>> >>>>>>> Ensure that your NDK is installed in the path : >>>>>>> /home/soumen/Desktop/android-ndk-r5b/toolchains/arm-eabi-4.4.0/prebuilt/linux-x86/ >>>>>>> >>>>>>> On Wed, Feb 16, 2011 at 3:51 PM, Soumen Debnath < >>>>>>> [email protected]> wrote: >>>>>>> >>>>>>>> can any body tell me when we compile kernel at that time what are >>>>>>>> parameters should be given to the CROSS COMPILER. >>>>>>>> because when i try to compile the android kernel I get the following >>>>>>>> errors: >>>>>>>> >>>>>>>> soumen@soumen-laptop:~/Desktop/android/common$ make -j2 >>>>>>>> /home/soumen/Desktop/android/common/scripts/gcc-version.sh: line 25: >>>>>>>> /home/soumen/Desktop/android-ndk-r5b/toolchains/arm-eabi-4.4.0/prebuilt/linux-x86/arm-eabi-: >>>>>>>> No such file or directory >>>>>>>> /home/soumen/Desktop/android/common/scripts/gcc-version.sh: line 26: >>>>>>>> /home/soumen/Desktop/android-ndk-r5b/toolchains/arm-eabi-4.4.0/prebuilt/linux-x86/arm-eabi-: >>>>>>>> No such file or directory >>>>>>>> /home/soumen/Desktop/android/common/arch/x86/Makefile:81: stack >>>>>>>> protector enabled but no compiler support >>>>>>>> /bin/sh: >>>>>>>> /home/soumen/Desktop/android-ndk-r5b/toolchains/arm-eabi-4.4.0/prebuilt/linux-x86/arm-eabi-: >>>>>>>> not found >>>>>>>> CHK include/linux/version.h >>>>>>>> CC scripts/mod/empty.o >>>>>>>> /bin/sh: >>>>>>>> /home/soumen/Desktop/android-ndk-r5b/toolchains/arm-eabi-4.4.0/prebuilt/linux-x86/arm-eabi-: >>>>>>>> not found >>>>>>>> make[2]: *** [scripts/mod/empty.o] Error 127 >>>>>>>> make[1]: *** [scripts/mod] Error 2 >>>>>>>> make[1]: *** Waiting for unfinished jobs.... >>>>>>>> CHK include/generated/utsrelease.h >>>>>>>> make: *** [scripts] Error 2 >>>>>>>> make: *** Waiting for unfinished jobs.... >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> On Wed, Feb 16, 2011 at 12:12 PM, Aldrin Montana < >>>>>>>> [email protected]> wrote: >>>>>>>> >>>>>>>>> Hey man, >>>>>>>>> >>>>>>>>> So I tried for awhile to compile the custom kernel on ubuntu... >>>>>>>>> 9.04? And here's what I've come up with so far. if you do a checkout >>>>>>>>> of >>>>>>>>> http://android.git.kernel.org/?p=kernel/common.git;a=summary and >>>>>>>>> you checkout either goldfish branch (both are archived) then what you >>>>>>>>> can do >>>>>>>>> is do a make goldfishdef_config, make -j2. I have a website that >>>>>>>>> explains it >>>>>>>>> well, and I'll respond with that website when I use my laptop (that's >>>>>>>>> where >>>>>>>>> it is bookmarked). Also there are a bunch of flags you need to set... >>>>>>>>> damn, >>>>>>>>> alright I'll just fetch my laptop and link you that website, but >>>>>>>>> here's the >>>>>>>>> main thing I learned. goldfish branches are ridiculously easy to get >>>>>>>>> to >>>>>>>>> compile. other branches are a bit tougher. >>>>>>>>> >>>>>>>>> However, if you want to just customize the kernel then launch it, >>>>>>>>> it may be easier to work from the goldfish branches. I imagine that >>>>>>>>> you can >>>>>>>>> use these as a base, then when you need to move to a newer branch just >>>>>>>>> figure out how to compile those and it's a simple migration of your >>>>>>>>> code. >>>>>>>>> I'll send another email in about 20 min. good luck! >>>>>>>>> >>>>>>>>> -Aldrin >>>>>>>>> >>>>>>>>> On Mon, Feb 14, 2011 at 9:26 PM, Soumen Debnath < >>>>>>>>> [email protected]> wrote: >>>>>>>>> >>>>>>>>>> I want to study the android OS's kernel, and also want to modify >>>>>>>>>> it. On that regard send some useful material if u have.. >>>>>>>>>> >>>>>>>>>> On Mon, Feb 14, 2011 at 2:07 AM, Aldrin Montana < >>>>>>>>>> [email protected]> wrote: >>>>>>>>>> >>>>>>>>>>> any particulars as to what your problem was and what procedure >>>>>>>>>>> you followed? >>>>>>>>>>> >>>>>>>>>>> On Wed, Feb 9, 2011 at 3:33 AM, SD < >>>>>>>>>>> [email protected]> wrote: >>>>>>>>>>> >>>>>>>>>>>> Hello Every Android Lover, >>>>>>>>>>>> I am new to android . I want to study android operating system >>>>>>>>>>>> very >>>>>>>>>>>> closely, for that I want to build the whole android OS on my >>>>>>>>>>>> ubantu >>>>>>>>>>>> 10.04LTS. I try to follow the android site. But I am not able to >>>>>>>>>>>> do >>>>>>>>>>>> so. Can any one please help me regarding this. >>>>>>>>>>>> >>>>>>>>>>>> -- >>>>>>>>>>>> unsubscribe: [email protected] >>>>>>>>>>>> website: http://groups.google.com/group/android-kernel >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> -- >>>>>>>>>>> unsubscribe: [email protected] >>>>>>>>>>> website: http://groups.google.com/group/android-kernel >>>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> -- >>>>>>>>>> *Thanks & Regards, >>>>>>>>>> Soumen Debnath. >>>>>>>>>> Master of Technology (By Research), B.Tech In Computer Science >>>>>>>>>> Bangalore,India. >>>>>>>>>> Voice: +91 9620002132* >>>>>>>>>> >>>>>>>>>> -- >>>>>>>>>> unsubscribe: [email protected] >>>>>>>>>> website: http://groups.google.com/group/android-kernel >>>>>>>>>> >>>>>>>>> >>>>>>>>> -- >>>>>>>>> unsubscribe: [email protected] >>>>>>>>> website: http://groups.google.com/group/android-kernel >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> *Thanks & Regards, >>>>>>>> Soumen Debnath. >>>>>>>> Master of Technology (By Research), B.Tech In Computer Science >>>>>>>> Bangalore,India. >>>>>>>> Voice: +91 9620002132* >>>>>>>> >>>>>>>> -- >>>>>>>> unsubscribe: [email protected] >>>>>>>> website: http://groups.google.com/group/android-kernel >>>>>>>> >>>>>>> >>>>>>> -- >>>>>>> unsubscribe: [email protected] >>>>>>> website: http://groups.google.com/group/android-kernel >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> *Thanks & Regards, >>>>>> Soumen Debnath. >>>>>> Master of Technology (By Research), B.Tech In Computer Science >>>>>> Bangalore,India. >>>>>> Voice: +91 9620002132* >>>>>> >>>>>> -- >>>>>> unsubscribe: [email protected] >>>>>> website: http://groups.google.com/group/android-kernel >>>>>> >>>>> >>>>> >>>> -- >>>> unsubscribe: [email protected] >>>> website: http://groups.google.com/group/android-kernel >>>> >>> >>> >>> >>> -- >>> *Thanks & Regards, >>> Soumen Debnath. >>> Master of Technology (By Research), B.Tech In Computer Science >>> Bangalore,India. >>> Voice: +91 9620002132* >>> >>> -- >>> unsubscribe: [email protected] >>> website: http://groups.google.com/group/android-kernel >>> >> >> -- >> unsubscribe: [email protected] >> website: http://groups.google.com/group/android-kernel >> > > > > -- > *Thanks & Regards, > Soumen Debnath. > Master of Technology (By Research), B.Tech In Computer Science > Bangalore,India. > Voice: +91 9620002132* > > -- > unsubscribe: [email protected] > website: http://groups.google.com/group/android-kernel > -- unsubscribe: [email protected] website: http://groups.google.com/group/android-kernel
