Jump to content


Photo

Dev 3.0+ Kernel + CM 10.1/JB 4.2

* * * * * 1 votes

  • Please log in to reply
150 replies to this topic

#1
DeathArrow

DeathArrow

    Newbie

  • Members
  • Pip
  • 12 posts
  • Devices:LG E400
Alright, I'm quite inexperienced when it comes to porting Android, but I'm a programmer and I've already developed software under Linux, so I'm going to try and port kernel 3.0+ and CM 10.1 or JB 4.2 to our device.

CM 10.1 is almost building, I have to iron out some errors but I think I'll get it to compile correctly in a few days. However we have no 3.0+ kernel. And JB with 2.6 kernel doesn't seem too attractive to me.

I'm trying also to port a 3.0+ kernel to our device, and that is the most hard thing to do. You can't diff stock 2.6 kernel and patch against 3+ kernel because 3.0 and 2.6 kernels are quite different things. Heck, you can't even use the lge patches against a 2.6 kernel because LG made quite ugly source modifications and hacks after hacks.

So my goals are:

a.) build CM 10.1/JB against 2.6 kernel, to have something to test against

b.) port some 3.0+ kernel to our device

For a.) I think it's an easy job. For b.) it's quite hard.


I have three ideas to follow:

1.) use kernel 3.0 from LG L5 / lge 610
2.) use kernel from CAF and add drivers and patches
3.) use regular android kernel 3.0+ from nexus devices and add drivers and patches

I've tried 1.), but the boards are quite different, I was able to boot the kernel but got kernel panics. I've looked to the source and the code for lge 610 is quite different from the code for e400, board is different and lge modifications of source code sucks big time. If I am ever to decide to hire a former LG coder, I would not. They just fu...cked the kernel source lots of if defs and custom bulshiting with the android kernel

3.) is last idea I will try it if 2.) isn't suitable for some reasom

2.) is our best bet to have a modern, new kernel for our device and have JB 4.2 CM 10.1 shine.

Code Aurora already has most of Qualcomm drivers in the source tree, I have just to add different drivers for some devices (lots of) not made by Qualcomm.

So I'm trying to pursuit number 2.)

I will probably set up a github for compiling CM 10.1, when I will build it successfully, mainly /device/lge/e400 and /vendor/lge/e400 and modified build scripts. However this will be only to build a test CM 10.1 to have something to test against.

I will set up a github for kernel development, I will start from Code Aurora Forums 3.4 kernel.

How you can help:

I need/we need (if some other devs join in) more info about the hardware. I have lge400 service manual but not all devices are mentioned. I've already made a list but it's not complete.

a.) you are not a developer: if you have stock image and you are rooted, type these in terminal:

#dmesg > /mnt/sdcard/dmesg.txt put somewhere dmesg.txt and give the link in the thread

if you are not rooted, install ADB, and type:
adb shell
dmesg > /mnt/sdcard/dmesg.txt
exit
adb pull /mnt/sdcard/dmesg.txt whatever directory

Upload dmesg.txt to some filesharing and put the link in this thread.

b.) if you are a developer, you can help by identify devices based on dmesg and logcat.


If you are a developer and want to help, download 3.4 kernel from Code Aurora. Try to compile it and add drivers.

I will set up github for kernel and CM 10.1.

  • 4

#2
yayakuya

yayakuya

    Enthusiast

  • Members
  • PipPipPip
  • 178 posts
  • Gender:Male
  • Location:Indonesia
  • Devices:Sony Xperia E, HTC Desire VC
since i don't have Linux anymore at my home, maybe i could give you a logcat only. just tell me what should condition of my device you need...
is it just pure rooted stock, or somethin' else i have to put in my rom for make a logcat that you need?i'm very interested and i wanna be a part of this, i'll join with you and ready for being a tester :D

  • 1

#3
rajeshroopa

rajeshroopa

    Newbie

  • Members
  • Pip
  • 5 posts
  • Gender:Male
  • Location:India
  • Interests:Playing cricket
  • Devices:LG-E400
All the best.........

  • 1

#4
Shubham Gopale

Shubham Gopale

    Newbie

  • Members
  • Pip
  • 2 posts
  • Devices:lge l3
I wanna join u guyzzz:-)

  • 1

#5
ajeeshvijayan

ajeeshvijayan

    Newbie

  • Members
  • Pip
  • 34 posts
  • Devices:LG optimus L3 e400
was waiting for long

  • 1

#6
xeros2

xeros2

    Newbie

  • Members
  • Pip
  • 10 posts
  • Gender:Male
  • Devices:LG L3 (E400)
Don't you worry about hard to track stability issues after such big port of kernel?

I suppose that dmesg output may be not enough.
I would search in /proc/cmdline for settings (especially lge.*) used at boot to find in sources, /proc/{config.gz,devices,interrupts,iomem,misc,modules}, /proc/bus/input/devices, /proc/tty/drivers, /sys/devices/*, /sys/module/*.

In attachments you'll find /proc and /sys dumps on CM9 kernel. Regarding 'dmesg', I don't have currently clean boot log that would have enough info since boot.

Anyway, IMO, making upgrade from CM9 kernel sources for E400 in one (2.6.39.x) or two major versions up max (3.0.x) would be more reasonable than porting (and adapting) entire kernel from different source tree.
And I know LG's mess in sources. I see similar mess in TVs code that's why I have decided to not upgrade kernel in OpenLGTV BCM and compile/port only necessary kernel modules on top of current kernel.
Is there anything that you miss from 3.4 kernel that would be such big improvement for phone compared to currently used 2.6.38.6?

Attached Files


  • 1

#7
Chingizzka

Chingizzka

    Newbie

  • Members
  • Pip
  • 29 posts
  • Gender:Male
  • Location:Kazakhstan
  • Interests:Religion....Islam
  • Devices:LG OPTIMUS L3 e-400R
well good job...wish you good luck...btw don't forget about us...users with blurred screen.

  • 1
Posted Image

#8
misterff1

misterff1

    Regular

  • Members
  • PipPip
  • 86 posts
  • Devices:LG Optimus e400

well good job...wish you good luck...btw don't forget about us...users with blurred screen.

maybe you didn't notice, but the stockrom has a fix for it already and for cm9 will come soon

  • 0

#9
Chingizzka

Chingizzka

    Newbie

  • Members
  • Pip
  • 29 posts
  • Gender:Male
  • Location:Kazakhstan
  • Interests:Religion....Islam
  • Devices:LG OPTIMUS L3 e-400R

maybe you didn't notice, but the stockrom has a fix for it already and for cm9 will come soon

btw i got that first...you know just got installed on my device when it came out...i mean it was kernel from v10c+10q compiled...so now i am just sayin there that if they will make CM10.1 they better make sure about that screen problem

  • 3
Posted Image

#10
misterff1

misterff1

    Regular

  • Members
  • PipPip
  • 86 posts
  • Devices:LG Optimus e400

btw i got that first...you know just got installed on my device when it came out...i mean it was kernel from v10c+10q compiled...so now i am just sayin there that if they will make CM10.1 they better make sure about that screen problem

okay good point then :P

  • 0

#11
yayakuya

yayakuya

    Enthusiast

  • Members
  • PipPipPip
  • 178 posts
  • Gender:Male
  • Location:Indonesia
  • Devices:Sony Xperia E, HTC Desire VC
Here's my contribution....
Very pure Rooted Stock (unmodified)
just tell me what you need, and i will do my best ;)

Attached Files


  • 1

#12
ajeeshvijayan

ajeeshvijayan

    Newbie

  • Members
  • Pip
  • 34 posts
  • Devices:LG optimus L3 e400
what's the advantage of v3 kernel over our current kernel?

  • 0

#13
rajeshroopa

rajeshroopa

    Newbie

  • Members
  • Pip
  • 5 posts
  • Gender:Male
  • Location:India
  • Interests:Playing cricket
  • Devices:LG-E400
then only our device can support CM10 ROm.....

  • 0

#14
ajeeshvijayan

ajeeshvijayan

    Newbie

  • Members
  • Pip
  • 34 posts
  • Devices:LG optimus L3 e400
any luck? project running?

  • 0

#15
ajeeshvijayan

ajeeshvijayan

    Newbie

  • Members
  • Pip
  • 34 posts
  • Devices:LG optimus L3 e400

  • 1

#16
yayakuya

yayakuya

    Enthusiast

  • Members
  • PipPipPip
  • 178 posts
  • Gender:Male
  • Location:Indonesia
  • Devices:Sony Xperia E, HTC Desire VC
please be patient...
let him finish this without any annoying questions :)

if this is done, i think admin have to pinch this thread for future devs. Amien....

  • 1

#17
DeathArrow

DeathArrow

    Newbie

  • Members
  • Pip
  • 12 posts
  • Devices:LG E400
Thanks for uploads. Just to let you update where we are

.Generally speaking, I'm a busy man.

I'm studying for Ph D,

I'm doing things for money, got this as a side project since no one wants to do it.So bear with me, I'm sorry but I will develop this kernel/rom on a slow pace since I do not have much spare time.

What I did: I've compiled CM 10.2 with the old kernel.I got kernel 3.4 to play from Code Aurora, got it in GIT, maybe I should upload.

It's hard to port the kernel to our very device. It's even harder since L3 is now my only phone. I've missed calls trying to boot custom kernels.Anyway, since I don't have very much time, I will upload my modifications to a complete 10.2 os and I will upload the kernel I'm working on. Maybe some guys could help.LG code sucks, their proprietary hacks sucks big time!

Edited by DeathArrow, 13 February 2013 - 11:28 PM.

  • 1

#18
ajeeshvijayan

ajeeshvijayan

    Newbie

  • Members
  • Pip
  • 34 posts
  • Devices:LG optimus L3 e400
pls upload

  • 1

#19
yayakuya

yayakuya

    Enthusiast

  • Members
  • PipPipPip
  • 178 posts
  • Gender:Male
  • Location:Indonesia
  • Devices:Sony Xperia E, HTC Desire VC
someone just said, that p990 can running cm10 with kernel 2.6.xx
why we don't???

  • 0

#20
StanTRC

StanTRC

    Newbie

  • Members
  • Pip
  • 3 posts
  • Devices:LG Optimus L3

someone just said, that p990 can running cm10 with kernel 2.6.xx
why we don't???


dependencies for p990 (cm-10.1): https://github.com/C...cm.dependencies
kernel version: https://github.com/C...m-10.1/Makefile

  • 1




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users