1. Check out our companion app, Forums for Android! Download from Google Play

Root [Kernel][GB] KoumaKernel 2.5

Discussion in 'Android Devices' started by Koumajutsu, Oct 15, 2011.

  1. 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:
    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 (Text):
    1. on koumamod
    2. # Default Internal /data partition. Comment this line to disable mounting of the internal /data (not recommended)
    3.     mount ext4 /dev/stl13 /data rw noatime nosuid nodev barrier=0 data=writeback nobh nodiratime noauto_da_alloc
    5. # Mount SD-EXT as /data partition (KoumaKernel 1.2 style) Uncomment this line to activate this mode
    6. #   mount ext4 /dev/block/mmcblk0p2 /data rw noatime nosuid nodev barrier=0 data=writeback nobh nodiratime noauto_da_alloc
    8. # Required Directory and Permissions. Do not edit these
    9.     mkdir /data/dalvik-cache 0771 system system
    10.     chown system system /data/dalvik-cache
    11.     chmod 0771 /data/dalvik-cache
    12.     mkdir /data/app 0771 system system
    14. # Mount SD-EXT as /data/app and SD-SWAP as /data/dalvik-cache (SSM Style) Uncomment both lines to activate this mode
    15. #   mount ext4 /dev/block/mmcblk0p2 /data/app rw noatime nosuid nodev barrier=0 data=writeback nobh nodiratime noauto_da_alloc
    16. #   mount ext4 /dev/block/mmcblk0p3 /data/dalvik-cache rw noatime nosuid nodev barrier=0 data=writeback nobh nodiratime noauto_da_alloc
    18. # /data permissions. Do not edit
    19.     chown system system /data
    20.     chmod 0771 /data
    21.     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 (Text):
    2. 2.5: Added swap support
    3. 2.4: Fixed GPS. Added Governors, Added IO schedulers, Upped Overclocking to 946, changed koumamod mounting
    4. 2.3: Fixed another bug where permissions and directories were not created properly. Added overclocking to 900MHz
    5. 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
    6. 2.1: Updated Kernel string. Added a method for choosing mount style (SSM or 1.2/3 style)
    7. 2.0: Compiled from source, tweaked mount locations. 1.5 turned official
    8. 1.4: Changed mount location for SD-EXT, to quiet some whiners :p
    9. 1.3: Skipped to avoid confusion with Build from Hroark
    10. 1.2: Tweaked Mount options for improved performance
    11. 1.1: Thanks to Hroark's hard work, pure App2SD integrated
    12. 1.0 cosmetic revision: swapped out boot splash for a work in progress version
    13. 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)
    14. 0.1GB: Redid 0.1 for Gingerbread Release, made dhd.ko smaller. Included new gingerbread ext modules made by Hrorak. Removed CIQ
    16. 0.2: Had to put CIQ service back in to resolve bootloops for some users
    17. 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.


    KoumaKernel 2.5 GB CWM
    Code (Text):
    1. md5sum: 5ca76fb8460a1436c5f26833ecc0b764
    KoumaKernel 2.5 GB CWM Upgrade from 2.4
    Code (Text):
    1. md5sum: 964052eda054294c16a9eb6102ab53d9
    KoumaKernel 2.5 GB Odin
    Code (Text):
    1. 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

    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)



  2. hroark13

    hroark13 Well-Known Member
    Recognized Developer

    Jul 15, 2011
    nice work

    this will free up alot of memory
  3. hate

    hate Well-Known Member

    Jul 14, 2011
    what would removing hotspot_event_monitoring do for the phone?
  4. hroark13

    hroark13 Well-Known Member
    Recognized Developer

    Jul 15, 2011

    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
  5. aladdin99

    aladdin99 Well-Known Member

    Jul 4, 2011
    someone needs to couple this with carrier IQ remover.
    That would be awesome.
  6. SpCowboy2842

    SpCowboy2842 Well-Known Member

    Jun 29, 2011
    Warehouse Manager
    The mountains of N.C.
    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
  7. bhays3

    bhays3 Well-Known Member

    Jun 3, 2011
    my question is would this cause blue's CIQ removal steps to be reversed and cause CIQ to be turned back on?
  8. Bloodawn

    Bloodawn Well-Known Member

    Jul 16, 2011
    this is a kernal, it won't effect my ciq remover
  9. Strange. can you try clearing your dalvik cache, or reflashing
  10. bhays3

    bhays3 Well-Known Member

    Jun 3, 2011
    alright cool..in that case i'll definitely have to give this a go :)
  11. SpCowboy2842

    SpCowboy2842 Well-Known Member

    Jun 29, 2011
    Warehouse Manager
    The mountains of N.C.
    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.
  12. fingers crossed.
    and not in the machines
  13. SpCowboy2842

    SpCowboy2842 Well-Known Member

    Jun 29, 2011
    Warehouse Manager
    The mountains of N.C.
    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
  14. 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
  15. SpCowboy2842

    SpCowboy2842 Well-Known Member

    Jun 29, 2011
    Warehouse Manager
    The mountains of N.C.

    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.
  16. SSG27

    SSG27 Well-Known Member

    Aug 6, 2011
    Walls, MS
    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?
  17. 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.
  18. ARocker

    ARocker Well-Known Member

    Aug 17, 2011
    Jersey City, NJ
    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.
  19. fcortes626

    fcortes626 Well-Known Member

    Jul 28, 2011
    FedEx and Auto tech student
    Los Angeles
    mines installed and is working. i usd the cwm version. just leave it there and make a note for people know it doesnt work for every one.
  20. It could be something as simple as people needing to do a factory reset after flashing this. I want to be sure though before I put it back up
  21. Mr.Push

    Mr.Push Member

    May 22, 2011
    Comm Tech
    North Carolina
  22. im a genius

    im a genius Well-Known Member

    Aug 23, 2011
    its working fine i dont see why other are having problems...
  23. I tried a bunch of things. including a stock ED13 image.
    I can't get it to break.
    It has to be something uncontrollable.
    I've put it back up
    If you run into problems, do a factory reset and try agian
  24. SpCowboy2842

    SpCowboy2842 Well-Known Member

    Jun 29, 2011
    Warehouse Manager
    The mountains of N.C.
    I have the Dalvik cache moved to the SD card with Darktremors. I'm wondering if that caused some of the issues that my phone had last night with the cwm flash. ???? Just thinking.......
  25. gw4141

    gw4141 Well-Known Member

    Jul 11, 2011
    Marrero, La.
    CWM this morning, no problems at all.. everythings seems fine. Works like a charm.

Share This Page