Post Reply

Cyanogenmod 10 [NEW UPDATE] [16-10-2014]

OP Venkatesh

10th November 2014, 08:08 AM   |  #111  
OP Senior Member
Thanks Meter: 536
 
725 posts
Join Date:Joined: Mar 2012
Hey guys, I want to apply for recognized contributor, what do you all say? Am i good enough for it? Hope, i am helpful to you all this while. Waiting for your answers. Thank you.
Last edited by Venkatesh; 10th November 2014 at 01:52 PM.
The Following User Says Thank You to Venkatesh For This Useful Post: [ View ]
18th February 2015, 10:07 AM   |  #112  
streambinder's Avatar
Senior Member
Flag Rome
Thanks Meter: 728
 
428 posts
Join Date:Joined: Jun 2014
Donate to Me
Hey @Venkatesh, I'm streambinder, from MoltenMotherBoard team.
What about WiFi Tethering patch? I'm reworking CM10 sources, and would be glad to fix that feature as you already did.
18th February 2015, 05:26 PM   |  #113  
OP Senior Member
Thanks Meter: 536
 
725 posts
Join Date:Joined: Mar 2012
Quote:
Originally Posted by streambinder

Hey @Venkatesh, I'm streambinder, from MoltenMotherBoard team.
What about WiFi Tethering patch? I'm reworking CM10 sources, and would be glad to fix that feature as you already did.

Check your pm.
25th February 2015, 12:41 PM   |  #114  
OP Senior Member
Thanks Meter: 536
 
725 posts
Join Date:Joined: Mar 2012
kernel 3 boots
@psyke83 sir, as you said, i ported all required tls changes to jellybean(aokp-jb4.1.2) and the kernel is booting however display is not working(all black, i can receive calls etc). I think the problem is with gralloc. Logcat says
Code:
W/gralloc (  118): MSMFB_METADATA_SET failed to configure alpha mode
And this happened when i used your resurrect the 3.0 kernel commit but it gave some compilation errors here and i fixed it by importing some code from msm_mdp.h(2.6 kernel header)
the code that i imported is
Code:
#define MSMFB_OVERLAY_COMMIT _IOW(MSMFB_IOCTL_MAGIC, 163, unsigned int)
#define MSMFB_METADATA_SET  _IOW(MSMFB_IOCTL_MAGIC, 162, struct msmfb_metadata)

enum {
	metadata_op_none,
	metadata_op_base_blend,
	metadata_op_max
};

struct mdp_blend_cfg {
	uint32_t is_premultiplied;
};

struct msmfb_metadata {
	uint32_t op;
	uint32_t flags;
	union {
		struct mdp_blend_cfg blend_cfg;
	} data;
};
And it got compiled fine and build completed.
With 2.6 kernel and setting "TARGET_NO_HW_VSYNC := true" gives no display problems.
The display source is here.
My boardconfig.mk(working tree with 2.6 kernel) is
Code:
## Qualcomm, display
TARGET_DISABLE_TRIPLE_BUFFERING := true
BOARD_USES_QCOM_HARDWARE := true
BOARD_NEEDS_MEMORYHEAPPMEM := true
USE_OPENGL_RENDERER := true
BOARD_EGL_CFG := device/samsung/msm7x27-common/prebuilt/lib/egl/egl.cfg
BOARD_USES_QCOM_LIBS := true
BOARD_ADRENO_DECIDE_TEXTURE_TARGET := true
TARGET_NO_HW_VSYNC := true

COMMON_GLOBAL_CFLAGS += -DQCOM_LEGACY_OMX -DQCOM_ICS_DECODERS
COMMON_GLOBAL_CFLAGS += -DQCOM_HARDWARE -DREFRESH_RATE=60
COMMON_GLOBAL_CFLAGS += -DQCOM_NO_SECURE_PLAYBACK -DBINDER_COMPAT
COMMON_GLOBAL_CFLAGS += -DFORCE_CPU_UPLOAD -DQCOM_ICS_COMPAT
#COMMON_GLOBAL_CFLAGS += -DMISSING_EGL_PIXEL_FORMAT_YV12 -DMISSING_EGL_EXTERNAL_IMAGE
#COMMON_GLOBAL_CFLAGS += -DMISSING_GRALLOC_BUFFERS

## Platform
TARGET_BOARD_PLATFORM := msm7x27
TARGET_ARCH := arm
TARGET_ARCH_VARIANT := armv6-vfp
TARGET_CPU_ABI := armeabi-v6l
TARGET_CPU_ABI2 := armeabi
TARGET_CPU_VARIANT := arm11
TARGET_BOARD_PLATFORM_GPU := qcom-adreno200
TARGET_SPECIFIC_HEADER_PATH := device/samsung/msm7x27-common/include
COMMON_GLOBAL_CFLAGS += -DTARGET_MSM7x27
This config works fine for 2.6 kernel. And removing "TARGET_NO_HW_VSYNC := true" for kernel 3.x is giving display problem. I don't know how it worked for kitkat display sources. I am attaching logcat and dmesgs.
Attached Files
File Type: txt logcat.txt - [Click for QR Code] (44.1 KB, 2 views)
File Type: txt dmesg.txt - [Click for QR Code] (41.1 KB, 0 views)
Last edited by Venkatesh; 25th February 2015 at 01:56 PM.
The Following User Says Thank You to Venkatesh For This Useful Post: [ View ]
25th February 2015, 02:06 PM   |  #115  
Recognized Developer
Thanks Meter: 4,016
 
1,265 posts
Join Date:Joined: Mar 2011
Donate to Me
Quote:
Originally Posted by Venkatesh

@psyke83 sir, as you said, i ported all required tls changes to jellybean(aokp-jb4.1.2) and the kernel is booting however display is not working(all black, i can receive calls etc). I think the problem is with gralloc.

Yes, most likely. Building the userspace libraries (such as gralloc) with headers that don't match the current kernel is causing your problem.

You should remove all kernel headers from the device include folder. This will result in the proper headers from the kernel source being utilized (via the integrated kernel building scripting). If for some reason it doesn't work (considering that it's an older branch), then a messy workaround is to manually update all headers in your device config to the 3.0x versions.
25th February 2015, 03:59 PM   |  #116  
OP Senior Member
Thanks Meter: 536
 
725 posts
Join Date:Joined: Mar 2012
Quote:
Originally Posted by psyke83

Yes, most likely. Building the userspace libraries (such as gralloc) with headers that don't match the current kernel is causing your problem.

You should remove all kernel headers from the device include folder. This will result in the proper headers from the kernel source being utilized (via the integrated kernel building scripting). If for some reason it doesn't work (considering that it's an older branch), then a messy workaround is to manually update all headers in your device config to the 3.0x versions.

Yes sir. I did that. Manually placed all required kernel 3.x headers inside include folder. I just used a piece of code from kernel 2.6 msm_mdp.h header to fix compilation error. Where can i get legacy display drivers for jellybean? Is it possible to disable tls completely from kernel?
26th February 2015, 05:51 AM   |  #117  
OP Senior Member
Thanks Meter: 536
 
725 posts
Join Date:Joined: Mar 2012
Quote:
Originally Posted by streambinder

Hey @Venkatesh, I'm streambinder, from MoltenMotherBoard team.
What about WiFi Tethering patch? I'm reworking CM10 sources, and would be glad to fix that feature as you already did.

Hey, @streambinder, i uploaded my tether patches here
26th February 2015, 10:46 AM   |  #118  
OP Senior Member
Thanks Meter: 536
 
725 posts
Join Date:Joined: Mar 2012
Thumbs up Aokp 4.1.2 with kernel 3.0x is booting
Quote:
Originally Posted by psyke83

Yes, most likely. Building the userspace libraries (such as gralloc) with headers that don't match the current kernel is causing your problem.

You should remove all kernel headers from the device include folder. This will result in the proper headers from the kernel source being utilized (via the integrated kernel building scripting). If for some reason it doesn't work (considering that it's an older branch), then a messy workaround is to manually update all headers in your device config to the 3.0x versions.

Never mind. Got it working. Now aokp jellybean 4.1.2 is booting with kernel 3.0x.
@HandyMenny, and @psyke83, I don't see any micro-shutters when playing songs and i get some distortion(or shutter) when playing video. And the good thing is that the data transfer speeds are good in usb mass storage mode(transferred 800mb data in 3mins) as well as mtp. You want me to check anything?
@psyke83 sir, is it necessary to delete ccache and clobber out folder, when there is any change in boardconfig.mk and some other makefiles:? Can you give some tips regarding this?
26th February 2015, 02:53 PM   |  #119  
streambinder's Avatar
Senior Member
Flag Rome
Thanks Meter: 728
 
428 posts
Join Date:Joined: Jun 2014
Donate to Me
Quote:
Originally Posted by Venkatesh

Hey, @streambinder, i uploaded my tether patches here

Thank you, mate.

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes