Building a kernel

in mrg666's repo you can find it in \arch\arm\configs\vm670_config
in tvall's repo I think they can be found in arch\arm\configs\ though I don't know which one would be for an Optimus M. May be wise just to pull the one from your phone

No cause I want the default values for the optimus v, you can't take values from a whole different kernel and expect it to work.....well anyways, now I have an OV....before I got the values by flashing V kernels to my OM and then pulling the .config :eek: and then nand restoring......
 
Just run "make menuconfig and save, it well be saved has .config which is used to tell make files what the kernel is the have.
Is there any particular place where I should have the config file to reference when I do a make menuconfig? I've had it work about twice but most times it doesn't and I get this error.
here's how I have it:
\home\user\repos\.config
\home\user\repos\android_kernel_thunderc\

I cd into the android_kernel_thunderc folder and do a make menuconfig
I load the \home\user\repos\.config and save, it asks to create a backup which it does
then back in terminal I run
ARCH=arm CROSS_COMPILE=/home/user/android-toolchain-eabi/bin/arm-linux-androideabi- make -j4

but still get the error msg. there's something inconsistent with the command I'm missing.
 
Is there any particular place where I should have the config file to reference when I do a make menuconfig? I've had it work about twice but most times it doesn't and I get this error.
here's how I have it:
\home\user\repos\.config
\home\user\repos\android_kernel_thunderc\

I cd into the android_kernel_thunderc folder and do a make menuconfig
I load the \home\user\repos\.config and save, it asks to create a backup which it does
then back in terminal I run
ARCH=arm CROSS_COMPILE=/home/user/android-toolchain-eabi/bin/arm-linux-gnueabi- make -j4

but still get the error msg. there's something inconsistent with the command I'm missing.

whos kernel are you building?
 
Is there any particular place where I should have the config file to reference when I do a make menuconfig? I've had it work about twice but most times it doesn't and I get this error.
here's how I have it:
\home\user\repos\.config
\home\user\repos\android_kernel_thunderc\

I cd into the android_kernel_thunderc folder and do a make menuconfig
I load the \home\user\repos\.config and save, it asks to create a backup which it does
then back in terminal I run
ARCH=arm CROSS_COMPILE=/home/user/android-toolchain-eabi/bin/arm-linux-gnueabi- make -j4

but still get the error msg. there's something inconsistent with the command I'm missing.

what's the error say?
 
I get it to work using cyanogenmod's command

make ARCH=arm CROSS_COMPILE=/home/user/android-toolchain-eabi/bin/arm-linux-androideabi- -j`grep 'processor' /proc/cpuinfo | wc -l`


the j4 junk doesn't seem to work since I have a dual core. Cyanogenmod's is probably a smarter command to use since it finds how many cores you actually have


... I'm compiling mrg666's kernel using linaro 4.7. As for the error msg it was in my 1st post I made in this thread. But now I now know not to use the j 4 stuff unless I'm on a quad core. I'd rather just do this from my laptop instead of my quad core desktop (even though it's slower) :-\
 
Last edited:
I get it to work using cyanogenmod's command

make ARCH=arm CROSS_COMPILE=/home/user/android-toolchain-eabi/bin/arm-linux-androideabi- -j`grep 'processor' /proc/cpuinfo | wc -l`


the j4 junk doesn't seem to work since I have a dual core. Cyanogenmod's is probably a smarter command to use since it finds how many cores you actually have

all I do is type make.........
 
smarty pants:p

I get stopped up by the simplest things

I export the arm-eabi whatever it is first though and then cd and then make...menuconfig before that if I need to edit something...
also if you need to recompile only one part of the kernel (i.e. a certain touchscreen driver you are manually editing, edit the .c file, delete the .o file type make, it will rebuild with the new file without recreating all the .o files :) it will just creat the .o for the .o you deleted and makes it from the .c you edited.
 
I build on dual core, and I'm pretty sure most everyone else does too, and make -j4 works for me. The -j is the number of threads to use per job.

Sent from my VM670 using Android Central Forums
 
I get it to work using cyanogenmod's command

the j4 junk doesn't seem to work since I have a dual core. Cyanogenmod's is probably a smarter command to use since it finds how many cores you actually have

this literally has nothing to do with anything. your error was caused my not having a .config
 
I'm compiling mrg666's kernel using linaro 4.7. As for the error msg it was in my 1st post I made in this thread. But now I now know not to use the j 4 stuff unless I'm on a quad core. I'd rather just do this from my laptop instead of my quad core desktop (even though it's slower) :-\

I use the same kernel source and build on a dual core with either make -j2 or make -j4, you where just missing your .config file.
 
These are the two commands I use to build the kernel. First change to top directory of the kernel source.

commands
cp arch/arm/configs/vm670_config ./.config make ARCH=arm CROSS_COMPILE=~/android-toolchain-eabi_47/bin/arm-linux-gnueabi- zImage modules


You can change the CROSS_COMPILE part of the second command depending on your toolchain.
 
  • Like
Reactions: anon(235100)

Trending Posts

Forum statistics

Threads
956,928
Messages
6,970,690
Members
3,163,659
Latest member
Jokerman