Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
mkasick
Old
(Last edited by mkasick; 3rd November 2011 at 05:00 PM.)
#1  
Recognized Developer - OP
Thanks Meter 798
Posts: 466
Join Date: Aug 2009
Default [PATCH] As-close-to-stock-as-possible kernel defconfig

Attached is a patch against the E4GT open source release (SPH-D710_Opensource.zip) containing defconfig changes necessary to get a source-built kernel that's as close to stock EG30 as possible. Also attached is a source-built test kernel that attempts to be indistinguishable from EG30 (hopefully same LoS behavior, unrooted, etc.). I've posted this before, but now that it's been tested (at least by daneurysm, thanks!) I figured it was worth making a dev thread so it would have better visibility to the folks most interested in it.

The purpose of this patch is to enable folks to build kernels nearly-identical to EG30, so as to serve as a proper starting point for custom kernel development (admittedly, a good deal of which has already happened). Since it's just kernel config changes, I welcome kernel developers to compare this against your own configs and make any changes you feel appropriate.

Background:

Compiling a kernel from the E4GT kernel sources with the shipped defconfig yields kernel builds that differ quite significantly from EG30. Among the differences, many folks have reported undesirable effects, such as exacerbation of loss-of-signal and other problems. There already exists efforts (e.g., LoStKernel) aimed at eliminating problems like loss-of-signal, but it's a common frustration among developers that what Samsung released as "EG30" sources appear bizarre, if nothing else.

A few weeks ago I posted an inconclusive initial analysis of the source situation, and followed up more recently with an attempt to eliminate all the defconfig changes in the source release in order to either get a kernel as close to stock as possible, if not prove that the kernel source release is bungled.

At this point, I'm uncetain if the source release is actually EG30 or not, aside from that the kernel configuration is definitely not EG30's (which this patch attempts to correct), and there may be some additional modifications to the Westbridge driver. As for the kernel config changes, unmodified source-based kernels include a good deal of debugging options (performance events, profiling support, tracepoints, debugging for preemption, mutexes, spinlocks, etc.) that touch enough of core kernel behavior to plausibly account for the problems folks observe in source-based kernels.

I know chris41g has indepenently implemented a fair number of these kernel config changes already, perhaps exactly those that exacerbate loss-of-signal. Still, for anyone interested in development that wants to "start with EG30 and go from there", this patch may well be of use.

Mirror links:
EG30 fix_defconfig patch: fix_defconfig.diff
Source-compiled, EG30 kernel: kernel-opensource-1.tar.md5
Attached Files
File Type: txt fix_defconfig.diff.txt - [Click for QR Code] (4.1 KB, 31 views)
File Type: tar kernel-opensource-1.tar - [Click for QR Code] (4.96 MB, 18 views)
The Following 14 Users Say Thank You to mkasick For This Useful Post: [ Click to Expand ]
 
chris41g
Old
#2  
chris41g's Avatar
Recognized Developer
Thanks Meter 3528
Posts: 1,984
Join Date: Sep 2009

 
DONATE TO ME
LoStKernel Exp has these changes, thanks mkasick
Donate via Paypal


Checkout EpicAOSP for How-To's and AOSP releases...
 
xlGmanlx
Old
#3  
xlGmanlx's Avatar
Senior Member
Thanks Meter 543
Posts: 6,709
Join Date: Jul 2010
big ups man, i hope this gets more attention so that more dev's feel comfortable developing aftermarket kernels.

"Sorry, you are limited to 5 thanks a day"
.: My name is G'man and i am a flashaholic :.
 
daneurysm
Old
#4  
Senior Member
Thanks Meter 304
Posts: 1,978
Join Date: Jun 2010
2 days in, running perfectly and so far no LOS at all, which is on par with the stock kernel.

Excellent work, thanks for the effort.

Sent from my SPH-D710 using XDA App
 
naerok
Old
#5  
Senior Member
Thanks Meter 96
Posts: 139
Join Date: Oct 2011
Thanks for this. Will come in handy.

Sent from my SPH-D710 using Tapatalk
MIUI.us
Join us on irc.freenode.net #MIUI-US
[/center]
 
latinmaxima
Old
#6  
Senior Member
Thanks Meter 48
Posts: 751
Join Date: Mar 2010
Thank you sir! Anyone posting anything development wise for a good base is always welcome and appreciated. Hope Samsung provides and good fix for our next base.
2004 Nissan Maxima SE
 
xlGmanlx
Old
#7  
xlGmanlx's Avatar
Senior Member
Thanks Meter 543
Posts: 6,709
Join Date: Jul 2010
Properly thanked
Quote:
Originally Posted by xlGmanlx View Post
big ups man, i hope this gets more attention so that more dev's feel comfortable developing aftermarket kernels.

"Sorry, you are limited to 5 thanks a day"
.: My name is G'man and i am a flashaholic :.
 
daneurysm
Old
#8  
Senior Member
Thanks Meter 304
Posts: 1,978
Join Date: Jun 2010
Update: 3 Days running, no LOS and nothing strange happening. Phone is running great. Battery performance is as good as stock, LOS occurance appears as good as stock (like I said, 3 days in and I've seen exactly zero). No strange foreclosures or fruit loops. No funny business at all. On any previous kernel I definitely would have had multiple LOS events by now.

I think you cooked up a winner.
 
mkasick
Old
#9  
Recognized Developer - OP
Thanks Meter 798
Posts: 466
Join Date: Aug 2009
Glad to hear. Thanks for testing it.
 
JohnCorleone
Old
#10  
JohnCorleone's Avatar
Recognized Contributor
Thanks Meter 5132
Posts: 14,400
Join Date: Dec 2010
Location: Whittier,CA

 
DONATE TO ME
Quote:
Originally Posted by mkasick View Post
Glad to hear. Thanks for testing it.
Mkasick as usual your contributions and knowledge are top notch

Sent from my Nexus S 4G using xda premium

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

Permanent Screen Off for the Visually Impaired

Most of us take the simple act of waking up our devices and having a quick glance at the … more

App Analytics, or the Death of the Independent App Developer

This is entry number one in a series of articles about tools for app developers, … more

Serajr Power Toggles Brings Settings to the Small App World

Ever since the introduction of multi-window with things like Cornerstone and … more