yashsingh1/xdaforums huggingface dataset:
[Droid Eris Android Development] morrisdan:
Repo and WiFi

Have you guys been able to get the repo to sync up? I have not.

Also before that broke wifi broke. I noticed over at the Cyanogen merge logs that the new version of Android 2.3.4 has to have the wireless device named different.

Looks like they were changing this for every device. I noticed Shed did not do this change in 3.1 and wifi is working.

For example:

http://review.cyanogenmod.com/#change,4968
[Droid Eris Android Development] Conap:
I believe shed had made the changes to his local repo it just hasn't been merged into cm's repo yet.
[Droid Eris Android Development] workshed:
You're correct, and I need to stop doing that because it messed up my whole repo (forgot to rebase and repo start the changes before I made them locally, oops!!) being in a hurry and not thinking.

I'll try to get the changes submitted to CM today, sorry about the hiccup.
[Droid Eris Android Development] workshed:
submitted the patch, just have to wait for Steve (cyanogen) to +2 it then it will be merged into their repo.

http://review.cyanogenmod.com/#change,5154
[Droid Eris Android Development] morrisdan:
Thanks again for keeping the CM side updated too.
[Droid Eris Android Development] Treken:
can anyone tell me what would cause these errors:

mv: cannot stat `/home/treken/htc/': No such file or directory

/home/treken/Desktop/bash script compiler: line 16: cd: /home/treken/android/system/vendor/cyanogen/: No such file or directory

/home/treken/Desktop/bash script compiler: line 17: ./get-rommanager: No such file or directory

I'm running my own script:

#!/bin/bash
cd;
mkdir -p ~/bin;
mkdir -p ~/android/system;
curl http://android.git.kernel.org/repo > ~/bin/repo;
chmod a+x ~/bin/repo;
echo 'export PATH=$PATH:$HOME/bin' >> ~/.bashrc;
export PATH=$PATH:$HOME/bin;
cd ~/android/system/;
repo init -u git://github.com/CyanogenMod/android.git -b gingerbread;
repo sync -j16;
cd;
wget http://download156.mediafire.com/g1dk1npczpsg/mela211mcif9bko/htc.zip;
unzip htc.zip;
mv ~/htc/ ~/android/system/vendor/htc/;
cd ~/android/system/vendor/cyanogen/;
./get-rommanager;
cd ~/android/system/;
repo sync;
. build/envsetup.sh;
lunch cyanogen_inc-eng;
make -j`grep 'processor' /proc/cpuinfo | wc -l` bacon;
cp ~/android/system/out/target/product/inc/update* ~/Desktop;
echo -e [=-build aosp androidmake-=];
[Droid Eris Android Development] gnarlyc:
Chances are... the directories are not there. Check and make sure.
[Droid Eris Android Development] morrisdan:
Build on Mac OS X 10.6

I've been building in Ubuntu 10.10 in VirtualBox then for some reason my VM died and I was curious about just getting it to build in OS X since that is my main system. For some reason I never noticed this documentation from Google but between these 2 sites I was able to get EasyDev to just build right here on my Mac. There are some errors when Lunch and Build executes but it spit a ROM out that works. Pretty cool.

So I did some of this:

http://wiki.cyanogenmod.com/index.php?title=Compile_CyanogenMod_for_Incredible_(Mac)

and a little of this from the Mac section:

http://source.android.com/source/initializing.html
[Droid Eris Android Development] workshed:
Awesome, thank you for sharing that Morris!
[Droid Eris Android Development] workshed:
Make sure get-rommanager is in vendor/cyanogen/
[Droid Eris Android Development] morrisdan:
This is the error I get. I don't expect anyone to know what this mean but thought I'd through it out there. It shows this but the build still continues and the ROM comes out fine. I flash it to my ERIS and all is good.

including device/samsung/crespo4g/vendorsetup.sh

including device/zte/blade/vendorsetup.sh

including vendor/cyanogen/vendorsetup.sh

*** lunch cyangen_desirec-eng ***

sed: illegal option -- r

usage: sed script [-Ealn] [-i extension] [file ...]

sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ...

[file ...]

sed: illegal option -- r

usage: sed script [-Ealn] [-i extension] [file ...]

sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ...

Ok, no 'make clean' will be done.

*** Compiling CM7 ***

sed: illegal option -- r

usage: sed script [-Ealn] [-i extension] [file ...]

sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ...

[file ...]

sed: illegal option -- r

usage: sed script [-Ealn] [-i extension] [file ...]

sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ..
[Droid Eris Android Development] morrisdan:
ERIS Update at Cyanogen for WiFi

Looks like the changes were finally merged for WiFi

http://review.cyanogenmod.com/#change,5154
[Droid Eris Android Development] gersto:
question

ok question, how long should this take to build a ROM from start to finish? I got the script, added the GSBv3.0 ROM, which looks like it saw, ran the script, chose option 1 for the Eris, let it install some packages, and now it looks like it's polling the entire cyanogenmod github. been running for about 2 hours now...

I'm running a 64 Bit Ubuntu 10.4, it's a Turion x2 2.3ghz with 4GB of RAM
[Droid Eris Android Development] morrisdan:
Hang in there. It'll finish. It takes a long time the first time. As long as there is something happening on the screen you're good. Once you sync it once it's fast the second time. Have fun. I do this every couple days for my ERIS. I have used it on my Inc too.
[Droid Eris Android Development] gersto:
Ok good to know. Thanks! I killed it for now but i'll probably let it run when I get home from work tonight
[Droid Eris Android Development] gnarlyc:
EasyDev updated to v9

I'll update the OP as soon as I can remember the credentials for TeamADX. Duh. :)

Quick changelog:

1) added an extra check for correct Java version

2) fixed .zip rename issue

Nothing major. There's still an issue with a file called "=" being created. I'm not sure what that's all about.

https://github.com/gnarlyc/EasyDev-Eris
[Droid Eris Android Development] morrisdan:
sun-java6-jdk

How often do the proprietary files change? Do I need to keep checking if these have changed?

Also it seems as though the script goes out and downloads all Cyanogen's builds for all phones.

I must say installing Java in Ubuntu was a little bit of a trick for being new to Ubuntu. I figured out that in the Ubuntu Software Center it would not show sun-java6-jdk so under the edit menu, then Software Sources, Other Software I enabled all the other choices and then searched again for sun-java6-jdk and it came up as an available application to install. Now the script is running with no sun java errors.
[Droid Eris Android Development] gnarlyc:
The proprietary files will most likely never change again, since the Eris will most likely never get another official update. There's an off chance that some of the libs could change due to being replaced with open source versions, but that's pretty unlikely at this point also.

The script grabs the source, which includes device specific code for various devices. Most of the code is shared and not device-specific, however.

The script should have added the repo and installed java. That was the intention, although I have not tested on a freshly installed Ubuntu yet. I'll get around to that eventually, it's just been a busy week...
[Droid Eris Android Development] jore13:
just fyi, i tried doing this today on a fresh 10.10 and 10.4.1 install today and the script went directly to the proprietary.zip stage. java was not downloaded or installed, and im pretty sure(not positive) that the cm source was not grabbed either. i am interested in this project and will help out where i can, if i can, if you need me.

thanks for your work and i look forward to you completing this.
[Droid Eris Android Development] morrisdan:
Ubuntu on VirtualBox

Something that could help you test is installing Ubuntu in a Virtual environment like VirtualBox from Oracle. It's free and is pretty quick. I am running it on an iMac. Once the Virtual Machine is all setup how you want it then make a copy and you can always fall back to it.
[Droid Eris Android Development] morrisdan:
Hangs on Resolving Deltas

It seems to be hanging here at the resolving deltas:

From git://android.git.kernel.org/platform/external/zlib

* [new tag] upstream/1.2.3 -> upstream/1.2.3

Initializing project CyanogenMod/android_frameworks_base ...

remote: Counting objects: 178728, done.

remote: Compressing objects: 100% (54632/54632), done.

remote: Total 178728 (delta 109928), reused 176880 (delta 108508)

Receiving objects: 100% (178728/178728), 162.26 MiB | 2.96 MiB/s, done.

Resolving deltas: 54% (59651/109928)
[Droid Eris Android Development] gnarlyc:
I'll edit the OP in a bit, but you probably need to 'sudo EasyDev-v'... Sorry about that. I've tested on Ubunutu 10.04, just not on a fresh install. It did check to see if the dependencies were installed and did grab the source.
[Droid Eris Android Development] gnarlyc:
Thanks. Virtual Box is nice. I have a couple of laptops with Ubunutu installed on them and use Hyper-V on my workstation for VMs. I've found Debian 5 to work with HV better than Ubuntu, and honestly like it better anyway. I just have the Ubunutu boxes for testing Android Builder and EasyDev.
[Droid Eris Android Development] gnarlyc:
The initial repo sync can take 2 hours or more. Are you sure that it is hanging there?
[Droid Eris Android Development] jore13:
you dont have to say sorry for anything. your work is great and i appreciate the hell out of all you devs. without you guys i would be stuck with stock 2.1 and have a sad face all day every day. i only wrote my post to inform you not to criticize or bash you. if i have to do a couple of steps on my end to get this working, i have no issue with that, im just trying to run this script and get more familiar with linux at the same time, not an idea i recommend to anyone.
[Droid Eris Android Development] morrisdan:
I'll let it go next time but it sure sits there for over 10 minutes in that one spot with no progress. Also just wanted to say thanks again for all the work you guys are doing on this. You guys have saved the ERIS. I'll keep plugging away and testing your script.
[Droid Eris Android Development] gnarlyc:
Thanks folks for testing and keep on posting your results. I'm here to learn too, and I've learned a lot by working the kinks out of Android Builder and EasyDev. No need to worry about any feelings. I'm in control of those. If you have issues, just let us know!
[Droid Eris Android Development] morrisdan:
Tested it again and it stops there for about 15 minutes then takes off again. It's cranking away.
[Droid Eris Android Development] chicken59:
Umm can you turn all this confusing computer stuff into an executable file so I understand what's going on?

Haha kidding this will definitely encourage more exploring for the potential devs and lazy people like me. Thanks guys.
[Droid Eris Android Development] morrisdan:
I think I'm 99.9% of the way there. Everything was synced and compiled but I keep getting the following at the end where it does not make the ZIP file.

The only error I saw while syncing was:

HOST_BUILD_TYPE=release

BUILD_ID=FRG83

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

find: `drm/java': No such file or directory

find: `drm/java': No such file or directory

And here is the ending where it does not make the ZIP file.

Notice file: packages/apps/HTMLViewer/NOTICE -- out/target/product/desirec/obj/NOTICE_FILES/src//system/app/HTMLViewer.apk.txt

make: *** No rule to make target `vendor/htc/desirec/proprietary/libgps.so', needed by `out/target/product/desirec/obj/lib/libgps.so'. Stop.

make: *** Waiting for unfinished jobs....

Note: Some input files use or override a deprecated API.

Note: Recompile with -Xlint:deprecation for details.

Note: Some input files use unchecked or unsafe operations.

Note: Recompile with -Xlint:unchecked for details.

Would you like to run the squisher? (y-default/n)

/home/dan/Desktop/Android_Builder/EasyDev/CM6/out/target/product/desirec/cyanogen_desirec-ota-eng.root.zip doesn't exist!

Your ROM is in /home/dan/Desktop/Android_Builder/EasyDev/CM6/out/target/product/desirec

root@dan-desktop:/home/dan/Desktop/Android_Builder#
[Droid Eris Android Development] Conap:
Libgps.so is a proprietary file...make sure it got copied into the proprietary files folder if it's not there you can pull it out of a rom or off your phone and stick it in there...
[Droid Eris Android Development] morrisdan:
Is the below output normal?

find: `drm/java': No such file or directory

find: `drm/java': No such file or directory

Regarding those proprietary files the Libgps.so is in the proprietary.zip
[Droid Eris Android Development] Conap:
yes those 2 lines are normal...check to make sure it gets copied from the zip to the source...if you look in your source it should be in vendor/htc/desirec/proprietary/ all the files from the zip should get copied there. It's possible that libgps.so is not copied in the script so you can copy it to that folder on your own.
[Droid Eris Android Development] morrisdan:
I think it's going to work now. I missed the "akmd" in my proprietary.zip file. It's taking much longer to finish compiling now so that's a good thing.
[Droid Eris Android Development] morrisdan:
I am Rolling My Own

Dang boys! This does work. I made my own build from Cyanogen source using your EasyDev-v2 script. This works killer. I flashed my phone and I am up and running with the latest version as of today. Thanks again for all your hard work. You guys are going to make a great team.
[Droid Eris Android Development] gnarlyc:
Great! I'm glad you worked it out. We need more basic checks in place and making the script grab the files from an existing ROM will help to make things smoother.

It's kind of neat to be running 'CM6 stable' instead of SomeoneElsesROM-v6, isn't it?
[Droid Eris Android Development] workshed:
:eek::rolleyes::cool:
[Droid Eris Android Development] gnarlyc:
Workshed, can you polish up the theme integration part of the script? Here's what I have so far...

Add a theme?
1) Purple
2) Vanilla
3) Elegant
4) Pink for the Ladies!

:D
[Droid Eris Android Development] workshed:
We never should have told you about "vendor" and what needed to be in there :rolleyes: ... created a monster!!
[Droid Eris Android Development] morrisdan:
Oh man what a great feeling. I can update at my pleasure. I ran it all day today on the road and no problems. Looks to me like the timestamp with texting is fixed.

So from the Cyanogen Changelog page whats the best way to look for changes to the ROM?

I did a clean wipe and it restored great. It's really not a pain to do a clean wipe any more with Google restoring your apps and ADW backing up your settings.

Once again thanks a ton. Let me know if there is any testing I can do.
[Droid Eris Android Development] crax0r:
Gimme a try? BTW, can you update it to Ubuntu 10.10? Because it works on that too... ty :D
[Droid Eris Android Development] gnarlyc:
Great!

I'm not sure where the changelog is, honestly. I'll look in a bit and see if I can find it.

Feel free to grab any new versions as they come out and give them a try. It's not unusual for something to work fine on a couple of test boxes, but not on someone else's. There are a lot of variables involved...
[Droid Eris Android Development] gnarlyc:
Done. Thanks crax0r.
[Droid Eris Android Development] morrisdan:
I started out fresh and I am getting this. The script did not complete.

*** lunch cyangen_desirec-eng ***

build/core/product_config.mk:190: *** _nic.PRODUCTS.[[device/htc/desirec/desirec.mk]]: "vendor/htc/desirec/desirec-vendor-blobs.mk" does not exist. Stop.

** Don't have a product spec for: 'cyanogen_desirec'

** Do you have the right repo manifest?
[Droid Eris Android Development] brtnbrdr:
I tried this today, and got the same error. I checked the folder, and had a file named "device_desirec-vendor-blobs.mk", but not "desirec-vendor-blobs.mk". I copied that file and renamed it, which got me a little further, but the script was still failing while compiling, and I ran out of time to troubleshoot.
[Droid Eris Android Development] gnarlyc:
I'm posting this version here. It will pause at each step, making it easier to see what errors you are getting. I suspect there's an earlier error that's causing the ones you are posting. Can you try it out?

Also, I'm testing right now with a fresh folder.

Thanks!
[Droid Eris Android Development] eklipze:
For up to the minute changes follow @cmsrc on twitter. Git commits get tweeted for all cyanogen src. :)
[Droid Eris Android Development] gnarlyc:
I figured out the issue. If you rename your existing ROM to desirec_update.zip and place it in EasyDev/CM6/, it will work until I fix the script. Sorry! That's what I get for not testing with a fresh folder before posting...
[Droid Eris Android Development] paperweight:
repo sync - hanging at - CyanogenMod/android_frameworks_base ...

First this script really takes the work out of rolling your own. Awesome work and well researched. I am running vbox to run a fresh ubuntu 10.10 (w/updates) - I have followed all directions for setup and to no avail cannot figure out why durring sync it will hang for quit a long time and eventually error out at this point in the sync ---

From git://android.git.kernel.org/platform/external/zlib

* [new tag] upstream/1.2.3 -> upstream/1.2.3

Initializing project CyanogenMod/android_frameworks_base ...

remote: Counting objects: 178728, done.

remote: Compressing objects: 100% (54646/54646), done.

remote: Total 178728 (delta 109927), reused 176872 (delta 108494)

Receiving objects: 100% (178728/178728), 162.26 MiB | 1.33 MiB/s, done.

Resolving deltas: 54% (59650/109927) ****NEVER MOVES PAST HERE

Anyone have any ideas what maybe going on?
[Droid Eris Android Development] xdabens:
It stops there for about 15-20 minutes then goes on, just let it sit for a while.
[Droid Eris Android Development] paperweight:
Thanks for the quick response - ill sit on it a bit longer and post back success or failure
[Droid Eris Android Development] doogald:
It's still not working for me. First of all, desirec_update.zip was already in that directory, matching the CELB build I had copied already. The script gets an error after it asks if I want to make clean, the same as already reported earlier:

After the squisher question:
[Droid Eris Android Development] roirraW "edor" ehT:
@gnarly, does this script implement this when CFS is chosen as the kernel?

Thank you, sir!
[Droid Eris Android Development] gnarlyc:
I should be able to do a fresh install of Ubuntu today and test from it this afternoon. In the meantime, you could go back to v2, but you'll have to create a proprietary.zip first. The only significant difference between v2 and v3 is that v3 will unzip the existing ROM and the proprietary.zip is not needed. At least that was how it was supposed to work!

OR you could try the debug version that I posted a few posts back and find the earliest error. That would most likely be the root cause of the issue.
[Droid Eris Android Development] gnarlyc:
Ummm. I don't think so. It only compiles the wlan.ko and copies it to the modules directory. It doesn't yet do anything with any other modules. I'll have to look and see if they get in there by some other method.

I should add that to the to-do list.

Thanks!
[Droid Eris Android Development] gnarlyc:
Ok folks. I was able to follow it all of the way through this time. There is an issue with the unzip-files.sh. It will have to be fixed before v3 works. Fall back to v2 for now.
[Droid Eris Android Development] doogald:
Thanks. Can you remind us what you are supposed to do with the proprietary files? The OP is changed and I don't recall exactly?
[Droid Eris Android Development] Team ADX:
Just grab those files from an existing ROM and zip them up to a file called 'proprietary.zip' and place it in the same folder with the script.

OR you can try out v4. I THINK it's fixed now. Let us know if I'm wrong.
[Droid Eris Android Development] doogald:
It is still compiling, several hours later, so I think that it is fixed. Obviously I haven't tested the build, but it certainly is much farther along than it was under v3.

Thanks.
[Droid Eris Android Development] tenzomonk:
as always... good stuff!
[Droid Eris Android Development] neederishelp:
okay, I must be a noob, but on # 3, do we type 'chmod a+x easydev-v5' in the Terminal? (for version 5 ofcourse lol) and the same with step 5?
[Droid Eris Android Development] jore13:
short answer, yes

first type chmod a+x easydev-v5

press enter

type sudo ./easydev-v5

press enter

and youre off.
[Droid Eris Android Development] neederishelp:
that is not happening... I have posted a screenshot of what I have.

I'm running Ubuntu 10.04 btw
[Droid Eris Android Development] Conap:
Are you sure the script you downloaded is in the same folder that you are in at your terminal? It is not finding the script....so either redownload it or figure out where you put it on your pc.
[Droid Eris Android Development] neederishelp:
how do i check that? I'm a super noob for ubuntu haha

how do i go into a folder from the terminal?
[Droid Eris Android Development] jore13:
after zooming in on the screenshot, it looks like you havents moved the file from the downloads folder

so from terminal

cd Downloads

chmod a+x easydev-v5

sudo ./easydev-v5

those three lines and then you should be good.

also, you can tell which directory you are in by looking at what it says right before the $.
[Droid Eris Android Development] neederishelp:
ah, okay, Thank you, I just didn't know how to go into the download directory from terminal. it's running right now :)

Edit: it's running all the way through, but the ROM won't show up. it should show up in easydev/CM6, correct? well, i'm only getting a blank folder :(

Let me try this with CELB, instead of tazz froyo, and i'll see if I get any changes.
[Droid Eris Android Development] roirraW "edor" ehT:
Deleted post, user error. :)
[Droid Eris Android Development] roirraW "edor" ehT:
No, thank YOU!
[Droid Eris Android Development] gnarlyc:
The last line that prints in the terminal should tell you where the ROM is. EasyDev/CM6 certainly should not be a blank folder though. That's where all the action is!
[Droid Eris Android Development] morrisdan:
Just ran v5 fresh and it finished with no errors and spit out the ROM. Will flash today when I get a sec. Looking good.

Here's a question for you. Since I select the same options each time how can I, well long story short midnight CRON job. Ha. I know one step at a time.

Better yet can GIT do an automated online compile and then we just get a URL and an update button on our phone. Ha again on that one.

Thanks again for this script. What a blast. Loving it.
[Droid Eris Android Development] gnarlyc:
Awesome. I need to run it again and flash the ROM myself. I've been running the one that the script spit out a week or so ago.

Just walk through the script and comment out or delete all of the questions and replace them with what your answer would have done. For example...

Replace this:

echo ""
echo " Which kernel would you like to compile into the ROM? "
echo ""
echo " 1. DecafuctCFS current (default)"
echo " 2. DecafuctBFS current "
echo " 3. stock HTC "
echo ""
echo -n "Please enter your choice: "
read opt
case $opt in
1) export KERNEL_REPO=https://github.com/Conap30/htc_kernel_desirec_cfs.git; export KERN_SOURCE_DIR=htc_kernel_desirec_cfs;;
2) export KERNEL_REPO=https://github.com/Conap30/htc_kernel_desirec_bfs.git; export KERN_SOURCE_DIR=htc_kernel_desirec_bfs;;
3) export KERNEL_REPO=https://github.com/gnarlyc/desirec_2.6.29.git; export KERN_SOURCE_DIR=desirec_2.6.29;;
*) echo "Invalid option";;
esac

With this:

export KERNEL_REPO=https://github.com/Conap30/htc_kernel_desirec_cfs.git; export KERN_SOURCE_DIR=htc_kernel_desirec_cfs

if you always want the CFS kernel.

Easy peasy. :)