• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root [Kernel][GB] KoumaKernel 2.5

Koumajutsu

Android Expert
Aug 26, 2011
1,434
1,092
Needles, CA
www.paypal.com
Koumajutsu here,

I've put together a kernel package for our wonderful Prevail.

Version 2.5:

Short and sweet, I added swap support for anyone who cares about such things

Odin users: You will notice that the download file is now a .zip. this is because the tar file is inside and the config file is in there too. There are some instructions in the included readme.txt on how to install the config file, without it, the kernel will not attempt to mount the extended SDcard partitions at all.

CWM users: The installer script puts everything where it needs to be hands free. This is the best way to install IMO.

On to configuring:
Koumamod.apk 1.8

KoumaMod Settings:
None:
Just what it says, no apps to SD mode

Data: Mount SD-EXT as /data. All downloaded apps and settings will be stored on SD. This is a complete replacement of the internal storage.
>>>[] Disable internal /data: Check this to disable the internal /data partition. This improves some performance, and frees up the internal to use for something else. Leave unchecked if you want the internal memory to serve as a fall-back in case you need to run without an SD-card or yours may fail soon.

SSM: The Super Secret Mod as it once was known. Mounts SD-EXT as /data/app leaving all other data on the internal memory. If a second EXT partition is found on the sd-card (sometimes referred to as SD-Swap formatted to ext4) it will mount it as /data/dalvik-cache, easing the burden on the internal flash some more.
>>>[] Transpose SSM Partitions: Swaps the mounting points described in SSM: This means the first SD-EXT found will be mounted as /data/dalvik-cache and the 2nd as /data/app. This is useful if you want "Format SD-EXT" in ClockWorkMod recovery to mean "Wipe Dalvik-Cache"

Swap Settings:
Swap Path:
The full path to the device or file to be used as swap. Long press to bring up a file-browser to locate the item in the system. Select "<Current Directory>" to create a swapfile in the current directory (note: only create swapfiles in places with full time write access, like /sdcard).

Priority: (optional) A semi-arbitrary number denoting the priority of swap usage relative to other swaps. Translation: Higher number means that swap gets used before the other swaps. Ignored if there is only 1 swap used.

Swappiness: Value from 0 to 100 denoting how often the system will move data into swap when not used. 100 = ASAP, 0 = Only when RAM is full

Old Instructions:
in /system there (should) be a file named koumamod. In there is this,
Code:
on koumamod
# Default Internal /data partition. Comment this line to disable mounting of the internal /data (not recommended)
	mount ext4 /dev/stl13 /data rw noatime nosuid nodev barrier=0 data=writeback nobh nodiratime noauto_da_alloc

# Mount SD-EXT as /data partition (KoumaKernel 1.2 style) Uncomment this line to activate this mode
#	mount ext4 /dev/block/mmcblk0p2 /data rw noatime nosuid nodev barrier=0 data=writeback nobh nodiratime noauto_da_alloc

# Required Directory and Permissions. Do not edit these
	mkdir /data/dalvik-cache 0771 system system
	chown system system /data/dalvik-cache
	chmod 0771 /data/dalvik-cache
	mkdir /data/app 0771 system system

# Mount SD-EXT as /data/app and SD-SWAP as /data/dalvik-cache (SSM Style) Uncomment both lines to activate this mode
#	mount ext4 /dev/block/mmcblk0p2 /data/app rw noatime nosuid nodev barrier=0 data=writeback nobh nodiratime noauto_da_alloc
#	mount ext4 /dev/block/mmcblk0p3 /data/dalvik-cache rw noatime nosuid nodev barrier=0 data=writeback nobh nodiratime noauto_da_alloc

# /data permissions. Do not edit
	chown system system /data
	chmod 0771 /data
	trigger post-fs
This may be hard to read while in an editor on the phone itself. Just take your time with it
We are concerned with the lines that start with "mount ext4"
simply remove the # from in front of the line to for the mount option you want.
it's broken up into sections, 2 of them you should probably not mess with, they are labeled with Do Not Edit :)
Uncomment the sections you want to run, Comment the sections you don't.
The above is the default config, it just mounts the internal.

People running in all /data on the sd-ext can get away with commenting the first section, but your phone will not run or boot without your sdcard if you do that. but it seems to help gps for some people

Be careful to only have one mode uncommented at a time, there's no safety, you can end up with your SD-ext mounted in 2 places, making an endless loop within itself, this is bad (or it just wont mount the 2nd time, either way, don't do it)

Integrated Darktremor style App2SD! Hroark discovered a tweak that obsoletes A2SD apps and that change is now integrated with this kernel.

I've added an extra secret mod that can be unlocked by manually adding a third sd-card partition, I will post instructions at the end of this post. -Unhidden due to new cwm formatter

*NOTE* You absolutely MUST format your SD-ext partition if changing over from a traditional App to SD solution. This mounts the SD extended partition as /data. Other apps map SD-Ext to folders within /data, the structure will not match and will not work if you do not format.

If you do not have a partitioned SD card. THERE IS NO CHANGE. Don't worry about upgrading

Boot times -WILL- be slower. Especially with slower SD cards. I run a class 2 card because I'm a cheap bastard, it takes me an extra 30 seconds or so to boot. I expect faster cards will be faster. Smaller partitions should also be faster, I have a 4 gig SD-Ext partition.

Performance results with my 8 gig Class 2 card split 50/50? Some apps load slow, especially the first time. Things are pretty snappy after that.

Therefore, this is pretty good for general consumption.

There is no hotspot_event_monitoring.

Outside of that, this was originally a branch of Hroarkernel 1.2, with Hroark's smaller EXT4 drivers, and init.d support stolen from Shabbypenguin's init.rc

I would like to thank Hroark13 for the Kernel source and workshop, Hroarkernel, his EXT4 modules and his help in providing all the information I used in making my dhd.ko; and Shabbypenguin for confirming that I had the right init.rc lines to implement his init.d support method.
I would also like to thank trenchkato for getting overclocking to work and for sharing his code

Change Log:
Code:
2.5: Added swap support
2.4: Fixed GPS. Added Governors, Added IO schedulers, Upped Overclocking to 946, changed koumamod mounting
2.3: Fixed another bug where permissions and directories were not created properly. Added overclocking to 900MHz
2.2: Fixed bug where permissions and directories would not create correctly on clean SDcards. Removed RFS drivers. Fancied up the boot splash. first attempt at Signed zips
2.1: Updated Kernel string. Added a method for choosing mount style (SSM or 1.2/3 style)
2.0: Compiled from 2.6.35.14 source, tweaked mount locations. 1.5 turned official
1.4: Changed mount location for SD-EXT, to quiet some whiners :p
1.3: Skipped to avoid confusion with Build from Hroark
1.2: Tweaked Mount options for improved performance
1.1: Thanks to Hroark's hard work, pure App2SD integrated
1.0 cosmetic revision: swapped out boot splash for a work in progress version
1.0: Added bootanimation support, Cleaned up LS_COLORS (Thanks to Bloodawn for unknowingly showing me a spelling mistake I made that cause me grief with boot animations)
0.1GB: Redid 0.1 for Gingerbread Release, made dhd.ko smaller. Included new gingerbread ext modules made by Hrorak. Removed CIQ

0.2: Had to put CIQ service back in to resolve bootloops for some users
0.1: Initial Release
Super simple instructions:

Odin Images:
Flash with Odin with the One Package option set.
Get Odin from here: http://androidforums.com/galaxy-prevail-all-things-root/375550-odin.html

ClockWorkMod (CWM) Images:
Flash like any theme:
Copy KoumaKernel Zip file to your sdcard
Power off phone, or reboot into recovery if your phone supports it.
Power on your phone while holding the Volume Up and Camera buttons.
Navigate to "install zip from sdcard" -> "choose zip from sdcard" -> <Zip File for KoumaKernel>
Select the option: "Yes - Install <Zip File for KoumaKernel>"
Wait for the script to complete.
Reboot phone.

GINGERBREAD KERNELS

KoumaKernel 2.5 GB CWM
Code:
md5sum: 5ca76fb8460a1436c5f26833ecc0b764
KoumaKernel 2.5 GB CWM Upgrade from 2.4
Code:
md5sum: 964052eda054294c16a9eb6102ab53d9
KoumaKernel 2.5 GB Odin
Code:
md5sum: c8a69b68a365bffcdbe4efc5e90ec1fa

Old Versions
CWM Packages
KoumaKernel 2.4 GB CWM
KoumaKernel 2.3 GB CWM
KK 2.2 overclock enabled
KoumaKernel 2.2 GB CWM
KoumaKernel 2.1 GB CWM
KoumaKernel 2.0 GB CWM
KoumaKernel 1.4 GB CWM
KoumaKernel 1.2 GB CWM
KoumaKernel 1.1 GB CWM
KoumaKernel 1.0 GB CWM
KoumaKernel 0.1 for Gingerbread
Odin Packages
KoumaKernel 2.4 GB Odin
KoumaKernel 2.3 GB Odin
KoumaKernel 2.2 GB Odin
KoumaKernel 2.1 GB Odin
KoumaKernel 2.0 GB Odin
KoumaKernel 1.4 GB Odin
KoumaKernel 1.2 GB Odin
KoumaKernel 1.1 GB Odin
KoumaKernel 1.0 GB Odin

FROYO KERNELS
Odin Package:
KoumaKernel 0.2b Odin "One Package"

CWM Package
KoumaKernel 0.2b CWM flashable package

Froyo CIQ Removed Versions:
KoumaKernel 0.1b Odin
KoumaKernel 0.1b CWM

Super Secret Mod In order to activate the Super Secret Mod (moves /data/dalvik-cache to SD), you do the following (I will not answer questions regarding this, it is for the Advanced user and if you can't figure it out, you're not an advanced user, and seriously, if you can't work ADB and run a CWM zip, you probably shouldn't be modding your phone anyways. Just sayin):

SDparter.apk: My new tool for partitioning SD-Cards.
Old Instructions:
1) Boot into Recovery
2) ADB shell into the phone
3) Run "sdparted -i"
4) Pick a size for a swap partition (CWM doesn't give you many size options, most are probably too small)
5) Pick a size for your EXT partition. Let the fat partiton have the rest.
6) When sdparted completes, manually convert the swap partition to ext4 by using the following:
SD Ext Partition Formatter for CWM
* Suggestions *: Pick the same size for both your ext and your swap partitions, they seem to fill up at about the same rate. For me, I picked 1987, because it is exactly 1/4th of my SDcard so I have swap = 1987, ext = 1987 and vfat = 3974. Total = 7948 (8gig sdcard)

 
what would removing hotspot_event_monitoring do for the phone?


free up about 6 MB of ram

hotspot_event_monitoring 89.kb removed
dhd.ko reduced from 2.6 mb to 264 kb
ext4.ko reduced from 3.4 mb to 346 kb
jbd2.ko reduced from 836 kb to 103 kb

since the hotspot_event_monitoring is a security feature, this may make tethering easier
 
Upvote 0
free up about 6 MB of ram

hotspot_event_monitoring 89.kb removed
dhd.ko reduced from 2.6 mb to 264 KB
ext4.ko reduced from 3.4 mb to 346 kb
jbd2.ko reduced from 836 kb to 103 kb

since the hotspot_event_monitoring is a security feature, this may make tethering easier

someone needs to couple this with carrier IQ remover.
That would be awesome.
 
Upvote 0
I installed per the instructions for CWM zip installation, but after the script finished and the obligatory system rebooting the phone is now hanging up at the introduction Boost screen. It vibrated once and then quit..... Looks like I'll be hitting Odin pretty hard in the morning after I get off from work unless anybody has any ideas..... LOL

Strange. can you try clearing your dalvik cache, or reflashing
 
Upvote 0
Strange. can you try clearing your dalvik cache, or reflashing

I had the same idea about clearing the Dalvik Cache just before I logged back in and saw this... It's kind of hard to work on my phone while watching over 3 other employees that are on heavy equipment. LOL.

I just cleared the cache and it's trying to boot up as I write this.
 
Upvote 0
fingers crossed.
and not in the machines

Well, I cleared the Dalvik cache and it looked promising. The phone entered the boot animation cycle, and then started bootlooping right when it should actually be booting up. Honestly, I think my phone just completely hates a change of any kind.... LOL!!!!!! It did the same thing when Shabby's RC1 first came out, and then hroarks ext4, and just about every other theme..... I'll push it through with Odin, after I Odin to get back up and running. LOL
 
Upvote 0
Well, I cleared the Dalvik cache and it looked promising. The phone entered the boot animation cycle, and then started bootlooping right when it should actually be booting up. Honestly, I think my phone just completely hates a change of any kind.... LOL!!!!!! It did the same thing when Shabby's RC1 first came out, and then hroarks ext4, and just about every other theme..... I'll push it through with Odin, after I Odin to get back up and running. LOL

Sorry to hear you've had trouble. Before I released, I had an issue with the cwm version myself, Facebook started to force close. I had to go into applications and clear that app's cache then log back in again, and then it was fine.

I thought I squashed that bug, it may have just hit a system app for you

I guess you could try clearing your regular cache, but I'd hate to make you lose all your settings and any saved login info
 
Upvote 0
Sorry to hear you've had trouble. Before I released, I had an issue with the cwm version myself, Facebook started to force close. I had to go into applications and clear that app's cache then log back in again, and then it was fine.

I thought I squashed that bug, it may have just hit a system app for you

I guess you could try clearing your regular cache, but I'd hate to make you lose all your settings and any saved login info


I did clear the system cache as well but it still kept boot looping. It's not that big of a deal though. I look forward to trying out the kernal when I'm back up and running in a few short hours.
 
Upvote 0
I tried flashing the CWM version but when the phone boots up, it'll do the single vibrate like it's supposed to and I'll here the signal sound but it won't leave the boot screen. I even did the usual wipe cache and dalvik cache after flashing like all the other goodies say to do hoping it would help but to no avail. Any suggestions on why this happened?
 
Upvote 0
I tried flashing the CWM version but when the phone boots up, it'll do the single vibrate like it's supposed to and I'll here the signal sound but it won't leave the boot screen. I even did the usual wipe cache and dalvik cache after flashing like all the other goodies say to do hoping it would help but to no avail. Any suggestions on why this happened?

It could just be slow to go to the lock screen. I haven't ran many performance tests with the CWM version. I think I'll just take that version down for now. Though the people that have had success with it have been happy, I don't like a trend of people having problems.
 
Upvote 0
I've been running the CWM version for about 3 days now and I've had no bootloop or error vibrations of any kind.
Great work!
Dont know that I can help any of you that are bootlooping. I was running hoarks kernal installed via the Odin package with the kernal and rooted system. After that I installed ShabbyRom (where I removed more apps to make it smaller and added Zeam launcher and some other stuff). Installed different themes, Honeycomb, Simple Blue, and one that I'm working on. And a few days ago I flashed this kernal via CWM with no issues.
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones