Okay this is my guide on how to set up ubuntu 10.04 to build kernels. This should work on other versions of ubuntu and maybe on other linux distributions but I can't guarantee that. So if you try this guide and your on another distribution don't post complaints.
First things first you must add these repositories
next lets install the required packages
now lets get the repo script
now you'll have to download the cyanogen source this part right here will take awhile
I suggest you turn off anything that can turn your computer off
next you'll wanna export the cross compiling toolchain
now we make a directory to hold all of our kernels
okay now you have to add the ccompiler to our path
okay now lets go get the lg source code
go here and select mobile phones in the first box and type ms690 in the second
it will show you a link click on it then choose download
download it to your desktop.
unzip that file and inside will be two more zips unzip the one that says something about a kernel and place that
in your folder that you made called android-kernel
now lets get your config
unzip that and rename the file inside to .config and place it in your kernel folder
cd into that folder and type
go down to load a different config and select the config file you put in there
then save that and exit next type make
and you should have a zimage (kernel) in arch/arm/boot/
First things first you must add these repositories
Code:
[FONT=verdana]
[/FONT]sudo add-apt-repository "deb http://archive.canonical.com/lucid partner" sudo add-apt-repository "deb-src http://archive.canonical.com/ubuntu lucid partner" sudo apt-get update
Code:
sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev libc6-dev lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev libgl1-mesa-dev sun-java6-jdk
now lets get the repo script
Code:
mkdir -p ~/bin
curl http://android.git.kernel.org/repo > ~/bin/repo
chmod a+x ~/bin/repo
now you'll have to download the cyanogen source this part right here will take awhile
I suggest you turn off anything that can turn your computer off
Code:
mkdir -p ~/android/system cd ~/android/system repo init -u git://github.com/CyanogenMod/android.git -b gingerbread repo sync
Code:
export CCOMPILER=${HOME}/android/system/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi-
Code:
mkdir android-kernel
Code:
CCOMPILER=${HOME}/android/system/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi-
go here and select mobile phones in the first box and type ms690 in the second
it will show you a link click on it then choose download
download it to your desktop.
unzip that file and inside will be two more zips unzip the one that says something about a kernel and place that
in your folder that you made called android-kernel
now lets get your config
Code:
adb pull proc/config.gz
cd into that folder and type
Code:
make menuconfig
then save that and exit next type make
and you should have a zimage (kernel) in arch/arm/boot/