yashsingh1/xdaforums huggingface dataset:
[LG Optimus 2x] temasek:
LOL :D This is my I think 3rd free thanks.....returned favour.

Anway I was doing "repo sync" when that happened during syncing.....quite a few times over fetching projects (xx/258)

Do I need to worry?
[LG Optimus 2x] Rusty!:
Well it will try and get them again next time you sync it, so it's not all bad. I guess as long as it's not the P900, star, cyanogen or pre-built repos it'll be OK anyway.

See if it will build :D
[LG Optimus 2x] temasek:
Okay......I just had a failed repo sync. :)

Time for bed.....enough fun for today! :D:D:D
[LG Optimus 2x] Hooolm:
Great guide, constructive comments, nice thread :D

On MacOSX 10.6.7 I followed this guide for bravo to the letter, EXCEPT the following:

1. In the "Quick Symlink" section I added the red line, because I got a bunch of compile errors regarding 10.5 not found

cd /Developer/SDKs
sudo ln -s MacOSX10.6.sdk/ MacOSX10.4u.sdk
[COLOR="DarkRed"]sudo ln -s MacOSX10.6.sdk/ MacOSX10.5.sdk[/COLOR]

2. I didn't extract the proprietary files, I just extracted the p990 dir from koush-proprietary_vendor_lge-a43238f.zip

3. Configuring the build I changed the device from bravo to p990, of course.

cd /Volumes/CyanogenModWorkspace/android/system/
cp ./vendor/cyanogen/products/cyanogen_p990.mk ./buildspec.mk
. build/envsetup.sh
lunch cyanogen_p990-eng

I wound up with a 92mb cyanogen_p990-ota-eng.soho.zip, so I guess it went alright, but I haven't got the time to flash it now - or rather I haven't got time to restore my device if I've screwed up...

It took about two hours to compile (13" 2009 MacBook Pro, 2.53ghz, 4gb ram).

Occasionally glancing over at the screen output, I felt I saw a lot of NOTICE THIS and warning:that ... is that expected?

If it works, I'm thoroughly impressed it's that (relatively) easy :)
[LG Optimus 2x] aMpeX:
Thanks for the feedback. Warnings and notices are mostly irrelevant (if you compare an unsigned integer to an integer you will get one for example) the real deal are errors, which interrupt the build process anyway.

I compile on a Q6600@3Ghz with Ubuntu 11.04 and building from scratch took about 20-25 Minutes.
[LG Optimus 2x] Rusty!:
According to this: http://groups.google.com/group/android-building/browse_thread/thread/13a7bdfefd971219?pli=1

It's likely to be a connectivity issue.
[LG Optimus 2x] magicmarkus:
how can i fix this???
[LG Optimus 2x] Rusty!:
Try again later seems to be the best option.
[LG Optimus 2x] zeussn:
I'm having similar issues trying to do the 'repo sync'. So it seems that is a problem with github...

Sometimes I get erros from platform/bootable/bootloader/legacy, others from platfrom/bootable/diskinstaller but the error is the same "fatal: error: bad line length character: git:".
[LG Optimus 2x] temasek:
Same issue here.
[LG Optimus 2x] destilant:
Yeah looks like some external git repositories are down at the moment
[LG Optimus 2x] Harsh:
its not that repo is down, all working fine with me. its just internet connection problem
[LG Optimus 2x] destilant:
Nope it isnt, try to re-init your git repo and you will see it ;)
[LG Optimus 2x] temasek:
repo init -u git://github.com/CyanogenMod/android.git -b gingerbread

Getting repo ...

from git://android.git.kernel.org/tools/repo.git

fatal: protocol error: bad line length character: git:

:(:(:(:(

LOLz :D
[LG Optimus 2x] ironman159:
Both of you are in Germany that is interesting.
[LG Optimus 2x] magicmarkus:
Yes me too german people
[LG Optimus 2x] microcris:
Hi there :)

I tried what is in the manual e everything worked as it should work.

Now I'm trying to get in the next level, that is, customize the rom.

Has anyone have a good manual for that?
[LG Optimus 2x] Homer314:
Hi, take a look to the kitchen in the chef -> android section :)
[LG Optimus 2x] Imperticus:
I keep getting this error when I'm compiling the ROM (up till this everything else was fine).. any help would be appreciated :)

make: *** No rule to make target `out/target/product/p990/obj/lib/libaudio.so', needed by `out/target/product/p990/obj/SHARED_LIBRARIES/libaudioflinger_intermediates/LINKED/libaudioflinger.so'. Stop.
[LG Optimus 2x] Rusty!:
Get the proprietary files from https://github.com/koush/proprietary_vendor_lge/tree/gingerbread/p990
[LG Optimus 2x] aMpeX:
Like Rusty said. You are missing proprietary files. Fetch them property and make sure your directories are right
[LG Optimus 2x] Imperticus:
yaay..made my first KANG, running it now :D

Did it on my mac, maybe I should make a guide for mac users?
[LG Optimus 2x] sibbor:
Anyone got instructions for how I compile the kernel? Gonna do some more googling, but I think it be good if we had the instructions in here.

EDIT: failed, so far. Gonna keep on trying at a later point.

Just found out you can remove all unwanted devices, so I thought I share it with the rest of you who are unaware of how to do it. What you need to do is commenting out all other devices than P990 and star-common (I also left P999) in the following files with an text editor (nano etc.):

~/android/system/.repo/manifest.xml
~/android/system/vendor/cyanogen/vendorsetup.sh
~/android/system/vendor/cyanogen/products/AndroidProducts.mk

Afterwards, do an an repo sync in the ~/android/system:

repo sync
[LG Optimus 2x] Rusty!:
I guess this would be the best thing to look at, although you'd need to use the P990 source: http://wiki.cyanogenmod.com/wiki/Building_Kernel_from_source
[LG Optimus 2x] MaXmeOliver:
Can this be done on Linux Mint, which is based on Ubuntu?
[LG Optimus 2x] Rusty!:
Don't see why it couldn't be.
[LG Optimus 2x] dieghen89:
Someone can upload somewhere the repo file? Both http and git sections in kernel.org are down after the last week attack on that domain :/

Thanks ;)
[LG Optimus 2x] temasek:
Not too sure but maybe u can force a continued sync even if its fails to sync.

repo sync -f

I will try it myself when I'm back home.

EDIT: repo syncing now with -f, seems to be working :)
[LG Optimus 2x] dieghen89:
Mmh i haven't written very clearly :P I'm preparing all the dirs/tools/git/ to build cyanogenmod and vorkkernel, but the repo binary is not available...

I need the file :P i don't want to translate the repo commands in git meanwhile they -kernel.org guys- let again up the server, too much time to read documentation :P
[LG Optimus 2x] temasek:
Oh ic.................sorry about that.
[LG Optimus 2x] p.valenta:
Repo Binary moved

Hi,

very nice tutorial. I just found repo binary has moved to another location:

curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo

Maybe you can update first post.
[LG Optimus 2x] aMpeX:
done, thank you!
[LG Optimus 2x] smashman42:
Hi, I just got a P990, already had a build environment setup for another phone so was just going to extract proprietary files as I did for it - can you pull them off a stock LG 2.3.4 install rather than CM7?

I'm assuming official 2.3.x builds weren't out when the guide was written hence needing to extract from CM, cause all other phones you extract proprietary files from a stock image AFAIK. Or is there a specific reason not to extract from the stock GB rom?

Side note: Had you considered submitting this to the CM wiki under the currently blank O2X build section? Might be redundant with CM9 in the works.
[LG Optimus 2x] aMpeX:
I'm not sure if you can pull the proprietary files from a device running stock, but, if i remember correctly, if you clone the repository by koush as described in the tutorial you might be able to skip that part entirely.

You can try though, if it works, just drop me a line here and I'll alter the tutorial accordingly.

about the cm9 wiki, I thought about that, but with the CMC (Cyanogenmod compiler) in its alpha stages that part of the wiki might become obsolete altogether.
[LG Optimus 2x] smashman42:
Hrm, it built, boots & seems normal, except the status bar process keeps force closing so no notifications etc

audio works, camera works, camcorder worked but force closed when I ended the recording, wifi, mobile data & sms all work - figure the status bar thing could be a temp thing at the time I synced (1.5hrs ago) maybe? Anyone else run a build lately & run into that?

What else should I check that runs off proprietary files? I'm new to this phone (had it a day) so don't know what to look for broken - I expected camera, audio, BT, & HDMI, tho isn't HDMI broken in CM7.1 anyway for 1080p?
[LG Optimus 2x] temasek:
Were u from stock prior to flashing your own cm7 compiled build?
[LG Optimus 2x] smashman42:
stock 2.3.4 yeah, do I have to manually format /system first? did the usual factory reset wipes
[LG Optimus 2x] temasek:
Full wipe including /system if u coming from stock rom is necessary.
[LG Optimus 2x] smashman42:
hrm, acts the same after formatting /system - meh I'll just flash 7.1 stable & get used to the phone first for a few days
[LG Optimus 2x] Wing_Zero85:
anyone tried to buil ics souces??

it's enough to sync with repo "-b ics"
[LG Optimus 2x] Rusty!:
You can't, there is no P990 build candidate for ICS.

Also, re the above: You can get the latest props from Git: https://github.com/koush/proprietary_vendor_lge/tree/gingerbread/p990

Not sure the 7.1 stable props will be up to date enough. Also, formatting system is a waste of time, it happens automatically on install.
[LG Optimus 2x] temasek:
From Cyanogen Forum (O2x)

http://forum.cyanogenmod.com/topic/32479-cyanogenmod-7-for-the-lg-optimus-2x-v710-9-oct-2011/
[LG Optimus 2x] Rusty!:
One of the first lines of the updater-script is to format /system itself ;)
[LG Optimus 2x] temasek:
That's before it backup stuffs first. Once backup then it does a format of /system then copy system files then lastly restore files.

Possibly recommendation of wiping /system is to ensure NOTHING is backup.
[LG Optimus 2x] Wing_Zero85:
I've got this error when I try to sync the cyanogen repo:

anyone can help me?
[LG Optimus 2x] aMpeX:
recently I read something about github having problems. Just check again tomorrow and see if it works. If the problem persists, check back with us
[LG Optimus 2x] temasek:
This is currently my workaround for the repo sync issue.

1. Add the following to your local_manifest.xml

<?xml version="1.0" encoding="UTF-8"?><manifest>

<remove-project name="CyanogenMod/android_prebuilt" />

</manifest>

2. If your /android_prebuilt is good and already synced then all is good but if not then cd to your repo folder and perform clone as follows

git clone https://github.com/CyanogenMod/android_prebuilt.git -b gingerbread
[LG Optimus 2x] Wing_Zero85:
Thanks! So the solution was to simply avoid the automatic sync of the prebuilt project and do the cloning by myself!

Thanks temasek! You're the man! ;)

EDIT: You've forgot to say that is necessary to rename the android_prebuild folder into "prebuilt" .

Another question Temasek,

I've got this error:

[SOLVED] I changed the required SDK version manually

and then, I've got also thi error:

[SOLVED] renamed the android_prebuilt folder into "prebuilt"
[LG Optimus 2x] temasek:
I guess that u knew thereafter so I just add the main stuff :D
[LG Optimus 2x] Wing_Zero85:
no, first time build :D build now. 8 cores working @ 100% & 5GB of RAM used :cool:
[LG Optimus 2x] temasek:
I think I've successfully ported CM's fix for Github Sync issues meant for ICS over to GB.

Just a simple copy over of the manifests.xml changes by CM to local_manifest.xml. Its even better than my own workarounds.

1. Add the following into your local_manifest.xml in ~/android/system/.repo

<?xml version="1.0" encoding="UTF-8"?>
<manifest>

<remote name="github-https"
fetch="https://github.com/"
review="review.cyanogenmod.com" />

<remove-project name="CyanogenMod/android_prebuilt" />

<project path="prebuilt" name="CyanogenMod/android_prebuilt" remote="github-https" />

</manifest>

2. Your repo sync will sync correctly using git and when it syncing the above, it will change to https instead of git.

Above info for KANGers.
[LG Optimus 2x] Wing_Zero85:
I'm going to post the same solution, but you beat me on time!

Yep! with this manifest, all is working.
[LG Optimus 2x] temasek:
Yeah.

Whoever post the solution is not important. What's important is we all benefit. :)
[LG Optimus 2x] Wing_Zero85:
yep ;) absolutely!
[LG Optimus 2x] temasek:
And FuZZ_ went 1 step ahead and submitted a GB's version of the fix

Change I847a44bd: Add second github remote and only pull prebuilt via https

http://review.cyanogenmod.com/#change,11428
[LG Optimus 2x] Wing_Zero85:
that it is exactly what we've done! :)
[LG Optimus 2x] Rusty!:
Hmm, I still can't sync, even after picking the fix.
[LG Optimus 2x] temasek:
Try my method which I posted.
[LG Optimus 2x] Rusty!:
Oh yeah I'm sure that's fine, just commenting on the 'official' one :)
[LG Optimus 2x] temasek:
This one ...............
[LG Optimus 2x] temasek:
I haven't try the official method but its pretty much useless unless merged cuz when I sync its gone again. So I stick to my method for now.

Hehe :D
[LG Optimus 2x] Rusty!:
It shouldn't go unless a change is made to that particular repository. Or you could create a new branch so it applies the pick automatically.

Looking at the code review, the first sync after applying it needs to be forced, so giving that a try now.

Edit: Success.
[LG Optimus 2x] JustinBP:
Could I please get a little more direction on where this file "local_manifest" is I have changed what I thought it was and that made things worse.
[LG Optimus 2x] temasek:
My latest workaround is as follows:

1. Insert the following lines into "local_manifest.xml" and copy over to your repo directory, usually in ~/android/system/.repo

<?xml version="1.0" encoding="UTF-8"?>
<manifest>

<remote name="github-https"
fetch="https://github.com/"
review="review.cyanogenmod.com" />

<remove-project name="CyanogenMod/android_prebuilt" />

<project path="prebuilt" name="CyanogenMod/android_prebuilt" remote="github-https" />

</manifest>

2. Repo sync as per normal. It will auto change to use https when syncing prebuilt stuffs.
[LG Optimus 2x] JustinBP:
Thank you temasek for the fast reply though I don't think I worded my question right, my fault.

See I can't find anything named "local_manifest.xml" and I have found a few manifest.xml.

I do have a manifest.xml in ~/android/system/.repo and when I just add the lines to it I get errors trying to sync.
[LG Optimus 2x] temasek:
Ahh... U have to create one.

Anyway I attach the local_manifest.xml for u here. Unzip the zip file and copy to your ~/android/system/.repo
[LG Optimus 2x] JustinBP:
Thank you so very much that fixed it.
[LG Optimus 2x] superdild:
just flashed my first self-kanged rom and it works fine :D

thanks to cyanogen-team and ampex, temasek, rusty...... all users in this thread.

and now it's cherry-pick time:p

saluti, mario
[LG Optimus 2x] 84matte84:
cant sync....

Hi guys,

I'm trying to download the source code to build a custom kernel for my LG-P990 but even if I have follow a lot of "how-to" even the one in this post I still can't succeed...

I have also downloaded local_manifest suggested but still can't finish the repo sync correctly...

The end is always the same...it stop at

From h ttp s://github.com/CyanogenMod/android_prebuilt

* [new branch] gingerbread -> github-https/gingerbread

* [new branch] gingerbread-release -> github-https/gingerbread-release

* [new branch] ics -> github-https/ics

* [new tag] cm-7.1.0 -> cm-7.1.0

what should I do??

thank you
[LG Optimus 2x] temasek:
Are u stuck at the android prebuild? If yes read this about adding stuff to local_manifest.xml

http://xdaforums.com/showpost.php?p=20891583&postcount=3
[LG Optimus 2x] Rusty!:
Weird, the problem that was causing that was fixed about a week ago.

Ps. Downloading the CM source isn't going to help you to build a kernel, the kernel source is separate.
[LG Optimus 2x] 84matte84:
I'm already using it but still have the same problem...

I know but I have not found any guide on how to compile only the kernel so I decided to download the whole CM...

so how to fix this problem?
[LG Optimus 2x] Rusty!:
You can get rid of the local_manifest.xml, it's not needed any more (unless you're using it for something else).

Kernel tutorial thread: http://xdaforums.com/showthread.php?t=1227241
[LG Optimus 2x] temasek:
Rm the whole prebuild folder?

Btw there is a thread by pastime1971 for building cm kernel for p990.

Edit: I'm slow... Lolz

Omg didn't even realized the workaround not needed already.

Thanks Rusty!
[LG Optimus 2x] 84matte84:
Thank you for the link to the guide....I'll follow it but I would like also to fix this problem to understand what I'm doing wrong...

I downloaded the local_manifest and put it into the

~/android/system/.repo/

folder so now in such a folder I have

bash-4.2$ ll ~/android/system/.repo/

total 28

drwxrwxr-x. 6 matteo 4096 Jan 20 11:53 .

drwxrwxr-x. 4 matteo 4096 Jan 20 10:36 ..

-rw-r--r--. 1 matteo 332 Jan 20 08:22 local_manifest.xml

drwxrwxr-x. 3 matteo 4096 Jan 20 08:20 manifests

drwxrwxr-x. 9 matteo 4096 Jan 20 08:22 manifests.git

lrwxrwxrwx. 1 matteo 21 Jan 20 08:20 manifest.xml -> manifests/default.xml

drwxrwxr-x. 19 matteo 4096 Jan 20 09:15 projects

drwxrwxr-x. 7 matteo 4096 Jan 20 08:20 repo

and in the local_manifest I have

<?xml version="1.0" encoding="UTF-8"?>
<manifest>

<remote name="github-https"
fetch="https://github.com/"
review="review.cyanogenmod.com" />

<remove-project name="CyanogenMod/android_prebuilt" />

<project path="prebuilt" name="CyanogenMod/android_prebuilt" remote="github-https" />

</manifest>

but when I run the repo sync always the same error as before...

what am I doing wrong??

thank you again...
[LG Optimus 2x] Rusty!:
You need to use 'repo sync -f'

BUT

You no longer need that file to sync properly. Bin it.
[LG Optimus 2x] Imperticus:
you can delete everything and start from scratch again.
[LG Optimus 2x] 84matte84:
There is something that I'm not understanding here...

Erased all the directories and:

mkdir -p ~/bin
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
chmod a+x ~/bin/repo
echo $PATH|grep ~/bin>/dev/null||export PATH="${PATH}":~/bin
export PATH = ~/bin:$PATH
mkdir -p ~/android/system
cd ~/android/system
repo init -u git://github.com/CyanogenMod/android.git -b gingerbread

Then created the local_manifest:

vim ~/android/system/.repo/manifest.xml

with the following:

<?xml version="1.0" encoding="UTF-8"?>
<manifest>

<remote name="github-https"
fetch="https://github.com/"
review="review.cyanogenmod.com" />

<remove-project name="CyanogenMod/android_prebuilt" />

<project path="prebuilt" name="CyanogenMod/android_prebuilt" remote="github-https" />

</manifest>

Then I launch the repo sync -j8

and again it hungs at

From https://github.com/CyanogenMod/android_prebuilt
* [new branch] gingerbread -> github-https/gingerbread
* [new branch] gingerbread-release -> github-https/gingerbread-release
* [new branch] ics -> github-https/ics
* [new tag] cm-7.1.0 -> cm-7.1.0

And hung there for hours and hours until I kill it...

what am I doing wrong?

Sorry if I can't make you suggestions work and thank you again for your help :D
[LG Optimus 2x] Rusty!:
Seriously, you're not listening, this will be the third time I've said it:

STOP USING LOCAL_MANIFEST.XML

I don't see how I can make it any clearer.
[LG Optimus 2x] 84matte84:
ok but using the default manifest is the first thing I did and it behave the same it hungs the same way...

---------- Post added at 10:46 AM ---------- Previous post was at 10:03 AM ----------

After local_manifest.xml deletion...

"repo sync -j8" produce:

bash-4.2$ repo sync -j8
Fetching projects: 96% (209/217)

and hungs up at 96%

While running "repo sync -f" produce:

bash-4.2$ repo sync -f
Fetching projects: 100% (217/217), done.
fatal: This operation must be run in a work tree
Traceback (most recent call last):
File "/home/matteo/android/system/.repo/repo/main.py", line 366, in <module>
_Main(sys.argv[1:])
File "/home/matteo/android/system/.repo/repo/main.py", line 346, in _Main
result = repo._Run(argv) or 0
File "/home/matteo/android/system/.repo/repo/main.py", line 137, in _Run
result = cmd.Execute(copts, cargs)
File "/home/matteo/android/system/.repo/repo/subcmds/sync.py", line 443, in Execute
project.Sync_LocalHalf(syncbuf)
File "/home/matteo/android/system/.repo/repo/project.py", line 974, in Sync_LocalHalf
self._InitWorkTree()
File "/home/matteo/android/system/.repo/repo/project.py", line 1757, in _InitWorkTree
raise GitError("cannot initialize work tree")
error.GitError: cannot initialize work tree

now...?
[LG Optimus 2x] Rusty!:
I've had syncs freeze for no reason using -j sometimes. Give just 'repo sync' a try.
[LG Optimus 2x] 84matte84:
Ok the repo sync seems to work fine but I still have an error as before with repo sync -f

bash-4.2$ repo sync
Fetching projects: 100% (217/217), done.
Syncing work tree: 3% (8/217) fatal: This operation must be run in a work tree
Traceback (most recent call last):
File "/home/matteo/android/system/.repo/repo/main.py", line 366, in <module>
_Main(sys.argv[1:])
File "/home/matteo/android/system/.repo/repo/main.py", line 346, in _Main
result = repo._Run(argv) or 0
File "/home/matteo/android/system/.repo/repo/main.py", line 137, in _Run
result = cmd.Execute(copts, cargs)
File "/home/matteo/android/system/.repo/repo/subcmds/sync.py", line 443, in Execute
project.Sync_LocalHalf(syncbuf)
File "/home/matteo/android/system/.repo/repo/project.py", line 974, in Sync_LocalHalf
self._InitWorkTree()
File "/home/matteo/android/system/.repo/repo/project.py", line 1757, in _InitWorkTree
raise GitError("cannot initialize work tree")
error.GitError: cannot initialize work tree

What should I do now?
[LG Optimus 2x] Rusty!:
Hmm, something's broken :D

I guess you could look at the files and line numbers in question and see what they're referring to?
[LG Optimus 2x] cancerouspete:
it may sound too simple, but i was dealing with this same issue just a few ago. despite how many times i delete started fresh, or every dependency i was sure to download, got this error.

after reading a tip, rebooted the computer, ran repo init again, then repo sync and no errors! only thing changed between the error, and the fix, was the reboot.
[LG Optimus 2x] spraus:
fatal: This operation must be run in a work tree (FIX)

I kept getting the above error as well but as i figured out after a little searching, Python was pissed that I had the folder open (aka in another cygwin terminal). As soon as I closed the terminal it started working fine, I had to re-run my "repo sync" command but after that it was all fine.

Hope this helps;

SPraus
[LG Optimus 2x] mrmaffen:
thanks for the tutorial :) really helped me out.

the problem im facing right now is:

"make: *** Keine Regel vorhanden, um das Target »out/target/product/p990/obj/lib/libaudio.so«,

benötigt von »out/target/product/p990/obj/SHARED_LIBRARIES/libaudioflinger_intermediates/LINKED/libaudioflinger.so«, zu erstellen. Schluss.

make: *** Warte auf noch nicht beendete Prozesse...

"

which is german for "no rule to make target" ... ive downloaded every proprietary file you said and im pretty sure i placed it in the right folder. /lge/p990/proprietary/ contains the files from the github koush link. of course i also extracted the files from my phone (using temaseks kang on my phone right now).

plz help :) thanks

edit: just found out that i mistakenly put the propfiles into /device/lge/p990 and not into /vendor/lge/p990, where it belongs -.-
[LG Optimus 2x] Rusty!:
Remove the props you got, put the attached file in the .repo folder (hidden) and sync again. It will pull down props and put them in the proper place. Just rules out any errors :)
[LG Optimus 2x] mrmaffen:
awesome! that solved my issue :) thank you very much. just flashed my first own kang :> now on to learning how to properly cherrypick stuff and compile ics builds
[LG Optimus 2x] owain94:
i am having only a laptop here but i get errors when i try to fetch the repo (not ever synced it on this pc)

can someone try to make a new dir a try a repo sync??

i always get this on almost every repo

error: RPC failed; result=18, HTTP code = 2002 MiB | 81 KiB/s

fatal: The remote end hung up unexpectedly

fatal: early EOF

fatal: index-pack failed

warning: http unexpectedly said: '0000'

EDIT: oops wrong topic sorry!