[g1-hackers] kernel compilation
Jay Freeman (saurik)
saurik at saurik.com
Thu Nov 20 01:04:28 UTC 2008
Everything you are doing sounds like it should work, except maybe "vanilla
android kernel". If you mean the one you get when you do a regular Android
checkout then you probably noticed a million errors while doing your make
oldconfig. The correct kernel to use is here:
git://android.git.kernel.org/kernel/msm.git
You also need to manually get this branch: android-msm-htc-2.6.25. (The
default is android-msm-2.6.25, which is old.)
As for packing, what I do is to A) have that kernel checked out to
kernel-msm (doesn't make a difference, but needed to understand my link) and
then to B) make this symlink:
vendor/htc/dream/kernel -> ../../../kernel-msm/arch/arm/boot/zImage
This way, when you do a regular make PRODUCT=htc_dream it will generate the
boot.img as a side effect with the kernel image I have built.
-J
--------------------------------------------------
From: "Henrik Petander" <henrik.petander at gmail.com>
Sent: Wednesday, November 19, 2008 4:56 PM
To: "Hacking the Android T-Mobile G1" <g1-hackers at telesphoreo.org>
Subject: Re: [g1-hackers] kernel compilation
> Hi Jay,
>
> I am interested in how you configured and compiled the patched kernel.
>
> I had a shot at compiling and installing the vanilla android kernel
> from git on a hacked rc30 phone. I used the .config from the G1
> phone's /proc/config.gz and added the localversion 01843-gfea26b0 to
> .config and disabled the automatic localversion. I then compiled the
> kernel with:
>
> "make ARCH=arm
> CROSS_COMPILE=../prebuilt/linux-x86/toolchain/arm-eabi-4.2.1
>
> Next I constructed the boot image with the kernel zImage using the
> repack script from the thread on xda-developers forum "HOWTO: Unpack,
> Edit, and Repack Boot Images" and flashed the new boot.img. However,
> the phone got stuck in T-mobile screen and didn't boot. Am I missing
> something about the kernel build process?
>
> Thanks,
> Henrik Petander
More information about the G1-Hackers
mailing list