Find Your Device:
Or Continue to Thread: [KERNEL][CM7/MIUI] 27/04,platy…
5th March 2011, 12:19 AM
zacharias.maladroit's Avatar
OP Recognized Developer
Flag MilkyWay-SolCluster-Earth-Europe-Germany-BaWü
Thanks Meter: 6,084
 
Donate to Me
More
Smile [KERNEL][CM7/MIUI] 27/04,platypus,Voodoo SOUND&COLOR,OC/UV,SLQB,LED notif,NODEBUG,...
FAST FORWARD:

If you're switching kernels, have issues with auto-rotation, the cam, bootloops or other sorts of problem (failed overclock attempt),
please use lippol94's script-cleansing update (apply via CWM recovery)
: http://www.multiupload.com/922KMXMMVJ
kudos to lippol94 !

--------------------------------------------------------------------------------------

for latest test-kernels with support for Android 2.3.4 and newest MIUI (e.g. RC8)

[KERNEL][CM7/MIUI] [test-releases[/SIZE] only] 06/05,platypus

<-- these also should be more stable, no call drops, no spontaneous reboots, etc.

--------------------------------------------------------------------------------------


kernel with system modules [only newest kernels]:

04/09/2011 (release name: flubber; WIP - work in process release; access to external SD card)

* CM7_SGS_platypus-kernel_20110409_18_flubber.zip (3.97 MB) (STABLE), but WIP)

* CM7_SGS_platypus-kernel_20110409_18_flubber-ondemand.zip (3.97 MB) (STABLE), but WIP)

XDA download: 04/09/2011 (release name: flubber; WIP - work in progress release) (post)

04/13/2011 (release name: Antlion; Stable - )
kernel:

* CM7_SGS_platypus-kernel_20110413_19_antlion_conservative.zip (3.98 MB)

* CM7_SGS_platypus-kernel_20110413_19_antlion_ondemand.zip (3.98 MB)

XDA download: 04/13/2011 (release name: Antlion; Stable - ) (post)

04/17/2011 (release name: "Core" low-latency edition; should be Stable )

1st Mirror / Host: [recommended]
test - "core low-latency" (thanks a lot to Roland !)
2nd Mirror:
its post (XDA)
3rd Mirror:
CM7_SGS_platypus-kernel_20110417_17_core-low-latency.zip (3.91 MB)
md5sum:
74b50167bd1190140a0085e190c05887 CM7_SGS_platypus-kernel_20110417_17_core-low-latency.zip


04/17/2011 (release name: "Core"; stable release Stable )
kernel:

1st Mirror / Host: [recommended]
"core" (thanks a lot to Roland !)
2nd Mirror:
it's post (XDA)
3rd Mirror:
CM7_SGS_platypus-kernel_20110417_18_core.zip (3.91 MB)
md5sum:
4004618376b4ee3623977e300b85b2b0 CM7_SGS_platypus-kernel_20110417_18_core.zip


04/20/2011 (release name: "Core" chameleon speed edition ("one edition fits all" - already containing parts of Samsung's GB source (thanks teamhacksung !)); Testing )
kernel:
1st Mirror / Host: [recommended]
"core chameleon" (thanks a lot to Roland !)
2nd Mirror:
its thread (XDA)
3rd Mirror:
CM7_SGS_platypus-kernel_20110420_04_core_chameleon.zip (3.92 MB)
md5sum:
f14b31997ef87061d9fc978114903184 CM7_SGS_platypus-kernel_20110420_04_core_chameleon.zip



04/22/2011 (release name: "Twoface" ("one side conservative (juice saving) other side performance (ondemand)" - already containing parts of Samsung's GB source (thanks teamhacksung !));
Semi-Testing/Stable (for new integrated code from Samsung) )
kernel:
1st Mirror / Host: [recommended]
"Twoface" (thanks a lot to Roland !)
2nd Mirror:
its post (XDA)
3rd Mirror:
CM7_SGS_platypus-kernel_20110421_22_twoface.zip (3.44 MB)
md5sum:
5ec155f70a22427ec1848827e202bb60 CM7_SGS_platypus-kernel_20110421_22_twoface.zip


04/25/2011 (release name: "Whatitsname"
already containing parts of Samsung's GB source (thanks teamhacksung !));

Semi-Testing/Stable (for new integrated code from Samsung) and other exciting new stuff )
kernel:

What's its name ? Vanilla without scripts (ondemand governor) [without all the goodies]:

1st Mirror / Host: [recommended]
"Whatsitsname" (thanks a lot to Roland !)
2nd Mirror:
its post (XDA) (attachment)
3rd Mirror:
CM7_SGS_platypus-kernel_20110425_03_whatsitsname.zip (5.22 MB)
md5sum:
c61713564dd50f23adb60f463cba8e07 CM7_SGS_platypus-kernel_20110425_03_whatsitsname.zip


What's its name ? with scripts (conservative governor):
1st Mirror / Host: [recommended]
"Whatsitsname with scripts" (thanks a lot to Roland !)
2nd Mirror:
its post (XDA) (attachment)
3rd Mirror:
CM7_SGS_platypus-kernel_20110425_03_whatsitsname_scripts.zip (5.23 MB)
md5sum:
dab7d1272fa987f201dc18870566a6f3 CM7_SGS_platypus-kernel_20110425_03_whatsitsname_scripts.zip


04/27/2011 (release name: "Alice"
already containing parts of Samsung's GB source (thanks teamhacksung !));

Semi-Testing/Stable (for new integrated code from Samsung) and other exciting new stuff )
kernel:
1st Mirror / Host: [recommended]
"Alice" (thanks a lot to Roland !)
2nd Mirror:
its post (XDA) (attachment)
3rd Mirror:
CM7_SGS_platypus-kernel_20110426_23_alice.zip (5.23 MB)
md5sum:
987124fb121f427ac371e438eaaf2772 CM7_SGS_platypus-kernel_20110426_23_alice.zip



complete system update & kernel:

[currently no up-to-date available]


tools & fixes:

* [INITSCRIPT] screenstate_scaling - switch CPU freq governor on screen state change by FloHimself

for best results between battery savings & performance replace AWAKE_GOVERNOR="interactive" with AWAKE_GOVERNOR="ondemand"
included in cwm package by default

* VoltageControl-3.0.1.apk (52.58 KB) (source: [APP][23Feb - 3.0.1] Voltage Control - control OC/UV for OC kernels )


modems:

see below for full list of modems

---------------------------------------------------------------------------

DETAILED PART:


Hi guys,

this is my first modded kernel for the SGS (CM7/MIUI only)

I first needed to test it to make sure that it'll be stable & boot at the first place

so far it's very fast & responsive & smooth

DISCLAIMER: the kernel (binary) and driver modules are provided as is. If problems occcur they most probably are from upstream and can be fixed with the newest version. Since I'm doing this in my free spare time as a hobby (quenching my thirst for tweaks & performance) updates will occur irregularly as time permits and I see fit (most probably when new features & bugfixes arrive). YOU are responsible for the actions that you take (such as over- or underclocking), etc. You agree that I can not be held liable for any potential damage that arises from your actions in combination with or the usage of this kernel and other related parts.

Kudos:
* Google & the whole Android crew
* Linus Torvalds & the kernel hackers for upstream Linux
* cyanogen & all the devs out there hacking on this
* Supercurio for enriching our media experience of this smartphone
* codeworkx, coolya, guiper
* laststufo & hardcore and all the other kernel hackers on the SGS forum
* zen-kernel team for inspiration to create a kernel, too
* all other contributors (devs, users, etc.) who make this possible


Changelog:

*link to changelog*

Features:

Quote:

* jhash3 for better reliability (data connections)
* Voodoo Sound & Color
* simple i/o scheduler for better speed & performance
* preemptive tree RCU with smaller fanout value (better efficiency, speed & less memory usage with read-write-operations)
* SLQB for more efficient & faster handling of files in memory
* kernel & app security features (fstack-protector, better ASLR, disabled access to DEVKMEM & DEVMEM, ...)
* network security (syncookies; only secure redirects allowed; higher number of outstanding syn requests allowed; disabled warnings for invalid responses to broadcast frames; enabled window scaling; disabled IP dynaddr & ECN; log and drop "martian" packets; protection against: broadcast pings and smurf attacks, redirects for IP source routing, non-secure redirects, DoS (syn-flood) attacks, IP-Spoofing)
* disabled kernel DEBUG & disabled DEBUG in kernel code
* support of more encryption ciphers
* utf8 support (international)
* fixed & improved CFQ i/o scheduler (option)
* BFQ i/o scheduler (option)
* tweaked ondemand governor (raised the min_sample_rate of ondemand cpufreq governor to 9500)
* interactive cpufreq governor (option)
* smartass cpufreq governor (option)
* OC/UV support (option) (thanks to morfic, TheEscapist & bilboa1)
* laststufo's optimized CFLAGS for more speed (kudos & thanks to laststufo !)
* compiled with CodeSourcery 2010.09 toolchain (better code quality, stability & speed)
* CPU (CFS) scheduler optimizations (optimized branch brediction for more speed, low latency, load balancing); tighter scheduler timings for more speed & responsiveness;
* optimized cacheflushs for user apps (speeds up emulators and specific apps)
* optimized OOM (out of memory killer; apps being removed out of memory - when memory is full)
* faster deactivation & reclaim of invalidated pages (memory faster being available again after big file operations)
* vmscan & other fixes (better responsiveness with lots of read/writes & under load)
* ck-patches (patches by Con Kolivas, mm-lru_cache_add_lru_tail for more efficient memory usage)
* optimized writeback handling (less hangs & waits during write operations)
* script: 90screenstate_scaling: lots of CFS, writeback and cpufreq governor tweaks (less cpu ticks, less cpu looping & delayed writeback - better battery runtime)
* script: 89system_tweak: tweaks for faster data throughput; caller ringdelay (1 second); energy savings for CPU in standby mode, energy savings for radio; WIFI scaninterval to 180 seconds
* CONFIG_IKCONFIG=y & CONFIG_IKCONFIG_PROC=y
* CONFIG_NETFILTER_XT_MATCH_MULTIPORT & CONFIG_IP_ADVANCED_ROUTER
* Stochastic Fair Blue (SFB) network scheduler for default network scheduler - kudos to the zen-kernel / zen-droid team !
* lots of fixes: fix potential memory corruption in buddy allocator of page allocator; potential lags / hangs / looping; security hole in tipc; potential deadlock in radix-tree
* data safety (2 patches of Nick Piggin's Inode integrity patches)
* [improved battery runtime] delay going tickless when CPU is loaded
* kernel timer at 128 Hz; USER_HZ 150 Hz; HIGH_RES_TIMER 300 Hz
* Google WIFI fix to let the CPU sleep more during non-usage of WIFI
* Wii Remote support (bluetooth profile)
* working kernel modules: ansi_cprng, bcm4329 (WIFI), cifs, scsi_wait_scan, tun
* ext4 stability & data integrity fixes
* LED notification (by bilboa1) (short howto and FAQ)
* removing of the FPS limit (by bilboa1)
* DockSound support
* adjustments to the haptic feedback (by bilboa1)
* higher battery charging temperature [experimental, upstream]
* zram (successor of ramzswap / compcache - swapfile in RAM) [option]
* removed (commented out) several limits from the init scripts
* optimization for sqlite database files (speeding up system & apps)
* optimized conservative & ondemand governors
* [upstream] fixed BUG with ARM and delays during cpufreq switching

* disable FM RDS radio for now - potential battery drain & does not work [less battery drain]
* disable SWAP and zram - zram breaks stuff and enabled SWAP-support might be a battery drain, also disable the xvmalloc [less battery drain]
* enable KSM and uaccess with memcpy
* 1:1 CFLAGS from laststufo (Ultimate SO-Kernel flags) and replacement of soft pipelining with module scheduling (internal compiler error)
* kernel compiled with Thumb instruction set - more efficient (performance) & battery savings
* disable VGA console (broken - compile errors) & disable FRAMEBUFFER CONSOLE (broke lock-screen and stuff)
* practically eliminated all lags - (potentially) lagfree
* tweaks to CFS cpu scheduler
* tweaks to conservative governor script
* improved read & write values (write: 4.3 vs. 7.1; read: 11.7 vs. 16.9)

* allow using LED while screen on [thanks to bilboa1 !]
* working external SD card access
* and everything I might have forgotten


Kernels & Modems:

for kernels see beginning of THIS thread


modems:


* cm7-galaxys-radio-JL2.zip (3.98 MB)

md5sum:
1bc9380e4e238b33f26444c5be7cc6be cm7-galaxys-radio-JL2.zip


* cm7-galaxys-radio-JVK.zip (3.91 MB)

md5sum:
d857d0fe9bd81cca3c4110e4c0bb400e cm7-galaxys-radio-JVK.zip


* cm7-galaxys-radio-JP5.zip (3.98 MB)

md5sum:
759e9cddeb29abc8cff4643b55fae6bb cm7-galaxys-radio-JP5.zip


* cm7-galaxys-radio-JPB.zip (4.27 MB)

md5sum:
22ecabcb57224cc63392d9b860c9038a cm7-galaxys-radio-JPB.zip


* cm7-galaxys-radio-JPE.zip (3.98 MB)

md5sum:
0953173e490ddaee4a79710628bd1586 cm7-galaxys-radio-JPE.zip


* cm7-galaxys-radio-JPG.zip (3.91 MB)

md5sum:
031b759d69f11cbcb22d5f255d1aa4a8 cm7-galaxys-radio-JPG.zip


* cm7-galaxys-radio-JPM.zip (3.98 MB)

md5sum:
591d4104008265dd9388fdd970c04c98 cm7-galaxys-radio-JPM.zip


* cm7-galaxys-radio-JPY.zip (3.98 MB)

md5sum:
2bfb299a707ad975e7b9a78bb0375c86 cm7-galaxys-radio-JPY.zip


* cm7-galaxys-radio-JQ1.zip (3.99 MB)

md5sum:
9a74dc5814ba8da97b861f0f74592b17 cm7-galaxys-radio-JQ1.zip


* cm7-galaxys-radio-JV1.zip (3.98 MB)

md5sum:
3a055fde84cecfa72851aac3e6a6440c cm7-galaxys-radio-JV1.zip


* cm7-galaxys-radio-KC1.zip (4 MB)

md5sum:
4d7110c4f85bad54e51f6899514c3bbf cm7-galaxys-radio-KC1.zip






Documentation & Info:

this kernel is compatible with CM7 (CM7/Android 2.3.3)

# for the kernel update:
get into CWM Recovery via 3-button combo

# for the corresponding (full with kernel included) cm7_update file:

the system is compiled with the same toolchain like with the kernel but with PIE + SSP turned off (due to upstream/Android/AOSP not compiling with it, yet)



INSTALLATION INSTRUCTIONs:

Installation steps:

Quote:

* make sure you have auto-rotation enabled with previous kernel
* boot into CWM Recovery
* apply update.zip
* Wipe /cache & Dalvik Cache
* "reboot system"
* give it some time to boot
* check if auto-rotation works - (is it enabled ?) - if not press power button 10+ seconds (ignore power menu popping up)
* after the next boot it should work


old / more detailed:

simply get into Recovery (cwm)

via 3-button combo:

Quote:

0) extract the 7z file & copy the "update-cm-7.0.0-RC0-GalaxyS-KANG-signed.zip" to your sdcard, then turn your mobile phone off

1) vol up button + home (keep pressed)

2) add power button to them

3) as soon as you see the original Samsung splash logo, approx. wait another additional (1s) second

4) release the power button

5) keep vol up + home pressed

-> the Samsung S + cyanogen(mod) splash screen appears

6) keep the 2 buttons pressed

7) now you should be in recovery

8) select "Install .zip from SD card" then browse

congrats




System update with platypus kernel included:

complete system update & kernel:

04/03/2011

* update-cm-7-04032011-NIGHTLY-GalaxyS-signed_zram_new.zip (81.61 MB) (CMParts.apk for LED notification included - ready for consumption )

md5sum:
51f951a602dcfadb7b9a284dc0947d2a update-cm-7-04032011-NIGHTLY-GalaxyS-signed_zram_new.zip
(outdated, non-working external SD-card access via usb-sharing)


tools & fixes:

[INITSCRIPT] screenstate_scaling - switch CPU freq governor on screen state change by FloHimself

for best results between battery savings & performance replace AWAKE_GOVERNOR="interactive" with AWAKE_GOVERNOR="ondemand"

installation instructions:

Quote:

0) make changes to the script (e.g. replacing "interactive" with "ondemand") [recommended for better battery runtime]

1) adb push 90screenstate_scaling /sdcard/

2) adb shell

3) su

4) cp /sdcard/90screenstate_scaling /system/etc/init.d/

5) chmod 750 /system/etc/init.d/90screenstate_scaling

6) reboot

result:
- when screen is on ondemand cpufreq governor (99% full interactivity & performance),
- when screen is off powersave cpufreq governor (maximum power savings)


* VoltageControl-3.0.1.apk (52.58 KB)


Sources / Repo:

https://github.com/zachariasmaladroi...ernel_samsung/




QUESTIONS & ANSWERS:

Quote:

Q: "what is the different between this kernel and the bilboa1 one?"
A: they share the same base but all the additions mentioned above are included on top of the kernel

Quote:

Q: "Can anyone tell [...] what the difference between just flashing the kernel or the entire system update is? Thanks "
A: the kernel is just the "heart" or "driver" of your phone communicating with your hardware (touchscreen, processor, wifi, etc.)
whereas the entire system is the whole CM7 system with all its apps

Quote:

Q: why do the kernel packages sometimes have the name kang ? are those bilbao1's kernels ?
A: nope, my and his kernel share a common base but mine is very different, I'm also using his fine packaging-script(s) therefore the name (I was too lazy to change it yet )

Quote:

Q: Pourquoi il n'y a pas le ROM de xxyy ? tu offre un noyau (kernel ?) de xxyy !
A:tu peut compiler le système et le noyau manuellement
comme décrit à: http://forum.cyanogenmod.com/topic/1...eloper-thread/
le noyau ou kernel que je (et bilboa1) compile sont en majeure partie independent du système (ROM)
c'est pourquoi normalement il n'y a pas un noyau et aussi un ROM le même jour

Quote:

Q: I'm new in OC/OV operations so please could you explain to me how to set it in the best way?
A: start with -50 mV (delta from default value) other values probably are too low

my testing includes:

- Angry Birds Rio (several missions)
- Gun Bros (for some time)
- mp3 playback, (flac playback - optional)
- surfing the web via browser, opening up bit.ly links from cmsgsteam twitter feed
- watching youtube video
- watching video via rockplayer lite or mobo video player
- running benchmarks (Smartbench 2011, quadrant standard, an3dbenchXL, anTutuBench)
- Labyrinth Lite (for gravity sensor), auto-rotation (also for sensor)

when 1 GHz (1,2 or 1,3) is OK - go lower with undervolt value (e.g. -75 mV)
after it gets un-stable - go back to last known stable value

then you can limit max frequency to lower one, e.g. 800 MHz

and repeat testing for that frequency

Quote:

Q: black screen during 1st boot - shortly pressing power button doesn't fix it - only soft keys activated (perhaps screen activated but no output visible - black)
A: keep power button + home + vol up pressed until it reboots; it shows samsung galaxy s logo - hold it for some seconds shortly before the cyanogenmod splash appears (timing !) [same like getting into Recovery]
Wipe /cache & Dalvik Cache again & "reboot system" - now it should work

Q: auto-rotation not working !
A: check that it's enabled in settings or the notification power widget
it it still does not work tilt the phone and wait for some seconds - still not working
press power button 10+ seconds until it reboots (ignore appearing power menu) - that forces the phone to reset state and "hard"-reboot - now it should work

Changes:
* initial kernel with basic changes & patches against upstream CM7
* pulled the kernel only (cwm update-file available - if you want to try it PM: I can't put the link here if in most cases it won't boot up / is stuck at boot splash for me)
* kernel up again ! (fixed & updated update-script)
* 06/09/2011 new kernel is up ! this one shouldn't drink so much battery juice anymore (switched from interactive to ondemand & powersave governor)
* 03/29 Voodoo Sound V7, several battery drains removed; optional kernel with ondemand governor while screen is on; smaller memory footprint - preemptive RCU; working CIFS & TUN kernel modules (needs testing) ...
* 04/02 added "Features" section
* 04/13 added "Antlion" kernel release
The Following 41 Users Say Thank You to zacharias.maladroit For This Useful Post: [ View ]