ubuntu-phone team mailing list archive
-
ubuntu-phone team
-
Mailing list archive
-
Message #08805
Re: Building Hammerhead Kernel
Arghhh Ricardo just updated his packages.... :)
On Fri, Jun 27, 2014 at 8:58 PM, David Peter <maildavidpeter@xxxxxxxxx>
wrote:
> Yes there is a very good reason: I want to know ;)
>
> I feel like, figuring out, hacking, contributing, and I am leaning for low
> level, driver and hardware. I'm not interested in uploading an image and
> use it. I want to hack.
> My personal challenge would be to bring the magnetic switch to power
> on/off the screen automatically with the nexus 5 protection case.
>
> I know it's definitely not a priority for the Ubuntu-touch project (that's
> why I won't blame anybody if there is no response to my questions), but I
> have so much to learn on linux, ubuntu and your working process that I
> won't be effective soon. So I try hard to figure that out, it's very
> instructive and soon or later I'll push some contributions on your servers.
> On Jun 27, 2014 8:24 PM, "Rodney Dawes" <rodney.dawes@xxxxxxxxxxxxx>
> wrote:
>
>> 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