Boot Img kitchen[Linux]

Search This thread

kylon

Senior Member
Dec 17, 2010
2,615
2,028
Hi,

This script will help you to unpack, repack and edit a boot.img easily and quickly.
All the tools, execpt dtbTool are compiled from source as of 11/04/2016 (src - here)

Changes:
- 11/04/2016
remove old code
now it is suitable for any kernel/boot.img, it loads the correct values from the out folder
up to date tools

Instructions:

How to unpack a boot.img
place a boot.img* in the script folder
run the script
now you have 2 folders: out and ramdisk ( I suppose you know what to do now :) )

How to repack a boot.img
place a zImage** in the script folder
run the script
the resulting boot.img will contain the current date in the name


* any name is allowed, the important thing is that the name contain the word boot
**any name is allowed, the first word must be zImage(case sensitive)

XDA:DevDB Information
Boot Img kitchen, Tool/Utility for the Google Nexus 5

Contributors
kylon

Version Information
Status: Stable

Created 2014-02-10
Last Updated 2016-04-11
 

Attachments

  • bootimgkitchen.zip
    15.9 KB · Views: 303
Last edited:

jjhiza

Senior Member
Dec 19, 2010
3,163
2,697
Dirty Jersey
Spectacular tool, thank you!! I've spent an inordinate amount of time the last two days (ever since I discovered this thread), compiling and modifying my own kernel. This really was a life saver, because I was at my wit's end with other perl scripts and methods. :thumbup:

A quick question in relation to kernel building... Do you know of any pre-built Linaro arm-eabi toolchains that work "out of the box" for the N5? I've tried a couple, and can't get to a point where I can compile, so I'm using the standard arm-eabi-4.6 toolchain from Google. Thanks again!

Sent from my Nexus 5 using Tapatalk
 

kylon

Senior Member
Dec 17, 2010
2,615
2,028
Wich kernel?
I can compile cm11 with linaro 4.7
Custom kernel can be compiled with linaro 4.8
Aosp kernel(untouched) no idea

Inviato dal mio Nexus 5 utilizzando Tapatalk
 
  • Like
Reactions: jjhiza

jjhiza

Senior Member
Dec 19, 2010
3,163
2,697
Dirty Jersey
Wich kernel?
I can compile cm11 with linaro 4.7
Custom kernel can be compiled with linaro 4.8
Aosp kernel(untouched) no idea

Inviato dal mio Nexus 5 utilizzando Tapatalk

Ah, I was trying to compile with the AOSP kernel initially. I've only added governors and schedulers to my build so far... Do I need to modify the ramdisk in order to get Linaro 4.8 to work properly?

Sent from my Nexus 5 using Tapatalk
 

jjhiza

Senior Member
Dec 19, 2010
3,163
2,697
Dirty Jersey
On Ubuntu 13.10 x64, i can't run mkbootimg - says file don't exist, from script or standalone with terminal it can't be runned.

Can you please post OSX binaries? all three (unpackbootimg, mkbootfs, mkbootimg)

and why is there dtbTool? its not even used in script, only check its md5

View attachment 2607658

The N5 kernel output is a zImage-dtb file, not a regular "kernel" file... Use THAT file instead of the regular zImage one to unpack your ramdisk. Secondly, if you're running Linux, and have all the build essentials, tools (java jdk6), etc installed, you should have no problems setting this up and running it. If you need help, let me know, but in my opinion, OSX binaries (and potential issues setting up a build environment) aren't the way to go. I run this flawlessly on Mint 16, so Ubuntu should serve you equally well. :)

Sent from my Nexus 5 using Tapatalk
 

kylon

Senior Member
Dec 17, 2010
2,615
2,028
On Ubuntu 13.10 x64, i can't run mkbootimg - says file don't exist, from script or standalone with terminal it can't be runned.

Can you please post OSX binaries? all three (unpackbootimg, mkbootfs, mkbootimg)

and why is there dtbTool? its not even used in script, only check its md5

strange error, i don t know what s wrong in your distro

i don t have a mac, but you can compile them for mac os, if you have it.
you are rigth, dtbTool is not used in the script, i was using the kitchen with a kernel source. Anyway i ll remove it
 

Top Liked Posts

  • There are no posts matching your filters.
  • 17
    Hi,

    This script will help you to unpack, repack and edit a boot.img easily and quickly.
    All the tools, execpt dtbTool are compiled from source as of 11/04/2016 (src - here)

    Changes:
    - 11/04/2016
    remove old code
    now it is suitable for any kernel/boot.img, it loads the correct values from the out folder
    up to date tools

    Instructions:

    How to unpack a boot.img
    place a boot.img* in the script folder
    run the script
    now you have 2 folders: out and ramdisk ( I suppose you know what to do now :) )

    How to repack a boot.img
    place a zImage** in the script folder
    run the script
    the resulting boot.img will contain the current date in the name


    * any name is allowed, the important thing is that the name contain the word boot
    **any name is allowed, the first word must be zImage(case sensitive)

    XDA:DevDB Information
    Boot Img kitchen, Tool/Utility for the Google Nexus 5

    Contributors
    kylon

    Version Information
    Status: Stable

    Created 2014-02-10
    Last Updated 2016-04-11
    1
    Wich kernel?
    I can compile cm11 with linaro 4.7
    Custom kernel can be compiled with linaro 4.8
    Aosp kernel(untouched) no idea

    Inviato dal mio Nexus 5 utilizzando Tapatalk
    1
    No

    Inviato dal mio Nexus 5 utilizzando Tapatalk