yashsingh1/xdaforums huggingface dataset:
[Android] duduaxe:
Error in compilation

I took the boot.img from the stock rom Ace 3. Unzipped successfully changed the default.prop file and it's time to compress the error. What can it be?

I put some screen prints in attachaments
[Android] s0ur0v:
kernel info

can anyone inform me from where i can know which file inside kernel do which works? please....so i can edit what i require......
[Android] Gold_Phenix:
hello i have doomlord kernel v06 and i use kitchen unpack kernel.elf and i want change recovery from trinity kernel ( recovery in doom kernel have bug ) . I unpack , make change in ramdisk , repack ramdisk and when i want make new_kernel.elf i have info don't find cmdline.txt , where i find this file ? when i unpack doomkernel i don't have this file.

Sorry for my English.
[Android] EndLess:
I need some help bro i have try many methods by my boot.img not gives ramdisk folder and its contents (boot.img of micromax a177 canvas juice) plzzz help me how can i get this here is the boot.img http://www.mediafire.com/download/781fb7713efj719/boot.img
[Android] ShinySide:
You need this. mtk-tools
[Android] EndLess:
Thnx bro i will try ....
[Android] ironshadow2:
guys, I want to edit a kernel to disable SElinux

what do I do? please help
[Android] kedar_vashi:
wow . gonna try it really soon.
[Android] brokenchains:
How would I go about using my current stock CM11 or Touchwiz (I'm dualbooting) kernel and activating USB debugging/adb? I read this was possible with a kernel so any direction would be great since my phone's screen broke (no display) and I want to use Android Control to navigate on my PC.
[Android] nisu4717:
i have extrated kernel.elf from a 4.4.3 rom xperia s

i have zimage,ramdisk.gz,rpm.bin,

now i have to repack it.

by using kernal kitchen in chywin.but it asks cmdlines.text

i dont hav that....

CAN ANY1 HELP?
[Android] tayeb21:
very good .......thanks
[Android] colonel_lp:
Any ideas on using the kitchen with CM11 kitkat kernels? was happily using the kitchen previously to unpack/pack kernel.elf files, but repacked kitkat kernel.elf files just give a black screen on boot now... has something changed with the offsets?
[Android] championswimmer:
could have been :P

really not a well maintained project anymore (i hope people would help with pull requests on github to keep it maintained)
[Android] colonel_lp:
Thats a shame, i found updated variables for mkelf.py for xperia v (4.3 and 4.4) so works again.
[Android] Hukanawa:
Hi,

I do not know much about this but for me this method worked:

I found the command line arguments for my device (xperia GO) in the kernel source that I downloaded from sony developers. I copied those arguments into a txt file called "cmdline.txt" and saved it in the "input" folder in the kernel kitchen. after that I was able to compile without this error :)
[Android] shoey63:
Still great for converting png to rle for boot splash screen though ;)
[Android] SaidJan:
I have a problem in LG Optimus F6 with a custom KK rom installed on it. Someone made a kernel which the back camera works with this kernel but it is blue and also LED Flashlight doesn't work.

I wanted to know that can I fix the kernel with this program in post 1 ? So the KK rom can work with no camera and led problem.
[Android] championswimmer:
it's as easy as using dsixda kitchen :)

i think even more easy
[Android] -Grift-:
Never mind....
[Android] championswimmer:
there are no .rle files in your ramdisk ???
[Android] championswimmer:
you need to change to initlogo.rle file

pack it back into ramdisk

then take ramdisk and zimage and make boot.img

and flash it

still no work???
[Android] championswimmer:
it worked or not ???
[Android] BLACKCYY:
questiom

EN,very good！i want to know that if i have the rom kitchen tools in my home,and

what should i do?：D
[Android] wo88les:
Load the menu script with terminal and follow steps from OP
[Android] *boy*racer*:
Hey championswimmer. Great job!

I have a problem which I can not solve.

I unpack .img and pull out logo.rle, convert, edit and convert back ok. But when I rebuild (create .img) then flash it but logo doesn't change.

I bet im something simple but I just can't figure it out. Please can you help championswimmer?

Thanks again
[Android] championswimmer:
have you followed these steps

1. split your boot.img (ramdisk folder is automatically extracted)

2. take the rle file and convert to png (you need to provide wid x height)

3. edit png, and save it back to rle

4. take the ramdisk folder, name it 'ramdisk-folder', place it in input folder

5. replace the rle file present with the one you just made

IMP >> clean your output folder, remove all files (keep your zImage safely elsewhere)

6. create ramdisk (not boot.img, first create the ramdisk)

7. you should get initrd.img (ramdisk)

8. now take this initrd.img and the zImage you kept safely, put in input folder, create boot.img (use your saved configuration)

9. now flash your boot.img
[Android] *boy*racer*:
Ooo thank you. That was not what I was doing haha. Will try this soon

EDIT: it works good but when I edit bootlogo using imagemagic, it all changes to the wrong colour. I.e I choose red but comes out blue when flashed.

It seems to change colour as soon as i convert it to .png ready to edit it.

(see pics)

Edited logo

After being flashed to phone:
[Android] wo88les:
is it a colour limit in the png / rle file? i may be completely wrong. try a different colour??
[Android] championswimmer:
make the png using gimp/inkscape
[Android] *boy*racer*:
I tried but still the same. Ill try and explain it differently.

I downloaded a kernel and its colour was a yellow/orange. But when I converted it to .png it suddenly changed to a blue ish colour.

No matter what colour I use, always changes to a blue ish colour. I don't think its the editing program as it shows the same on image viewer.
[Android] xboxfanj:
Hey, does anyone know if this works for non nexus Samsung phones? Dsixda kitchen doesn't work on the galaxy s series kernels, so I'd like to know if this does.
[Android] BohArie:
how to remove splash screen for W8???

and how to install this tools???
[Android] championswimmer:
are you on windows or linux???
[Android] BohArie:
windows 7 home premium...

hope u can teach me...

really want to get rid of splash screen...
[Android] championswimmer:
you need to install "cygwin"

you need to have "gcc", "cpio", "zip", "perl", "python", packages installed inside cygwin

you also need to install the sun java 6 jre BEFORE installing cygwin

^^ ask google how the above can be done :)

or you can just dual boot ubuntu and it's easier there :)
[Android] discodave83:
when i try to repack boot.img i get this-

he following saved configurations were found in your system

-------

aokp-x10

b5512-backup1

cm12

example

vinay

-------

Type the name of the configuration file you want to use and press [Enter] to contiue

cm12

bootimg-configs/cm12: line 2: androidboot.console=ttyHSL0: command not found

==================================

mkbootimg not found on your system

I will compile it for you

please ensure you have gcc installed

Press [Enter] to continue

In file included from rsa.c:28:0:

rsa.h:31:22: fatal error: inttypes.h: No such file or directory

#include <inttypes.h>

^

compilation terminated.

In file included from sha.c:28:0:

sha.h:31:22: fatal error: inttypes.h: No such file or directory

#include <inttypes.h>

^

compilation terminated.

gcc: error: rsa.o: No such file or directory

gcc: error: sha.o: No such file or directory

./edit-kernel/bootimg/build: line 59: ./mkbootimg.Linux.i686: No such file or directory

mv: cannot stat ‘boot.img’: No such file or directory

Find compiled boot.img inside output folder

i am using linux mint i8 tryed install mkboot but not working any idears?
[Android] RolanDroid:
excellent tools.
[Android] Miracle.mirak:
hello

I am so pleased by how you all try to help each other iam new to this but

i really want to edit my kernel

i tried to use the tool on windows but cygwin got me complicated and i had missing files in the kitchen so i decided to use ubuntu instead but what iam facing now is that i cant even access the tool,after i use the terminal and cd to its location when i hit ./menu i get this messege : bash: ./menu: Permission denied

please help me i really need it

thank you

mirak
[Android] desalesouche:
dt.img

[MENTION=4308696]championswimmer[/MENTION]

Is there possibility that dt.img can be extracted with that tool?

Does that feature can be added to your tool?

Thank you.
[Android] someone755:
Just out of curiosity, what benefit would taking the device tree binary apart provide?

If you want to change frequencies and whatnot, you're better off just building the kernel yourself.
[Android] desalesouche:
i don't understand why you answer my post...

So weird.
[Android] someone755:
The first four words of my post are literally "just out of curiosity", after which I pose a question regarding your intents. I follow that up with advice as it seemed like you are trying to modify your boot image in strange and undesirable ways.

No need to be a Richard you know.
[Android] championswimmer:
Not possible. Also no point doing that
[Android] juyel92:
When I split the boot.img, I found PARTS and RAMDISK. Inside the ramdisk i found init.rc , but i didn't found anything like initlogo.rle or logo.rle . Can somebody help me out. :(

I am using Asus Zenfone 5 device.
[Android] bencetari:
Chown help, use chown to take ownership of the executable then chmod +X menu or .menu
[Android] SXUsr:
Is it possible to integrate this - extract_elf_ramdisk into this kitchen? I'm trying to but getting stuck at this stage...

Any help appreciated.
[Android] Gantori:
I have pulled what I believe to be the vendor/manufacturer logo with the following pull

adb -s 192.168.1.120:5555 pull ./dev/block/logo

however the ~8MB file logo on my PC does NOT appear to be a .ppm nor .rle I have tried the above kernel-tools but the rle2png.bat hangs after creating a rather 64MB+ large logo.raw file.

I have also tried several converters online, also gimp, photoshop all failed to load.

Perhaps /dev/block/logo is some mounted filesystem? not a bitmap?

Let me know if you can help in anyway I would like to replace this "TranSpeed" logo image before the android bootanimation on a chinese TV box

Thank you.
[Android] Gantori:
adb -s 192.168.1.120:5555 root

adb -s 192.168.1.120:5555 pull ./dev/block/logo logo

After doing over WiFi the above commands, on a chinese (rooted) TV box, I am able to obtain a "logo" file on the PC, about 8MB in size.

However, running kitchen tools (rle2png logo) hangs and can produce larger than 500MB .RAW file I had toI break with Ctrl-C, the batch file rle2png.bat never got to step#2

I have tried several online tools to convert RLE to some bitmap format but they all fail.

I am not doubting if the pulled "logo" file is actually a .RLE format

Please provide any suggestions on how I can convert to file to some viewable format.

Thank you.
[Android] BohArie:
all the thing u put up there is done installed to my pc...

I just want to know how to install the tools and how to remove splash screen on my W8...

---------- Post added at 06:56 PM ---------- Previous post was at 06:17 PM ----------

where to find this GCC,CPIO,ZIP,PERL,PYTHON packages??

did it all apear on time we install packages for cygwin??

I just click [all:install] and I dont choose... urm... I just install all the packages...
[Android] championswimmer:
download the latest version from the link

extract

go to directory in terminal

use command

./menu

rest everything is menu driven :)
[Android] BohArie:
urm... where to put the file extrected??

is this exactly like android developers custom rom??(I mean the place)
[Android] wo88les:
Your input folder and output folder are in the working folder for ./menu

Output folder is where files are extracted
[Android] BohArie:
ohh... thanks...:D

all good but how to extract ramdisk.tar???

Im already try extract it but when I open ramdisk - content in output file there is nothing...
[Android] BohArie:
championswimmer, I want to ask.. how to convert ramdisk.tar to ramdisk.gz...

urm... after I split boot.img the only file in ramdisk-contain is default.txt and init.rc... there no initlogo.rle but when I open ramdisk.tar in system/bin/ I found initlogo.rle...
[Android] *boy*racer*:
HeHey championswimmer

I solved the last issue I had with the colour of the boot logo but now I have another.

Using .ftf kernel, I wanted to edit the logo.rle but when I split the kernel I only get header and kernel.sin in output.

Could you please tell me how to do it? The other options are not working yet as they say upcoming.
[Android] championswimmer:
after splitting, can you paste me the terminal output ??

is it saying "cannot stat kernel.sin" or something like that???
[Android] *boy*racer*:
yes its saying something like that.

ScreenShot below

sorry i had to compress it as when i uploaded the screenshot, it came out distorted.

PS. im trying to edit Xperia X8 kernel.ftf
[Android] championswimmer:
doomlord's sin splitter probaably doesn't support x8 kernels :p

i use his script only
[Android] *boy*racer*:
Oh I see. And will it work for X10 mini pro kernels?
[Android] waynekirby:
Doubt it with x10 mini and x8 being similar phone in terms of specs
[Android] Apif Fuloh:
Thank you, this is very helpful.
[Android] Tof37:
Hi Champ !

Thanks again for this absolute needed tool !!!!

Finally got time to use it for the first time ...

Kernel kitchen + such clear instructions = sucess on first customized kernel ..:D:D

Now I can go further with kernel cooking ;)
[Android] sgt. meow:
actually DoomLord's kernel splitter works with X8 kernels. i've tried it myself and was successful in grabbing the ramdisk from nAa's ics kernel and using it in my own.

@championswimmer how do you change the recovery system? a tut would be nice, esp. for X8

thanks in advance
[Android] *boy*racer*:
Hmm what options did you select to get it to split it? And does it turn it into ramdisk-contents? Which is what I need.
[Android] Toledo_JAB:
If you follow the menu for ramdisk, you will get unpack. Follow the directions about input&output folders.

If it works for x8 you will get folder 'ramdisk -contents '.

EDIT: just got back to pc.

From 'kernel tools' folder run 'menu' then select: '3' to work with init ramdisk.

then hit enter to continue, on new menu select '1', now make sure you have the proper name and then hit enter. the output folder should contain a folder 'kernel-contents'.

if does not work you can try the alternate method '2' in second menu.
[Android] sgt. meow:
you can also try downloading doomlord's perl script and executing it through terminal. instructions are found in his thread. press THANKS if i helped.
[Android] championswimmer:
doom's script is part of the kitchen... inside /kernel/unpack/ftf folder you can find it :)
[Android] Jamison904:
I might just be overlooking something (working too much...) but everytime I got to execute a sequence from the menu screen it just closes the terminal. Using Ubuntu 11.04. Am I missing something? Thanks for your hard work buddy.
[Android] *boy*racer*:
Thanks mate. i tried finally but the folder is empty when i extract it :-(
[Android] Toledo_JAB:
:( Sounds bad... did you try the alt method? If you are handy with scripts you can find dooms script inside the kernel tools
[Android] *boy*racer*:
No good with scripts. Thanks anyway.
[Android] Toledo_JAB:
I know it's old but just checking that you read up here

http://xdaforums.com/showthread.php?t=1659621

It's Champs old x8 kernel kitchen thread.

Edit: what kernel are you trying to use? if I can download it, I'll try also
[Android] *boy*racer*:
Thanks but I looked there to begin with when he 1st posted it there.

Thanks for your time. The kernel is the last one down in his attachment. http://xdaforums.com/showthread.php?p=19230102
[Android] jerdog:
This script, and other kitchens like it, are the epitome of what is wrong now with this community. No longer is there an emphasis on learning and doing things right from scratch. Instead it's all about going the fastest way to putting something out there and getting fanbois and gaining donations. This sort of thing really is disheartening and discouraging that the community at-large has gone this far down.

Also this kernel cooker places EVERYONE who uses it at risk of violating GPLv2. EVERYONE.
[Android] championswimmer:
i respect what both of you say... and i hold both of you in xtremely high respect ( @hacre i know you are one of the best kernel devs around even though i have never personally used samsung devices yet.. but i've heard a lot about you)

believe me, even i share the same opinion... and the stickied thread on chef central by Steve Kondik is one of my favourites

this is made with pretty much the same objective as the kitchen by dsixda.

what one does with it is not really my headache...

if all one does is change a bootlogo of a kernel and re-release it as 'his' kernel... it's a shame on him and not on me....

this basically just brings the mkbootfs and mkbootimg procedures of aosp ndk as a standalone package....

i myself am not a dev... but yes i know porting and 'cooking' is really killing the community... i started off with a ported rom myself.. but now even i detest that... and i myself practice and encourage others too to build things from sources....

in any case if this is not required/needed/welcome, then i have not issues at all with moderators/admins removing this thread
[Android] egzthunder1:
I am sorry but I need to quickly jump on this one...

So, under your logic, (and I do realize that this is a big leap for an analogy), I will just leave this wonderful AK-47 that I just bought, fully loaded and ready to go close to a bad neighborhood and close to a bank. What people do with it is their problem and I have 0 to do with anything that happens thereafter...

Please tell me that you didn't just say that. What you are saying here is like what Dr. Kervorkian used to do "I will give you the option to kill yourself", but I cannot be held accountable for what you do with it afterwards.

You yourself just admitted this

that the kitchens are not exactly a good thing and that people should learn how to do things from scratch. You are literally stating that this will not help anyone and could, in fact, make problems worse, yet you put this out there?

I certainly appreciate the fact that you are willing to contribute and give back to the community on whatever you can do. It certainly beats the overall attitude of "gimme gimme gimme more". But if you know that bad, moldy bread can give your child a stomachache, don't give it to him....
[Android] championswimmer:
see there will always be people out there who want to 'cook' rathen than do any proper sort of software development....

you cannot delete those people from the face of the world (unless you use an AK-47)

this does not allow you to MAKE a kernel anyways...

just for an instance... the kernel pushed out by my fave dev needs me to press the back button to go into recovery while booting... and my back button is broken... so i need to change the recovery triggering shell script and make it use say the power button instead of back button...

for an average user, my kitchen can help do that in the shortest possible time with least amount of skills required...

ok.. climbing the ladder up a little more...

someone wants to overclock his phone... he gets the source, overclocks the cpufreq files required, compiles the kernel... now what does he have ?? a zImage...

will that work on the phone as it is ?? no it wont... so what's needed ? a ramdisk..

what he can do is ... use my kitchen, extract a ramdisk from another kernel for his device available on xda or somewhere... pack that ramdisk and his newly created kernel and use it...

how about wanting to make ramdisk insecure and wanting to make adb mode persisitent ?? you again need to go into the ramdisk... my kitchen gives you a short method... (maybe not the shortest or easiest or best one )

how about if your favourite kernel does not contain your favoourite recovery... but it is available for your device through another kernel...

what i mean is.... now if any of those 4-5 guys i stated above in my example release "their" kernel on xda and claim to be a dev... well.. that's just a psychological problem with them....

there are thousands of morons out there who create "their own" ROMs just be adding or removing a few apk and release them on xda (only to see their thread being closed :p )

you can make bombs with nuclear energy, you can make electricity .. or you can just be an ardent student of physics and chemistry and use nuclear reactions to create new elements....

but what you do is your responsibility and not that of Rutherford or Fermi or Einstein or Bohr

and in any case ... if xda really wants to do what they mean by 'operation iron fist' .... i.e. take the community back to the developers ... we should be banning anything and everything that is not coming from source... (90% of the threads on chef central imho.. ofcourse including this one too)
[Android] PoorCollegeGuy:
What I see when I see threads like this:

Someone tries to make a helpful tool to generate interest in kernel development.

A bunch of higher ups railroad them until they go away.

No one learns anything and no one gets interested in kernel development.

How come the people who say this isn't real development never reach out and try to teach people or generate interest? Frankly, if putting out a kitchen gets even one aspiring dev (aspiring dev is NOT a real dev, but one who is aspiring to be a real dev) interested enough to learn the "right way"...then the tool served it's purpose. If it's such a sin to post tools like this to get people interested in development, then why not write up some tutorials and show them how it's done? It's like saying "You can't shoot that gun, your worthless for even trying and you're what's wrong with the world because you can't shoot that gun"...and then give them zero pointers on learning how to shoot the gun.

Part of the solution? Nah, that's being part of the problem. How are people supposed to get interested in real development when they know they'll be sharing a title with people who do nothing but tell other people they're doing it wrong? Additionally, how are they supposed to learn how to do it right when the people who know how to do it not only don't help, but squash every attempt of someone else to help?

smh
[Android] the_scotsman:
Some of the posts in this thread are complete PIGS ARSE.

I don't have time for a full reply at the moment, but I've been around XDA long enough to know that kitchens are helpful and do promote learning and development.

Back in the WM days of XDA, only a handful of devs (Tofclock, Helmi, Buzz etc...) were capable of building ROMs rom scratch using hex editors, playing with XIP files and dlls.

WM5/6 Kitchens were being used when some of you were still at school smoking behind the bike sheds. Without them, XDA would almost certainly have never been as popular in the WM days, and the number of "great" ROMs would have been far less.

When the first kitchen was released to us, this started a whole new wave of ROM creation. Sure, it made thigns easier, but a lot of people learned a LOT about WM development at the same time. I know I did.

They're a learning tool if used in that manner. Fair enough they can be abused by some who "cook" something and call themselves a dev, but there are others who will use it and learn from it. I know I learned a LOT about WM drivers, registry etc, by using a kitchen.

I don't give a flying f*ck if some of you can code a complete kernel in notepad. The size of your e-peen means nothing to me.

XDA is about learning as much as anything, and if a kitchen helps people learn SOMETHING about kernels then I think that has to be a good thing.