yashsingh1/xdaforums huggingface dataset:
[Optimus One, P500 Original Android Development] lupohirp:
we need them for enalbe hw acceleration.....

btw that's are the things to do for resolve problem (my idea)

set the refresh rate to 60

Update to ICS_chocolate kgsl drivers

unfrotunately now i don't have time to do i'm studying....but tomorrow i will do the job :) kang will be out when will be ready sorry guys but i'm busy with university...ah and another thing...with new adreno drivers livewallpapers and gallery works without problems :)

Uploaded with ImageShack.us
[Optimus One, P500 Original Android Development] vlt96:
You forgot browser:) or is it still bad?:|

.........
[Optimus One, P500 Original Android Development] abhi29:
Awsm lupo \m/
[Optimus One, P500 Original Android Development] lupohirp:
browser is really awesome...it renders so fast and seems stable i don't have problems for now...if anyone ask me "we need ics drivers for get stable ICS?" i answer "yes"....seems that all is related to that
[Optimus One, P500 Original Android Development] stranostrano:
@markolino631

ifeq ($(TARGET_BOARD_PLATFORM),msm7k)
LOCAL_CFLAGS += -DTARGET7x27
endif

for what you know, had qualcomm changed the naming from "msm7k" to "msm7x27"?
[Optimus One, P500 Original Android Development] MaKTaiL:
What about camera?
[Optimus One, P500 Original Android Development] RockR172:
your current sources on github seems to have that...

on line 53... :confused: :o
[Optimus One, P500 Original Android Development] vlt96:
I was sure, I kept telling myself the same thing!:D:D:D

So no we go bug-hunt!
[Optimus One, P500 Original Android Development] lupohirp:
yeah but i removed 'cause i thinked that we don't need anymore....i was wrong :)
[Optimus One, P500 Original Android Development] datvu:
What about HW video decoder??
[Optimus One, P500 Original Android Development] mDroidd:
RE LAX!

Greets!
[Optimus One, P500 Original Android Development] adfad666:
Fixed the boot process!

You can now take my init.thunderg.rc and init.thunderg.usb.rc files and remove the custom init.rc file. All the new CyanogenMod root / adb permissions work.

note for the future: to use apps which need root, or to use adb as root you'll need to enable this in Settings --> Developer options --> Root access. If you try to use the 'adb root' command it'll fail and tell you to change the setting above.
[Optimus One, P500 Original Android Development] Lt.Win:
This is according to the new root permission added by CM in CM9, isn't it?
[Optimus One, P500 Original Android Development] seriousia:
YeS
[Optimus One, P500 Original Android Development] lupohirp:
thanks adfad i will rebase my work on your sources :) stay tuned :)
[Optimus One, P500 Original Android Development] tilal6991:
Hey guys. Great work!

lupo - I hope you remember me - I'm the dev for the ZTE Skate. I was hoping you could tell me how you fixed colour banding? Thanks in advance.

Edit - it's OK - I just found the fix - great work again!
[Optimus One, P500 Original Android Development] markolino631:
yes thanks however :D
[Optimus One, P500 Original Android Development] callmepanchito:
Thanks for the latest releases... idk if this feature is important but wifi hotspot still doesn't work.
[Optimus One, P500 Original Android Development] merlinjost:
PLS make a new FunnySim Patch

Hey,

I really love ure rom, and im using it dayli since the first FunnySim version, u all are awsome!:)

But now all peopel with FunnySims have to wait fore the next patch, but nobuddy talks about that or make one... :(:(:(

Pls make a new patch!

Thx fore ure work guys and sry for my english ;)
[Optimus One, P500 Original Android Development] -DarkKnight-:
same

+++++++++++++++++++++++++++++++++++++1
[Optimus One, P500 Original Android Development] aloayzab88:
I dont wanna sound like a ass, or be a smartass or something like that, but people could buy a 64 kb or 32 kb simcard in the midtime?, 64 kb simcards works normally. I dont know if in other countries telephone company's sell more than 128 kb simcards only. At least in my country they do and cost like $ 5. with the same number and almost the same perks. Sorry for my first and last OT reply.
[Optimus One, P500 Original Android Development] bkcokota:
Slightly offtopic guys, but is anyone else seeing the subforum for this thread as p500 original Android development? Whenever I try to subscribe using the xda app it says error invalid topic...
[Optimus One, P500 Original Android Development] simo.sacchi:
+++1 from me too for the funny sim version

---------- Post added at 05:27 AM ---------- Previous post was at 05:24 AM ----------

Sometimes you cannot change to a 64k or a 32k sim without changing number (admittedly that your provider has those cards).
[Optimus One, P500 Original Android Development] Exedion:
yes, you sound like ass (no sense of offence) in my country venezuela, my provider only sell 128k simcards and... change number is no an option for me and nobody :S

this is a serious bug, please fix if you can or want lupo :)
[Optimus One, P500 Original Android Development] myawan:
Let me tell you my expression, this issue has been posted for quite a lot of times before so now these repeated posts are annoying, honestly. So if its annoying for a noob like me how would a dev feel like?

Lupo certainly knows about this but he must have other more important issues/bugs to deal with at the moment. So we should try to support him rather than acting like spoiled kids (myself included).

Lupo, as much I know him,is also eager to bring bestest ROM here. So lets keep his thread clean :)

Cheers (sorry for long post).
[Optimus One, P500 Original Android Development] lupohirp:
adfad with your sources phone boots up after compile but i have the same problems that i had before....i cannot initialize kgsl drivers even with permissions enabled

see

0:eglinitialize(0x1) failed (EGL_SUCCESS)

it is not complete :(

ok this is the bad news :(

the good news is that now Adreno200 ics drivers are working correctly :) but with old kernel :(....there are some things to fix and test but i think that update is near :) there will be also a funny-sim test version :)
[Optimus One, P500 Original Android Development] u.bindal:
@lupo, are the videos lagging still lagging when played in gallery...??
[Optimus One, P500 Original Android Development] ccdreadcc:
u keep asking the same questions again and again?

this work? that work? :confused:

give the man some peace and go do something else that may matter in ur life..

if the bugs have been fixed and update released then lupo will post it in the OP..
[Optimus One, P500 Original Android Development] merlinjost:
No, for me it is really not possible to buy a other Simcard, my provider dont sell other sim card....:(

But sry for spamming this thethered, Lupo or Arjen u can say something to that FunnySim patch?

I think after that statemend there are less asks about that patch as with saying nothing to that.

Sry for my bad english and great work!:):):):)

EDID:

Sry i dont have seen that post ;):
[Optimus One, P500 Original Android Development] lupohirp:
ehehehehe i have a crazy idea for this adfad....and if we remove ueventd and init.thunderg.rc??could be an idea?? i saw that some developers have removed this....maybe i'm wrong but let's try :)
[Optimus One, P500 Original Android Development] Arjen:
Hey Lupo,

but aren't these needed to start up some legacy services?
[Optimus One, P500 Original Android Development] mDroidd:
Isn't that what went wrong at AOKP also..
[Optimus One, P500 Original Android Development] adfad666:
Removing those files is a bad idea :eek:
[Optimus One, P500 Original Android Development] vlt96:
I think it's too late, lupo will post a sad or great post in a few minutes/hours;)
[Optimus One, P500 Original Android Development] thachtunganh:
Lupo, in the kernel, why you revert KSM backport from 3.0 kernel????

And BTW, have you apply the CPUFREQ code backport from 3.0 kernel???
[Optimus One, P500 Original Android Development] lupohirp:
'cause are missing some functions didin't have the time to see what is missing....no i don't backported cpufreq from 3.0 kernel ....

btw was a bad idea to delete that files like adfad said :D

i' trying to get camera preview mikegapinski fix doesn't work but i have missed some permission in kernel......maybe is this

EDIT: nothing...it doesn't work :(

i'm trying to build with my code.....the strange thing is that camera preview is starting in lib as i can see in logcat but still have no preview....damn why???=
[Optimus One, P500 Original Android Development] thachtunganh:
So backport the cpufreq code. I will give you the patch later
[Optimus One, P500 Original Android Development] Arjen:
Lupo, which kernel are you backporting from?

Sent from my Icy P500
[Optimus One, P500 Original Android Development] mastershefis:
I've started to debug the problem, added a lot of debug statement to libEGL. So I can see that the binary libraries are loaded correctly, but it still doesn't work.

libEGL.so is calling eglInitialize() this is a public function of libEGL_andreno200.so. This function tries to initialize the hardware by accessing /dev/kgsl-3d0. The problem is that /dev/kgsl-3d0 doesn't exist. I've did a simple hack by creating a link from /dev/kgsl to /dev/kgsl-3d0 and it started to work halfway. As it accesses the wrong device we get memory errors.

So this is probably a kernel issue...
[Optimus One, P500 Original Android Development] markolino631:
Hey lupohirp! Can you update the source on github with full hw acceleration? Because i replace the lib adreno with new lib, replace the lib gralloc with your new lib gralloc, compile cm9 with use genlock, add support for genlock on kernel 2.6.32.59, but the rom doesn't start :mad:

I hear that run but the screen remains black! :confused:

I don't update the kgsl on version 3.0 because i have some error when compile the file devices_lge.c!

Can i update the kgsl 3.0 on kernel 2.6.32.59? or i need kernel 2.6.35? Thanks for your great work!
[Optimus One, P500 Original Android Development] Arjen:
Backporting to .32 should work. But can not give guarantees :rolleyes:
[Optimus One, P500 Original Android Development] markolino631:
so i can update the kgsl on 3.0 with kernel .32?
[Optimus One, P500 Original Android Development] Arjen:
That's what I said ;)

Sent from my Icy P500
[Optimus One, P500 Original Android Development] markolino631:
Thanks! But for run correctly the new lib adreno i need the driver kgsl 3.0? or can run without driver 3.0?
[Optimus One, P500 Original Android Development] Arjen:
You do need different things from 3.0 kernel. Kgsl is only one of them.

Check lupo his github to see the changes.
[Optimus One, P500 Original Android Development] :
Lupo,

Check this, it should fix camera preview issue (kernel side):

https://github.com/lupohirp/lge-kernel-msm7x27/pull/2/commits
[Optimus One, P500 Original Android Development] lucmhv:
Thank you! :)
[Optimus One, P500 Original Android Development] vlt96:
After the next release (the "bomb") can you please replace "working" and "not working" with "bugs"? We already know everything works (in next release :D:D)

.........
[Optimus One, P500 Original Android Development] markolino631:
I see the changes from lupohirp and the changes are:

Add ksm support - Done

Add genlock support- Done

Update kgsl on 3.0 - Doesn't do

This is the changes doing lupohirp on ics kernel!

Ah sorry for my questions! You are much kind!
[Optimus One, P500 Original Android Development] stranostrano:
lupo,

Did you add permissions for /dev/genlock to uevent?

and I think you need to have /dev/kgsl-3d0 permissed as well as /dev/genlock
[Optimus One, P500 Original Android Development] vk2r:
Same thing happens without nofrills installed on the phone. 768/480: No Deep Sleep.

Enviado desde mi LG-P500 usando Tapatalk
[Optimus One, P500 Original Android Development] kawaiiDango:
while using the kang, after a reboot, all of a sudden, all data has reset and home and search key no longer works, and the launcher always FCs at boot. tried things like fix permissions, wiping dalvik cache etc but nothing happens. problem still persists. any way to get the data back? i think its some major bug.

also, now there are only three thing in the power menu- reboot, power off and screenshot. silent mode toggle, airplane mode, etc are gone.
[Optimus One, P500 Original Android Development] harshdoshi25:
plz post in general, this happens in android sometimes, android ****s on itself.. might be a bad flash.. can be something you di/happened by mistake. oc.. just wipe all n reflash and be careful from next time.
[Optimus One, P500 Original Android Development] vlt96:
That is not a ROM bug, solution: open a file manager and put the provision.apk from the zip to /system/app/ set permissions to rw-r--r-- and reboot;)

.........
[Optimus One, P500 Original Android Development] eoghan2t7:
or to make is easier

adb remount

adb shell chmod 644 /system/app/provision.apk

adb shell chown 0:0 /system/app/provision.apk

adb reboot

make sure usb debugging is on.
[Optimus One, P500 Original Android Development] kawaiiDango:
well ok, but I had never had this with any other Rom and this is the second time it happened with kang2. looked up and found that its an android bug which happens randomly, but nowhere it was specified that data also gets deleted.

I fixed by changing device_provisioned=1 in some settings.db (according to a thread in cm forums) , but data seems to be permanently lost.(its funny that it still remembers my wifi apns and my wallpaper ) All apps behave as if they were newly installed, all messages gone and so on. Launcher fcs every time. I don't find these symptoms posted anywhere
[Optimus One, P500 Original Android Development] vlt96:
no it isn't lost, you have to fix the provision.apk and everything will be be fine;)

provision.apk is the one time initialization, and the lost of the app makes phone think it can't use home button and many many features, and losing all the data, and launcher FC... but data will be back when you fix it... just push it top system/app (don't care if already installed) then go in recovery and wipe dalvik and voila!!!
[Optimus One, P500 Original Android Development] lupohirp:
tried didin't worked unfortunately....i'm trying right now another prefix based on gb libcamera hal plus my code for preview fix
[Optimus One, P500 Original Android Development] lupohirp:
yes added but chipset doesn't work with genlock 'cause doesn't have support inside
[Optimus One, P500 Original Android Development] lupohirp:
you need to do changes on devices_lge.c :) but these are on my github :)

EDIT: ehm....WHATTAHELL IS THIS ERROR AFTER REPO SYNC?? error: revision refs/heads/ics in CyanogenMod/android_device_lge_p500 not found

ok resolved....
[Optimus One, P500 Original Android Development] markolino631:
Hey lupohirp sorry for my question...but i can update the driver kgsl on version 3.0 with the kernel 2.6.32.59? Can you help me to update it? You do a great favor for me...this is the kernel...https://github.com/markolino631/LG-Optimus-Chic-Kernel-2.6.32.59-

i have this error when compile the new file:

drivers/gpu/msm/adreno_ringbuffer.c: In function 'adreno_ringbuffer_waitspace':

drivers/gpu/msm/adreno_ringbuffer.c:81: error: implicit declaration of function 'writel_relaxed'
[Optimus One, P500 Original Android Development] :
msm_camera.h

#define MSM_CAM_IOCTL_GET_PICTURE \

- _IOW(MSM_CAM_IOCTL_MAGIC, 17, struct msm_camera_ctrl_cmd *)

+ _IOW(MSM_CAM_IOCTL_MAGIC, 17, struct msm_frame *)

The most important thing is "msm_frame" parameter. If you see "Invalid parameter" error, you should pass the correct variable.

Plase send me your libcamera sources, I will have a look it.

hephappy@g.....
[Optimus One, P500 Original Android Development] Bec de Xorbin:
OT: Top-poster? Really? I thought they died with Usenet...
[Optimus One, P500 Original Android Development] Arjen:
Should be on github now ;)

Sent from my Icy P500
[Optimus One, P500 Original Android Development] lupohirp:
yo

ops forgot to use that thanks :) howewer i will send source code later now i don't have time unfortunately :(....but with this i can use any camerahal right?? it is universally patched as i can see in code....

had a crazy idea....and if we use CAF camera HAL??

https://www.codeaurora.org/gitweb/q...dware/qcom/camera.git;a=tree;hb=ics_chocolate

and build a libcamera from ics_chocolate sources???

https://www.codeaurora.org/gitweb/q...b78a407307cf5422a7ced4927158;hb=ics_chocolate

no armv6 chipset has 3.0 kernel so we must assume that this is automatically backported....or not??
[Optimus One, P500 Original Android Development] :
In ICS, old V4L2 was deleted. GB camera hal is using V4L2.

https://github.com/androidmeda/lge-kernel-msm7x27/commit/173ddd539f6763bf7b46f791472e44a6b2f613b8

New ICS camera hal is using VFE driver for snapshot:

https://github.com/androidmeda/lge-kernel-msm7x27/commit/5048c8c8031b342c3ff62e66caefa5a4eff6e9cb

https://github.com/androidmeda/lge-kernel-msm7x27/commit/6eb6b503c5fa0704aecbc6fb019d4abc56462114

If you want to get picture from buffer, you shoud pass msm_frame* variable, then it will work:

MSM_CAM_IOCTL_GET_PICTURE \

- _IOW(MSM_CAM_IOCTL_MAGIC, 17, struct msm_camera_ctrl_cmd *)

+ _IOW(MSM_CAM_IOCTL_MAGIC, 17, struct msm_frame *)

I had a look at mikegapinski sources, he is using correct parameters, so it is working.
[Optimus One, P500 Original Android Development] lupohirp:
ok then i will try with mikegapinski camera hal and gb libcamera taked from cm7.2 nighlies :) i'll let you know later :)
[Optimus One, P500 Original Android Development] markolino631:
lupohirp i update the devices_lge.c but nothing! Can you change the devices_lge.c from my source?..So the problem is only on those file? (devices_lge.c)
[Optimus One, P500 Original Android Development] adfad666:
I found this for the IOCTL_KGSL_TIMESTAMP_EVENT error in logcat (I lost the site where I found it)

http://pastebin.com/scNHdF5r

the patch is unusable, but the important thing is this change to the kernel that is different in ours, from:

KGSL_IOCTL_FUNC(IOCTL_KGSL_TIMESTAMP_EVENT,
kgsl_ioctl_timestamp_event, [B]0[/B]),

to this in file drivers/gpu/msm/kgsl.c:

KGSL_IOCTL_FUNC(IOCTL_KGSL_TIMESTAMP_EVENT,
kgsl_ioctl_timestamp_event, [B]1[/B]),

otherwise the new adreno200 blobs work great! the spinning galaxy live wallpaper is cool :cool:

I'm syncing your kernel now Lupo, but it's taking foooorrreeeevvveeeer so I'll update later once i've tested it.
[Optimus One, P500 Original Android Development] markolino631:
Hey adfad666 can you help me please? I have this error when compile the kgsl 3.0 driver...http://pastebin.com/Jsq4GPXZ
[Optimus One, P500 Original Android Development] mastershefis:
Like this: ?

kgsl_ioctl_sharedmem_from_vmalloc, 0), KGSL_IOCTL_FUNC(IOCTL_KGSL_SHAREDMEM_FLUSH_CACHE,
kgsl_ioctl_sharedmem_flush_cache, 0),
KGSL_IOCTL_FUNC(IOCTL_KGSL_TIMESTAMP_EVENT,
kgsl_ioctl_timestamp_event, 1),
KGSL_IOCTL_FUNC(IOCTL_KGSL_DEVICE_REGREAD,
+ kgsl_ioctl_device_regread, 1),
[Optimus One, P500 Original Android Development] kawaiiDango:
I think ur wrong. Pushed it with 644 permissions, wiped dalvik cache, still no data. I pulled mmssms.DB from adb via recovery and opened it with SQL spy, it just shows blank tables. Moreover, everything in /data/data have today's creation date and all the sharedprefs.xmls look like they are in their default settings.
[Optimus One, P500 Original Android Development] vlt96:
Don't just change permissions...

1. Uninstall/delete the app

2. Push it back (from zip) to /system/app (and set permissions to 644, do it with es file explorer, is the best)

3. Reboot in recovery, wipe dalvik-cache and cache partition...

Reboot!

.........
[Optimus One, P500 Original Android Development] kawaiiDango:
I did exactly that. Btw i dunno how the old data can magically come back when the files already seem to be overwritten with defaults. Maybe a rom bug, maybe a hardware bug, maybe i discovered a new Android bug... But this happened to me twice, once right after flashing kang (i always do full wipe before flashing), and now.

But one thing is good about it, expired trial apps have started working again.
[Optimus One, P500 Original Android Development] thachtunganh:
There is a device use armv6 chipset has kernel 3.0 almost fully working... Samsung Galaxy Spica.
[Optimus One, P500 Original Android Development] lupohirp:
ok thanks i will enable in kgsl adfad :)
[Optimus One, P500 Original Android Development] lupohirp:
ok backported quota2 (what a mess check my github damnnnnn)....i still have problems with preview...grrr...if i have only much more time..... howewer i understand that you're tired to wait :) in evening i will upload a test version for you guys :) a little present for excuse me i'm very busy :( have an idea for ksm also hope that works :)
[Optimus One, P500 Original Android Development] sweetbinodray:
Happy to see new release. Hope this time I can fix deep sleep with this build in MIUI. Double thumbs=up for you:):):)
[Optimus One, P500 Original Android Development] vlt96:
So except ksm everything is working like it did on previous+hw/a+android 4.0.4?

By "like it did on previous" I mean "all bugs are there, but no extra one's":D
[Optimus One, P500 Original Android Development] lipe082:
Will browser be ok lupo??
[Optimus One, P500 Original Android Development] fundoozzz:
LOL...its so funny... a single post from lupo and u ppl just start hunting like 3yr old kid... "will this work" "is this added" what about such n such thing" :D

Relax guys, he will definitely update you with the changes as and when he deploys the update.... So kindly stop messing this development thread and let it be used only for bug reporting and fixing.... I know this post also counts as one of the crap but this was eagerly needed.... :)
[Optimus One, P500 Original Android Development] Arjen:
@Lupohirp

What 3.0 kernel are you porting from? It could help me on my own 3.0 kernel. Still missing some things :rolleyes:

Sent from my Galaxy Nexus with Jelly Bean ;)
[Optimus One, P500 Original Android Development] xSyntaX:
Battery drains fast in 4.0.3.

kind regards

xSyntaX
[Optimus One, P500 Original Android Development] lupohirp:
i'm not porting from anyone arjen....it's only a try e error...when missing a function i search and implement.....i search for problems and that whats the magic....btw if this will become official i will start to work on a 3.0 kernel i think i will fork your branch ;)

OT: WTF? galaxy nexus????you have abandoned us :(? noooooo:(

btw i had a great news: KSM IS WORKINNNNN (ICS feature needed for devices with 512mb of ram or less :))

uploading testing version
[Optimus One, P500 Original Android Development] harshdoshi25:
lol ! Arjen is playing the aprils fool prank with us :p no jellybean on any device.. hehehe ;)
[Optimus One, P500 Original Android Development] Davez92:
Lupo, what about the testing version which are you uploading now?what are main news in it?thanks for the answer
[Optimus One, P500 Original Android Development] simplicio11:
Changelog? thanks! :)
[Optimus One, P500 Original Android Development] evgenums:
Wait! Wait! Wait! And another Wait! People?! WTF? Can you wait a little time? When Lupo is upload file, hi is write all change ang future! Just must wait!

P.S. Sorry for my English!
[Optimus One, P500 Original Android Development] lupohirp:
i'll provide now

using new adreno200 drivers for ics

fixed KSM support in kernel

Backported quota2 socket (net daeomn wants this)

fixed brwoser crashes

fixed slow rendering in browser

fixed gallery

fixed livewallpapers

Android 4.0.4

Latest Cm sources

bug

still no camera preview

video codec(?) (dunno test and let me know)

new version is up

btw i'll advise to do a clean install 'cause it is a new version of android and i had problems with only updating, Do a full wipe. i will not include this changelog in first page 'cause we must keep clean as possibile the first pages.

BTW i have to ask you a favour. i applied a fix in the quickness but i can't test 'cause i don't have any video on my sdcard....please test and let me know :)
[Optimus One, P500 Original Android Development] cyrix.vs:
Thanks Lupo and good luck for "camera preview":):):)