yashsingh1/xdaforums huggingface dataset:
[Android] hero000:
I've already installed. Sun-java6-jre_6.2601_all.deb and sun-java6-bin_6.26-1_i386.deb on Ubuntu. I manually downloaded them and installed successfully but when I am trying to launch kitchen. I get this error: " The application 'java' isn't installed. The kitchen will not function properly without it. Refer to FAQ for the HTC Android Kitchen at xda-dev...for assistance on installing the binary for 'java'

EDIT: this method works.

You also need Sun Java binaries installed (there may be alternatives, but the following worked for me):

To install, type in Ubuntu: sudo apt-get install sun-java6-bin sun-java6-jre

When the license agreement shows up, press TAB to select the OK button

If Java still fails to install, then type the following in this order:

sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"

sudo apt-get update

sudo apt-get install sun-java6-bin sun-java6-jre

sudo apt-get -f install

sudo apt-get install sun-java6-bin sun-java6-jre

Thanks
[Android] leith51:
Are you a machine?? No sooner I start using one kitchen you update it. I've got to say your work is great i have not had any issues building roms with your kitchen, excellent work thank you.

P.s. did you get the donation I sent you

sent from outer space
[Android] TMartin:
This can be a whenever thing. I never try to rush you. I mentioned the Evo 3D ROM earlier. I've tried on several Ubuntu machines with the same issue. I know the system.img is in ext4. It will mount fine, at least it seems, but then hangs when unmounting. The kitchen doesn't move what so ever, I can't unmount it by terminal or anything, and I can't access the location it mounts to. It's only with the HTC Evo 3D boot.img & system.img and its happened on two different ubuntu 11.04 machines. I'm having someone try on Mint too just to see what happens. I also tried Google but found no solution.
[Android] ro7-alQulooB ali:
yes

dsixda,

thank you a lot, i have used "Cygwin" as per you advice and I have extract that the new roms till last step

I advice everybody to use this system "Cygwin" easy to use and fast
[Android] dsixda:
Thanks, hopefully the updates will slow down ;-) And yes I received it, I had thanked your June 23rd post.

Let me know if you can get it working, I'm not too keen on staying up late and downloading yet another 500MB ROM ;) Or, just follow the advice below.

Yes, Cygwin method is probably the most hassle-free, although the kitchen runs faster in Ubuntu (e.g. extraction of ROMs, updater-script conversion, zipping and signing of ROM, etc.).
[Android] TMartin:
If I could just get the kitchen to advance, it wouldn't really matter if it doesn't unmount. Any suggestion on how I could do that instead?
[Android] dsixda:
In the file scripts/extract_ext3_img, go to around line 162 where it says "sudo umount ../tmp". Just put a hash tag (#) in front of the line to comment it out.

See if that works.. although you will still have that tmp folder lying around. We can try to figure it out after that.

EDIT: Or replace that line with this, so that it forces an unmount:

sudo umount -f ../tmp

Otherwise try this (lower case L):

sudo umount -l ../tmp
[Android] TMartin:
I'll try both methods. I'm not sure the sudo umount will work since it won't allow me to do that in terminal or lsof command(I think that's the one). Thanks for the suggestions. Damn this ext4 filesystem :D
[Android] absolutzero1906:
TMart I am just wondering if you are trying this with a shooter RUU. If so this works. I was having the same problem you were and added the # and got it to stop hanging.
[Android] dsixda:
Did the tmp folder get deleted afterwards, even though it wasn't unmounted? I wonder if commenting the line would lead to unsafe circumstances.
[Android] absolutzero1906:
No it didn't and good point. I will try to change the line like you also suggested.
[Android] TMartin:
It disappears on reboot tho lol :p
[Android] carl1961:
I get nothing from that not even a complaint LOL

did the commands a few at a time and I get whats in second picture (kitchen28.jpg) ( if I leave a space between ^ -r ) take the space back out and nothing not even a error message

downloading new kitchen.. thanks

edit:

same thing with new kitchen ... must be my computer setup LOL, thanks for helping
[Android] dsixda:
Whoa... no wonder. You have question marks in your directory listing. What the heck? LOL

My script is looking for lines starting with "-r", hence that "grep ^-r" statement.
[Android] TMartin:
I tried sudo umount -f ../tmp and it does the same thing. The tmp folder is empty and the copied files still haven't had the owner changed in the system folder. I can go run the rmdir to get rid of it so it's definitely something with the umount. Gonna try the sudo umount -l ../tmp now.

EDIT: Still the same result with sudo umount -l ../tmp.....this is really odd. I'll just have it skip the umounting for now.
[Android] dsixda:
I don't know if this helps, but here's an explanation on why you have "??????" in your directory listing:

http://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-ids
[Android] dsixda:
You mean you can remove the /tmp folder with rmdir?

Are you able to build and flash a ROM despite the permissions on the system folder?
[Android] Fr3nZy:
I can't install cygwin. I keep getting 'Nothing needed to be installed' from the installer. I followed instruction in the txt and search for Cygwin "Nothing needed to be installed" and got NO solutions.
[Android] TMartin:
I can remove the tmp folder but if you look in the left section of the file explorer it still looks mounted. I didn't try building before changing permissions.
[Android] puertoblack2003:
dsixda,

just curious how often do we update the cywin lib i think the stable version is 1.7.9-1 released on mar 29?
[Android] dsixda:
I've been using the same version since summer 2010 on Windows 7 64-bit with no problems ever at my end.
[Android] Guahan:
When installing Cygwin, I don't see anything that is needed to be updated/installed. I change the settings from Default to Install, and when I click next, it shows under Installation Status "Nothing needed to be installed". I click next, Finish, and then it's done, no new updated/installation except the beginning when it shows the parsing of the root and local directory.

If that was supposed to happen, then I have another problem. When I tried to open Cygwin, it opens a terminal and then closes immediately. I have the newest java 6 update 21. What seems to be the problem?
[Android] Fr3nZy:
Had to do a 'Default' install from one of the servers then add the packages the kitchen depended on manually using trail and error >.< but I got it to work.
[Android] dsixda:
Yeah ... in the readme.txt file that I included with the cygwin zip file, there is a description at the end that tells you which packages need to be added. Just follow that, because you may still be missing some important files.
[Android] Fr3nZy:
yeah I deserve a facepalm for not realizing that the packages were listed at the bottom on the txt lol. For some reason if I try to do a local install using the new packages that were downloaded it get the same 'Nothing needed..." error. I'll have to redownload everything again if I need to reinstall cygwin.
[Android] Guahan:
I'm getting the same problem as you.. you said you installed the files manually? Correct me if I'm wrong. How'd you get the files??
[Android] TMartin:
Hey dsixda,

Not sure if ext4 mounting changed in 11.04 but check the extraction method here. This looks different then things in 10.10.
[Android] carl1961:
cygwin I think he install cygwin from picking a online site from the list, then after that he installed local from cygwin.zip
[Android] leith51:
Hi dsixda

I have a questions

Why does the kitchen push the sh file in bin folder to sh0 as I have noticed most other roms use the sh file with their unit-d scripts

Is there any main reason for this or can it be changed to be left as an sh file instead of being moved

Thanks for your time

sent from outer space
[Android] carl1961:
@dsixda, I reinstalled cygwin as Fr3nZy posted from online, but also selected those you mensioned in kitchen_readme.txt

* Devel / gcc

* Interpreters / perl

* Utils / cpio

* Utils / util-linux

* Utils / ncurses

* Archive / zip

* Archive / unzip

* Web / wget

and every things working correctly, so all your kitchens seeing my rom.zip

it was my cygwin install ( when I redid my computer I just copied my cygwin from a backup to the new computer, so that may have not helped)

Guess I need a palm-face slap too LOL
[Android] dsixda:
Bash becomes the new terminal shell prompt so a symlink gets created, making bash the new sh (look at your update script). The old sh gets backed up as sh0 so that it does not conflict with the new sh symlink.
[Android] carl1961:
dsixda, just out of curiosoty

I removed cygwin

downloaded http://www.mediafire.com/?5xux4adbam20tfh from your

Frequently Asked Questions ( post 3)

had the same problems as Fr3nZy

http://xdaforums.com/showpost.php?p=15418468&postcount=5163

and Guahan

http://xdaforums.com/showpost.php?p=15424590&postcount=5168

bin folder is empty

so I ran cygwin and installed defaults from Internet and selecting those also from your kitchen-readme.txt

with updated setup.exe

after I compared downloaded cygwin folder with your cygwin from your

Frequently Asked Questions ( post 3)

cleaned and removed extra non needed stuff

size went from 480*.meg back to 65Meg

install went ok ( ran a rom.zip , a pyramid rom stock ruu to test, ext2explore of system.img de-odexing apps and framework files etc...)

here's the updated cygwin I came up with that went well

http://hotfile.com/dl/123488108/8994e00/cygwin_packages_updated.zip.html

I'll remove this from post if you want me too

seems like some needed files may be missing from cygwin

downloaded link from your

Frequently Asked Questions ( post 3) (bin stuff)

anyway the new kitchen is awesome

deserves lots of donations (hint) :)
[Android] leith51:
So if I want to use a script like the ones from other roms I would put bash instead of sh?

As the scripts I've seen write to /sh

sent from outer space
[Android] TMartin:
symlink("/system/bin/bash", "/system/bin/sh");
[Android] dsixda:
Because bash is symlinked as sh, you can refer it as either sh or bash. Sh becomes just an alias for bash.

It's just like calling you $!@#$& instead of Leith ... but people may still call you Leith while others call you the new name ;o)
[Android] dsixda:
Yeah, I noticed that too during my debugging! I wonder if that line in the update-script needs to be moved down (till somewhere when lib is created)???
[Android] dsixda:
I think I know what to do. We likely need to create a lib folder if not present yet. I will get back to this later tonight before I go to sleep.
[Android] dsixda:
Ok, I have slightly modified the file /scripts/build_rom. Do you want to try the attachment?

The new build_rom will create /liba2dp_lower/lib/liba2dp.so instead of /liba2dp_lower/liba2dp.so.

Also, the new update-script will now include:

# liba2dp.so duplicate filename hack for Cygwin
copy_dir PACKAGE:liba2dp_lower SYSTEM:
symlink SYSTEM:liba2dp_upper/liba2dp_upper.so SYSTEM:lib/libA2DP.so

So, it will first copy lib/liba2dp.so to /system. (Thus, the lib folder will be created if it's not already there).

Then it will create libA2DP.so under /system/lib.
[Android] RandyM:
I am using Ubuntu 9.10 x64 running in Virtual box under windows 7 Pro x64. When I try to run the option "Extract the Kernal + Ramdisk" I get the following:

"Folder BOOT-EXTRACTED already exists

Press Enter to continue"

If I then try to build boot option, I get same error stated before...

Thanks again.

RandyM
[Android] dsixda:
Can you try to rebuild the binaries under the /tools/mkboot folder? That may fix the problem:

cd tools/mkboot

gcc -o mkbootfs mkbootfs.c[B] --> produces mkbootfs[/B]

gcc -c rsa.c
gcc -c sha.c
gcc -c mkbootimg.c
gcc rsa.o sha.o mkbootimg.o -o mkbootimg[B] --> produces mkbootimg[/B]
rm *.o

Sorry for all this work, but the problem may be because it is 64-bit... so it may not know how to handle the current executable files.
[Android] RandyM:
NP....when I run this: gcc -o mkbootfs mkbootfs.c --> produces mkbootfs.

I get this:

randym@randym-desktop:~/Desktop/Eris_Stuff/Kitchen/tools/mkboot$ gcc -o mkbootfs mkbootfs.c --> produces mkbootfs

[sudo] password for randym:

gcc: ambiguous abbreviation --

gcc: mkbootfs: No such file or directory

Would it be easier to just switch to 32bit version of ubuntu? I do not mind troubleshooting this if u don't mind...

RandyM
[Android] dsixda:
Haha... no, don't type the "--> produces..." part! Just type the commands, not the comments that were in bold ;)

cd tools/mkboot

gcc -o mkbootfs mkbootfs.c

gcc -c rsa.c
gcc -c sha.c
gcc -c mkbootimg.c
gcc rsa.o sha.o mkbootimg.o -o mkbootimg
rm *.o
[Android] RandyM:
WOW, I feel special...Here is what I got when running above:

randym@randym-desktop:~/Desktop/Eris_Stuff/Kitchen/tools/mkboot$ gcc -o mkbootfs mkbootfs.c
randym@randym-desktop:~/Desktop/Eris_Stuff/Kitchen/tools/mkboot$ gcc -c rsa.c
randym@randym-desktop:~/Desktop/Eris_Stuff/Kitchen/tools/mkboot$ gcc -c sha.c
randym@randym-desktop:~/Desktop/Eris_Stuff/Kitchen/tools/mkboot$ gcc -c mkbootimg.c
mkbootimg.c: In function ‘main’:
mkbootimg.c:221: warning: assignment discards qualifiers from pointer target type

Thanks again!

RandyM
[Android] dsixda:
Yup, that's normal.. don't worry about the warning, I get it too.

Now run the kitchen as before, and see if it works now!
[Android] RandyM:
Folder BOOT-EXTRACTED already exists

init.rc already has a2sd content!

Removing BOOT-EXTRACTED folder ...

Press Enter to continue

I then rerun the option and get this:

Working folder found
Making folder BOOT-EXTRACTED ...

Extracting kernel ...

Extracting ramdisk ...
537 blocks

Modifying init.rc in ramdisk to enable apps to SD ...
/system/bin/a2sd already found
/system/sd/placeholder already found

Found BOOT-EXTRACTED folder, checking contents ...
Found boot.img-ramdisk
Found boot.img-ramdisk.cpio.gz
Found boot.img-kernel

Building ramdisk-boot ...

Working folder found
Attempting to determine kernel base address ...
Using base address of 0x11200000

Building newBoot.img ...
scripts/build_boot_img: line 162: ./mkbootimg: No such file or directory

newBoot.img not created!

Press Enter to continue
[Android] dsixda:
Ok, so it looks like ./mkbootfs worked this time, because it didn't complain about that one.

However, are you SURE that you compiled mkbootimg correctly?? Delete the existing tools/mkboot/mkbootimg file and follow those steps again to compile mkbootimg.
[Android] looktall:
new error...

E: can't chown/mod /system/xbin/busybox
(no such file or directory)
E: failure at line 78: set_perm 0 0 04755 system: xbin/busybox

installation aborted

i know in one of your earlier posts you said this relates to apps2sd, but i'm not trying to use it, so i'm not sure what's happening there.
[Android] dsixda:
Yup, this is a common problem on certain custom ROMs.. even non-kitchen ones.. don't know why. Do you have /system/xbin/busybox in your working folder?

At least the liba2dp.so fix worked!!!
[Android] dsixda:
Apparently it's an SPL issue:

http://xdaforums.com/showpost.php?p=5268241&postcount=12

http://androidcommunity.com/forums/276808-post16.html
[Android] looktall:
thanks for digging up that info.

i had my suspicions that it might have been something like that.

i'll look into installing one of those spl's.

if i go ahead with it, i'll let you know how the rom turns out.
[Android] dsixda:
Ok I've put up a new version to take care of the issues that I have discussed today (liba2dp.so problem and the multiple-platform problems with running the mkboot* and unyaffs binaries).

Please read the release notes carefully, especially if you're a Mac user!! ;)
[Android] dsixda:
Yes, please let me know how it goes.

P.S. No feedback or thank you on the liba2dp thing? I spent my entire evening (+ part of my workday) trying to fix that just for you.

PPS. For those of you having other random issues, please Google first before asking a question. I have realized the majority of my answers have come from doing the Googling for you. So please save me some time. ;-) thanks

Time to take a break :)
[Android] looktall:
sorry.

thanks for helping with that also, it was driving me nuts.

it's just a shame we couldn't get a final working installation due to the spl thing.

i've had a little look at the danger etc spl's and i don't think i want to go down that pathway just yet.

i'll have to be content with the awesome rom i was able to make using your kitchen instead of an awesome rom with sense ui.

i hope more people find this kitchen (i plug it whenever it seems appropriate), there would probably be a lot more people out there satisfied with their roms.

before i discovered your kitchen i had to rely on others just to make a simple rom that is quick, does not require A2SD, and uses the HTC framework and all that goes with it (camera, full exchange sync, etc) and works on 32B hardware.

my options were very limited, now they're virtually unlimited. :D
[Android] dsixda:
Yup, this kitchen was made out of necessity.. I was getting tired of bugging cooks to fix this and that in their ROMs ;-)
[Android] RandyM:
Thanks for your help.....this seems to have fixed my issue for me.....

Working folder found
Making folder BOOT-EXTRACTED ...

Extracting kernel ...

Extracting ramdisk ...
537 blocks

Modifying init.rc in ramdisk to enable apps to SD ...
Copying a2sd to /system/bin ...
Creating /system/sd/ ...
Copying placeholder file to /system/sd ...

Found BOOT-EXTRACTED folder, checking contents ...
Found boot.img-ramdisk
Found boot.img-ramdisk.cpio.gz
Found boot.img-kernel

Building ramdisk-boot ...

Working folder found
Attempting to determine kernel base address ...
Using base address of 0x11200000

Building newBoot.img ...

newBoot.img created
Copying as boot.img to working folder

total 2220
drwxr-xr-x 3 randym randym 4096 2010-04-13 11:02 META-INF
drwxr-xr-x 13 randym randym 4096 2010-04-13 11:44 system
-rw-r--r-- 1 randym randym 2263040 2010-04-13 11:44 boot.img

Removing BOOT-EXTRACTED folder ...

RandyM
[Android] dsixda:
symlink("/system/bin/leith", "/system/bin/newbie");

Fixed it for you :D Just kidding Leith, not making fun of you .. I'm just trying to explain the analogy ;-)

BTW TMartin, sorry, I originally edited your post instead of quoting it... had to fix it back. Doh.. I always do that by mistake with my moderator tools (edit post instead of quote post).
[Android] dsixda:
Are you saying this is the latest Cygwin (July 2011) with the appropriate packages installed?

Sorry, I'll read your post properly in a few hours after my brain is fresh.
[Android] TMartin:
Gotcha...Edit away, just try to make me sound more knowledgeable lol

EDIT: Next time just throw a "Ninja Edit" into my post and it's all good :D
[Android] dsixda:
What's a ninja edit?
[Android] leith51:
I undertood with this bit

Because bash is symlinked as sh, you can refer it as either sh or bash. Sh becomes just an alias for bash.

The rest of it wasn't needed

sent from outer space
[Android] dsixda:
Oh yes that was harsh! - what was I thinking straight out of bed! I will fix that. Just making sure you got it right!! Sorry
[Android] carl1961:
yep but maybe you should test it on another computer if you have one ( I don't want to be some one to mess your setup :( :D)
[Android] themacman1000:
Does the Kitchen support the HTC Aria? (With S-OFF?)

Sent from my HTC Liberty S using a finger
[Android] brswattt:
Hey bud, I've used it on the Aria. It worked for me.
[Android] themacman1000:
Thanks man. Now I just need a computer that I can use... :(

Sent from my HTC Liberty S using a finger
[Android] dsixda:
Carl - good news for you. I have a fix for this coming up.
[Android] dsixda:
Kitchen 0.171 is now up. Please see release notes in Post 2 for details.
[Android] DutchDanny:
First Try

Hi dsixda,

Today i had my first try with cooking a rom, and started with your kitchen.

I have been reading a lot and now was the time to try.

Your first page is excelent. If you READ what you WRITE all goos well. and yess i know how to search.

Now I have my first build ready, it's time to explore more.....

Great work, keep it up
[Android] carl1961:
thanks for all the hard work

new kitchen works Great! no problems
[Android] DroidTh3ory:
First off... Great job with this!!

Second... Anyone have issues with rooting? Proper files, updater-script, etc... No root access in the ROM?

Just me?

Thanks
[Android] dsixda:
What errors are you seeing?

What did you use as a base ROM, and can you post your updater-script?
[Android] TMartin:
Hey dsixda,

Where do I get the information for the eMMC mount points, boot.img?? I can't remember off the top of my head.
[Android] dsixda:
Type the command 'mount' in a terminal or use Android System Information app.
[Android] barclays:
what's the problem with your customized cygwin??? it says "no packages found"
[Android] The Doctor75:
Hello dsixda, use your kitchen (UBUNTU) for quite some time, and I find it fantastic.

I'm no expert, but with the first post and some guides to help I was fine.

I cook only HD2 Leo - ROM CWM - BASIC MIUI.

I start with a ROM.zip CWM, make some changes and then repackages the whole.

I never had problems. Thank you.

Now my attention App2SD + lands on that now seems to work fine for MIUI thanks to some scripts found here on XDA.

In your menu, Under 16 - "Add Apps2SD" includes recent scrpts?

could you please explain?
[Android] hecatae:
just had something weird happen.

from a nandroid backup I grabbed my already rooted with SuperUser 2.3.6.3, via clockwork zip, system.img and my boot.img

I ran it through the kitchen, I then wiped data and cache. re-installed the zip on my LG P500 and was immediately told su is out of date and needs replacing.

the solution was to re apply the superuser clockwork zip...

would the kitchen have replaced the /bin/su with an outdated version?
[Android] dsixda:
What recent scripts?

Just click on the option and it will give an explanation.
[Android] dsixda:
It doesn't add or change your su without you selecting the option ... and even then it asks you before overwriting.
[Android] dsixda:
I have no problem, just search the thread for the error message.
[Android] freak69ize:
Could someone help me out with Cygwin.. Just installed it cuz i was tired of having to upload file then download using VB and Ubuntu.. anyways when i open Cygwin and type in the path c:/cygwin/home/owner/kitchen i get nothing.. this is where it goes right?
[Android] dsixda:
No you don't need to upload and download to transfer files between Virtual Box and your regular OS. You are wasting a lot of time doing that. There is a guide in the FAQ and in Google on how to set it up to transfer to a shared folder on your PC.

If you're having trouble trying to find the folder in Cygwin then follow the instructions in the FAQ. First figure out where you actually unzipped the files --- use Windows file explorer.
[Android] freak69ize:
I put the files for kitchen in the folder i specified earlier.. I followed instuctions in faq and it seems simple enough ( lol ) and ive also tried several times setting up shared folder but never could get it. Guess im not the brainiac i thought i was.. lol

Heres a screenshot of where i put kitchen

View attachment 652700
[Android] dastin1015:
When I installed Cygwin I made sure to dig a little deeper into the folders of the extracted packages until I got to the folder with the funky title and selected that. Then followed the rest of the directions in the Readme.

Sent from my Hero that never dies! ;D
[Android] freak69ize:
Funky title? lol witch one is that?