UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Installing Custom Kernel on Nexus 5

    Scheduled Pinned Locked Moved OS
    kerneldevelopmentcustom
    2 Posts 1 Posters 2.2k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      This topic has been deleted. Only users with topic management privileges can see it.
      • A Offline
        altr0n
        last edited by altr0n

        Hello All,

        First and foremost, I am following this guide: https://docs.ubuntu.com/phone/en/devices/porting-new-device

        I have managed to build and install Ubuntu Touch on my Nexus 5. I would like to compile a custom kernel but I am running into some issues.

        First, I cloned the source tree from here: https://github.com/ubports/android_kernel_lge_hammerhead

        Then I placed the source in the kernel/lge/hammerhead directory

        Next I modified the device/lge/hammerhead/BoardConfig.mk to build using the cyanogenmod_hammerhead_defconfig configuration as a test run.

        Now, onto the problems...

        The first problem that I had was that the kernel was not getting the device tree appended to it, I was able to copy the original tree from my working boot.img and that bypassed my "dtb not found errors"

        Now when I try to run my new image, by running:

        fastboot boot my-img.img

        I simply hang at the google logo. I've not made any modifications to the kernel source or configuration yet there is still something that I am missing.

        Does anyone have any suggestions or ideas? I'd really like to start on some kernel development and I'm not terribly familiar with the Android ecosystem.

        Thanks!

        A 1 Reply Last reply Reply Quote 0
        • A Offline
          altr0n @altr0n
          last edited by

          @altr0n

          I managed to get my own kernel compiled, the issue was that I did not have a console argument specified that I needed (I founded it on another post here)

          console=tty0

          Needed to be added to my kernel command line args.

          Hope this is useful to someone in the future!

          1 Reply Last reply Reply Quote 1

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post