• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root First Time Compiling Kernel

Ok, I setup 3 build boxes. One Ubuntu 11.10x64 and one Mint 11x86 the other Ubuntu 10.04. Installed required packages and downloaded multiple toolchains. I have tried compiling on both machines and on both I get the same errors.
make[2]: *** [silentoldconfig] Error 1
make[1]: *** [silentoldconfig] Error 2
make: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'. Stop.
make: *** Waiting for unfinished jobs....
CHK include/linux/version.h

Its also kicks back every kconfig with some comment error...
I have tried make thunderc perf defconfig and get the same error. Copied .config from device dropped into source, same error. I'm starting to think I have a bad git clone, but I have cloned it twice now. Do I need the JDK/JRE? I read I didn't need it for its needed to compile the rom not the kernel. Any ideas on what is going on? I'm new to this so any help would be great.
 
For help with building kernels you might need to Google BobZohme or drewwalton19216801
 
Ok, I setup 3 build boxes. One Ubuntu 11.10x64 and one Mint 11x86 the other Ubuntu 10.04. Installed required packages and downloaded multiple toolchains. I have tried compiling on both machines and on both I get the same errors.
make[2]: *** [silentoldconfig] Error 1
make[1]: *** [silentoldconfig] Error 2
make: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'. Stop.
make: *** Waiting for unfinished jobs....
CHK include/linux/version.h

Its also kicks back every kconfig with some comment error...
I have tried make thunderc perf defconfig and get the same error. Copied .config from device dropped into source, same error. I'm starting to think I have a bad git clone, but I have cloned it twice now. Do I need the JDK/JRE? I read I didn't need it for its needed to compile the rom not the kernel. Any ideas on what is going on? I'm new to this so any help would be great.

did you ever do "make menuconfig"?
and I'm pretty sure it uses the ".config" file(hidden) press CTRL+H to show hidden files

I misread, now I see the "."......
 
Ok, I setup 3 build boxes. One Ubuntu 11.10x64 and one Mint 11x86 the other Ubuntu 10.04. Installed required packages and downloaded multiple toolchains. I have tried compiling on both machines and on both I get the same errors.
make[2]: *** [silentoldconfig] Error 1
make[1]: *** [silentoldconfig] Error 2
make: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'. Stop.
make: *** Waiting for unfinished jobs....
CHK include/linux/version.h

Its also kicks back every kconfig with some comment error...
I have tried make thunderc perf defconfig and get the same error. Copied .config from device dropped into source, same error. I'm starting to think I have a bad git clone, but I have cloned it twice now. Do I need the JDK/JRE? I read I didn't need it for its needed to compile the rom not the kernel. Any ideas on what is going on? I'm new to this so any help would be great.
Have you tried it with Slackware? I find compiling from source to be almost obscenely easy on Slack...
 
Brother; yeah that was my next step was to try slackware. I have tried make menuconfig and it kicks back the exact same error. Either I have bad source or a bad lib install. I have even tried different versions of arm eabi cross compiler and still no dice. I started talking to tvall about how he went about compiling his; It was good 'till I hit this wall. Even he doesn't know wtf I did wrong. Then again he just followed a tutorial and it worked; I followed same tutorial no go.
 
Still trying to build my kernel? I just did a clean clone on another box and its compiling without issue. So.. git checkout any missing files? Or start over again?

I build on debian btw. I have two Sid boxes and one stable box.
 
Still trying to build my kernel? I just did a clean clone on another box and its compiling without issue. So.. git checkout any missing files? Or start over again?

I build on debian btw. I have two Sid boxes and one stable box.

I know right dude?!? I have had major issues with Ubuntu and flavors of. I'm downloading slackware 13.37 and if that doesn't work I'll DL debian. At this point I'm swaying towards bad packages. I have cloned yours and bobz both compile with same error.

Yes I have done everything I'm supposed to, even the whole export ARCH=arm-aebi etc etc etc. Gunna try slackware then debian; I'll report back.
 
Ok I'm back. I setup a debian machine; using Synaptic I installed every lib I needed(listed in tut) individually to avoid breaks. Exported the ARCH=arm to point to the eabi-4.4.3; pulled config.gz and pushed to clone renaming .config. Did make ARCH=arm CROSS_COMPILE=$CCOMPILER oldconfig & make ARCH=arm CROSS_COMPILE=$CCOMPILER menuconfig; same exact error!! Everything to do with Kconfig tweaks out and kicks an error. I have checked the scripts and they seem fine. Does x64 have an issue with compiling or something, because that's all I run. I'm gunna try cloning git again and see if that does it. Maybe its because I'm not cloning the correct source.
 
It just came to me! I don't think I'm copying the .config to the correct place. CM7 tutorial says drop it in the root of the source. Apparently the source I have, the .config is located in arch/arm/configs; tvall is this correct? I'll test it when I get home from work @ midnight!
 
It just came to me! I don't think I'm copying the .config to the correct place. CM7 tutorial says drop it in the root of the source. Apparently the source I have, the .config is located in arch/arm/configs; tvall is this correct? I'll test it when I get home from work @ midnight!

Yes that's correct, it goes in the root of the entire directory...

Messed up git tvall?
 
hahaha! you guys are so legit.

This thread is for constructive criticism only please. I don't know what you mean by this; we don't need rants and flames when we're just trying to learn.


SGTPropain... I asked my kids what that slang term means. It's a compliment.

See #2: http://www.urbandictionary.com/define.php?term=legit

We all have to try and remember that there's a huge difference in some of the ages here, and try not to assume the worst in people.
 
SGTPropain... I asked my kids what that slang term means. It's a compliment.

See #2: Urban Dictionary: legit

We all have to try and remember that there's a huge difference in some of the ages here, and try not to assume the worst in people.

Well that's all good & all; that's why I handled it diplomatically. I could have said something way worse. When I was a kid & you said that to someone, it was an insult. Kinda like the word "Sick"; obviously being sick is bad. However it has manifested its way to a good word. I apologize If offended anyone, I thought I handled it well.
 
Yes that's correct, it goes in the root of the entire directory...

Messed up git tvall?

The root of android_kernel_thunderc?Or arch/arm/configs?Either way I'm trying it ;-)

I forked bobz and tvalls kernel; cloned all four and did manifest check, source is all here.
 
It just came to me! I don't think I'm copying the .config to the correct place. CM7 tutorial says drop it in the root of the source. Apparently the source I have, the .config is located in arch/arm/configs; tvall is this correct? I'll test it when I get home from work @ midnight!

The .config goes in the root of the source. arch/arm/configs has all the defconfigs, which you would copy to .config if needed.
 
I am assuming that if you don't have a .config copied out of your phone using the same kernel then you will error out trying to make a new one right? I'm trying to build BobZhome's ICS source for this phone but changing the touchscreen driver to mine, that part built correctly....other parts not so much.
 
Back
Top Bottom