yashsingh1/xdaforums huggingface dataset:
[Android] jm0077:
how can I generate the update-binary for my updater-script

Hello!,

i want create an update.zip in order to flash my compiled AOSP to the HTC Desire, but I have a problem when I try to flash through ClockWorkMod recovery 2.5.0.7. I think is because I dont have the update-binary file next to my udpater-script.

So the question is how can i generate the update-binary from updater-script?

Thanks in advance!
[Android] dsixda:
Create working folder but don't convert to update-script when it asks.

Then build ROM.
[Android] chuti98:
maybe i didn't put program in /data/app folder, so that's why the folder won't copy into signed-zip
[Android] frankzua77:
!!

Yeah your right, but I have learn a lot by playing in your kitchen! 2 questions dsixda...

How do I change the boot screen? For example cyanogen has the blue nexus X as his boot up, can I change this in the kitchen?

Where do I get the stock Rom for the nexus, would HTC have it? lol

Thanks for all your help man you rock bro!:D
[Android] dsixda:
Yeah maybe I should put a placehholder file by default for data/app, as I did for apps2sd.

Sorry, I'm not an expert at boot screens and stuff. Nexus One stock roms are the first thread in the nexus one forum, which is also listed in my FAQ.
[Android] antz88c:
@dsixda, i tried .37 and see screen grab below when adding root permisson. Didn't continue with the cooking since there's the mkbootfs error.
[Android] dsixda:
Oh okay, I'm sorry, I had assumed that Macs had gcc by default. I wanted to simplify the kitchen by removing all the binaries and making the kitchen compile them on the fly.

Anyways I have uploaded an updated version of 0.37 without this change. Thanks for trying it out.
[Android] CPCookieMan:
Will this work for the CDMA Droid Eris?
[Android] dsixda:
[KITCHEN][APRIL 2 '10] HTC Android Basic Kitchen, v0.37 - for Beginners! [PC / MAC]

Someone already asked this in this thread recently (just search), I don't think you can do this without modifying the parameters for mkbootimg.
[Android] Ace42:
What to say thanks, I don't use linux and i was start dev'in
[Android] dsixda:
Hi guys,

Previously, certain Android 1.x ROMs (e.g. on the HTC Hero) that were cooked in Cygwin would not boot, due to an issue with the duplicate filenames - liba2dp.so and libA2DP.so. But now I have a fix in the kitchen for Cygwin to take care of this problem.

It has been tested on the HTC Tattoo, which previously had the same issue, but now boots with the change. Hopefully this will also work for the Hero/Magic/Dream users who saw the non-booter issue with Cygwin.
[Android] antz88c:
This is something I just 'cooked' so it will be easier for me should I restore/wipe my Hero using dsixda kitchen. I pulled my downloaded apps from the market and placed it in my ROM. The only problem with this is that it will not appear on the market's downloaded list, so checking updates should be done manually.

NOTE: If you didn't clear cache of the market, the downloaded list will still appear as installed on first boot, but when you restart, only list will be available.

You only need android sdk, you know where to get this. Let's pull those apps from the device:

1. Plugged Hero (make sure debugger is checked) then launch Android SDK ddms

2. Select your device

3. Go to Device and select File Explorer

4. Expand data

5. Select/highlight the 'app' folder, (this is where all download apps from Android Market are located)

6. Select 'Pull File from Device'

7. Choose destination

8. Done

You can now place the 'pulled apps' prior to cooking inside the data folder or system/apps.
[Android] dsixda:
Thanks for the tip. When I want to track apps that have lost their market links, I use aTrackDog.
[Android] reeg420:
Ive been waiting for a kitchen for my girl mytouch.

Been flashing other peoples rom on there for a while now and I wanted to cook my own for her like I do with my touch pro and have done with my ppc6700 and mogul.

Seen the modaco one a while back but Im not a premium member and I cant see how much could be customized from an online kitchen.

Im installing cygwin right now and downloading the java jdk. Im eager to see what this looks like.

Im really new to linux but not a newb on a pc. So I dont think Im gonna be that lost. Ive had ubuntu installed for a while now as a second partition on my pc so I could look into more android stuff but havent gotten much past that. I decided to install cygwin within windows so I can have something familiar to work in.

Anyways great work. Hoping this kitchen gets as involved as some of the Windows Mobile kitchens like ervius visual kitchen which I use and love.
[Android] dsixda:
Thanks for the posting. Oh, but the Visual Kitchen interface is a masterpiece in coding, from my point of view.. I'm just a regular newb ROM cooker ;) But then again, for Windows Mobile cooking I just used bepe's Platform Rebuilder kitchen which was just command prompts... A simple interface is sometimes all you really need to make things work. :D

Let me know if the Cygwin method works for you.
[Android] dsixda:
I just added support for the Droid Eris, will need testers to try it out though.
[Android] reeg420:
Works really good. Got it up and running. Setup an OpenEclair rom in the kitchen.

Now can I just go through and add/remove the apk's I want/dont want.
[Android] dsixda:
Yes, go ahead. Go into system/app and/or data/app and delete away! (But make sure you don't delete critical apps)
[Android] looktall:
i just started using this kitchen last night.

using win7 and cygwin at home and it seems to work ok.

i did manage to make a couple of roms that i converted from 32A to 32B that worked.

today at work i've tried to install it again, this time on winxp with cygwin, but i'm getting errors. (in red)

user ~
$ cd kitchen

user ~/kitchen
$ ./menu
./menu: [color=red]line 12: clear: command not found[/color]

####################################
HTC Android Basic Kitchen 0.39
By dsixda (xda-developers.com)
####################################

1. Set up working folder from stock ROM (boot.img + system.img)
2. Add root permissions (stock ROM only)
3. Add task killer tweak for speed (stock ROM only)
4. Disable boot screen sounds
5. Enable apps to SD (requires fat32 + ext3 partitions on SD)
6. Add wireless tethering (stock ROM only; kernel updated for N1/Dream)

Advanced Options:
11. Set up working folder from cooked ROM instead (e.g. update.zip)
12. Port ROM from another device
13. Add /data/app functionality (stock ROM only)
14. Extract ramdisk + kernel from working folder
15. Build new boot.img from ramdisk + kernel (for previous option)
16. Run your own custom script

99. Build ROM from working folder
0. Exit

Please enter option number: 12
scripts/port_rom: [color=red]line 25: clear: command not found[/color]

Obtain a ROM meant for YOUR DEVICE, and choose one of the
options below:

1) The boot.img and system.img for your device have been
placed under the img_files folder.

2) The update.zip (or equivalent .ZIP) for your device has
been placed under the original_update folder.

When you have chosen an option, select the option number: 2
scripts/make_kitchen2: [color=red]line 1: clear: command not found[/color]

Ensure you have a custom ROM's *.zip (e.g. update.zip) under
the original_update folder.

Any existing working folders under the main folder will be
automatically backed up under folder OLD_WORKING.

Press Enter when you are ready

No other working folders exist

Found update_signed-vodaphone-port.zip

Creating working folder WORKING_040910_094010 ...
Copying update_signed-vodaphone-port.zip to WORKING_040910_094010 ...

Extracting ROM ...
scripts/make_kitchen2: [color=red]line 51: unzip: command not found[/color]

Warning: No META-INF folder found under working folder!

Error: No system folder found under working folder!

Listing of WORKING_040910_094010:
total 0

Error: Setup failed

Press Enter to continue

i suspect it could be because cygwin did not install correctly.

because the work internet connection isn't the fastest i copied the folder that the cygwin packages were downloaded to from my home computer and installed them into cygwin using the option to install from a local directory.

it all seemed to install ok. i got no errors.

i wanted to get your thoughts on this before i tried to reinstall cygwin again, but this time downloading all of the packages from the internet.

EDIT: nevermind. i reinstalled cygwin, but this time i navigated to the correct folder for the already downloaded packages. :o
[Android] dsixda:
I have just updated the kitchen to version 0.40.

Thanks to ivanmmj for pointing out the zipalign feature.
[Android] looktall:
i just wanted to make some comments on your setup guide.

in particular the following part.

now, you say to download the Devel / gcc package.

when i looked at the list for devel / gcc i found that there were quite a lot of entries that began with gcc.

are all of them required?

if not, can you be a bit more specific. if so, can you be a bit more specific. :p
[Android] dsixda:
Devel / gcc means what it is.

It means to download the "gcc" package only, and not the stuff like "gcc-gpc" (Pascal!), "gcc-g77" (Fortran??) or "gcc-ada" (Ada?).

Think about it -- use common sense ;) :D
[Android] dsixda:
I don't know anything about sizes of recovery image. This is not a kitchen question though.
[Android] jm0077:
from sources compiled¿?

Oh thanks for your response.

Also, I read that there is a way to get the update-binary from the sources compiled, is this possible? If so.. I can get it from there because I have the AOSP compiled, but I dont know from which directory..

Thanks in advance.
[Android] dsixda:
Just search the thread. Anyways here it is..

http://xdaforums.com/showpost.php?p=11796161&postcount=3710
[Android] leith51:
Hi used your kitchen to build Rom didn't make any changes. Apart from taking lockscreen out.

The build is on Orange desire hd 1.84 build

Choose option 10 and it said it was rooted

Built Rom flashed and now I don't have root at all busybox not working either

What have I done wrong
[Android] dsixda:
Paste the output of Option 10 here within CODE tags.
[Android] leith51:
what do you mean code?

Edit thanks anyway but i sorted it now got root back was my fault i had added superuser 9.9.9 in to system/apps after
[Android] SoltyPK:
I'm trying to cook a sock glacier rom with a few extras nothing crazy but every time I try and flash I get this

assert failed: write_raw_image("/tmp/boot.img", "boot")

Anyone know where I messed up and how to fix this?

This occurs in both CWR 3.0.0.6 and 2.5.1.2

Thanks Much!
[Android] klquicksall:
Did you try to flash your stock rooted first before you added mods?
[Android] SoltyPK:
Sadly thats what I've been trying to flash is nothing more then a rooted post OTA stock.
[Android] klquicksall:
Try to re run the kitchen.
[Android] SoltyPK:
Just finished re building my rom and still same issue i didn't even make any changes to the rom just extracted from the OTA zip then cooked it.
[Android] dsixda:
The MT4G hasn't been supported yet by the kitchen.

Try replacing the above part in the updater-script with:

package_extract_file("boot.img", "/dev/block/mmcblk0p22");

Also the system partition needs to be named something else.

format("ext3", "EMMC", "/dev/block/mmcblk0p25");
mount("ext3", "EMMC", "/dev/block/mmcblk0p25", "/system");

Just open the CyanogenMod ROM for an example.
[Android] stian230:
Thanks it works great on the desire z to .. sweet
[Android] dsixda:
Ok, fixed in latest kitchen version 0.153, which has just been submitted.

Please see the Release Notes for other changes.

Thanks for the feedback!
[Android] JieeHD:
Great kitchen, cheers for this dsixda
[Android] SoltyPK:
Thanks for the Fast fix and reply cooking now ^^
[Android] 1975jamie:
ok just installed kitchen in windows 7 but cant find the kitchen folder. help.
[Android] NEPADroid:
THANKS D!!!! Total Noob recently uprooted from the guarded world of APPLE... I have been wanting to dip my toe into moding and this is incredible!
[Android] arif-ali:
Have you read the FAQs in the first few posts

you will find that the kitchen will be located in the following place

c:\cygwin\home\<username>\kitchen

replace <username> with your username
[Android] leith51:
That's only if you downloaded the kitchen and extract it to the home folder

Sent from Pluto
[Android] AngelDeath:
dsixda,

First being anoob to Android this was a god send then having to swap things out and what not, but I do have a question, I have read all the replies and whatnot but didnt see anything so I thought I would post my problem in the event I missed something.

Let me first tell you what I did, I took a working rom for the HD2 (GB Rom w/sense) for the most part other then the camera it works, so first I took that rom and made a working folder, then without changing anything I re-built it and then flashed it, booted perfect, same issues as the origianl rom so it worked.

Then I took a rom I wanted to port, which is similar in specs and also a GB sense rom, to port, ported it, then flashed it, and the rom booted, which I must say I was surprised, but as soon as it booted and got to the lockscreen to swipe down to do the setup wizard the phone was unresponsive. I looked at the logcat (For any error that stood out), but didnt see anything standing out. So I took the battery out and booted again, this time the lockscreen came up again, and I was able to quickly unlock, but then got stuck at the white htc screen that comes up before setup wizard starts, and was unresponsive again.

Any clue if I missed at step? I just saw a new version which I just downloaded so dont know if this might fix the issue (My luck probably not). So going to try the new kitchen.

But in the meantime any clue? Or anyone else might have an idea?
[Android] dsixda:
Just move it to the folder that was recommended in the FAQ.
[Android] dsixda:
What device ROM did you want to port? Also, again, refer to the FAQ for booting issues. Logcat is not the only method, you need a log of what you flashed. Or you might need to wipe before flashing.
[Android] AngelDeath:
Okay I looked through the FAQ before I posted this, but the question still remains, being that this is a CWR rom, and I did make it thru the boot process and am not hanging on the initial boot screen I dont believe this applies to the question. I can post a logcat if that will make it easier. But again, I am going to re-try this with the new kitchen and see if I get the same thing.

The roms you asked are Imilka's GB Sense DS 0.4 for the HD2/Leo as the working base, the rom I was trying to port over was: Original PD98IMG_Ace_Gingerbread_S_HTC_Generic_2.16.0.0(Ginger 2.3.2 with Sense)

from this link: http://xdaforums.com/showpost.php?p=12684166&postcount=1 and had this info in the post:

Android OS version : 2.3.2

Device : ace

Model : Desire HD

ROM Name : 2.16.0.0

Rooted (unsecured boot.img) : YES

Rooted (Superuser.apk + su) : NO

BusyBox installed : NO

BusyBox run-parts support : NO

Apps2SD (Apps to EXT) enabled : NO

/data/app enabled : NO

Custom boot animation allowed : NO

Nano text editor installed : NO

Bash shell support : NO

/system/framework is deodexed : YES

/system/app is deodexed : YES

radio.img found : NO

ROM will wipe all data : NO

Obviuously I changed these to YES after the port and looking at the rom info option #10

Rooted (Superuser.apk + su) : NO

BusyBox installed : NO

BusyBox run-parts support : NO

Nano text editor installed : NO

Bash shell support : NO

Also just a suggestion in the main menu maybe have an option to choose an existing folder as a working folder? I know the script has it in the format of rom_date_time, but if one has it as say Working Folder the kitchen doesnt find it, maybe have a command that you can choose a folder? And then have it either rename it, or make a copy in the script format? Just a thought.
[Android] dsixda:
You are porting over a Desire HD ROM, so yes the recovery log applies... The Desire HD has a larger system partition than your HD2. Someone asked the same question two days ago.

Renaming a folder to a working folder may be a good idea but may also cause problems if it's not a valid folder.

Another idea may be to name a folder to a custom name... but, I have about 90 files that look for a folder starting with "WORKING_". Not worth the time to change each and every script. Also, using a designated folder will just make the scripts more complicated and lead to more user errors when building ROMs. The method I have been using since Day 1 has been effective enough - use a single Working folder and back up the rest to OLD_WORKING.

But then again, I could include the option to rename the folder to WORKING_xxxxx, where xxxxx is a custom name. There are a million things I could do differently of course, but it's not going to be perfect for everyone.
[Android] AngelDeath:
No I did see that, but being that I have a t-Mo1024(US) version, and a CWR partition of 445mb I thought it would be more then enough to flash just about any rom. Will still look at the post 2 up and see. Still learning as I go along :)
[Android] HannoSLM:
Hi, could you please tell us, if you changed the kernel and if yes, which one did you use?

thanks
[Android] jm0077:
problems when flash AOSP froyo over HTC Desire

Hello I just compiled the AOSP with vendor's files for HTC Desire (and extracted propietary files).

But when I turn on the phone it gets stuck on the splash screen.

I copied the adb logcat:

http://pastebin.com/7Wu0NFSx

and the recovery log just after flash the bad rom..

http://pastebin.com/A5T6NzPg

someone can take a look and see what's happening?

thanks in advance !
[Android] dsixda:
You have permissions issues with your Google apps in the logcat. Did you sign something? Search the thread for people with the same issue.
[Android] nitsuajd:
I have an issue with the kitchen... i'm trying to make a stock 2.3.3 for Nexus S using the kitchen and when i add a kernel to my project the wifi does not work. I've tried with the 2 methods overwritting the boot.img + the other files and unpacking the boot.img and changing the zImage.

If i build the same rom without this kernel the wifi works properly...

I'm trying to put kernel james bond in a stock 2.3.3 deodexed and rooted using the kitchen (it is in a zip file)

Sorry for the noob question and sorry if the question has been answered but i've not been able to find the answer...

Any idea? thanks in advance...
[Android] dsixda:
Yes, you need to add the driver under system/lib/modules..

Please read the FAQ on how to import a kernel.
[Android] AngelDeath:
Now that I dont know, all I did was use option to port over a rom, the first questionit asks you is the select a rom meant for your device (which would be one of the roms made for the HD2) after its done the second is to put a rom you want to port over, and it does it thing, at that point its done, then I go thru making sure the permissions are set, busybox, su, nano, bash, etc. then a create the zip.

I attached the logs of the logcat from very first boot, til it hangs, and also the recovery image. There are two recovery images, cause i tried with two roms to port, recovery 2 is with another ace rom. Also recovery2 log is also unsigned, tried it both ways.
[Android] jm0077:
errors over the recovery log???

I flashed the HTC Desire with the AOSP compiled (froyo version)

The flash process has been finished, but when I reboot the system the phone gets stuck over the splash screen..

I was analyzing the recovery log (http://pastebin.com/A5T6NzPg) and found the possible reasons:

Starting recovery on Mon Apr 11 14:46:10 2011
[B]can't open /dev/tty0: No such file or directory[/B]
framebuffer: fd 3 (480 x 800)
ClockworkMod Recovery v2.5.0.7

I dont know why I get this config, the AOSP is over froyo verion NO ECLAIR

ro.build.id=ECLAIR
ro.build.display.id=koush_bravo-eng 2.1-update1 ECLAIR eng.koush.20100714.213925 test-keys
ro.build.version.incremental=eng.koush.20100714.213925
ro.build.version.sdk=7
ro.build.version.codename=REL
ro.build.version.release=2.1-update1

Also there is another line that makes reference to ECLAIR :confused:

ro.build.fingerprint=generic/koush_bravo/bravo/bravo:2.1-update1/ECLAIR/eng.koush.20100714.213925:eng/test-keys

Here can be one possible reason.. can somebody tell if this is the issue?

Formatting SYSTEM:...
[B]mtd: not erasing bad block at 0x02d40000[/B]
calling command copy_dir
Copying files...

The possible reason could be the last *error* indicated?

Hope somebody can help me to clarify this...

Thanks in advance to all of you who take some time to look the code above ;)
[Android] nitsuajd:
****! I had read the FAQ but skipped the step of copying the .ko file in system/modules

sorry for the stupid noob question :p

And thanks for your fast answer

Ps: Of course, wifi is now working..
[Android] jm0077:
the bad block could ruin the whole system?

not sure about this, I compiled again and I get the same error, but when I try with a different rom (Cyanogen 6.1.1) the process go fine and I don't have any issue..

thanks in advance..
[Android] dsixda:
@jm0077

Did you do a wipe before flashing?

Also, please do not post entire log outputs into a post... it makes scrolling the page cumbersome. Attach a file or post to pastebin.
[Android] jm0077:
Of course.. if somebody can take a look over the logs:

recovery log:

http://pastebin.com/A5T6NzPg

and the adb logcat:

http://pastebin.com/7Wu0NFSx

the problem is that I compiled again (x 2) and got the same issue:

I get stuck over the splash screen (white screen with the HTC logo over green letters)...then after few seconds a black line appears on the top of the screen...and then the phone is turn off and I cant turn it on untill pull of the battery and put it again...

I make the wipe over the data, cache and dalvik cache..

somebody can look the logs and tell if can find some critical error?
[Android] jm0077:
cyanogen mod same bad block?

Hello again,

like I told you, when I flash the CyanogenMod the phone works fine, so I decided to analyze the recovery log after flashing the Cyanogen rom:

http://pastebin.com/qcAch8qz

And I saw that there is the same issue (line 175) that the previous case (line 160 http://pastebin.com/A5T6NzPg)

but with Cyagenogen I dont get stuck over the splash screen...

Other part that look different is over the end of the log, when then of apply the CyanogenMod shows:

line 832:

flashing boot from /tmp/boot.img

while in the case of the AOSP compiled:

line 750:

Writing BOOT:...

different terms for same action? or there are different actions?

Thanks in advance...
[Android] dsixda:
That's probably because one is updater-script and other is update-script (although the log says both are update-script), because updater-script usually copies to tmp folder before flashing boot.img.
[Android] jm0077:
that could be the reason.. but do you know which could be error that get me stuck over the splash screen?

somebody can give me a hand with this issue?
[Android] dsixda:
Didn't you follow my original reply? Search the thread for permissions issue. A lot of these questions get asked repeatedly in this thread. But in your case you also have bad blocks.

You are also missing bootanimation.zip.
[Android] jm0077:
Thanks for your response I apreciate it...

I just compile the AOSP for the HTC Nexus One (also extract the propietary files) and the phone works fine after flash the AOSP rom..

Also I saw the adb logcat and shows the same messages that in the HTC Desire case:

the bootanimation.zip and the problem with google apps.

So maybe the problem has nothing to do with it...

I know that there is something that I'm missing but cant find what it is... :(

Hope somebody can help me with this issue..

Thanks in advance