MoshKernel-amami[aosp-based + stock]

CoolDevelopment

Senior Member
Sep 25, 2013
996
1,712
0
Cologne
This is a kernel you can flash on any rom for amami, which uses the caf-based libraries and stock rom.
The most work on this was not done by me, this is more a package of work done by other people.

See the next post for installation instructions.

Features
- f2fs support
- cpuquiet cpu hotplug driver(disabled mpdecision automatically)
- lz4 support and lz4 kernel compression
- optional underclocking to 268 Mhz
- fiops i/o scheduler
- lcd color calibration support
- cpu undervolting support
- enabled zram
- faux123's sound control
- fastcharge support
- dynamic sync control by faux123
- '-Ofast'-optimizations
- 'proc/last-kmsg'
- vibration density sysfs interface
- TWRP recovery with f2fs support(stock-based only)
- [WIP] f2fs-compatible ramdisk(stock-rom only, for aosp-based check this
- init.d support(stock romonly, but already included in the most aosp-based roms)
- disabled ric service(stock only, not needed with aosp-based roms)
- prima wifi module

Issues

- exfat sdcards and usb storage can't get mounted​

XDA:DevDB Information
MoshKernel-amami[aosp-based + stock], Kernel for the Sony Xperia Z1 Compact

Contributors
CoolDevelopment, faux123, DooMLoRD, FreeXperia, every android kernel developer
Kernel Special Features:

Version Information
Status: Testing
Current Beta Version: 0.3
Beta Release Date: 2014-09-08

Created 2014-07-16
Last Updated 2014-09-08
 
Last edited:

CoolDevelopment

Senior Member
Sep 25, 2013
996
1,712
0
Cologne
Reserved

How to configure cpuquiet

You can configure cpuquiet to the pefect use with your phone. You need root permissions and any shell, i. e. Terminal Emulator.
First run 'su' to get root permissions.

Change the minimum and maximum amount of online cpu cores:
Code:
file for max. amount of online cpus: /sys/devices/system/cpu/cpuquiet/cpuquiet_driver/max_cpus
file for min. amount of online cpus: /sys/devices/system/cpu/cpuquiet/cpuquiet_driver/min_cpus

Example:
echo 3 > /sys/devices/system/cpu/cpuquiet/cpuquiet_driver/max_cpus
echo 2 > /sys/devices/system/cpu/cpuquiet/cpuquiet_driver/min_cpus

The cpuquiet driver supports different governors, a bit like cpufreq governors. The governors which are currently present are: "runnable", "rq_stats", "load_stats", "balanced"
Find the best one for you by yourself :)

Code:
sysfs file: /sys/devices/system/cpu/cpuquiet/current_governor

Example: echo balanced > /sys/devices/system/cpu/cpuquiet/current_governor

Change the max screen-off cpu frequency and online cpus:
Code:
sysfs file for max. screen-off-freq: /sys/devices/system/cpu/cpuquiet/cpuquiet_driver/screen_off_cap
syfs file for max. screen-off online cpus: /sys/devices/system/cpu/cpuquiet/cpuquiet_driver/screen_off_max_cpus

Example:
echo 960000 > /sys/devices/system/cpu/cpuquiet/cpuquiet_driver/screen_off_cap
echo 1 > /sys/devices/system/cpu/cpuquiet/cpuquiet_driver/screen_off_max_cpus

Disable cpuquiet(and enable mpdecision):
Code:
sysfs file: /sys/devices/system/cpu/cpuquiet/cpuquiet_driver/enabled

Example:
echo 0 > /sys/devices/system/cpu/cpuquiet/cpuquiet_driver/enabled
start mpdecision #enable mpdecision
These settings only stick until you reboot. So better setup an init.d script, which applies your settings every boot.
If you aren't sure, what init.d scripts are, ask google.
 
Last edited:

CoolDevelopment

Senior Member
Sep 25, 2013
996
1,712
0
Cologne
Reserved

AOSP-based roms


The kernel for asop-based roms gets flashed using a special .zip, which only flashes zImage and dt. That means, there are no ramdisk-problems, which you didn't got before. The scripts inside the script are also modifying the ramdisk to don't have mpdecision enabled by default.

Installation
1. Flash the zip file through a recovery

Download
https://s.basketbuild.com/devs/CoolDevelopment/MoshKernel-amami/aosp-based/

Source: https://github.com/CoolDevelopment/MoshKernel-amami/tree/caf


Stock rom/Stock-based roms


Installation
1. Be sure you have an unlocked bootloader
2. Be sure you have installed busybox
3. Flash the zip file through a recovery

Download
https://s.basketbuild.com/devs/CoolDevelopment/MoshKernel-amami/stock-based/

Source: https://github.com/CoolDevelopment/MoshKernel-amami/tree/14.4.A.0.xxx
https://github.com/CoolDevelopment/MoshKernel-amami-stock-based-initramfs



Changelog

0.1
- initial commit

0.1.1
- revert back to row as default i/o scheduler

0.1.2
- update f2fs to current upstream
- replace Cyanogenmod branding with mine
- strip kernel modules, you don't need to download 30mb+ anymore

0.2
- removed intelliplug
- added cpuquiet cpu hotplug driver
- automatically disabled mpdecision(the scripts are modifying the ramdisk)
- fastcharge support
- '-O3'-optimizations
- lz4 support and kernel compression
- remove overclocking

0.3
- stock-rom support
. dynamic fsync control by faux123
- changed default configuration for cpuquiet
- prima wifi module for stock rom
- upstreamed f2fs commits from linux 3.17rc4
 
Last edited:

OmarEinea

Inactive Recognized Developer
Aug 18, 2012
2,028
6,314
0
25
Sharjah, UAE
Whaa!! for CM based ROMs and Sony based ROMs!! that would be interesting,
also I like the idea of not having a ramdisk inside the zip, I'll probably use it for next releases of Pimped kernel,

And did you strip the kernel modules before putting them inside the zip??
the wlan.ko module is 43.5MB!! the kernel's zip is around 35MB!!!! that is alot.

BTW, great work, thanks for contributing again and again for our beloved device,
hope you the best:angel:
 
Last edited:

CoolDevelopment

Senior Member
Sep 25, 2013
996
1,712
0
Cologne
Whaa!! for CM based ROMs and Sony based ROMs!! that would be interesting,
also I like the idea of not having a ramdisk inside the zip, I'll probably use it for next releases of Pimped kernel,

And did you strip the kernel modules before putting them inside the zip??
the wlan.ko module is 43.5MB!! the kernel's zip is around 35MB!!!! that is alot.

BTW, great work, thanks for contributing again and again for our beloved device,
hope you the best:angel:
I am sorry but it may not work on sony roms, you can try if you want. I didn't test it.
I did not even know that kernel modules can be stripped ;)


Sent from my Xperia Z1 Compact using XDA Premium 4 mobile app
 

OmarEinea

Inactive Recognized Developer
Aug 18, 2012
2,028
6,314
0
25
Sharjah, UAE
I am sorry but it may not work on sony roms, you can try if you want. I didn't test it.
I did not even know that kernel modules can be stripped ;)


Sent from my Xperia Z1 Compact using XDA Premium 4 mobile app
Well yeah that is the problem, I'm kinda sure that you can't use the same kernel for Sony and AOSP based ROMs in the same time!!
so you should mention in OP or in title that this kernel is for AOSP based ROMs so that users don't get confused...

Also if you haven't searched and found out about the stripping, you can do it by executing this:
<dir-to-toolchain>/bin/arm-eabi-strip --strip-unneeded <dir-to-modules-folder>/*

of course the arm-eabi-strip part depends on what toolchain you're using.

Hopefully that would help.
 

CoolDevelopment

Senior Member
Sep 25, 2013
996
1,712
0
Cologne
Version 0.1.2:
- update f2fs to current upstream
- replace Cyanogenmod branding with mine
- strip kernel modules, you don't need to download 30mb+ anymore

If you want to use f2fs, I really suggest you to install this, the fixed bugs are really important. Else it is almost unneccessary
 
  • Like
Reactions: pvillasuso

oshmoun

Senior Member
Aug 29, 2012
1,397
1,458
0
¯\_(ツ)_/¯
@CoolDevelopment

Very nice job! Finally we get a dedicated custom kernel for Amami
Oh and I saw the commits on CM gerrit. Nice job man :good:
I'll try flashing this on PAC. If what you say is true, that it doesn't modify the ramdisk, then it should boot. Otherwise I'll get stuck in a bootloop because PAC has custom jar files.
Finally some exciting development on Amami, testing now :D

EDIT: just a tip, you should ask a mod to move this thread to original development, because it really belongs there
EDIT2: it works perfectly :)
 
Last edited:

djdana

Senior Member
Jan 17, 2007
424
114
0
this kernel has no ramdisk, meaning it doesn't contain nether CWM nor TWRP,
whatever recovery you'll flash the kernel through, it won't be replaced with any other recovery
Does this mean I can flash it even on a rooted stockrom?? 4.4.4 108 for example
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone