← Back to team overview

ubuntu-phone team mailing list archive

Building Hammerhead Kernel

 

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 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