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
Smile [KERNEL][CM7/MIUI] 27/04,platypus,Voodoo SOUND&COLOR,OC/UV,SLQB,LED notif,NODEBUG,...

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)
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)

* (3.97 MB) (STABLE), but WIP)

* (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 - )

* (3.98 MB)

* (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: (3.91 MB)

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

1st Mirror / Host: [recommended]
"core" (thanks a lot to Roland !)
2nd Mirror:
it's post (XDA)
3rd Mirror: (3.91 MB)

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

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) )
1st Mirror / Host: [recommended]
"Twoface" (thanks a lot to Roland !)
2nd Mirror:
its post (XDA)
3rd Mirror: (3.44 MB)

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 )

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: (5.22 MB)

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: (5.23 MB)

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 )
1st Mirror / Host: [recommended]
"Alice" (thanks a lot to Roland !)
2nd Mirror:
its post (XDA) (attachment)
3rd Mirror: (5.23 MB)

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 )


see below for full list of modems



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.

* 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


*link to changelog*



* 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
* 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


* (3.98 MB)


* (3.91 MB)


* (3.98 MB)


* (4.27 MB)


* (3.98 MB)


* (3.91 MB)


* (3.98 MB)


* (3.98 MB)


* (3.99 MB)


* (3.98 MB)


* (4 MB)


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 steps:


* make sure you have auto-rotation enabled with previous kernel
* boot into CWM Recovery
* apply
* 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:


0) extract the 7z file & copy the "" 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


System update with platypus kernel included:

complete system update & kernel:


* (81.61 MB) (CMParts.apk for LED notification included - ready for consumption )

(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:


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

- 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:



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


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


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 )


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 à:
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


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 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


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

* 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 ]