Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,741,008 Members 51,956 Now Online
XDA Developers Android and Mobile Development Forum

Boot Img kitchen[N5][Linux]

Tip us?
 
kylon
Old
(Last edited by kylon; 10th February 2014 at 08:33 AM.)
#1  
kylon's Avatar
Senior Member - OP
Thanks Meter 1339
Posts: 2,370
Join Date: Dec 2010

 
DONATE TO ME
Default Boot Img kitchen[N5][Linux]

Hi,

i could not find something like this for linux, so i made this and i m sharing it with you:

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 07/02/14 (src - here)


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 (dt.img is supported)
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[N5], a Tool/Utility for the Google Nexus 5

Contributors
kylon

Version Information
Status: Stable

Created 2014-02-10
Last Updated 2014-02-10
Attached Files
File Type: zip Nex5-kitchen.zip - [Click for QR Code] (348.4 KB, 219 views)
My Gitorious

My works:

HTC WILDFIRE
kylon kernel
RemPuzzleRom
Mini Turbo Boost
CWM 6.x
Wifi tweak

HTC DESIRE S
AndromadusMod kernel
CyanogenMod builds - Antutu @2Ghz xD


My Phone:

Nexus 5 White 16G
Unlocked - CM11.0 Night
The Following 15 Users Say Thank You to kylon For This Useful Post: [ Click to Expand ]
 
zeradchoid91
Old
#2  
zeradchoid91's Avatar
Senior Member
Thanks Meter 167
Posts: 108
Join Date: Nov 2013
Location: seoul
Thx

Sent from my Nexus 5 using Tapatalk
Using Tapatalk
 
jjhiza
Old
#3  
jjhiza's Avatar
Senior Member
Thanks Meter 2566
Posts: 2,936
Join Date: Dec 2010
Location: 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
Nexus 5 Requiem 4.0 Alpha + Monarch Alpha 5
Galaxy Nexus Requiem 3.1 BLE retired

 
kylon
Old
#4  
kylon's Avatar
Senior Member - OP
Thanks Meter 1339
Posts: 2,370
Join Date: Dec 2010

 
DONATE TO ME
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
My Gitorious

My works:

HTC WILDFIRE
kylon kernel
RemPuzzleRom
Mini Turbo Boost
CWM 6.x
Wifi tweak

HTC DESIRE S
AndromadusMod kernel
CyanogenMod builds - Antutu @2Ghz xD


My Phone:

Nexus 5 White 16G
Unlocked - CM11.0 Night
The Following User Says Thank You to kylon For This Useful Post: [ Click to Expand ]
 
jjhiza
Old
#5  
jjhiza's Avatar
Senior Member
Thanks Meter 2566
Posts: 2,936
Join Date: Dec 2010
Location: Dirty Jersey
Quote:
Originally Posted by kylon View Post
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
Nexus 5 Requiem 4.0 Alpha + Monarch Alpha 5
Galaxy Nexus Requiem 3.1 BLE retired

 
kylon
Old
#6  
kylon's Avatar
Senior Member - OP
Thanks Meter 1339
Posts: 2,370
Join Date: Dec 2010

 
DONATE TO ME
No

Inviato dal mio Nexus 5 utilizzando Tapatalk
My Gitorious

My works:

HTC WILDFIRE
kylon kernel
RemPuzzleRom
Mini Turbo Boost
CWM 6.x
Wifi tweak

HTC DESIRE S
AndromadusMod kernel
CyanogenMod builds - Antutu @2Ghz xD


My Phone:

Nexus 5 White 16G
Unlocked - CM11.0 Night
The Following User Says Thank You to kylon For This Useful Post: [ Click to Expand ]
 
Snoop05
Old
#7  
Snoop05's Avatar
Senior Member
Thanks Meter 687
Posts: 116
Join Date: May 2012
Location: Levice
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

Attachment 2607658
Google Nexus 5 32GB D820 (hammerhead) PVS 2
ROM: Paranoid SaberDroid 31-July
KERNEL: UBER SaberMod 29-July
MOD: Fly-On Mod & G3 Bionic + Z2 Dalvik
[TOOL] [WINDOWS] ADB, Fastboot and Drivers - 15 seconds ADB Installer
[MOD] NEW Adreno libs for JellyBean MR1 4.2 WORKING!
Previous devices: AT&T SAMSUNG Galaxy S II Skyrocket i727, HTC Sensation (Pyramid), HTC HD2 (Leo), Nokia N95, Sony Ericsson K550i, Sony Ericsson K510i, Sony Ericsson K300i, Nokia 5510
 
jjhiza
Old
#8  
jjhiza's Avatar
Senior Member
Thanks Meter 2566
Posts: 2,936
Join Date: Dec 2010
Location: Dirty Jersey
Quote:
Originally Posted by Snoop05 View Post
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

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
Nexus 5 Requiem 4.0 Alpha + Monarch Alpha 5
Galaxy Nexus Requiem 3.1 BLE retired

 
kylon
Old
#9  
kylon's Avatar
Senior Member - OP
Thanks Meter 1339
Posts: 2,370
Join Date: Dec 2010

 
DONATE TO ME
Quote:
Originally Posted by Snoop05 View Post
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
My Gitorious

My works:

HTC WILDFIRE
kylon kernel
RemPuzzleRom
Mini Turbo Boost
CWM 6.x
Wifi tweak

HTC DESIRE S
AndromadusMod kernel
CyanogenMod builds - Antutu @2Ghz xD


My Phone:

Nexus 5 White 16G
Unlocked - CM11.0 Night

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


TRENDING IN THEMER...