yashsingh1/xdaforums huggingface dataset:
[LG Optimus 2x] piiiters:
niceee

Awesome why if nVidia had developers like you... just awesom
[LG Optimus 2x] vadonka:
console earlysuspend is not a usual linux feature, and its broken in the 3.0.x kernel, but this commit is fixed the implicit declaration error.
[LG Optimus 2x] owain94:
vadonka stop it! i am trying to clone your git and build everytime my cloning or builing is complete i see new comits :mad::p

but still love to see that you are working on this!

thanks mate!
[LG Optimus 2x] vadonka:
im finished for today :) go ahead :D
[LG Optimus 2x] tr@p:
Great work vadonka. I've just loved your GB kernels and I'm so glad to see that you are working on this.

If you need tester, I would be happy to do it... :)
[LG Optimus 2x] Dekudan:
Just to say - idle battery life is fantastic on this Kernel. Beautiful stuff :) lost ~1% in 8 hours.
[LG Optimus 2x] vadonka:
owain: clone this source too: https://github.com/norbertc/nexus-s_kernel

its not a tegra kernel but an android kernel version 3.0.25 for the nexus s, many commit working for as too. forget the arch/arm/mach-tegra folder and the drivers/star but everything else is useful. consoleearlysuspend.c broken in this kernel too, so use my source in the kernel/power folder. as i see the deep sleep is working even with the console earlysuspend.
[LG Optimus 2x] owain94:
nice thanks i will look at it and try to make something although i suck at kernels :o
[LG Optimus 2x] vadonka:
at least the kernel have a much more less files like the rom :)

and the building process is faster too :)
[LG Optimus 2x] owain94:
so true :D

EDIT:

going to start a private project making and editing kernels just changing things write codes for it to see whats better

just to get more familiar with kernels =D

EDIT2:

Peter can i ask you something

did you work as developer now or before or did you learn this all by yourself

and how many years are you developing right now?
[LG Optimus 2x] vadonka:
i was wondering this kernel can work with GB roms too? since the cm7 and the cm9 kernel have only a little difference, it may be work with the cm7 too. i dont know.

---------- Post added at 01:01 AM ---------- Previous post was at 12:57 AM ----------

promise me that you dont laugh at me! :)

i have zero C programming knowlege before i start work with etana kernel :)

i already have php, html, sql, shell script, etc.. knowledge but no C, C++, C#

i learn all this in the last 3-4 month, with by myself and with help of Spica. but i can learn very fast fortunately :)

sadly im far not experienced like you or pastime or spica, but i try evolve :)
[LG Optimus 2x] owain94:
i always admire you skills and now even more you learned all this in such small time !?

nice job :eek:

if you search for the changes that are made between cm7 and cm9 kernel by arcee

you can revert those changes and it would be compatible with cm7 (well it should :p)
[LG Optimus 2x] vadonka:
thx for the recognition :) it means a lot!

about the cm7, cm9. the cm9 have an advanced netfilter support. i dont know that this can be work with the cm7 too? i know that the tuchscreen patch is required for the cm9 and causing issues in the cm7, and there is a huge difference in the usb driver of course. but the other parts maybe it will work.

if you have time, pls try to boot with this kernel 3.0.25, im not using the ics for daily use, so i always need a full nandroid backup/restore before i try the kernel in ics.
[LG Optimus 2x] owain94:
i will try cloning sources right now ;)
[LG Optimus 2x] vadonka:
the github is annoying slow sometimes :(

ps: the web storage what i give you, can be run php code, so if you installed some php file manager app, you can temporary disable some folder access while you uploaded the file. then enable back the folder access for the users.

if you need i can give you a mysql access too.
[LG Optimus 2x] owain94:
that iss not the big problem for me

3.0.8 kernel by wpark never works for me maybe wrong CWM?

going to figure this out and then flash your modded kernel ;)
[LG Optimus 2x] vadonka:
its not modded too much, only updated to 3.0.25 (using the official incremental patch's), and fix some compilation error. plus merging the star drivers from the v20q sources. im not add the overclock, the otf, or anything else. for now.

however i see some codes around the board definitions what is used the stock kernel but not in the cm kernel. so it might be a problem if you try in the cm9. this kernel working fine probably with a leaked stock ics rom. unfortunately there is no such rom exsist :)
[LG Optimus 2x] owain94:
can't get the last version by wkpark working but the first kernel without vib working fine the update with vib fixed also working fine but his latest just doesn't bot on my device weird...

anyway going to build to see if this is working for me :D

EDIT:

wow biggest shame ever on me please?

trying to flash a p999 kernel for a half hour now

damn i must be blind or something in the file name is even "p999"
[LG Optimus 2x] vadonka:
we are just humans, you know...:rolleyes:
[LG Optimus 2x] tr@p:
Wkpark's working for me... I only had one overnight charging bsod/reboot.

Which cwm are you using owain?
[LG Optimus 2x] wkpark:
this is SU660 kernel for the SelfKANG3 (by arcee)

you have to download P990 SelfKANG3 and replace boot.img with this

http://code.google.com/p/openstar2x/downloads/detail?name=boot-cm9-for-su660-3.0.8-vib-120320.zip

http://code.google.com/p/openstar2x/downloads/detail?name=boot-cm9-for-su660-3.0.8-120322.zip

but you need some other stuff to use it

http://cafe.naver.com/op2x/74637 (written in Korean, but you can download attached service pack for SU660 to use homekey, fix vold.fstab etc.)
[LG Optimus 2x] wkpark:
ICS/CM9 works fine with the CONFIG_FB_EARLYSUSPEND option.

but GB/CM7 known to work with the CONFIG_CONSOLE_EARLYSUSPEND

(screen off animation make some SOD trouble with CONFIG_FB_EARLYSUSPEND)

and SU660 works fine without SOD/BOD problem.
[LG Optimus 2x] vadonka:
its worth a try :) i still try to port this kernel to the cm7. it would be awesome :)
[LG Optimus 2x] wkpark:
hmm..

I have to update the updater-script to check the device model :p
[LG Optimus 2x] owain94:
hehe or i need to learn how to look at the file name :p

@Vadonka can't get it booting will try to run the config again maybe i did something wrong in there
[LG Optimus 2x] vadonka:
freeze? bootloop? first or second logo?
[LG Optimus 2x] owain94:
factory reset in CWM

first logo to blackscreen and then phone tries to boot again
[LG Optimus 2x] vadonka:
which means the kernel image dont load at all.
[LG Optimus 2x] owain94:
mistake by me or not :o?

btw can someone explain this please idon't really understand

if i flash wkpark his kernel it doesn't work with my current data partition but if i do a factory reset it boots fine
[LG Optimus 2x] vadonka:
not :) its some problem with the kernel, but i can boot this kernel with your cm9 kang. it dont mean anything since i can boot the su660 kernel too, im lucky with my phone :)

well its need to investigate more... but not today :)

good night, im going to sleep now.

by guys
[LG Optimus 2x] owain94:
can you pm your build?

maybe i did something wrong with building or something

will look into it this night maybe i can find something :D

good night!
[LG Optimus 2x] wkpark:
If you have external SD, pull out external SD and try to reboot
[LG Optimus 2x] wkpark:
this is updated boot/kernel img for P990, SelfKANG3 or Owain's custom rom

http://code.google.com/p/openstar2x/downloads/detail?name=boot-cm9-for-p990-3.0.8-120322.zip

Changes

1. fixed three annoying kernel WARNING/BUG messages

- irq wakeup warning with gpio-keys

- revert recent cpufreq_stat (already included in the lge-kernel-star)

- simplified platsmp.c (some parts of platsmp.c are included into the core code)

2. revert emmc/sdcard change of ramdisk

3. included YAFFS (by vadonka with minor fix)

Source Code

https://github.com/wkpark/tegra-linux-3.0.y/tree/p99x-ics
[LG Optimus 2x] owain94:
doesn't work with vadonka his .25 sources
[LG Optimus 2x] lipisak:
Hi, I think that mounting is still reverted. CM uses /emmc as external and /sdcard as internal. Is it on purpose?
[LG Optimus 2x] vadonka:
use this compiler and you will have no build error:

arm-linux-gnueabi-gcc (Ubuntu/Linaro 4.5.3-12ubuntu1~ppa1) 4.5.3

i committed a new defconfig currently, try to compiling with this. the old defconfig had a many part what is causing issues on p990. im push the defconfig stay close to the cm9 kernel defconfig. the building time is now half like before.
[LG Optimus 2x] owain94:
Yeah this means it will only take a bit more then a minute now lol

EDIT:

i love github now such nice cloning speeds

cloning with 5MiB/s <3
[LG Optimus 2x] wkpark:
no. it is reverted like as following.

at init.p990.rc

before

...

export SECONDARY_STORAGE /mnt/sdcard

export EXTERNAL_STORAGE /mnt/emmc

...

after (default values of SelfKANG3)

...

export SECONDARY_STORAGE /mnt/emmc

export EXTERNAL_STORAGE /mnt/sdcard

...

and also, you have to check your vold.fstab setting.

vold.fstab is more important than *_STORAGE env. variables.

--------

you can see your settings by the following adb shell

adb shell
> echo $SECONDARY_STORAGE
...
> echo $EXTERNAL_STORAGE
...
[LG Optimus 2x] wkpark:
why don't you use "git merge" or "git cherry-pick" ?

you trash all important history / author comments and more.
[LG Optimus 2x] vadonka:
the following folders fully compatible with the 3.0.25, all folder differ by hand:

includes/

init/

fs/

block/

crypto/

firmware/

ipc/

kernel/

lib/

mm/

net/

samples/

scripts/

tools/

usr/

virt/

wich means the missing folders: drivers/, arch/arm/mach-tegra, sound/

the sound folder contained some code from the samsung kernel, also the new voodoo sound driver, i think we can use this too. the drivers/staging is ok, the rest is ok too, the drivers/star is missed from the samsung kernel so we need to use the v20q sources i think, the arch/arm/mach-tegra is the real hard part.

---------- Post added at 11:56 AM ---------- Previous post was at 11:53 AM ----------

cherry pick is not working since our sources is too different, we need to resolve the git conflicts by hand, what is a nightmare. at least for me, im not a git expert.

i simply clone the kernel source, pull the patched files list, and do a diff command in the linux, then investigate the diff file in a text editor. its a way easier than resolve every git conflict by hand.

owain: i can boot this latest version, even with a cm7 rom (touch screen not working fine but its normal), but the cm9 have no issues. at least for now.
[LG Optimus 2x] owain94:
Nice work I can't test right now my computer is finished building and I am on school build it using vnc :(

Will try as soon as i come home
[LG Optimus 2x] Harsh:
guys bit help on git.

How can I cherry pick vadonka's git commits, on repo I forked from wkpark?

And he updates faster than I can do by patches, need cherry pick trick. help
[LG Optimus 2x] vadonka:
i cant help about that, im not a git expert, i dont know many git command :(

im using subversion for years before
[LG Optimus 2x] hei1125:
Remote add the repo

And then fetch it

Then you can cherry-pick it.

I was taught by hackworks yesterday:)
[LG Optimus 2x] wkpark:
I mean linux 3.0.y stable tree. and I can easily merge v3.0.25

there are only 2 conflict files exist.

commit 3f74743e8ab5ce8a31128105f047dfc34055b31f
Merge: 0d0d976 9bf176a
Author: Won-Kyu Park <wkpark@gmail.com>
Date: Thu Mar 22 20:40:38 2012 +0900

Merge remote-tracking branch 'linux-stable/v3.0.y' into p99x-3.0.y

Conflicts:
drivers/usb/host/ehci.h
fs/proc/base.c

manually editing can make some troubles, some time only oneliner make your system brick.

It is much more easy and safe to use "git cherry-pick" "git merge" "git rebase" "git am" "git reflog" rather than manual patch.

all helpful comments and logs are preserved and you can easily "git bisect" some bugs found after merge update etc.

without these all things, I can't try to make a forward ported ODM/NVRM based tegra kernel at all.
[LG Optimus 2x] vadonka:
first endcall bsod, with cm9+3.0.25

well its not perfect but at least working :)

---------- Post added at 01:13 PM ---------- Previous post was at 12:49 PM ----------

ahh, i understand now: cherry pick the commit, resolve the conflict if any, then call git add and commit.
[LG Optimus 2x] wkpark:
you've made some mistakes

1. https://github.com/vadonka/tegra-linux-3.0.y/commit/cf8e6cdcc2acef99be42a7eaa73d440c9a325d82

you can't use the newest tegra-i2c driver. it's not ODM/NVRM version. you have to use old ODM/NVRM supported i2c driver.

2. https://github.com/vadonka/tegra-linux-3.0.y/commit/acd458dcc11e75f7062ef0b216d4f9aee67863ed

there are two commits exist to make continuous WARNINGS at drivers/cpufreq/cpufreq_stats.c

so you have to revert two commits (lge-kernel-star already revert these commits

Revert "[CPUFREQ] Fix memory leak in cpufreq_stat"

This reverts commit 98586ed8b8878e10691203687e89a42fa3355300.
--------
Revert "CPUFREQ: Remove cpufreq_stats sysfs entries on module unload."

This reverts commit 21dfd57873ccc7e4ff42d3dbc281cafe03dfb4a4.
[LG Optimus 2x] vadonka:
thx, corrected!
[LG Optimus 2x] owain94:
git commit -a

Adds all modified files so you don't have to git add all files (if you want to be lazy like me :D
[LG Optimus 2x] vadonka:
thx again :)
[LG Optimus 2x] wkpark:
nobody try to use the kernel 3.0.8 2012/03/22 snapshot ?

is it works fine or freezing, rebooting or something ?

It is more important to stabilizing this new kernel than add new features

I need a panic/oops messages to track kernel problems ;)
[LG Optimus 2x] vadonka:
i only have the endcall bsod problem
[LG Optimus 2x] wkpark:
did you try to use the latest kernel 3.0.8 snapshot ?

Ive fixed several kernel WARNING/BUG messages.

currently my SU660 have no such SOD problem.
[LG Optimus 2x] botay.alls:
I see problem about wireless. after i enter password, mobile need many time for connect. Or I should turn off and re-turn on wireless, this is connect faster
[LG Optimus 2x] tr@p:
So far so good on my phone. No freezes so far. But I'm only using it for an hour or so...

Will report any freeze/reboot/bsod.

And sd card is mounted as it is on CM9/7. Thx for this. :)
[LG Optimus 2x] vadonka:
the su660 and the p990 have a few difference, so it might be have some sod in the p990.
[LG Optimus 2x] wkpark:
my SU660 have no such problem.

after BSOD you can try to get the last kernel message as following method.

1. you got the BSOD

2. pull off then push on your battery quickly less than second.

3. this action make your phone reboot normally

4. and you can extract your last kernel crash log found at /proc/last_kmsg by adb pull command (or adb shell cat /proc/last_kmsg > msg.txt)
[LG Optimus 2x] wkpark:
currently, the wireless net driver is imported from SU660 (forward ported driver)

I did not check the difference between lge-kernel-star and su660(v20D)

and it is more ideal to apply LG specific change onto newest bcm4329 driver.

and it needs more time to do so.
[LG Optimus 2x] Thief777:
snapshot is fine - no lag\bsod

But the phone works much worse - performance drop

p\s Kang_Owain-29
[LG Optimus 2x] Striatum_bdr:
I've been running it for the last 9hours.

I don'thave any problem of deep sleep bsod but i had one phone freeze during incoming call (during the rings, before taking call). Had toi pull out battery.
[LG Optimus 2x] vadonka:
same problem for me

wkpark: are you using that config what is attached to your kernel installer zip?

because that config using a too many kernel trace option, plus scsi driver and many more what is not supported by the su660 or the p990. maybe this causing the performance drop.
[LG Optimus 2x] wkpark:
what's the performance drop you mean ?

you don't have to trust all the result of benchmark.
[LG Optimus 2x] tr@p:
Had one freeze while browsing with opera mobile.

I didn't notice performance drop...
[LG Optimus 2x] fuxmen:
Can't charge phone, imidiately after plug in charger the screen was frozen. Have to pull out battery, try it twice...
[LG Optimus 2x] Thief777:
no us benchmark.

I mean a long opening menu \ applications - it is really noticeable
[LG Optimus 2x] hisham027:
Charging is working fine for me :)
[LG Optimus 2x] wkpark:
sure. you can check it out using "scripts/extract-ikconfig" script.

these kernel debug options are almost no effect on performance.

kernel config is almost same as of CM9 SelfKANG3.

but now, to find out the optimal kernel config is not essential problem.

and there are some omitted commit exists like as following

commit 9053084636be53fab6c0d9f80863b890e981096a
Author: Venkat Moganty <vmoganty@nvidia.com>
Date: Sun Sep 5 12:59:15 2010 -0700

[usb-msd]Fix to increase MSD write performance

MSD write performance is decreased due to the file_sync() called in the write
path this is introduced in the K32. After removing this write performance is
increased and it is back to K29.
------
commit db0941d0ce12af751c522410b0604878e8bf3114
Author: Gary King <gking@nvidia.com>
Date: Fri Feb 12 18:35:19 2010 -0800

f_mass_storage: allow platform to set bulk buffer size

these are of USB f_mass_storage.c but can't apply it on the kernel 3.0

these sort of some omitted commits(less than ~5) need more time,
[LG Optimus 2x] kitty's_daddy:
adb shell

Can we use adb shell on the Windows with this kernel ? :confused:

------------------------------

영구님 윈도우에서 adb shell 실행이 가능한가요?

답변은 영문으로 해주세요. 한글만 쓰면 경고먹네요.
[LG Optimus 2x] vadonka:
i didn't notice the performance drop, but i dont have any app just installed the cm9 owain kang and the kernel. and the endcall bsod is not happened all the time, but a bit too often. by the way its a good progress!
[LG Optimus 2x] wkpark:
정식펌 커널은 잘 작동하고요, ICS/CM9버전은 "모르는 디바이스"라고 나오는데 강제로 설치하시면 됩니다~

you can use adb shell by the following method

0. install LG USB driver

1. connect your device and PC with USB cable

2. all other devices are automatically detected except "ADB Interface"

3. there are only one device left as "unknown"

4. force to try to install "Android Platform Sooner Single ADB Interface" driver
[LG Optimus 2x] kitty's_daddy:
Thanks for your answer. I'll try it. :)

PS: I could catch dmesg and last_kmsg with terminal emulator on the CM9. :D
[LG Optimus 2x] Harsh:
For me working great. No bosd nothing. Only problem is when we select reboot recovery, it dont work. It just reboots.
[LG Optimus 2x] wkpark:
:)

I don't have reboot recovery problem.

my SU660 works fine with SelfKANG3 + kernel 3.0

I think it is the problem of your custom rom or some reboot script issue.
[LG Optimus 2x] RoXeon:
I'm currently on vadonka's kernel 3.0.25 + Owain's CM9 Kang-27 and i didn't notice any problems. No BSOD, no preformance drop, no problems at all. Great work guys! ;)
[LG Optimus 2x] tr@p:
Reboot recovery works fine here too. Using Nova HD and kernel 3.0.

---------- Post added at 05:52 PM ---------- Previous post was at 05:48 PM ----------

Where did you find vadonka's kernel?
[LG Optimus 2x] owain94:
build it yourself or wait for it
[LG Optimus 2x] RoXeon:
If you are asking about flashable zip then i didn't. I've compiled it from vadonka's git repo.
[LG Optimus 2x] owain94:
guys please help me out

I got the feeling I have been doing this wrong the whole time...

How do I get the zImage to a boot.img?
[LG Optimus 2x] Harsh:
as you already CM9 repo synced with p990 source it should be easy for you.

just grab zImage, rename it to kernel, and put into device_lge_p990

and then

. build/envsetup.sh && lunch cm_p990-userdebug

make -j4 bootimage

easy you get bootimage in 2-5 mins in out/target/p990
[LG Optimus 2x] owain94:
have been doing it right all the time :p

thanks for the confirmation Harsh :D
[LG Optimus 2x] Harsh:
:D

do you know how to change name in xda. Currently I am trying to make ultimate kernel repo, wkpark and vodonka mix.
[LG Optimus 2x] RoXeon:
If you want to do this without ROM's repo then just fallow this instructions.

But you have to remember that if you are using perl scripts from that web page, you can't use ramdisk.cpio.gz file that you are getting from those scripts. You have to unpack and then repack this file again becouse the ramdisk which you got from spliiiting boot image is filled at the end with nulls (to fit pagesize) and becouse of that mkbootimg will calculate wrong ramdisk size. Ofc i can send you matching and working ramdisk if you want to :)
[LG Optimus 2x] owain94:
i have no idea maybe you can pm harree the o2x forum mod ??

thanks!

but way to much work i got sources on my computer

renaming and giving typing one command is so much easier =D
[LG Optimus 2x] vadonka:
the easiest way to put the zimage to the boot.img

abootimg -u boot.img -k zImage

abootimg is a linux command, this will update the zimage in the boot.img file, dont touch the initrd or the cmdline. you can use the cm9 kernel boot.img for the source. im using this method too
[LG Optimus 2x] owain94:
even easier thank you!
[LG Optimus 2x] stevew84:
I was running the P999 kernel since last night, but about an hour ago I lost all signal and APN's weren't responding. I've reflashed the kernel but no luck. I'm running Hellfire ICS 1.4 along with this kernel, everthing was fine up until a while ago.

I'm in the process of running the newest Nullifier, then will freshly install everything and hopefully have a working signal.
[LG Optimus 2x] Harsh:
I am compiling on OSX, do not have abootimg command. And as I do have source, so for me replacing zImage is okay too.

And wanted to ask you more, you got BLX implementation in your kernel, what exactly it is? Is it extra app like voodoo?
[LG Optimus 2x] owain94:
Battery Life eXtender (BLX)
[LG Optimus 2x] Harsh:
thanks, but wanted to know how it works. needs extra app or its kernel only.
[LG Optimus 2x] owain94:
ahh my bad i am sorry no app needed you can read about it here

http://xdaforums.com/showthread.php?t=1257497

vadonka please help xD?

Owain@WarMachine:~/Desktop/vadonka/cm9$ abootimg -u boot.img -k zImage

reading kernel from zImage

boot.img: updated is too big for the Boot Image (2582528 vs 2541568 bytes)
[LG Optimus 2x] vadonka:
then unpack the boot.img and pack again with the new zimage file

unpack command: abootimg -x boot.img
[LG Optimus 2x] owain94:
thanks worked :D
[LG Optimus 2x] vadonka:
you welcome :) next time the update will work with this repacked boot.img
[LG Optimus 2x] wkpark:
it's good to hear that kernel 3.0 for P999 also bootable :)

P990 ~ SU660 are bootable each other but P999's kernel is not.

for P999 I was able to check compiler warnings, logical mistake or so.
[LG Optimus 2x] owain94:
do you have any idea why my computer only spit out non working zImages :(??

no weird errors while building tried now with arm eabi 4.6 4.4.3 and 4.4.0 everytime it get stuck on first logo 4.7 can't compile (but that is expected) and didn't try with gnueabi to lazy to edit the files to make it compatible with it
[LG Optimus 2x] vadonka:
try to use 4.5.3 from Linaro
[LG Optimus 2x] owain94:
i think i will stay at making ROMs :o:p
[LG Optimus 2x] Harsh:
come on dont give up. I am having same troubles. I am on mac bit more complicated changing toolchain, as linaro not available at all
[LG Optimus 2x] owain94:
i am also on a mac maybe that is the problem :confused:

EDIT:

nevermind tried couple builds today on ubuntu with linaro toolchain
[LG Optimus 2x] RoXeon:
I've compiled it with arm eabi 4.6 and i didn't have any problems. I'm not an expert, but i would say that stucking on first logo is most likely "boot header"'s fault (header of boot.img - first 2048B) if you dont have any problems with compiling. If you want to you can send me your zImage and i will tell you if it is zImage problem or your header/ramdisk.
[LG Optimus 2x] Harsh:
Can you upload your all ramdisk, base, zImage, cmdline, pagezie and boot.img files for us?
[LG Optimus 2x] owain94:
giving it one more shot after dinner (wtf dinner!? it is 23:49PM here)

anyway one more shot otherwise i will upload it and afterward flip my table and computer out of the windows :D
[LG Optimus 2x] Harsh:
something is wrong with my way of making boot.img

i tried unpacking RoXeon's kernel boot.img and tried packing it again, and couldnt boot through it, even using his zImage.

i use