Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,809,137 Members 49,457 Now Online
XDA Developers Android and Mobile Development Forum

[21 JUN 2012] DORIMANX ICS Kernel 7.3 Linux 2.6.32.59 OC 96/1.62 CFS and OC Stable!

Tip us?
 
securecrt
Old
#4141  
Recognized Contributor
Thanks Meter 2,760
Posts: 763
Join Date: Aug 2010
Location: Shanghai

 
DONATE TO ME
Quote:
Originally Posted by Rick_1995 View Post
Log says it all, either the allocation handler of kgsl is bad or the new pmem is not working well with the kernel, mostly the first one as if it was pmem, other android stuff would complain as well, check dmesg for pmem output and load some printk(s) in the kgsl memory allocation handler to see what is happening

securecrt, I hope the following commits will help you
commit 1
commit 2
commit 3
commit 4
Quote:
Originally Posted by Xylograph View Post
I/Adreno ( 125): open(/dev/kgsl-3d0) failed: errno 38. Function not implemented

That seems to be a problem ?

Maybe this seems like a strange proposal, but have you considered trying to boot a desire cm9 rom ( build with HWA implementation ) with your initrd.gz and zimage on our HD2 ?

Our hardware is quite similar..
your suggestion is good . I have sent you the latest kernel to your email. hope you can do some test. I am too tired today.

---------- Post added at 01:42 AM ---------- Previous post was at 01:40 AM ----------

Quote:
Originally Posted by Rick_1995 View Post
!!!! you might have included the new pmem but you haven't used it in board file, look at my previous response and the commit's linked for further help.

running from haret can be either a very good or a very bad idea because of the fact windows mobile and haret may initialize hardware differently than just spl + mag/lk
the pmem should be used in the board file.


static struct android_pmem_platform_data mdp_pmem_pdata = {
.name = "pmem",
.start = MSM_PMEM_MDP_BASE,
.size = MSM_PMEM_MDP_SIZE,
/* .no_allocator = 0,*/
.allocator_type = PMEM_ALLOCATORTYPE_BITMAP,
.cached = 1,
};

static struct android_pmem_platform_data android_pmem_adsp_pdata = {
.name = "pmem_adsp",
.start = MSM_PMEM_ADSP_BASE,
.size = MSM_PMEM_ADSP_SIZE,
/* .no_allocator = 0,*/
.allocator_type = PMEM_ALLOCATORTYPE_BITMAP,
.cached = 1,
};

static struct android_pmem_platform_data android_pmem_venc_pdata = {
.name = "pmem_venc",
.start = MSM_PMEM_VENC_BASE,
.size = MSM_PMEM_VENC_SIZE,
/* .no_allocator = 0,*/
.allocator_type = PMEM_ALLOCATORTYPE_BITMAP,
.cached = 1,
};
The Following 3 Users Say Thank You to securecrt For This Useful Post: [ Click to Expand ]
 
Xylograph
Old
#4142  
Xylograph's Avatar
Senior Member
Thanks Meter 7,725
Posts: 1,824
Join Date: Sep 2009

 
DONATE TO ME
Quote:
Originally Posted by securecrt View Post
your suggestion is good . I have sent you the latest kernel to your email. hope you can do some test. I am too tired today.[COLOR="Silver"]
Received Haven't flashed it yet though.. still comparing ramdisks with the one from tytung and there are a lot of differences.. is that only because of you using haret/sd ?

Can I use tytung ramdisk..?

What are the most important changes in it ?
The Following User Says Thank You to Xylograph For This Useful Post: [ Click to Expand ]
 
securecrt
Old
#4143  
Recognized Contributor
Thanks Meter 2,760
Posts: 763
Join Date: Aug 2010
Location: Shanghai

 
DONATE TO ME
Quote:
Originally Posted by Xylograph View Post
Received Haven't flashed it yet though.. still comparing ramdisks with the one from tytung and there are a lot of differences.. is that only because of you using haret/sd ?

Can I use tytung ramdisk..?

What are the most important changes in it ?
init.rc
add the two lines
chmod 0777 /dev/kgsl-3d0
chmod 0777 /dev/genlock


Sent from my HTC HD2 using xda premium
The Following 2 Users Say Thank You to securecrt For This Useful Post: [ Click to Expand ]
 
Xylograph
Old
(Last edited by Xylograph; 25th April 2012 at 08:00 PM.)
#4144  
Xylograph's Avatar
Senior Member
Thanks Meter 7,725
Posts: 1,824
Join Date: Sep 2009

 
DONATE TO ME
Ok after adding those 2 lines to init.rc/flashing kertnel and all the provided libs ..

My rom boots (without bootanimation) and is very slow and my logcat is flooded with :

Code:
20:38:27.005 Error Adreno200-ES11 143  <qglDrvAPI_glTexImage2D:1913>: GL_OUT_OF_MEMORY
20:38:27.005 Error Adreno200-ES11 143  <qglDrvAPI_glTexSubImage2D:2055>: GL_OUT_OF_MEMORY
20:38:27.005 Error Adreno200-EGLSUB 143  GetBackBuffer() handle base address is NULL
20:38:27.006 Error Adreno200-ES20 143  <gl2_surface_swap:41>: GL_OUT_OF_MEMORY
20:38:27.006 Error Adreno200-EGL 143  <qeglDrvAPI_eglSwapBuffers:3345>: EGL_BAD_ALLOC
Anyway here is +4000 lines of logcat from the boot

http://pastebin.com/iVs8MxAW

I don't think I can do much 'rom-wise' to make it better yet..at least it boots rotating screen takes about 5 seconds hehe
The Following 2 Users Say Thank You to Xylograph For This Useful Post: [ Click to Expand ]
 
dorimanx
Old
#4145  
dorimanx's Avatar
Recognized Developer - OP
Thanks Meter 60,519
Posts: 8,782
Join Date: Feb 2010
Location: Some Where North!

 
DONATE TO ME
Quote:
Originally Posted by securecrt View Post
init.rc
add the two lines
chmod 0777 /dev/kgsl-3d0
chmod 0777 /dev/genlock


Sent from my HTC HD2 using xda premium
i like the posts, now its real development battle zone

keep it up, great work!

Sent from my GT-I9100
Phone: ★ LG Optimus G2 D802
ROM: ★ Pardus Stock Latest






KERNEL: Dorimanx-LG-G2-PWR-CORE-VX.X

>LG G2 KK KERNEL OP<
>LG G2 JB KERNEL OP<
>LG G2 BETA KERNEL STORAGE<

KERNEL: Dorimanx-SGII-PWR-CORE-V10.XX
>SG2 KERNEL OP<
>SG2 BETA THREAD<
>SG2 BETA STORAGE<
>SG2 Q&A THREAD<


>HTC HD2 KERNEL
>HTC HD2 DORIMANX MAG + CLK NAND ROM!

>JOIN FACEBOOK PAGE!

>ABOUT ME!
>MY BELOVED MUSIC CHANNEL<


You can Buy me a BEER! if you like my work.

>DONATE AND SUPPORT
The Following 4 Users Say Thank You to dorimanx For This Useful Post: [ Click to Expand ]
 
Xylograph
Old
#4146  
Xylograph's Avatar
Senior Member
Thanks Meter 7,725
Posts: 1,824
Join Date: Sep 2009

 
DONATE TO ME
Quote:
Originally Posted by dorimanx View Post
i like the posts, now its real development battle zone

keep it up, great work!

Sent from my GT-I9100
About time..
The Following 3 Users Say Thank You to Xylograph For This Useful Post: [ Click to Expand ]
 
Rick_1995
Old
#4147  
Rick_1995's Avatar
Recognized Developer
Thanks Meter 3,055
Posts: 1,114
Join Date: Sep 2009
Location: Whoville
Quote:
Originally Posted by securecrt View Post
init.rc
add the two lines
chmod 0777 /dev/kgsl-3d0
chmod 0777 /dev/genlock


Sent from my HTC HD2 using xda premium
upload your "git diff" ?
 
Xylograph
Old
#4148  
Xylograph's Avatar
Senior Member
Thanks Meter 7,725
Posts: 1,824
Join Date: Sep 2009

 
DONATE TO ME
Quote:
Originally Posted by Rick_1995 View Post
upload your "git diff" ?
I think he went to bed..

Anyway..Rick since you are still awake.. If I may ask..

I was just comparing a Desire HWA rom with one of my AOKP roms and saw a couple of libs which are missing on mine..

except the libgenlock I also saw libhwui.so..

I suppose that one is needed as well to get things going..

Anyway with the test kernel securecrt provided me it doesn't make any difference regarding speed

Ah well one step at a time..
The Following User Says Thank You to Xylograph For This Useful Post: [ Click to Expand ]
 
Rick_1995
Old
#4149  
Rick_1995's Avatar
Recognized Developer
Thanks Meter 3,055
Posts: 1,114
Join Date: Sep 2009
Location: Whoville
Quote:
Originally Posted by Xylograph View Post
I think he went to bed..

Anyway..Rick since you are still awake.. If I may ask..

I was just comparing a Desire HWA rom with one of my AOKP roms and saw a couple of libs which are missing on mine..

except the libgenlock I also saw libhwui.so..

I suppose that one is needed as well to get things going..

Anyway with the test kernel securecrt provided me it doesn't make any difference regarding speed

Ah well one step at a time..
It won't, not alteast till opengl is allocated memory to work with
The Following 2 Users Say Thank You to Rick_1995 For This Useful Post: [ Click to Expand ]
 
frumpy
Old
#4150  
Senior Member
Thanks Meter 6
Posts: 101
Join Date: Apr 2009
I see people have good results using this kernel with Tytung's ICS ROM.

I'm using the Mar 9 version, downloaded 6.6C kernel and installed via CLK recovery. It seemed to go fine but would not reboot. I booted into recovery and restored from backup fine.

Am I missing a step? Would like to give the kernel a try.


thanks!


Paul

Tags
best kernel, boost boot, clk kernel, cron, dorimanx, fast kernel, mag kernel
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes