[g1-hackers] kernel compilation
Henrik Petander
henrik.petander at gmail.com
Fri Nov 21 02:21:42 UTC 2008
Hi Jay,
Thanks for the advice, I got the boot.img booting by following your
instructions. I had to replace PRODUCT with TARGET_PRODUCT when making
the android stack, though.
I now have a g1 running with an IPv6 enabled kernel, yay!
-Henrik
On Thu, Nov 20, 2008 at 12:04 PM, Jay Freeman (saurik)
<saurik at saurik.com> wrote:
> 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
>
>
> _______________________________________________
> G1-Hackers mailing list
> G1-Hackers at telesphoreo.org
> http://www.telesphoreo.org/cgi-bin/mailman/listinfo/g1-hackers
>
More information about the G1-Hackers
mailing list