yashsingh1/xdaforums huggingface dataset:
[LG Optimus 2x] XXMrHyde:
I compared /system with 344 MB partition size and 508 MB partition size

the differences are:

system partition 344 MB:

16928	/system/vendor/pittpatt/models/recognition/face.face.y0-y0-22-b-N
16936	/system/vendor/pittpatt/models/recognition
16944	/system/vendor/pittpatt/models
16952	/system/vendor/pittpatt
17024	/system/vendor
693928	/system

system partition 508 MB:

23416	/system/vendor/pittpatt/models/recognition/face.face.y0-y0-22-b-N
23424	/system/vendor/pittpatt/models/recognition
800	/system/vendor/pittpatt/models/detection/yaw_roll_face_detectors.6/head-y0-yi45-p0-pi45-rp30-ri30.5-v24
784	/system/vendor/pittpatt/models/detection/yaw_roll_face_detectors.6/head-y0-yi45-p0-pi45-rn30-ri30.5-v24
864	/system/vendor/pittpatt/models/detection/yaw_roll_face_detectors.6/head-y0-yi45-p0-pi45-r0-ri30.4a-v24
2456	/system/vendor/pittpatt/models/detection/yaw_roll_face_detectors.6
3288	/system/vendor/pittpatt/models/detection/yaw_roll_face_detectors.3/head-y0-yi45-p0-pi45-rp30-ri30.5
3104	/system/vendor/pittpatt/models/detection/yaw_roll_face_detectors.3/head-y0-yi45-p0-pi45-rn30-ri30.5
3320	/system/vendor/pittpatt/models/detection/yaw_roll_face_detectors.3/head-y0-yi45-p0-pi45-r0-ri30.4a
9720	/system/vendor/pittpatt/models/detection/yaw_roll_face_detectors.3
456	/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.7/right_eye-y0-yi45-p0-pi45-r0-ri20.lg_32-2
480	/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.7/nose_base-y0-yi45-p0-pi45-r0-ri20.lg_32
488	/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.7/left_eye-y0-yi45-p0-pi45-r0-ri20.lg_32
1432	/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.7
1448	/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.3/right_eye-y0-yi45-p0-pi45-rp7-ri20.2d_n2
1496	/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.3/right_eye-y0-yi45-p0-pi45-rn7-ri20.2d_n2
1480	/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.3/right_eye-y0-yi45-p0-pi45-r0-ri20.2d_n2
1424	/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.3/nose_base-y0-yi45-p0-pi45-rp7-ri20.2d_n2
1456	/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.3/nose_base-y0-yi45-p0-pi45-rn7-ri20.2d_n2
1528	/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.3/nose_base-y0-yi45-p0-pi45-r0-ri20.2d_n2
1440	/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.3/left_eye-y0-yi45-p0-pi45-rp7-ri20.2d_n2
1512	/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.3/left_eye-y0-yi45-p0-pi45-rn7-ri20.2d_n2
1480	/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.3/left_eye-y0-yi45-p0-pi45-r0-ri20.2d_n2
13272	/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.3
26888	/system/vendor/pittpatt/models/detection
50320	/system/vendor/pittpatt/models
50328	/system/vendor/pittpatt
50400	/system/vendor
727304	/system

The differences are only in /system/vendor,

everything else is the same.
[LG Optimus 2x] Raum1807:
These files are for FACEUNLOCK only. Nevermind then. There are no F*UNLOCK non-neon libs for 4.2.1 available anyway.
[LG Optimus 2x] Raum1807:
Your link leads to an E410. But you can edit the read-only /system/etc/vold.fstab yourself

Change

dev_mount sdcard /storage/sdcard1 auto /devices/platform/sdhci-tegra.2/mmc_host/mmc1
dev_mount emmc /storage/sdcard0 9 /devices/platform/sdhci-tegra.3/mmc_host/mmc0

to

dev_mount sdcard /storage/sdcard0 auto /devices/platform/sdhci-tegra.2/mmc_host/mmc1
dev_mount emmc /storage/sdcard1 9 /devices/platform/sdhci-tegra.3/mmc_host/mmc0
[LG Optimus 2x] XXMrHyde:
OK,

i guess, then there is no reason to increase the systempartition,

but if you want to install anything to /system you have to delete something first.

BTW, is someone interested in a guide how to disable the building of some system apps, or disable the including of some media files?
[LG Optimus 2x] tonyp:
You can prevent building most apps in the make files:

e.g.:

https://github.com/CyanogenMod/android_vendor_cm/blob/jellybean/config/common.mk

https://github.com/TheMuppets/proprietary_vendor_lge/blob/jellybean/p990/p990-vendor.mk

Or add a couple rm -[r]f ... lines into the squisher to remove them after the building process:

https://github.com/CyanogenMod/android_vendor_cm/blob/jellybean/tools/squisher

e.g.:

# Delete unnecessary binaries
( cd $REPACK/ota/system/bin; echo $DELETE_BINS | xargs rm -f; )

# No need for recovery
rm -rf $REPACK/ota/recovery

[COLOR="Red"]# remove some stuff
rm -rf $REPACK/ota/system/media/video
rm -f $REPACK/ota/system/app/CMWallpapers.apk
rm -f $REPACK/ota/system/app/Email.apk[/COLOR]
[LG Optimus 2x] Pascalone19:
Thanks I was able to compile without problems :)
[LG Optimus 2x] lipisak:
Why the H**l are you quoting the OP? :(
[LG Optimus 2x] amardeepsingh77:
Hi lipisak, did you build cm10.1 with increased system partition or still playing with 344mb? And, can you be kind enough to upload your build please? Thanks
[LG Optimus 2x] slebit:
Is it someone that has fixed usb storage? I can't get it to work.
[LG Optimus 2x] Custom40:
Go ahead and give this a try:

Enter Terminal Emulator and enter the following:

su

setprop persist.sys.usb.config mass_storage

And reboot your phone. It is ok if you press _ and it only shows space in the emulator :)

Let us know how it goes.
[LG Optimus 2x] slebit:
Thanks! That did solve it!

Edit: This only worked for internal storage, not the sd card. Is there some way to make the sd card visible in the computer?
[LG Optimus 2x] lipisak:
You cannot build the CM with increased partitions. The partition layout can be modified in two ways: smartflash or nvFlash. There is howto :) use searching :D
[LG Optimus 2x] slebit:
That did not solve the problem with bluetooth not turning on.
[LG Optimus 2x] Imperticus:
Thanks for testing. My laptop was having issues, so I couldn't make a build myself.
[LG Optimus 2x] Custom40:
For those of you thinking RC isn't working on CM anymore because there hasn't been any new nightlies or because P990 was removed from targets, then have some fun looking at the recent changelogs:

http://changelog.bbqdroid.org/#p990/cm10/next

Hands down to RC :cool:
[LG Optimus 2x] Raum1807:
The FAQ section has just been updated! (It's the second post of this thread.)

The updates V1.1 20121206: Partition size, swapping internal/external memory, adding USB mass-storage mode, etc.

Thanks to XXMrHyde, tonyp, Custom40 for their contributions to this FAQ.

Go to the FAQ...
[LG Optimus 2x] aldyu:
Did a dirty flash using xxmrhyde's shared build over official cm10 and wanna share my observation on top of what already posted here,

1. there are cases scrolling is a bit laggy.

2. oftentimes the screen brightness will be I think at max after unlocking.

3. nice that crt animation is back during screen off.

Thanks to devs here specially to xxmrhyde for the shared build. Keep O2x alive and updated.
[LG Optimus 2x] tonyp:
So why should we look at the merged stuff of Cyanogenmod?

These are general commits for CM10 affecting all devices, not just the P990.

I don't know what RC is doing privately, but his last public P990 commit is nearly a month ago.

See here:

https://github.com/CyanogenMod/lge-kernel-star/commits/jellybean

https://github.com/TheMuppets/proprietary_vendor_lge/commits/jellybean
[LG Optimus 2x] sanjib734:
where can I find latest build?
[LG Optimus 2x] slebit:
This thread is about building it yourself. There is no one that build it for you.
[LG Optimus 2x] owain94:
He is probably just waiting for sources and working on cm10.1 and other devices instead of "wasting" time on fixing a kernel that's going to be released soon anyway
[LG Optimus 2x] alakyr:
awesome guide...work great!

just for info in your opinion which is the most stable for daily use? 10.1 or 10?

i built both but before choose it i would like some other openions =P
[LG Optimus 2x] sanjib734:
I don't own a computer so it is impossible for me. I used Mr Hyde's shared version and I am highly impressed. Thanks to him and other developers.
[LG Optimus 2x] marsgod:
To make the bluetooth work:

mkdir device/lge/star-common/bluetooth
cp device/common/libbt/include/vnd_stingray.txt device/lge/star-common/bluetooth/vnd_star.txt

vi device/lge/star/common/bluetooth/bdroid_buildcfg.h

/*
* Copyright (C) 2012 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

#ifndef _BDROID_BUILDCFG_H
#define _BDROID_BUILDCFG_H

#define BTM_DEF_LOCAL_NAME "LG Optimus 2X"
#define BTA_DISABLE_DELAY 1000 /* in milliseconds */

#endif

vi device/lge/star/common/bluetooth/BoardConfigCommon.mk

add these lines:

BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/lge/star-common/bluetooth
BOARD_BLUEDROID_VENDOR_CONF := device/lge/star-common/bluetooth/vnd_star.txt

then rebuid your android

PS: you must have the bcm4329.hcd in your /etc/firmware directory!

Currently , I have some bug while try to disable the bluetooth........

[EDIT]:key.ita suggest to add a line in the bdroid_buildcfg.h file,

#define BTA_DISABLE_DELAY 1000 /* in milliseconds */

Thank man, but I have no time test yet. Hope it work for me when trying to disable BT
[LG Optimus 2x] slebit:
What do you mean with" you must have the bcm4329.hcd in your /etc/firmware directory!"? Where can I find this file?
[LG Optimus 2x] marsgod:
You can extract this file from the official P990 V30A or V28G ROM, in its /system/etc/firmware directory. Put this file in your androd vendor directory.
[LG Optimus 2x] marsgod:
To make wifi work better: (Switch WIFI on, you will see networks)

modify your device/lge/star-common/BoardConfigCommon.mk

change

WPA_SUPPLICANT_VERSION := VER_0_6_X

to

WPA_SUPPLICANT_VERSION := VER_0_8_X

rebuild your android.
[LG Optimus 2x] slebit:
Thanks. I will try it.
[LG Optimus 2x] aldyu:
Pls share latest build with latest fixes. Wanna try again cm10.1. Thanks.
[LG Optimus 2x] tonyp:
Time to sync your sources then.

No offense, but please don't demand publicly shared builds here - this is tagged as dev thread.

Half of the posts in this thread shouldn't belong in here in the first place.
[LG Optimus 2x] Custom40:
People will share if they feel like it.

Remember the name of this forum: xda-

developers

. Respect the devs, allow them to work in peace and you will be rewarded at some point or another. Keep asking for stuff won't result in any good. If you was a dev you wouldn't want to spent hours only to see inpatient people

requesting

stuff you have put your mind into.

Patience, respect and support is all the devs ask in return around here. Take a sec to think about it, and you'll realize it yourself :)
[LG Optimus 2x] aldyu:
None taken. Let me check, Oh, I used the word 'Pls' so I think it's not a demand, just a request. Pleading for a dev with a heart of gold like xxmrhyde. ;)

Sorry though I forgot this is a dev thread. :cool:

---------- Post added at 09:14 PM ---------- Previous post was at 08:54 PM ----------

Sorry mate, as I said, just requesting, I think it's better than being a suck up. :cool:
[LG Optimus 2x] slebit:
This one worked awesome!

I can't get this one to work. I have done this change, but I still can't search after wifi networks.
[LG Optimus 2x] Raum1807:
Awesome, this is f***ing awesome! Great find! Thank you

Tip: if you got the proprietary files from the first post then the right file (bcm4329.hcd) is already in place. There is no need to extract this file from 30A or 28G. If you'd like to check for yourself: in the 30A kdz you have to extract the bin file and then mount the seventh image file. In the BIN directory you will find the file BCM4329B1_002.002.023.0735.0745.hcd During install it becomes the bcm4329.hcd in /system/etc/firmware. It is the same as in the proprietary files of TheMuppets. MD5SUM: 347b3898d6b1a6cb661fd3e66aa69708
[LG Optimus 2x] Raum1807:
It is working for me. If in doubt, a 'make clean' might be necessary. Before executing 'brunch p990', use 'make clean' to delete everything that is in your 'out' directory. Warning: all the old builds will be removed as well as the intermediates. So building will take the same amount of time as it took the very first time you built it and you will need to add the prebuilts and apply the patch of course.
[LG Optimus 2x] mj.vikram:
Thanks for making such a nice guide..

I am building CM 10.1 for Galaxy R which is having same Chip set, I am getting the below error while using the command "brunch galaxyr"...

including vendor/cm/vendorsetup.sh
build/core/combo/select.mk:60: build/core/combo/TARGET_linux-ARM.mk: No such file or directory
make: *** No rule to make target `build/core/combo/TARGET_linux-ARM.mk'. Stop.
Device galaxyr not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).
Repository for galaxyr not found in the CyanogenMod Github repository list. If this is in error, you may need to manually add it to your local_manifest.xml.
build/core/combo/select.mk:60: build/core/combo/TARGET_linux-ARM.mk: No such file or directory
make: *** No rule to make target `build/core/combo/TARGET_linux-ARM.mk'. Stop.

** Don't have a product spec for: 'cm_galaxyr'
** Do you have the right repo manifest?

No such item in brunch menu. Try 'breakfast'

Thanks in advance..
[LG Optimus 2x] marsgod:
Another way, just goto out/target/product,

find . -name "wpa_sup*"

and you can remove them manually, rebuild your android, this maybe more faster.

---------- Post added at 04:51 AM ---------- Previous post was at 04:48 AM ----------

I think you should have a directory , such as device/samsung/galaxyr

If you have no , then you need a lot of work , maybe porting from a ICS galaxyr directory.
[LG Optimus 2x] mj.vikram:
yes i am having the folder in galaxy r in /device/samusng/galaxyr ..
[LG Optimus 2x] Raum1807:
New patch!

CM10.1 buildpatch V2-20121210

Features:

Patched audio building errors completely reviewed and reworked. Now the audio patch is properly done and solely relies on audio.h which is in the device specific directory ('device/lge/...')

USB mass-storage support enabled

Notification lights are back - no pulse atm, but 'always on' is working

Bluetooth experimental (maybe working, couldn't test it due to lack of devices) - Thanks to marsgod

WiFi Network list is working - Thanks to marsgod

Usage:

Read first and second post of this thread. If you have already applied the first patch then use the same file from last time to revert the changed files to their original state. Make sure the patch is still in place. Use

$ cd ~/cm10.1/
$ patch -R -p4 < CM10.1_building.patch

to revert the patch.

Hint: if you are new to this and haven't applied the first patch yet, don't worry. You only need the second one. It includes everything that is necessary. Only the users who applied the first patch have to roll back before applying the new patch.

Now use the new patch

$ patch -p4 < CM10.1_V2.1_building.patch

Then extract the attached 'bluetooth.zip' and copy the extracted directory 'bluetooth' with the two files inside to '~/cm10.1/device/lge/star-common/' Please check that the new directory 'bluetooth' exists in 'device/lge/star-common' with the two files in it.

Use 'make clean' to rebuild your ROM from scratch

$ cd ~/cm10.1/
$ make clean

Then get the newest sources and start building

$ repo sync
$ brunch p990

Have fun!
[LG Optimus 2x] darklajid:
Some issues with that.

(Minor) Comment doesn't match commands (see -r for files versus -f)

-r makes never sense for files

-f should rarely be necessary and can do a lot of damage. rm -r already removes directories, recursively.

I guess I should assume everyone knows what he's doing here? But since this is a tutorial of sorts I'd be really, really careful with -f.

Imagine $REPACK expanding (due to errors or malice) to "~ ".
[LG Optimus 2x] slebit:
Im getting this error when im trying to apply patch:

patching file device/lge/star-common/BoardConfigCommon.mk
patch: **** malformed patch at line 121:
[LG Optimus 2x] Raum1807:
My mistake. One <+> and <space> is missing. Please revert the partly applied patch with

$ patch -R -p4 < CM10.1_V2_building.patch

Press <n> as often as necessary.

Then apply the attached new patch. V2.1 with

$ patch -p4 < CM10.1_V2.1_building.patch

Hope that helps.
[LG Optimus 2x] tonyp:
The -r probably was a typo as his example below does use -f instead of -r.

You aren't wrong, but the squisher file by CM is indeed using -f for every operation, so he is just following that.

See: https://github.com/CyanogenMod/android_vendor_cm/blob/jellybean/tools/squisher
[LG Optimus 2x] marsgod:
BTW, you need not do this

And finally MOVE the LGEInfineon.java file from

device/lge/star-common/ril/telephony/java/com/android/internal/telephony/
to
frameworks/opt/telephony/src/java/com/android/internal/telephony/

just modify the star-common/BoardConfigCommon.mk

BOARD_RIL_CLASS := ../../../device/lge/star-common/ril/telephony/java/com/android/internal/telephony/LGEInfineon.java

This will keep the framework directory clean
[LG Optimus 2x] hkkp:
-f means 'force', is just telling the system to perform the action without questioning. If use only -r, in some case (e.g. one of the file inside a subdirectory is somehow locked), the delete process might abort or stop for prompting question. When you are sure you want to delete something, add a -f is a simple way, especially inside a script.
[LG Optimus 2x] Raum1807:
Yes, you are right. This was wrong. It had to be '-f' for single files, not '-r'. Thanks for pointing out the typo. I have already corrected it and gave you credit for it.

And yes, you have to be careful with the -f switch. But since this is inside a script it is not uncommon to use the force switch...
[LG Optimus 2x] Raum1807:
I beg to differ: you have to move LGEInfineon.java to the frameworks directory as it is written in the guide otherwise the build will fail. The added BOARD_RIL_CLASS doesn't change that. Two weeks ago I thought it would work like that too. You can see the commented out remains of these tests in the first patch file.

Oh, and the last few days the maintainers of other devices have moved their device-specific RIL files to the framework too.

Please make a clean build to test whether your solution is really working.
[LG Optimus 2x] Raum1807:
You probably have already seen or heard the news about LG finally releasing ICS for the P990 as ROM and the long awaited source today.

Many of you have downloaded the code and had a quick peek inside. Meanwhile Ricardo Cerqueira wasted no time and already brought the Git repository with the kernel up-to-date.

So, if you happen to build CM10 or CM10.1 for the LG P-990 yourself: this would be a good time to resync the sources.

Thanks to RC we can test drive the (new) kernel right now!
[LG Optimus 2x] wapz:
Keep us posted with the results and a new KANG :)
[LG Optimus 2x] Raum1807:
Results? It's working fine atm. But too soon to really see any difference. Imho the 'old' kernel was running well, too.

About the KANG: I won't release one (soon). CM10.1/Android 4.2.1 is still in development. And publicly sharing a beta is too time consuming with explaining all the steps and work-arounds. And finally the feedback would clutter this thread even more...

But there is an idea: you could open a new thread and share your KANG there. How would that be? It is not that complicated. Just follow my guide in the OP. What do you think?
[LG Optimus 2x] slebit:
My wifi search is working. But for some reason there is no wifi bars at the top of the screen, despite that the wifi is working fine. Why is that?
[LG Optimus 2x] Raum1807:
I have the same grey WIFI symbol in the status bar. But WiFi networks showing up was more important to me.

Do you have any Bluetooth devices you could connect? Could you share your results, please?
[LG Optimus 2x] slebit:
I have connected my one x with my o2x, and that was working fine.
[LG Optimus 2x] Micronuub:
Crap i guess we need to revert to the old bootloader and layout when cm10.1 releases?
[LG Optimus 2x] Raum1807:
First post up-to-date now:

Revision V1.1 2012.12.11 Updates: New Patch: WiFi shows networks, BT works, audio.h reworked, notification lights are back, USB mass-storage support included. Compatible to V30A Kernel.... Thanks to marsgod for BT and WiFi patches/tips.

FAQ section refreshed too.

Errors? Tips? Improvements? Patches?

Everything that helps building and running CM10.1 on LG P990 is welcome!
[LG Optimus 2x] xerol:
hey, pls somebody compile a good cm 10.1 rom for us,

its highly appreciated.

bcoz we are big noobs here, those who r devs pls make the rom for us.
[LG Optimus 2x] owain94:
The bars doesn't turn blue when you got connection with the Internet weird enough...

The bars turn blue when you have connection with the Google servers

Please check if you installed the gapps and configured your Google account
[LG Optimus 2x] HerrKuk:
mr1-staging are now cm-10.1

repo init -u git://github.com/CyanogenMod/android.git -b cm-10.1
[LG Optimus 2x] Raum1807:
Thanks for your help. Until yesterday I didn't have any Bluetooth devices around (besides the P990) and couldn't test BT myself.
[LG Optimus 2x] Raum1807:
Haven't had time to debug this error. It is very sad your P990 died so young. We could really need another pair of helping hands here. Many things to improve but so little time...

It has nothing to do with GAPPS or google accounts. It happened when we reconfigured BoardConfigCommon.mk to use WPA Supplicant version 8 instead of version 6. But it is a little trade-off at the moment since the network list is working instead....
[LG Optimus 2x] Raum1807:
Thanks HerrKuk for pointing that out. Changed the OP accordingly!
[LG Optimus 2x] Ferrum Master:
Someone remember in which thread was wkpark's double LG logo fix at kernel booting? I saw it somewhere but forgot where :confused:
[LG Optimus 2x] orbital_71:
Click his profile and his post u will get it.:)
[LG Optimus 2x] aldyu:
Here, http://xdaforums.com/showpost.php?p=34883341&postcount=637

Can you build an updated kernel with this patch applied? Pls share if you can. ;)
[LG Optimus 2x] chota_shivaji:
RC fixed the WPA supplicant version, so that change can be removed from the v2 patch.

Thanks.
[LG Optimus 2x] Ferrum Master:
Well mate... I can say that... the patch works... :P. Just as wkpark's OC@1.5Ghz etc... damn the phone feels so good at such freqs... building a tool-chain for kernel only... I've just had struggle powering my old double hexcore again that uses linux at home for me, PSU failed, 5V stand by cap pregnant ... again one hour on disassembly and soldering a new the capacitor... so the time flies...

But mates... is it good to share a your self compiled rom with borrowed codes like that from wkpark and Topogigi, I guess no... For personal use there is no harm I guess. :), but meh... at least Topo could release a CM10 kernel, at least a patch file :D.

Therefor... just a hint... just use it as a patch provided from Raum and then point to the right file... it is very easy... try to learn step by step as I try in my spare time... You don't need to have a surname Mr. Kang to be a good kanger... :D
[LG Optimus 2x] tonyp:
arcee has cm10.1 ready, he will push it whenever he feels the time is right.
[LG Optimus 2x] aldyu:
Yeah, I know I can do that as well in my spare time. Just waiting for a good internet connection to be installed at home to get started with. Just wondering if you can submit the patch to cm in behalf of wkpark. And actually Im referring only for a kernel with the patch and not a rom here.