Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,768,101 Members 44,000 Now Online
XDA Developers Android and Mobile Development Forum

E400-Kernel 3.x

Tip us?
 
fergy
Old
#21  
Member - OP
Thanks Meter 98
Posts: 46
Join Date: Oct 2006
Location: Bjelovar
Quote:
Originally Posted by hecatae View Post
hi fergy,

do you want a source, or a kernel, or a boot.img or?
Source of Kernel (if possible).
I have own, but just to see (if You have WORKING Kernel) where is problem and what is wrong as from above, that Kernel will never work with device.
Thank You.
PS, You can send link on PM or mail if You don't want it public (for now).
Regards
iDroid kernel developer
Pure4 Team founder and developer
CWM 6.x LGE-400 L3 Touch Recovery Dev
Pure4 (twrp/cwm) LGE-400 L3 Touch Recovery Dev
Actual devices:
  • Nokia Lumia 1020 dual boot
  • Nokia Lumia 520 custom
  • LG G2 custom
  • HDC i9500 (S4) custom
  • HDC i9300 (S3) custom
  • LG E0 (E400) KitKat custom /w TWRP P4 tuned
The Following User Says Thank You to fergy For This Useful Post: [ Click to Expand ]
 
hecatae
Old
#22  
Senior Member
Thanks Meter 103
Posts: 226
Join Date: Jul 2010
Quote:
Originally Posted by fergy View Post
Source of Kernel (if possible).
I have own, but just to see (if You have WORKING Kernel) where is problem and what is wrong as from above, that Kernel will never work with device.
Thank You.
PS, You can send link on PM or mail if You don't want it public (for now).
Regards
this is where I'm using for source https://github.com/TeamHackLG/lge-ke...ree/l3/3.4/4.1
The Following User Says Thank You to hecatae For This Useful Post: [ Click to Expand ]
 
fergy
Old
#23  
Member - OP
Thanks Meter 98
Posts: 46
Join Date: Oct 2006
Location: Bjelovar
Quote:
Originally Posted by hecatae View Post
Ok. Will be back within 15 minutes and tell what is wrong.
Btw, what config is used? E600?
iDroid kernel developer
Pure4 Team founder and developer
CWM 6.x LGE-400 L3 Touch Recovery Dev
Pure4 (twrp/cwm) LGE-400 L3 Touch Recovery Dev
Actual devices:
  • Nokia Lumia 1020 dual boot
  • Nokia Lumia 520 custom
  • LG G2 custom
  • HDC i9500 (S4) custom
  • HDC i9300 (S3) custom
  • LG E0 (E400) KitKat custom /w TWRP P4 tuned
The Following 3 Users Say Thank You to fergy For This Useful Post: [ Click to Expand ]
 
fergy
Old
#24  
Member - OP
Thanks Meter 98
Posts: 46
Join Date: Oct 2006
Location: Bjelovar
Quote:
Originally Posted by fergy View Post
Ok. Will be back within 15 minutes and tell what is wrong.
Btw, what config is used? E600?
OK, I got it, cyanogenmod_e0_defconfig....

So, from where to start?
Let's go from config.

In You cyanogenmod_e0_defconfig is pretty mess.... there are drivers enabled but was NOT present in E0 board. Let me show some of it:

Code:
MSM7X27A_RUMI3
APDS9190
SX150X
RT9396
BMA2X2
BACKLIGHT_GENERIC
Then, I don't see any memory allocator enabled in defconfig... slub? slob? slab has become a generic... so, slub is for normal machines, and slob is for embedded...

For Your notice, in BOARD_INCLUDE... or if You want, 'board_v3.h' header, try with following for begin:
Code:
#define SENSOR_GPIO_I2C_SCL		49
#define SENSOR_GPIO_I2C_SDA		48
#define ECOM_GPIO_INT			35
#define ECOM_I2C_ADDRESS		0x10
... sure, if You use CONFIG_MACH_MSM7X25A_V3

This is how sensors work, but PLEASE, don't use BMA2X2!!!
Use BMA250 instead.

PS, and please, remove those "GHOST" drivers mentioned above...
iDroid kernel developer
Pure4 Team founder and developer
CWM 6.x LGE-400 L3 Touch Recovery Dev
Pure4 (twrp/cwm) LGE-400 L3 Touch Recovery Dev
Actual devices:
  • Nokia Lumia 1020 dual boot
  • Nokia Lumia 520 custom
  • LG G2 custom
  • HDC i9500 (S4) custom
  • HDC i9300 (S3) custom
  • LG E0 (E400) KitKat custom /w TWRP P4 tuned
The Following 5 Users Say Thank You to fergy For This Useful Post: [ Click to Expand ]
 
fergy
Old
#25  
Member - OP
Thanks Meter 98
Posts: 46
Join Date: Oct 2006
Location: Bjelovar
following:

Code:
#define TS_READ_VERSION_ADDR  0xE3
is wrong, as 8000'er use 0xF5 as reading of version...

so, in other words, 3rd version of touchscreen driver is NOT compatible with 1st/2nd touchscreen driver, and You cannot use port of E410 (or whatever other device) touchscreen driver for E400/E405.

And for last thing, please take any diff viewer and check board main files.... Compare it with old Kernel and You will see where is problem....
Just to be clear, E400 have an extra power regulator chip, so You can name it in newer kernels miniAB as V1 use, but it use it for backlight.
For E0, there is RT8053.
So, at first, You don't have right power for devices (I was mention that somewhere in forum) and without right power and right delays (as We talk with GPIO's) E0 board cannot work (lcd as first), as You need right power to wake chip, some delay and then You can communicate with it. That is right way for E0.
iDroid kernel developer
Pure4 Team founder and developer
CWM 6.x LGE-400 L3 Touch Recovery Dev
Pure4 (twrp/cwm) LGE-400 L3 Touch Recovery Dev
Actual devices:
  • Nokia Lumia 1020 dual boot
  • Nokia Lumia 520 custom
  • LG G2 custom
  • HDC i9500 (S4) custom
  • HDC i9300 (S3) custom
  • LG E0 (E400) KitKat custom /w TWRP P4 tuned
The Following 6 Users Say Thank You to fergy For This Useful Post: [ Click to Expand ]
 
cybojenix
Old
(Last edited by cybojenix; 18th November 2013 at 08:39 AM.)
#26  
cybojenix's Avatar
Recognized Developer
Thanks Meter 1487
Posts: 812
Join Date: Apr 2012

 
DONATE TO ME
Quote:
Originally Posted by fergy View Post
following:

Code:
#define TS_READ_VERSION_ADDR  0xE3
is wrong, as 8000'er use 0xF5 as reading of version...

so, in other words, 3rd version of touchscreen driver is NOT compatible with 1st/2nd touchscreen driver, and You cannot use port of E410 (or whatever other device) touchscreen driver for E400/E405.

And for last thing, please take any diff viewer and check board main files.... Compare it with old Kernel and You will see where is problem....
Just to be clear, E400 have an extra power regulator chip, so You can name it in newer kernels miniAB as V1 use, but it use it for backlight.
For E0, there is RT8053.
So, at first, You don't have right power for devices (I was mention that somewhere in forum) and without right power and right delays (as We talk with GPIO's) E0 board cannot work (lcd as first), as You need right power to wake chip, some delay and then You can communicate with it. That is right way for E0.
For the touchscreen, it doesn't need to know the version it's on. It's a waste of code, decreases boot time, and will be removed as soon as possible. The code from melfas 6000 to 8000 has remained relatively the same, with only minor changes.

I know it isn't right to do so, and can cause massive issues, but the backlight did work because they go down the same pins, and the drivers are evidently similar (not really much you can vary in a backlight driver. On, off, intensity. It should all be the same really). Yes I've already changed back to the proper driver.

The power manager I haven't looked into yet, but really? A device as terrible as the l3 has it's own power regulator? Would have thought it would use the onboard one to save money.

Edit:
Yes I know to remove the unused stuff. The issue is I don't have the device, and I'm waiting for hours to even see if the minimal changes I make are still allowing it to work. Yesterday I only got one build done.

Sent from my Nexus 7 using Tapatalk
Quote:
<cybojenix> Every single language makes sense. They're logical
<cybojenix> Then there's just Perl.
<helicopter88> perl just looks like an esotheric language
<cybojenix> Perl is what came out from those monkeys trying to recreate Shakespeare
<helicopter88> cybojenix, this is the wise sentence of the month

like my work? buy me a present
 

Proud member of TeamHackLG


contact me here
My Builds
P350 kernels: 2.6.35 | 3.0.x
Github
devices: p350 | e610 | Nexus 7 | tegra note 7

The Following 3 Users Say Thank You to cybojenix For This Useful Post: [ Click to Expand ]
 
aroop mishra
Old
#27  
aroop mishra's Avatar
Senior Member
Thanks Meter 40
Posts: 155
Join Date: Apr 2013
Location: new delhi
http://forum.xda-developers.com/show....php?t=2535283 there's someone which is ready to help...must see plzz

Sent from my LG-E400 using xda app-developers app
Thank me...whenever I help you.
 
zombienotdead
Old
#28  
Member
Thanks Meter 7
Posts: 83
Join Date: Jul 2013
this may be helpful http://www.modaco.com/topic/361279-g...0-development/
 
hecatae
Old
#29  
Senior Member
Thanks Meter 103
Posts: 226
Join Date: Jul 2010
Quote:
Originally Posted by zombienotdead View Post
offline charging fix may be, personally I think we should repartition the device as soon as it starts becoming functional, your warranty is void etc etc, and an updated touch recovery may be nice.
 
fergy
Old
#30  
Member - OP
Thanks Meter 98
Posts: 46
Join Date: Oct 2006
Location: Bjelovar
Quote:
Originally Posted by cybojenix View Post
For the touchscreen, it doesn't need to know the version it's on. It's a waste of code, decreases boot time, and will be removed as soon as possible. The code from melfas 6000 to 8000 has remained relatively the same, with only minor changes.

I know it isn't right to do so, and can cause massive issues, but the backlight did work because they go down the same pins, and the drivers are evidently similar (not really much you can vary in a backlight driver. On, off, intensity. It should all be the same really). Yes I've already changed back to the proper driver.

The power manager I haven't looked into yet, but really? A device as terrible as the l3 has it's own power regulator? Would have thought it would use the onboard one to save money.

Edit:
Yes I know to remove the unused stuff. The issue is I don't have the device, and I'm waiting for hours to even see if the minimal changes I make are still allowing it to work. Yesterday I only got one build done.

Sent from my Nexus 7 using Tapatalk
Sorry for delay.... Well, as I say, You can belive or not, L3 have PM chip... He also have miniabb regulator (LP8727) and PMIC8029
iDroid kernel developer
Pure4 Team founder and developer
CWM 6.x LGE-400 L3 Touch Recovery Dev
Pure4 (twrp/cwm) LGE-400 L3 Touch Recovery Dev
Actual devices:
  • Nokia Lumia 1020 dual boot
  • Nokia Lumia 520 custom
  • LG G2 custom
  • HDC i9500 (S4) custom
  • HDC i9300 (S3) custom
  • LG E0 (E400) KitKat custom /w TWRP P4 tuned

The Following 4 Users Say Thank You to fergy For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes