← Back to team overview

ubuntu-phone team mailing list archive

Re: Building Hammerhead Kernel

 

Ok ok still shenaniging... Obviously I need to learn about meta-package.
I guess that I have to create a kernel meta package like the one downloaded
from rsalveti's ppa.

I won't give up :)
 On Jun 26, 2014 1:28 AM, "David Peter" <maildavidpeter@xxxxxxxxx> wrote:

> Getting closer
>
> Method inline building modifying device/lge/hammerhead/BoardConfig.mk with:
> TARGET_KERNEL_UBUNTU := false
> adding
> TARGET_KERNEL_CONFIG := hammerhead_defconfig
> TARGET_KERNEL_SOURCE := kernel/lge/hammerhead
>  and
> BOARD_KERNEL_IMAGE_NAME := zImage-dtb
>
> I have a dtb kernel, now recovery is working. Ubuntu Touch still does not
> boot.​
> ​ Checking the installed-files.txt compared to the one coming from the
> prebuilt kernel it
> sounds like the only missing stuff now are
> /system/lib/modules/3.4.0-1-hammerhead/​
> ​ libs.
> ​
>
>
>
>
>
> On Thu, Jun 26, 2014 at 12:00 AM, David Peter <maildavidpeter@xxxxxxxxx>
> wrote:
>
>> Hi Guys,
>>
>> I feel like playing with the Hammerhead Kernel
>>
>> I have figured out how to build the project: https://code-review.phablet.ubuntu.com/p/aosp/platform/manifest.git
>> -b
>> <https://code-review.phablet.ubuntu.com/p/aosp/platform/manifest.git-b>
>> phablet-4.4.2_r1
>> then flash my hammerhead using rootstock-touch-install and a daily image.
>> So far so good.
>>
>>
>> Next, what do I have to do with the kernel sources project
>> https://code-review.phablet.ubuntu.com/ubuntu/kernel/trusty -b
>> hammerhead ?
>>
>>
>> I have tried 3 ways:
>>
>> 1) building kernel in tree
>> - copy the kernel sources to kernel/lge/hammerhead
>> - modify device/lge/hammerhead/BoardConfig.mk
>>   in order to make TARGET_KERNEL_UBUNTU := false
>>   and add TARGET_KERNEL_CONFIG := hammerhead_defconfig
>>                TARGET_KERNEL_SOURCE := kernel/lge/hammerhead
>>
>> --> built kernel image smaller than the prebuilt one from rsalveti PPA (I
>> guess it is a dtb story). Nothing will work
>>
>>
>> 2) building kernel in tree with cyanogenmod BoardConfig.mk
>>
>> --> built kernel image sizing the same as the prebuilt one from rsalveti
>> PPA (a dtb one by the way). Recovery works, Ubuntu-Touch won't boot though
>>
>>
>> 3) building myself the kernel sources
>> export ARCH=arm
>> export SUBARCH=arm
>> export CROSS_COMPILE=arm-eabi-
>> make hammerhead_defconfig
>> make
>>
>> ... no result yet, it was still building when I dicided to write this
>> email as I don't know what to do next.
>>
>>
>>
>> What is the proper way to build the kernel and to produce the img boot
>> recovery and system files?
>> Can you give me some guidelines?
>>
>>
>> I am keeping notes of that process and will suggest a wiki update.
>>
>> Regards
>> David
>>
>
>

Follow ups

References