yashsingh1/xdaforums huggingface dataset:
[LG Optimus 2x] alakyr:
got this when patching

alex@alex-ubuntu:~/cm10.1/.repo$ patch -p1 < repo_deprecated_1.19.patch
patching file repo/manifest_xml.py
Hunk #1 FAILED at 346.
1 out of 1 hunk FAILED -- saving rejects to file repo/manifest_xml.py.rej

but repo sync seems to work good for now

at the end of the rapo it say this

Fetching projects: 100% (352/352), done.
Deleting obsolete path /home/alex/cm10.1/device/lge/p990
Deleting obsolete path /home/alex/cm10.1/device/lge/star-common
Deleting obsolete path /home/alex/cm10.1/kernel/lge/star
Deleting obsolete path /home/alex/cm10.1/vendor/lge
[LG Optimus 2x] Raum1807:
In your case it is still deleting the necessary directories.

Check with

$ repo version

which version you have. It should read

repo version v1.12.0
(from https://gerrit.googlesource.com/git-repo)
repo launcher version 1.19

If you are still on 1.18 you have to use the copy command it shows when building.

For example

... A new repo command ( 1.19) is available.
... You should upgrade soon:

cp /home/jenkins/android/workspace/android/jellybean/.repo/repo/repo /var/lib/jenkins/bin/repo

But don't use this copy command. It's a different path on every machine. Use the one it shows on yours. You can see this message e.g. when you use

$ brunch p990

And then wait a bit and as soon as it shows this message on your screen break out of the building process with Ctrl+C and use your own cp /home/... command to upgrade repo to 1.19.

After you upgraded repo to 1.19 successfully just repeat all the steps described in my last post.
[LG Optimus 2x] alakyr:
my repo was alrerady update but, i repeat, it didn't work

repo version v1.11.1
(from https://gerrit.googlesource.com/git-repo)
repo launcher version 1.19
(from /home/alex/bin/repo)
git version 1.7.10.4
Python 2.7.3 (default, Sep 26 2012, 21:51:14)
[GCC 4.7.2]
[LG Optimus 2x] Raum1807:
Launcher is up-to-date, the rest is not. You are on code version 1.11.1, I am on 1.12.0. The patch doesn't work then. You have to update the repo code too to make it work.

Try

$ cd ~/bin
$ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
$ chmod a+x ~/bin/repo

Then cd to your working dir and check the version

$ cd ~/cm-10.1
$ repo version

Execute the cp code line shown in the terminal window and check again that you are on 12.0 and 1.19.

Finally give the patch another try with

$ cd ~/cm-10.1/.repo
$ patch -p2 < repo_deprecated_1.19.patch

Then test it with

$ cd ..
$ repo sync

Let me know if it works.
[LG Optimus 2x] alakyr:
cp code line don't update my code version...
[LG Optimus 2x] Raum1807:
No problem. if curl, repo init and cp do not help getting the correct update then maybe for the time being google went back to offering version 1.11.1 only. The advantage of v1.11.1 is that you don't get the deprecated message. This is in v1.12.0 only.

One last thing: version 1.11.1 doesn't know of any directory called 'local_manifests'. You must move the 'local_manifests.xml' file back to '.repo' to create fully functioning ROMs.
[LG Optimus 2x] alakyr:
syncing repo right now...i just noticed this:

From https://gerrit.googlesource.com/git-repo
cd81dd6..a9f11b3 stable -> origin/stable
* [new tag] v1.12.0 -> v1.12.0
[LG Optimus 2x] Raum1807:
This is great! Now you have the most recent version. 357 projects is no problem. It has probably added the git-repo repo temporarily to the number. Next time when you sync it will show 356 projects again.

Happy building!
[LG Optimus 2x] alakyr:
yes 356 again now butnl i still get the warning after the first sync

Inviato dal mio LG-P990 con Tapatalk 2
[LG Optimus 2x] Raum1807:
But you didn't want to share the warning itself? Or is it maybe the deprecated warning? Well, then ask yourself: what could you possibly do besides reading the last few pages again? ;)
[LG Optimus 2x] alakyr:
yeah i know but i was falling asleep and i didin't connected immediately xD

now i leave the pc on and i try to do the stuff you told me before via terminal from the office ;)
[LG Optimus 2x] amardeepsingh77:
Hi Raum,

Thank you for the guide on how to build your own cm10.1. I am able to build now, however wanted to know if I want to use a different kernel, say pengus's kernel for old BL, how can I incorporate that into the builds that I make? Thanks
[LG Optimus 2x] alakyr:
worked now!
[LG Optimus 2x] Raum1807:
This is how I would start...

Edit the local_manifest.xml file to your needs.

The line to edit:

<project name="CyanogenMod/lge-kernel-star" path="kernel/lge/star" remote="github" revision="cm-10.1"/>

change it to

<project name="pengus77/lge-kernel-star" path="kernel/lge/star" remote="github" revision="kk-old-bl"/>

Always double-check that github address and revision are correct. Must admit, that I haven't tested this new revision yet. But I did build a ROM with a patched old-bootloader kernel (revision jb-412) for CM10.1 sometime last week out of pure curiosity - I changed a lot more than just the line above. But it should be a good starting point for you.

pengus77 hasn't made a CM10.1 kernel publicly available (yet), so it is possible that you run into some build errors you'd have to correct when you build from his sources for CM10.1. Or that some anomalies happen when the system is up and running.

Please provide feedback how this works out for you so others can learn from your experience.
[LG Optimus 2x] orbital_71:
Raum, can give some advise or guide for installing ubuntu 12.10 desktop i386 etc. partition size thought we can install through wubi. Tks
[LG Optimus 2x] Raum1807:
I wouldn't recommend installing Ubuntu with wubi. First, you won't be free in your choice because you need Windows pre-installed. And if it is Win 32-bit that you are running, then your only choice is a 32-bit Ubuntu. And second, I had serious lags while using Ubuntu 12.10 with wubi on a laptop a few weeks ago. Whenever the system was trying to write to the SSD on the laptop - it paused. Had to change the scheduler to deadline to improve the situation.

The best thing you can do is to install Ubuntu on its own partitions.

Technical requirements for Ubuntu 64-bit and building ROMs:

fast 64-bit CPU

more than 4 GB RAM

fast HDD

more than 50 GB space left on HDD

First steps:

Resize/delete your old partitions to gain the required space. Use Gparted or the Windows 7 system tool to do that. Or add an HDD to your computer. Install Ubuntu 64-bit and install it next to your Windows installation. Then create the needed partititions in the install process. E.g.: the system I have has Ubuntu 12.10 64-bit installed. I have 3 HDDs in my system: 2 SSDs, 1 3,5" HDD. I am dual booting with Windows 7.

For Ubuntu I created a few partitions - all in ext4 format but swap:

root as /, 15 GB on SSD1 (min 15 GB - where the programs/packages will be installed)

swap as /swap, 2 GB on SSD2 (min 2 GB)

home as /home, 200 GB on SSD2 (min 40 GB - this is for example where your files from the building process will reside)

backup as /bkup 1TB on HDD1

Swap advice: if you have more than 8 GB RAM, use 1 GB as swap partition size. Never use a lot more than your RAM size unless it's a laptop and you want to use suspend-to-disk. Then it would be RAM size plus a few MBs extra.

...

I could write a lot more but I don't know exactly what else you'd like to know. Just ask if there is something missing.

For creating the building environment check my other post

[GUIDE CM10] How to build your own CyanogenMod 10 ROM from sources for LG P990 O2x

as well.
[LG Optimus 2x] orbital_71:
Using desktop 12.10 i386 are better choice then running wubi amd64 am i right? I just want to know the exact pattition needed let say mine laptop are with 8gb ram and 750gb space. Pls give some advise for me. Tks Raum.
[LG Optimus 2x] Raum1807:
You cannot build Jellybean on a 32-bit OS, you have to use a 64-bit Linux like Ubuntu 12.10 64-bit (amd64). Just follow what I wrote before. You will need at least 50 GB.
[LG Optimus 2x] orbital_71:
Ok will go back and uninstall the previous installation from wubi after work. Tks Raum for the advise.:)
[LG Optimus 2x] orbital_71:
Raum i am stuck at partition setup for ubuntu 12.10. I google can't find any setup guide. Pls advise how to mount all this partition as which mount point and size. Tkd

/dev/sda

/dev/sda1

/dev/sda2

/dev/sda3

/dev/sda4

/dev/sdb

/dev/sdb1
[LG Optimus 2x] Raum1807:
AW: [DEV] How to build CM10.1 (Android 4.2.1) for the LG-P990 O2x

Too little information. Please try to be more precise next time. Are these partitions in use? Do you want to dual boot Ubuntu with Windows? Have you already resized your partitions? Or is one of these partitions large enough and deletable to make room for an Ubuntu installation?

I recommend reading these articles:

http://www.linuxbsdos.com/2011/09/18/guide-to-disks-and-disk-partitions-in-linux/

http://www.linuxbsdos.com/2012/05/17/how-to-dual-boot-ubuntu-12-04-and-windows-7/
[LG Optimus 2x] p.valenta:
MTP Mounting

Hi All,

Do you have any trouble with mounting when connect to PC by MTP? I got both "Internal" & "SD Card" mounted to internal card. :(

Guys, do you know where are these mount points set?

Btw. I removed duplicated sdcard0 symlink, but this make it ever worst as now "SD Card" is mounted to "DCIM" folder on internal card.

Thanks
[LG Optimus 2x] mvgadagi:
Optimus P500

can anybody tell me how to make build for Optimus One (P500) Please help me...?
[LG Optimus 2x] Raum1807:
AW: [DEV] How to build CM10.1 (Android 4.2.1) for the LG-P990 O2x

You are in the wrong forum. This is for LG-P990 only.

But you could have a look at BytecodeX' repositories at github to find the right local manifest XML file for your needs.
[LG Optimus 2x] orbital_71:
orbital@orbital-Aspire-V3-471G:~/cm10.1$ repo sync

No command 'repo' found, did you mean:

Command 'repro' from package 'repro' (universe)

Command 'rep' from package 'rep' (universe)

Command 'repl' from package 'nmh' (universe)

Command 'repl' from package 'mailutils-mh' (universe)

repo: command not found

orbital@orbital-Aspire-V3-471G:~/cm10.1$ ~/cm10.1/vendor/cm/get-prebuilts

% Total % Received % Xferd Average Speed Time Time Time Current

Dload Upload Total Spent Left Speed

100 391k 100 391k 0 0 234k 0 0:00:01 0:00:01 --:--:-- 321k

Archive: /home/orbital/cm10.1/vendor/cm/proprietary/Term.apk

inflating: /home/orbital/cm10.1/vendor/cm/proprietary/lib/armeabi/libjackpal-androidterm4.so

inflating: /home/orbital/cm10.1/vendor/cm/proprietary/lib/mips/libjackpal-androidterm4.so

inflating: /home/orbital/cm10.1/vendor/cm/proprietary/lib/x86/libjackpal-androidterm4.so

orbital@orbital-Aspire-V3-471G:~/cm10.1$ repo sync

No command 'repo' found, did you mean:

Command 'repro' from package 'repro' (universe)

Command 'rep' from package 'rep' (universe)

Command 'repl' from package 'nmh' (universe)

Command 'repl' from package 'mailutils-mh' (universe)

repo: command not found

orbital@orbital-Aspire-V3-471G:~/cm10.1$ brunch p990

including vendor/cm/vendorsetup.sh

ls: cannot access device/*/p990/cm.mk: No such file or directory

build/core/product_config.mk:234: *** Cannot locate config makefile for product "cm_p990". Stop.

Device p990 not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).

Found repository: android_device_lge_p990

Default revision: cm-10.1

Checking branch info

CyanogenMod/android_device_lge_p990 already exists

Syncing repository to retrieve project.

sh: 1: repo: not found

Repository synced!

Looking for dependencies

Dependencies file not found, bailing out.

Done

ls: cannot access device/*/p990/cm.mk: No such file or directory

build/core/product_config.mk:234: *** Cannot locate config makefile for product "cm_p990". Stop.

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

** Do you have the right repo manifest?

No such item in brunch menu. Try 'breakfast'

orbital@orbital-Aspire-V3-471G:~/cm10.1$

Raum this are the last3 step. What are the thing i miss? Tks
[LG Optimus 2x] tonyp:
@orbital_71:

Did you follow this thread first? http://xdaforums.com/showthread.php?t=1971645

You at least missed the following step:

$ mkdir ~/bin
$ PATH=~/bin:$PATH
$ cd ~/bin
$ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
$ chmod a+x ~/bin/repo

Afterwards you can repo init and repo sync cm10.1
[LG Optimus 2x] Raum1807:
Win a Google Nexus 4! Scratch here ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ with a key or a sharp object to get your winning code!

Just saw this! Hilarious! Everybody should start scratching! Works on all screens by the way. Try it at least once...

Thanks tonyp for putting a big, big smile on my face!
[LG Optimus 2x] orbital_71:
Thanks Raum and tonyp for the guide, finally i build mine 1st rom. Thanks you 2 so much. :)
[LG Optimus 2x] alakyr:
Fetching projects: 100% (356/356), done.
info: A new version of repo is available

error: .repo/repo/: contains uncommitted changes

new problem!
[LG Optimus 2x] Raum1807:
This error appears because the patch I provided and the newest version are colliding. This is the version I was waiting for. Finally it is here and no patching is needed anymore.

Here is what you can do to get a fresh repo version

(Ctrl+T to open a terminal window and copy 'n' paste the commands to this terminal one by one - business as usual):

Go to your working directory

$ cd ~/cm10.1

remove the dir with the patched python file inside

$ rm -rf .repo/repo/

Reinitialize the CyanogenMod repo

$ repo init -u git://github.com/CyanogenMod/android.git -b cm-10.1

Go to the subdir and get the newest repo repo

$ cd .repo/repo
$ git fetch && git pull

Go back to working dir

cd ../..

Check the version with

$ repo --version

Now you see some instructions on the screen telling you to update repo to a new version

Copy the line on your screen and paste it on the command line to update repo.

Will look similar to this line, copy 'n' paste yours

Check your version again

$ repo --version

Should say 'repo version v1.12.1' now.

Everything should work flawlessly now.

Try it with

$ repo sync

No more patching needed....

Happy building!
[LG Optimus 2x] alakyr:
thank you again!!!

as usual a clean install will have the new and fixed version right?

ps. it's not repo –version but repo version without the "-"
[LG Optimus 2x] Raum1807:
You are welcome!

Haven't tested it yet but a clean install could also fall back to 1.11.x And there you have the problem that the dir local_manifests is not known to the system. You would have to do the git fetch part too or simply wait for the auto update to kick in. Better do the update procedure as described above. Just takes two minutes.

Oh, and regarding your p.s.: 'repo --version' is the correct/official usage. Check the output of 'repo --help' for example. The fact, that 'repo version' works too doesn't mean it is correct. It simply works because the programmers of repo know a thing or two about user's behaviour... ;)
[LG Optimus 2x] alakyr:
with the "-" i got a syntax error
[LG Optimus 2x] Raum1807:
Yeah, that should be two dashes in a row.... Somehow the xda-editor made one long dash out of two consecutive dashes when copying it to the posting editor. Corrected the post.. Now it is at it was intended.

This is not so funny at all. Have to check my other postings now as well.

Thanks for pointing it out.
[LG Optimus 2x] tavoc:
Hi there,

thanks for your great tutorial.

Maybe I have missed this point, but how can I add the repository of someone to this branch. F.e. I want to include pengus77 https://github.com/pengus77/lge-kernel-star Kernel for the old bootloader into my build?

Or do I have to pick every needed commit by hand and do an git cherry-pick ID ?

Regards
[LG Optimus 2x] tonyp:
You could e.g. change the path in your manifest at .repo/manifests/default.xml (or better: fork the CyanogenMod/android repo and define your own manifest).

<project path="kernel/lge/star" name="pengus77/lge-kernel-star" revision="BRANCH_NAME" />

Make sure to choose the correct branch ("jb-412" for newbl, "kk-old-bl" for the old one).

But there's a problem. His kernel might perform bad if compiled with the gcc4.4.3 toolchain (CM10 default), so you should use a 4.6.x one.

You can define a custom toolchain for the kernel via TARGET_KERNEL_CUSTOM_TOOLCHAIN in the BoardConfig - but I think you should get some experience with building android ROMs before playing with stuff like this.
[LG Optimus 2x] tavoc:
Thanks tonyp

I am used to build linux Apps, so right I am new to Android building. This Git think is new also for me (last time I was working with SVN ;) ).

I thought that the build process is using the system gcc version (for me debian 4.7.2). But I will have a look at that again when this build finished.
[LG Optimus 2x] alakyr:
https://github.com/cyanogenmod/android_build/commit/b7f3c8a7409bd1c74ffaa521969a6b00defc0195

manifest warning whould be fixed now right?
[LG Optimus 2x] orbital_71:
Raum, after installing adb when i brunch it. It no longer produce a zip file just as ur guide. Now if i still want it to produce a zip file just as ur guide what i need to do? And also that i don't want to connect the phone everytime while building it.Tks

Edit: Raum i found this commad "make -j# otapackage" can i use it to make a flashable zip?
[LG Optimus 2x] p.valenta:
You can move your local_manifest.xml file into local_manifests folder now. It will finally works.
[LG Optimus 2x] alakyr:
i have fixed already this problems with raums help in the previus pages...it was just a question to know if now everything should be fixed in a clean install
[LG Optimus 2x] MetaIIica:
important!

if any would like build CM10.1 based roms for new Bootloader add following to .repo/local_manifest.xml

the changes are all implemented for our Device

can it added in the OP
[LG Optimus 2x] tonyp:
First, you committed the patches for device lge p990 into the jellybean branch instead of the cm10.1 one.

Second, if you take patches from others (in this case pengus77) you should do a git cherry-pick instead of c&p.
[LG Optimus 2x] tonyp:
Well, that gets defined in the device tree (BoardConfig):

TARGET_ARCH_VARIANT_FPU := vfpv3-d16

But as you are probably using that from cm this isn't your problem.

I'd guess that your android/build repo lacks some checks regarding neon, you'd need to compare it with CMs.

Note that Google officially cut support for non neon devices with Android 4.2.
[LG Optimus 2x] Litderose:
I fear that my skills are really much small than yours ! :o

I don't really know how to compare repo...

My skills are limited to sync repo and compile.;)

I'm afraid there will be no more Slimroms.

No matter, there's enough excellent roms !

Thanks for all.
[LG Optimus 2x] Ryukenden:
Hmmm, weird thing. I cant get through repo sync stage:

Github status says this:

GitHub.com Availability Normal

Storage Availability Normal

GitHub Pages Availability Normal

API Availability Normal

Code Downloads Normal

But when i do repo sync it get to this point:

Fetching projects: 25% (89/354) fatal: unable to connect to github.com:

fatal: unable to connect to github.com:

And before that it fetched like gigabytes of data.... then it just stopped...

Disregard all that, i was completely retarded. It was issue with VirtualBox. Aparently i was losing connection when network setup was on NAT. Switched it to Bridged connection and now it repo synced fine...

Also maybe worth mentioning, if u have a fast internet connection, u could try syncing with:

repo sync -j10

It got me through initial repo sync quite faster than regular "repo sync"
[LG Optimus 2x] ProgMaq:
Hello tonyp!

I want to build Kowalski Kernel (last experimental) for old-Bootloader.

In that post, you mentioned the branch kk-old-bl, but this branch no exists now (Only stable jb-412 and exp)

I have repository using:

git clone git://github.com/pengus77/lge-kernel-star.git -b exp

How can build for old-bootloader? compiler argument/param?

Thanks.
[LG Optimus 2x] rugglez:
You must have seen the procedure to build cm10 for the new bootloader in pengus77's signature. The procedure includes editing two files in kernel source, one to make it compatible for the new BL, and second to correct partition numbers.

If you do the reverse of that, I guess it should work.

Try this(quoting pengus, and making reverse changes) for the old bootloader:

Open arch/arm/configs/cyanogenmod_p990_defconfig and replace this line

CONFIG_CM_BOOTLOADER_COMPAT=n

with this

CONFIG_CM_BOOTLOADER_COMPAT=y

7) Edit arch/arm/mach-tegra/lge/star/include/lge/board-star-nv.h and replace

#define LGE_NVDATA_PARTITION "/dev/block/mmcblk0p5"

with

#define LGE_NVDATA_PARTITION "/dev/block/mmcblk0p3"

I don't know if pengus has made other changes to the kernel which involve differences in the two bootloaders(like maybe including something to fix slow charging on old BL which may not be needed on new BL), but this is worth trying. Would appreciate it if pengus/tonyp can confirm this.
[LG Optimus 2x] ProgMaq:
Very very thanks rugglez!

Yes, the truth is that it would be very interesting. Wait until you confirm if there are other changes.
[LG Optimus 2x] yajnab:
Can anyone help me with this

frameworks/av/services/audioflinger/Effects.cpp:1268:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
target thumb C++: libaudioflinger <= frameworks/av/services/audioflinger/StateQueue.cpp
frameworks/av/services/audioflinger/AudioPolicyService.cpp:1580:5: sorry, unimplemented: non-trivial designated initializers not supported
frameworks/av/services/audioflinger/AudioPolicyService.cpp:1580:5: sorry, unimplemented: non-trivial designated initializers not supported
frameworks/av/services/audioflinger/AudioPolicyService.cpp:1580:5: sorry, unimplemented: non-trivial designated initializers not supported
frameworks/av/services/audioflinger/AudioPolicyService.cpp:1580:5: warning: missing initializer for member 'audio_policy_service_ops::open_input_on_module' [-Wmissing-field-initializers]
make: *** [/home/yajnavalkya/rom/android/out/target/product/beni/obj/SHARED_LIBRARIES/libaudioflinger_intermediates/AudioPolicyService.o] Error 1
[LG Optimus 2x] XXMrHyde:
My first impressions,

- the Setup Wizards lags a lot, (possibly because of system partition)

- camera is working, (photo and video)

- as expected, signal/mobile data connection is working, (using V20L BB)

- had to manually add my wifi network, (as mentioned in op)

- from short test, it seems it runs as smoot as CM10

- as expected, not much translations,

- installed Rom and gapps, my system-partition is full, (I`m using stock system partition size),

so deleting videos and some unnecessary system apks is recommend

In my opinion, this rom runs very well, and worth a try.
[LG Optimus 2x] MetaIIica:
You can resize the Systempartition so you have 512MB or 1GB. I use 1 GB so i have this Problem not.

Can you share your work? I can not make my own, my Laptop is to slow for that, and iam not at home so i can not work on my PC
[LG Optimus 2x] XXMrHyde:
yes, i know you can change the system partition size, but atm, I don`t need a larger system partition,

deleting the videos is enough, I don`t need them, and there are still some really unnecessary system apks too.

I`ll upload my build, be patient, maybe it will take some time.

Edit:

This is an Unofficial Build of CM10.1, I didn`t changed anything, except the package name, (from cm-10... to cm-10.1...)

Note:

this build is for users who aren`t able, (or don`t want to) build CM10.1 by themselves,

I don`t want to make Unofficial Builds atm, or update this build.

cm-10.1-20121202-UNOFFICIAL-p990
[LG Optimus 2x] Raum1807:
Deleted - redundant information.
[LG Optimus 2x] XXMrHyde:
deleted
[LG Optimus 2x] natalya:
Incredible, been using it for the past hour or so and I am loving it.

Two questions:

1) The attachment in the OP is CM10.1_building.patch shall I move the file as it is or do I need some software to extract it so I get the wireless.co file?

2) I like it so much that I want to update it myself in the future, so is there some sort of changelog to the new "builds" I can see before updating? Because it isn't much fun spending hours to update every single time a tiny thing or two are changed you know :)