← Back to team overview

ubuntu-phone team mailing list archive

Re: Building Hammerhead Kernel

 

Hi,

I just saw these mails, but is there any reason you're trying to go
about flashing this device the hard way? There are already images built
for hammerhead, which you can install using an alternate server as
described on the wiki page:

https://wiki.ubuntu.com/Touch/Devices#Server_at_http:.2BAC8ALw-system-image.tasemnice.eu

Not trying to discourage. Just curious as to what you're doing. There is
an issue with the latest builds, where the screen does not unblank when
pressing the power button, after the phone has been removed from the
charger, and could use some help with getting fixed, if you have enough
knowledge to figure the issue out.



On Fri, 2014-06-27 at 17:20 -0400, David Peter wrote:
> 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 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