[size=+2]PLEASE USE THIS THREAD (LINK) FROM NOW ON. I WILL NOT MONITOR THIS THREAD ANYMORE [/size]
INTRODUCTION
So we all know dsixda's XDA ROM Kitchen
Then how about a kitchen for Kernels ??
What started out just as my personal directory where I kept all my kernel and ramdisk tinkering scripts, has now turned into a project (which is far from finished right now )
This does NOT enable you to compile the kernel binary (aka zImage).
This enables you to edit ramdisk and change bootsplash images and helps kernel developers to deploy their compiled kernel in a usable form.
FEATURES
As of now what we can do with the Kernel Kitchen is
Fully menu driven interface (like dsixda kitchen)
Extract zImage and ramdisk from boot.img file
Create boot.img from zImage and ramdisk
Extract zImage and ramdisk from any ftf file that contains kernel.sin (Xperia 2010, 2011, 2012)
Create flashable ftf from zImage and ramdisk (Xperia 2010 only)
Create compressed ramdisk binary from ramdisk folder
Extract ramdisk files from ramdisk binary
Convert png image to rle format (used in android boot splash images)
Convert rle boot splash to png file (so that you can edit it)
Proposed upcoming features
Automatic script to change boot splash in a kernel with your favourite png file
STYLE CODE :
bold are supported only in linux
italics are supported in linux and windows+cygwin
underline are supported in windows native (without cygwin)
(if more than one style is used, it supports all respective platforms)
REQUIREMENTS
This tool is primarily meant for linux users (preferably Uubuntu).
But it works perfectly well on windows+cygwin too
Some portions of the kitchen have support for native windows (without even cygwin)
Rest all requirements are mentioned in the readme
WHAT ARE ITS USES ?
1.The primary purpose (for which this project started out in the first place) is to provide a easy kernel deployment tool for wannabe kernel devs.
A lot of us can compile a kernel from source but that is just the zImage and cannot be used as such on the phone. We need to package it with a ramdisk ad deploy it thorough a proper method (flashtool for Xperia, ODIN for samsund, and fastboot for other phones)
2.You canedit ramdisk properties (by editing default.prop)
Changing ro.secure=1 to ro.secure=0 makes your ramdisk insecure and enables easy root access 3.The most immediate and popular use that i can see right now is changing the boot logo to your liking
the boot logo is called logo.rle or initlogo.rle and is placed in the root of ramdisk folder.
When you split kernel, you can find the rle file which you can convert into png, do necessary editing and convert back into rle and pack up the ramdisk and create a new kernel
4.Other than that, you can change the recovery system
for eg. you can include Doom's Touch recovery system inside your favourite kernel
or you can include the xRecovery inside CM7 kernel so that you can flash amend zips.
Changing the recovery is ofcourse a little more complicated for average users, and i'll write a short tuto for that soon enough DOWNLOAD AND USAGE
The sources can be found on www.github.com/championswimmer/kernel-tools
For linux (and cygwin) users I recommend the install git and run this command to get a copy of my repository
Code:
git clone https://github.com/championswimmer/kernel-tools.git
Or in general, all linux and windows users can just get a zipball of my repo here
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
All usage information can be found on this elaborate readme
In short all you have to do is cd to the appropriate folder and run this
Code:
./menu
CREDITS
None of this was possible without the helps and works of DoomLord, Azuzu, bin4ry, FXP, defer, blagus, nobodyAtall, the_laser, Androxyde
These works are directly included in my project
DoomLord's kernel.sin and ftf creator (windows version)
These works are used in their modified/repackaged form
DoomLord's png and rle interconversion tool (windows version)
DoomLord's perl script to split kerel.sin
And big thanks to nobodyAtall for pointing me the appropriate linux binaries (or i would have kept pouring wine over windows exe files)
Thanks to ImageMagick developers for the awesome tool
SOURCES USED
1. to565 and from565 source code (part of Android Open Source Project)
2. mkbootimg and mkbootfs standalone sources (part of AOSP)
3. abootimg sources (by Gilles Grandou)
Hello!
Thanks for your great work.
I've done all stage and when i try to flash kernel i modify, it stucks on flashing loader 14%.
What's the problem? thanks.
fxdRoiD said:
Hello!
Thanks for your great work.
I've done all stage and when i try to flash kernel i modify, it stucks on flashing loader 14%.
What's the problem? thanks.
Click to expand...
Click to collapse
Read the first part of this post and ask your question in the link provided
fxdRoiD said:
Hello!
Thanks for your great work.
I've done all stage and when i try to flash kernel i modify, it stucks on flashing loader 14%.
What's the problem? thanks.
Click to expand...
Click to collapse
do you have "jar" installed??
(jar comes with java or you can install 'fastjar' )
and when making kernel did you chose option 2??
option 1 is for X10, option 2 is for your phone
championswimmer said:
do you have "jar" installed??
(jar comes with java or you can install 'fastjar' )
and when making kernel did you chose option 2??
option 1 is for X10, option 2 is for your phone
Click to expand...
Click to collapse
Hello!
I'm on ubuntu 12.04 and i have jar installed. I can run x10flasher well.
Yes i have chosen option 2.
I've just modified boot logo in res -> image -> logo into Ramdisk. I've repacked ramdisk and copy zImage into kernel-files and paste both into input folder after renamed them properly. Is it the good process?
You can see my log attached.
After flashing loader, i must wait 5 min before starting "flashing kernel.sin". After that, 3 min waiting, flashing aborted...
fxdRoiD said:
You can see my log attached.
After flashing loader, i must wait 5 min before starting "flashing kernel.sin". After that, 3 min waiting, flashing aborted...
Click to expand...
Click to collapse
could you send me the ftf file you created?
Sent from my X10S using xda premium
btw the process is simple
extract from ftf
copy the ramdisk-contents as ramdisk-folder into input folder.
make changes as necessary
repack the ramdisk
put the zimage as "image" and compressed ramdisk as "ramdisk" into input folder
create ftf
flash it
Sent from my X10S using xda premium
championswimmer said:
btw the process is simple
extract from ftf
copy the ramdisk-contents as ramdisk-folder into input folder.
make changes as necessary
repack the ramdisk
put the zimage as "image" and compressed ramdisk as "ramdisk" into input folder
create ftf
flash it
Sent from my X10S using xda premium
Click to expand...
Click to collapse
I did it completly. Here's Kernel. I just want to put sony ericsson logo. Thanks if you can made it works properly.
I did all stages correctly! Please, make it works...
fxdRoiD said:
I did it completly. Here's Kernel. I just want to put sony ericsson logo. Thanks if you can made it works properly.
I did all stages correctly! Please, make it works...
Click to expand...
Click to collapse
oops ****!!!!
i know what the problem is ... damn
it's using the x10 loader.sin for all phones... wtf!!
please send me the original nAa kernel
Sent from my X10S using xda premium
fixed loader sin problem and updated menu based interface
championswimmer said:
oops ****!!!!
i know what the problem is ... damn
it's using the x10 loader.sin for all phones... wtf!!
please send me the original nAa kernel
Sent from my X10S using xda premium
Click to expand...
Click to collapse
Original nAa Kernel, you can find it here: http://minicm.googlecode.com/files/E10_nAa-11_2.6.29.6-nAa-11.ftf
or
jump to threat forum:
http://forum.xda-developers.com/showthread.php?t=1256739
---------- Post added at 01:16 PM ---------- Previous post was at 01:14 PM ----------
championswimmer said:
fixed loader sin problem and updated menu based interface
Click to expand...
Click to collapse
Thanks. Try it now.
Tell me, if i want to change bootsplash, i just want to modify logo in ramdisk -> res -> images -> logo?
ramdisk > initlogo.rle
or
ramdisk > logo.rle
if any of this file is not present then i think the ramdisk does not have a logo.
(you can down load one of my kernels (from my devhost or ftp mirror in my sig), they are for x10 but you can extract them and see where the logo image is supposed to go)
it SHOULD be a <filename>.rle file. android logos are always rle files
championswimmer said:
ramdisk > initlogo.rle
or
ramdisk > logo.rle
if any of this file is not present then i think the ramdisk does not have a logo.
(you can down load one of my kernels (from my devhost or ftp mirror in my sig), they are for x10 but you can extract them and see where the logo image is supposed to go)
it SHOULD be a <filename>.rle file. android logos are always rle files
Click to expand...
Click to collapse
Can't see .rle file. Ramdisk contents a file "init" without extension. Please, can you download kernel and tell me where is rle file? Thanks!
---------- Post added at 01:50 PM ---------- Previous post was at 01:43 PM ----------
What's the link i can use to update without restart downloading? I try "Update [link]" but command "update" not found.
fxdRoiD said:
Can't see .rle file. Ramdisk contents a file "init" without extension. Please, can you download kernel and tell me where is rle file? Thanks!
---------- Post added at 01:50 PM ---------- Previous post was at 01:43 PM ----------
What's the link i can use to update without restart downloading? I try "Update [link]" but command "update" not found.
Click to expand...
Click to collapse
update what?
and about rle,
umm when you boot nAa kernel what bootimage you see? is there any bootimage?
Sent from my X10S using xda premium
Yes there's a boot image. In the kernel contents any rle file. Have you downloaded kernel?
Sent from my E10i using XDA
please move to this thread
http://forum.xda-developers.com/showthread.php?t=1659584
i'll not monitor this thread anymore
Related
Features:
- Extract custom IMG.
- Create IMG files.
- Convert SIN To IMG.
New features will be added, as you request.
Please report all bugs, so i can fix them!
Update 26.feb!
Little cleanup.
Update 13.mar!
Changed name.
Changed small things.
Added option to convert SIN to IMG.
Update 21.mar!
Changed name.
Code rewrite and cleanup.
Changed menu.
Added option to create IMG file.(need some testing, SOMEONE HELP ME WITH THIS.)
Say thanks to:
velnens123 - for this little tool
aZuZu - for making SIN2IMG
unyaffs, mkyaffs and cygwin creator
For Windows 32-bit Only!
This does'nt modify sin files!
Please help me with creating IMG file!
download now, will see how it works. thanx
velnens123 said:
Here is a tool for extracting xRecovery and other recovery img files.
Features:
- Extract system.img
- Extract data.img
- Extract cache.img
- Extract recovery.img
- Extract boot.img
- Extract userdata.img
- Extract misc.img
- Extract custom img.
New features will be added, as you request.
Please report all bugs, so i can fix them!
Click to expand...
Click to collapse
please add feature to convert yaffs img to ext2 img.... and keep file permission,owner....
Hope i will make it!
brixzen said:
please add feature to convert yaffs img to ext2 img.... and keep file permission,owner....
Click to expand...
Click to collapse
I will see what i can do!
does this 'extract out of the phone' or does it 'extract files out of the images'?
Sorry for a silly question, but what would I use it for? Is it like for messing around with roms' content?
how can i extract it ??? when i write path to the img and press enter it says : open image file failed
thetrisatria said:
download now, will see how it works. thanx
Click to expand...
Click to collapse
working ndak om??
I love a feature that can backup stock firmware (in format *.sin), so that I can use flash tool to rescue the phone whenever it die
Answers for questions.
i_hate_sonyericsson said:
does this 'extract out of the phone' or does it 'extract files out of the images'?
Click to expand...
Click to collapse
Graveir said:
Sorry for a silly question, but what would I use it for? Is it like for messing around with roms' content?
Click to expand...
Click to collapse
fifo171 said:
how can i extract it ??? when i write path to the img and press enter it says : open image file failed
Click to expand...
Click to collapse
Benjoy Ericsson said:
I love a feature that can backup stock firmware (in format *.sin), so that I can use flash tool to rescue the phone whenever it die
Click to expand...
Click to collapse
1. It extract files out of the images.
2. Yes, make backup in xRecovery, then extract system.img.
3. Make sure you dont write .img at end, put your img files in same folder as unyaffs.
4. I dont think its possible.
you might want to note in the original post that modified sin files can't be flashed w/ the flash tool, if thats what your reply means.
i'd assume that, but not everyone would.. and maybe note the download is for win32 only.
thanks!
Exception: STATUS_ACCESS_VIOLATION at eip=004010B0
eax=5D9BD014 ebx=00000068 ecx=00001500 edx=00BE0DAA esi=0028CD34 edi=61179FC3
ebp=0028CCD8 esp=0028CCA0 program=C:\Xperia_ROM_Manager\unyaffs.exe, pid 2100, thread main
cs=0023 ds=002B es=002B fs=0053 gs=002B ss=002B
Stack trace:
Frame Function Args
0028CCD8 004010B0 (00BC8398, 00000000, 612058E8, 00401333)
0028CD08 004013AF (00000002, 00BC8358, 00BC8250, 00000001)
0028CD68 61006CD3 (00000000, 0028CDA4, 61006570, 7EFDE000)
End of stack trace
Is this app to extract kernel.sin ??
I need a script to extract kernel.sin
THIS IS REALLY OLD! I dont think it can extract kernel.sin. Download kernel sources instead!
Sent from my XPERIA X8 using xda premium
velnens123 said:
THIS IS REALLY OLD! I dont think it can extract kernel.sin. Download kernel sources instead!
Sent from my XPERIA X8 using xda premium
Click to expand...
Click to collapse
Not all kernels has source code to compile.
KeiranFTW's Xperia Toolkit 2012 v0.1.6
Designed in mind for the R800i/x
But will work for any other Sony Xperia 2011 device
Download: v0.1.6
You MUST only run the script one way, and if you do not run it this way, it will not work as intended.
On first run, you MUST do this in the terminal
Code:
cd [xperia tools directory here]
chmod +x set-permissions.sh
./set-permissions.sh
And when running the Toolkit after that, do this in the terminal:
Code:
cd [xperia tools directory here]
./menu.sh
And then a menu should pop up asking you what you want to do:
Option 1: Create update.zip and boot.img from FTF: Place ONLY ONE FTF into the /IN/FTF_HERE/ folder for it to be converted into an update.zip and boot.img, the boot.img and rom zip will be in the /OUT folder, with the name as the rom the same name as the FTF package.
Option 2: Flash boot.img from OUT/ folder: Flashes the boot.img to the boot partition of your phone, if one is present in the out folder
Option 3: Extract RAMDISK and KERNEL from boot.img located in the /IN/BOOTIMG_HERE/ folder
Option 4: Make boot.img from RAMDISK and KERNEL located in the /IN/BOOTIMG_HERE/ folder, will also ask you if you want to flash it with fastboot when the boot.img is created. The new boot.img will be at /IN/BOOTIMG_HERE and if one already exists it will be renamed boot-old.img
Option 5: Convert logo.rle to PNG at /IN/ folder, this will convert the logo.rle to png, if there already is a png, it will be renamed to logo-old.png, the new PNG file will be at /IN/logo.png
Option 6: Convert logo.png to RLE at /IN/ folder, this will convert the logo.png to rle, if there already is a png, it will be renamed to logo-old.rle, the new RLE file will be at /IN/logo.rle
Option 9: Exit.
Option 0: ROM Tweaks - takes you to the ROM Tweaks Menu.
ROM Tweaks Menu:
Option 1: Extract a ROM for applying tweaks, you MUST put ONLY ONE rom zip file under /ROM/
Option 2: Disable the FPS cap in the ROM, allows you to get more FPS but also introduces major artifacts on the screen
Option 3: Re-Enable FPS cap if above option causes problems.
Option 4: Enable GPU UI Rendering, allows the GPU to render the user interface.
Option 5: Disable the above option if it causes problems, Disables GPU UI Rendering
Option 6: Add root to the ROM, adds superuser binary and application to the rom.
Option 7: Rezip the rom, the ROM will be at /OUT/[email protected], for example, [email protected]
That is a basic rundown of all the current functionality, and because it is a script, you can edit it, so feel free to do so, and I hope you find it useful
If you want to donate to me for my time spent on this or for my time spent on any other of my creations, then you can click the "Donate to me" button on the left near my username.
Thanks!
Keiran
Dude.....I kinda love you and your work!
Will this be a gui or terminal based?
Interesting. Thanka man.
Off topic but, would it be possible on Linux to make a boot img into a. Nandroif backup?
DubleJayJ said:
Interesting. Thanka man.
Off topic but, would it be possible on Linux to make a boot img into a. Nandroif backup?
Click to expand...
Click to collapse
Maybe, but you can't restore boot.img files from the recovery anyways :-\
Sent from my R800x using Tapatalk
Terminal based scripting is what I love to do, and I find it so easy
Currently I have got the following options:
Convert FTF to flashable zip (system) and a separate boot.IMG
Flash that boot.IMG
Extract ramdisk and zImage from boot.IMG
Make boot.IMG from ramdisk and zImage.
Keiran
Sent from my R800i using Tapatalk
KeiranFTW said:
Terminal based scripting is what I love to do, and I find it so easy
Currently I have got the following options:
Convert FTF to flashable zip (system) and a separate boot.IMG
Flash that boot.IMG
Extract ramdisk and zImage from boot.IMG
Make boot.IMG from ramdisk and zImage.
Keiran
Sent from my R800i using Tapatalk
Click to expand...
Click to collapse
Could you possibly make a custom boot.img and kernel into an FTF file, and flash that?
console ftf flasher (Shouldn't be too difficult using similar method to the Linux Motorola sbf flasher).
cli (OSS) version of s1tool
(unlocker maybe too hard ?)
unrandomsam said:
console ftf flasher (Shouldn't be too difficult using similar method to the Linux Motorola sbf flasher).
cli (OSS) version of s1tool
(unlocker maybe too hard ?)
Click to expand...
Click to collapse
That. You could get the method used on S1Tool and Omnius.
---------- Post added at 01:52 AM ---------- Previous post was at 01:32 AM ----------
Also, making custom boot images and kernels into FTF's.
DubleJayJ said:
Could you possibly make a custom boot.img and kernel into an FTF file, and flash that?
Click to expand...
Click to collapse
No. FTF is just a (combined) Seus file (signed, we don't have the certificates)
Sent from my R800x using Tapatalk
paxChristos said:
No. FTF is just a (combined) Seus file (signed, we don't have the certificates)
Sent from my R800x using Tapatalk
Click to expand...
Click to collapse
So if we could get the certificates, then we could do that. Is it a string of code, a file or what?(the certificate)
---------- Post added at 03:51 AM ---------- Previous post was at 03:08 AM ----------
KeiranFTW said:
I have decided to make a tool for linux so that you can do the following things with a few key presses:
Convert FTF to update.zip (the system part) and boot.img
Make a flashable update.zip of your current rom, for sakes of backup
Flash a booking
Extract a ramdisk and zImage from a boot.img
Convert ramdisk + zImage into a boot.img
- More stuff, ideas appreciated
Keiran
Click to expand...
Click to collapse
Also, you need to unlock bootloader to flash an image in this right? It doesn't use some secret exploit?
DubleJayJ said:
So if we could get the certificates, then we could do that. Is it a string of code, a file or what?(the certificate)
---------- Post added at 03:51 AM ---------- Previous post was at 03:08 AM ----------
Also, you need to unlock bootloader to flash an image in this right? It doesn't use some secret exploit?
Click to expand...
Click to collapse
If we could break the encryption, then one wouldn't need to unlock the bootloader... One small problem... I'm sure all xda users (if they cared) combined would break the encryption before cellphones are implants in our heads...
Sent from my R800x using Tapatalk
paxChristos said:
If we could break the encryption, then one wouldn't need to unlock the bootloader... One small problem... I'm sure all xda users (if they cared) combined would break the encryption before cellphones are implants in our heads...
Sent from my R800x using Tapatalk
Click to expand...
Click to collapse
How hard could it be? Run multiple sessions of HashCat.
DubleJayJ said:
How hard could it be? Run multiple sessions of HashCat.
Click to expand...
Click to collapse
If it were that easy, the bootloader unlock code would be cracked, and also pretty much any type of encryption out there would be rendered useless... Plus (I'm guessing, not 100% sure) we don't even know the type of encryption out is.
Sent from my R800x using Tapatalk
paxChristos said:
If it were that easy, the bootloader unlock code would be cracked, and also pretty much any type of encryption out there would be rendered useless... Plus (I'm guessing, not 100% sure) we don't even know the type of encryption out is.
Sent from my R800x using Tapatalk
Click to expand...
Click to collapse
I think the bootloader unlock code actually was cracked, hence how I unlocked my R800x before the test point unlock came out, yet SE wanted the distributor to cease and desist
jacklebott said:
I think the bootloader unlock code actually was cracked, hence how I unlocked my R800x before the test point unlock came out, yet SE wanted the distributor to cease and desist
Click to expand...
Click to collapse
Nope, there was a hole in the website where if you put meid directly in (instead of in through the dialog box) it wouldn't check for letters (the dialog would) (meid has letters, imei doesn't)
Sent from my R800x using Tapatalk
paxChristos said:
Nope, there was a hole in the website where if you put meid directly in (instead of in through the dialog box) it wouldn't check for letters (the dialog would) (meid has letters, imei doesn't)
Sent from my R800x using Tapatalk
Click to expand...
Click to collapse
Ahhh ok
paxChristos said:
Nope, there was a hole in the website where if you put meid directly in (instead of in through the dialog box) it wouldn't check for letters (the dialog would) (meid has letters, imei doesn't)
Sent from my R800x using Tapatalk
Click to expand...
Click to collapse
You know what that means then? The letters are just single digit numbers. Like F = 7 A=4 etc. Ofc that's not really their number, but ya know. Just an idea.
DubleJayJ said:
You know what that means then? The letters are just single digit numbers. Like F = 7 A=4 etc. Ofc that's not really their number, but ya know. Just an idea.
Click to expand...
Click to collapse
It's not, trust me I tried... everything from hexconverters to other random ideas...
Sent from my R800x using Tapatalk
paxChristos said:
It's not, trust me I tried... everything from hexconverters to other random ideas...
Sent from my R800x using Tapatalk
Click to expand...
Click to collapse
Wow. Then why does the testpoint method cost money?
INTRODUCTION
So we all know dsixda's XDA ROM Kitchen
Then how about a kitchen for Kernels ??
What started out just as my personal directory where I kept all my kernel and ramdisk tinkering scripts, has now turned into a project (which is far from finished right now )
This does NOT enable you to compile the kernel binary (aka zImage).
This enables you to edit ramdisk and change bootsplash images and helps kernel developers to deploy their compiled kernel in a usable form.
FEATURES
As of now what we can do with the Kernel Kitchen is
Fully menu driven interface (like dsixda kitchen)
Extract zImage and ramdisk from boot.img file
Create boot.img from zImage and ramdisk
Extract zImage and ramdisk from any ftf file that contains kernel.sin (Xperia 2010, 2011, 2012)
Create flashable ftf from zImage and ramdisk (Xperia 2010 only)
Create kernel.sin from zImage and Ramdisk and also split kernel.sin into zimage and ramdisk
Extract zImage, ramdisk and its contents from kernel.elf (Xperia 2012)
Create kernel.elf from ramdisk, zImage (and RPM) - for Xperia 2012
Create compressed ramdisk binary from ramdisk folder
Extract ramdisk files from ramdisk binary
Convert png image to rle format (used in android boot splash images)
Convert rle boot splash to png file (so that you can edit it)
Proposed upcoming features
Automatic script to change boot splash in a kernel with your favourite png file
STYLE CODE :
bold are supported only in linux
italics are supported in linux and windows+cygwin
underline are supported in windows native (without cygwin)
(if more than one style is used, it supports all respective platforms)
WARNING !!!!
[SIZE=+1]Please be well informed that whenever you distribute/redistribute a kernel zImage or the whole boot.img that contains the zImage or the kernel in any form in which it contains the compiled zImage, you MUST provide the option to view it's sources or else it'll be a major violation of GPL (General Public License) which governs the Linux kernel.
If you are using a compiled kernel made available by some other dev, then you are SUPPOSED TO mention it clearly and provide a link back to the original location from where you got the kernel (original thread) and also the sources of that kernel
If anyone uses this tool to unpack/repack a kernel and redistribute it publicly on xda (or any other website) then it's his responsibility to maintain proper credits and acknowledgement of works of original developers and also it's his/her responsibility to comply with the GPL[/SIZE]
A NOTE OF ADVICE
[SIZE=+1]I would like to mention here that this kitchen was made with two purposes in mind.
1. For someone who already knows how to do all this complicated ****, but wants a tool of convenience to do it automatically
2. For people who do not know much about custom kernels but want to make minor changes to ramdisk (making it insecure, or changing the bootlogo) for their PERSONAL use.
This tool is NOT meant to be used to repackage works of other developers and pass them on as your work.
In any case, if you want to redistribute a kernel created using my tool, then I suggest you to read the WARNING above once again all over, and also properly read the GPL v2 (link here) and specifically section 3 of GPL
[/SIZE]
3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable.
If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code.
REQUIREMENTS
This tool is primarily meant for linux users (preferably Uubuntu).
But it works perfectly well on windows+cygwin too
Some portions of the kitchen have support for native windows (without even cygwin)
Rest all requirements are mentioned in the readme
WHAT ARE ITS USES ?
1.The primary purpose (for which this project started out in the first place) is to provide a easy kernel deployment tool for wannabe kernel devs.
A lot of us can compile a kernel from source but that is just the zImage and cannot be used as such on the phone. We need to package it with a ramdisk ad deploy it thorough a proper method (flashtool for Xperia, ODIN for samsund, and fastboot for other phones)
2.You canedit ramdisk properties (by editing default.prop)
Changing ro.secure=1 to ro.secure=0 makes your ramdisk insecure and enables easy root access 3.The most immediate and popular use that i can see right now is changing the boot logo to your liking
the boot logo is called logo.rle or initlogo.rle and is placed in the root of ramdisk folder.
When you split kernel, you can find the rle file which you can convert into png, do necessary editing and convert back into rle and pack up the ramdisk and create a new kernel
4.Other than that, you can change the recovery system
for eg. you can include Doom's Touch recovery system inside your favourite kernel
or you can include the xRecovery inside CM7 kernel so that you can flash amend zips.
Changing the recovery is ofcourse a little more complicated for average users, and i'll write a short tuto for that soon enough DOWNLOAD AND USAGE
The sources can be found on www.github.com/championswimmer/kernel-tools
For linux (and cygwin) users I recommend the install git and run this command to get a copy of my repository
Code:
git clone https://github.com/championswimmer/kernel-tools.git
Or in general, all linux and windows users can just get a zipball of my repo here
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
All usage information can be found on this elaborate readme
In short all you have to do is cd to the appropriate folder and run this
Code:
./menu
or you can just double-click menu and click "run in terminal"
CREDITS
None of this was possible without the helps and works of DoomLord, Azuzu, bin4ry, FXP, defer, blagus, nobodyAtall, the_laser, Androxyde
These works are directly included in my project
DoomLord's kernel.sin and ftf creator (windows version)
These works are used in their modified/repackaged form
DoomLord's png and rle interconversion tool (windows version)
DoomLord's perl script to split kerel.sin
And big thanks to nobodyAtall for pointing me the appropriate linux binaries (or i would have kept pouring wine over windows exe files)
Huge thanks to Atarii and this thread of his for all info needed to manipulate kernel.elf files on Xperia 2012 line
Thanks to ImageMagick developers for the awesome tool
SOURCES USED
1. to565 and from565 source code (part of Android Open Source Project)
2. mkbootimg and mkbootfs standalone sources (part of AOSP)
3. abootimg sources (by Gilles Grandou)
Great work !!! Will try it asap ... Seems to be very very useful !
how about locked bootloaders conversion tool ?)
^^
that is in the works
(it will come when i finish my work on boot.img portion of the kitchen)
nice work going on here champ. downloading kCernel-thgo from github now. i cant wait to try your kernel tools. thanks for your work. :-D
ToledoJab said:
nice work going on here champ. downloading kCernel-thgo from github now. i cant wait to try your kernel tools. thanks for your work. :-D
Click to expand...
Click to collapse
doesnt work on windows cant unpack lol
iv read through readme's and it keeps saying the same thing,
i have also tried extracting FTF, i got a Kernel.sin and a loader.sin bit still no idea how to extract out of those.. any ideas lol
for windows needs cygwin buddy
and you need perl, python, cpio, gzip (or gunzip) installed inside cygwin
cyg win is installing now its BIG! i selected to install everything
Dual boot Linux for 'Kernel Kitchen'
wo88les said:
doesnt work on windows cant unpack lol
iv read through readme's and it keeps saying the same thing,
i have also tried extracting FTF, i got a Kernel.sin and a loader.sin bit still no idea how to extract out of those.. any ideas lol
Click to expand...
Click to collapse
REQUIREMENTS
This tool is primarily meant for linux users (preferably Uubuntu).
But it works perfectly well on windows+cygwin too
Click to expand...
Click to collapse
I have installed UBUNTU on a separate linux partition from windows xp ntfs partition. after ubuntu install i have dual boot UBUNTU/XP.
If anyone would like help SETTING-UP a dual boot machine to use Champ's 'kernel kitchen' please PM (private message) me and i will help. Please use PM to help Champ keep his thread SPAM free :-D
for dual boot tuto
see this
http://forum.xda-developers.com/showthread.php?p=24887566
and the following 10-15 posts
Sent from my X10S using xda premium
Today I had a little look at ubuntu and your guide and was able to view the various settings. I didn't change anything as I'm totally stumped where to start hehe but I'll continue through your guide again when I'm home.
Again. Great work champ and thank you
Sent from my X10S v8.2 using XDA Premium
added boot.img support in kernel
thus for us, it means we can tinker with locked bootloader kernels too now
championswimmer said:
added boot.img support in kernel
thus for us, it means we can tinker with locked bootloader kernels too now
Click to expand...
Click to collapse
That sounds really neat. Thats really impressive. So, is it possible to tinker with the kernel.sin file in an update package and get a working ftf file from it, kernel cooker? Hmm? And if so, how?
TAL333 said:
That sounds really neat. Thats really impressive. So, is it possible to tinker with the kernel.sin file in an update package and get a working ftf file from it, kernel cooker? Hmm? And if so, how?
Click to expand...
Click to collapse
thats easy
take a kernel.ftf file which was meant for unlocked bootloader.
open it wit zip/rar/7zip/bzip software (yes ftf = zip )
replace the kernel.sin inside it with the one you have.
while flashing, the version might not show correct but once flashed, you'll find your kernel running fine
Sent from my X10S using xda premium
championswimmer said:
thats easy
take a kernel.ftf file which was meant for unlocked bootloader.
open it wit zip/rar/7zip/bzip software (yes ftf = zip )
replace the kernel.sin inside it with the one you have.
while flashing, the version might not show correct but once flashed, you'll find your kernel running fine
Sent from my X10S using xda premium
Click to expand...
Click to collapse
I got impatient waiting so I tried a bundle creation through Flashtool. Since my phone isn't bricked I figure that works too. And quicker too. Not to stray off topic but since I will probably be using CM9 soon I think its time you posted an easy way to enable on screen buttons in CM9 for newbs like me on your ultimate repository of Champy goodness. Please. And make it dumbproof. Please......
tal333
updated to 0.1.1
waiting for some bug reports
(i know there must be something or other wrong here or there, i can't be PERFECT afterall )
want to get all bugs fixed before adding more features
I just remembered about your kitchen sorry champ, do you think this will fix my WiFi compiling? Cheers so far I have 25hrs of battery with my kernel but it's not really an honest result considering there is no WiFi at all
Sent from my X10S v8.2 using XDA Premium
nice tool
I have this problem S
Press [Enter] key to create ftf...
Please mention for which device you are packing kernel
For X10, enter 1
For X8, Mini or MiniPro enter 2
Type either 1 or 2 and press enter
2
read 00489B43 bytes
...................................... cp: can not stat `on 'loader_unlocked_7x27 . no ': No such file or directory
----------------ENTER KERNEL BRANDING DETAILS------------
Thanks ................
Wow Friend Very nice work......................
its really need for all android DEV
finally i build my own kernel using ezy/great tools
test this tool soon .........
BTW : its ezy for new user or not ??????
Just yesterday nikholtus told me
"you cannot repack a ramdisk twice. you always have to use a kernel.sin as source. a ramdisk extracted from kernel.elf will not work"
now ^^ that was strange, because if we can pack once we should be able to repack over and over again. So i went about trying to find what the problem was.
The problem as i understand is, the people over here at Xperia 2012 forum seem to use 7zip to extract the ramdisk from kernel.elf as explained in atarii's thread here
But we need to understand, that the proper method to unpack a ramdisk is
Code:
mkdir ramdisk-contents
cd ramdisk-contents
guncip -c ../ramdisk.img | cpio -i
using the 7zip method will destroy all symlinks and will NOT retain file permissions in the ramdisk
Thus such an extracted ramdisk will NOT be able to be reused by repacking it.
U might just have made alot of people do a tactical facepalm.
lol, that i didn't know this
now i have touch recovery (on my P)
very happy
btw lazy bummers (or even lazy developers) can use my kernel kitchen (link in my sig)
it can unpack and repack a kernel.elf for you as many times as you wish to make it do so
championswimmer said:
Just yesterday nikholtus told me
"you cannot repack a ramdisk twice. you always have to use a kernel.sin as source. a ramdisk extracted from kernel.elf will not work"
Click to expand...
Click to collapse
blame atarii
(i joke of course!)
nice one champ!!
Reviving old threads here, but alas, you are the only ones who know.
So if I unpack a ramdisk with 7zip and repack it later on, I won't be able to boot?
someone755 said:
Reviving old threads here, but alas, you are the only ones who know.
So if I unpack a ramdisk with 7zip and repack it later on, I won't be able to boot?
Click to expand...
Click to collapse
Sure,it will f))ck up the system!!
so unpacking a ramdisk should type the line like you post? so that it can be repack,right?
i can't access the third line command
is all of the step3 in unpack elf should change to the strings like you post?
and what is guncip?
gunzip
slsamg7112 said:
i can't access the third line command
is all of the step3 in unpack elf should change to the strings like you post?
and what is guncip?
Click to expand...
Click to collapse
gunzip as knows as
Linux Command - Unix Command.
Sent from Xperia Sola
but how it works? should i need anything else?
and it always says cpio is not a executable or bat file
how to solve it? thanks
I've heard from a very good source that our kernels don't in fact have symlinks. That same source has also said that the OP here is wrong and the ramdisk may be used as many times as we wish. And that we may use 7zip for unpacking it.
So yeah, I'll be using 7zip...
LINUX ONLY
For LG Optimus
This is an implementation for the Android Kitchen 0.195 - by dsixda, a new option is added to the menu 0 - ADVANCED OPTIONS
The option is 25 - Tools for recovery image (unpack() re-pack etc)
This tool made it to modify the TWRP Recovery and give that look 3D, hope you find it useful.
INSTALLATION:
Before that nothing we need to have installed the Android Kitchen 0.195 - by dsixda
UnRAR the attached file and copy the 2 folders inside the kitchen.
Ready.
Source: www.todomovillg.es
Version 197 of dsixda's kitchen already does this.
Yes, does it, but should rename boot.img, and use the option 20
With this implementation already recognized the recovery.img, you can only work on without having to work with the full ROM.
It is more convenient to work with the option 25
Homero2 said:
Yes, does it, but should rename boot.img, and use the option 20
With this implementation already recognized the recovery.img, you can only work on without having to work with the full ROM.
It is more convenient to work with the option 25
Click to expand...
Click to collapse
Actually the latest version doesn't require you to rename the boot.img to recovery.img
OK, thanks for the info on the Linux version do not see this option, it could even change the compression ratio or size of the memory, I had to modify the code in order to have those options, which the version batch if they were.
I am reluctant to use Wine
EDIT:
" it could even change the compression ratio or size of the memory, I had to modify the code in order to have those options, which the version batch if they were."
Sorry for, I confused program
Can I explain how to unpack the recovery.img file? can not find such option.
Thank you
can you post direct download link here?
i can't link in that forum/site
thanks
ron gokhle said:
can you post direct download link here?
i can't link in that forum/site
thanks
Click to expand...
Click to collapse
OK, I have already posted the link on xda