[KERNEL][RAY][ALL MDPI] LuPuS GBv2 [STOCK GB][LINARO 4.7.3][20-06-13]

wedgess

Retired Forum Moderator / Inactive Recognized Deve
Apr 23, 2012
3,229
14,093
0
Dublin, Ireland
www.pac-rom.com
LuPuS GB Kernel - Stock

Based Off SONY 4.0.2.A.0.84 Sources​


Disclaimer


Code:
[COLOR="DarkOrchid"]#include[/COLOR] [COLOR="Magenta"]std.h[/COLOR]
[COLOR="Blue"]/*
* Your warranty is now void.. LOL I guess you knew it already.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, you getting dumped or you getting fired because your phone*
* bootloops and alarm does not go off. Please do some research if you have any *
* concerns about features included in my kernel before using it! YOU and only*
* YOU are choosing to make these modifications.
*/




[COLOR="Magenta"]#ifdef[/COLOR]
You have a [COLOR="DarkGreen"]question[/COLOR] post it in the [COLOR="DarkRed"]thread[/COLOR],
Instead of [COLOR="DarkGreen"]Pm'ing me[/COLOR], as other users may
experience your [COLOR="DarkRed"]problems[/COLOR]
[COLOR="Magenta"]#endif[/COLOR][/COLOR]


Features


Added Io-schedulers --
  • - Noop
    - Anticipatory
    - Deadline
    - CFQ
    - BFQ
    - SIO
    - ROW

Added Governors -

  • - lagfree
    - brazillianwax
    - smoothass
    - scary
    - savagedzen
    - smartass
    - smartassv2
    - smartassH3
    - interactivex
    - minmax
    - powersave
    - performance
    - conservative
    - ondemand
    - interactive
    - userspace
    - lulzactive
    - Virtuous
    - Intellidemand
    - Intellidemand2
    - Lazy
    - OndemandX
    - Lionheart
    - Badass
    - Superbad
    - Darkside
    - SmartassH3

Other features

  • - SLQB
    - UKSM
    - Supports ext 2,3 & 4
    - zRam
    - Init.d support
    - Tiny RCU
    - Tweaked Governors
    - Built with Linaro Toolchain
    - Google Snappy Compression / Decompression
    - Compaction
    - Quick Key Reset
    - Frandom
    - CIFS
    - USB-OTG
    - NTFS
    - TUN
    - OC upto 1.6
    - Under Volting
    - Custom CWM
    - TWRP
    - LuPuS Menu
    - USB Tether

LuPuS Menu --- Click to view info




To Run LuPuS Menu use either ScriptManager get it HERE on google playstore

Or

Use Terminal Emulator get it HERE on google playstore.


Code:
su
lupus

* information is in lupus menu

0/ UKSM

1/ CIFS Menu *

  • Enable
    Disable

2/ zRam Menu *
  • Enable
    Disable
    Set zRam size ( default is 60)

3/ Frandom Menu *
  • Enable
    Disable

4/ USB OTG *
  • Enable
    Disable

5/ Clean and Remove tweaks
  • Remove init.d's

6/ Tweak Menu
Note all tweaks are preset from here and option to set as init.d's
  • Clean all temp files
    SQLITE optimizations
    LMK Optimizations
    Network optimizations
    Defend against ARP spoofing
    Remove android logger
    SDcard speed tweak
    Flag blocks as non-rotational


7/ Performance Menu
Note all options are se by user input from here and option to set as init.d's
  • Set CPU frequencies
    Set Governor
    Set IO-Scheduler
    Voltage Control
    VM tweaks (explained below)

VM Tweaks


dirty ratio and dirty background ratio 1 & 2
This controls how often the kernel writes data to "disk" (in our case the internal microSD system card, not the removable microSD card). When your apps write data to disk, Linux actually doesn't write the data out to the disk right away, it actually writes the stuff to system memory and the kernel handles when and how the data is actually going to be flushed to the disk. These values represent a percentage, the higher the percentage, the longer it waits to flush, the lower the percentage, the more often flushes will occur. Now remember, we are dealing with solid state storage, not the traditional disk platter and spindle. So we are actually able to delay flushes a little longer with solid state versus a traditional hard drive disk.


dirty_expire_centisecs
How old "dirty" data should be before the kernel considers it old enough to be written to disk. It is expressed in 100ths of a second.

dirty_writeback_centisecs

This is the interval of when the writeback daemons periodically wake up and write "old" data out to disk. It is expressed in 100ths of a second.

min free kbytes
This is used to force the Linux VM to keep a minimum number of kilobytes free. The VM uses this number to compute a pages_min value for each lowmem zone in the system. Each lowmem zone gets a number of reserved free pages based proportionally on its size. Default is 2048kb.

overcommit_memory
This controls overcommit of system memory, possibly allowing processes to allocate (but not use) more memory than is actually available.

0 - Heuristic overcommit handling. Obvious overcommits of address space are refused. Used for a typical system. It ensures a seriously wild allocation fails while allowing overcommit to reduce swap usage. root is allowed to allocate slighly more memory in this mode. This is the default.
1 - Always overcommit. Appropriate for some scientific applications.
2 - Don't overcommit. The total address space commit for the system is not permitted to exceed swap plus a configurable percentage (default is 50) of physical RAM. Depending on the percentage you use, in most situations this means a process will not be killed while attempting to use already-allocated memory but will receive errors on memory allocation as appropriate.

Swappiness
A property for the Linux kernel that changes the balance between swapping out runtime memory, as opposed to dropping pages from the system page cache. Swappiness can be set to values between 0 and 100 inclusive. A low value means the kernel will try to avoid swapping as much as possible where a higher value instead will make the kernel aggressively try to use swap space.

VFS Cache Pressure
File system cache (dentry/inode) is really more important than the block cache above in dirty ratio and dirty background ratio, so we really want the kernel to use up much more of the RAM for file system cache, this will increas the performance of the system without sacrificing performance at the application level. The default value is 100, as a percentage, and what you want to do is lower the value to tell the kernel to favor the file system cache and not drop them aggressively.

8/ Enable / Disable Quick Key Reset
- Reboot device quickly by Holding HOME and POWER Key (Disabled by default)

  • - Enable
    - Disable

9/ Vendor Options
- Fix for Anzu and Hallon Vendor problem

  • - Mount
    - Unmount
    - Backup
    - Restore



Show your support for the kernel and my work by putting this in your signature, its only a quick one I done up with my limited time :(



Code:
http://i.imgur.com/xtWNL.png
A big thanks to -
gu5t3r
DooMLoRD
Jimbo77
xeozus
NobodyAtAll
Faux123
Erasmus
Leedroid
FXP Team
Jerpelea
[NUT]
Phil3759
Runner_cz
CTCaer

Downloads

If you need root for STOCK ROM
Code:
[COLOR="Purple"]Root[/COLOR] : ( Flashable via recovery )
* SuperSU : [URL="http://download.chainfire.eu/204/SuperSU/"][COLOR="Green"][U]Download[/U][/COLOR][/URL]
* Superuser : [URL="http://androidsu.com/superuser/"][COLOR="Green"][U]Download[/U][/COLOR][/URL]

HDPI


RAY
LuPuS_urushi_GingerBreadv2-full.img
md5 = cc5b93ef9a03351ce9fc4a920ab28b69

Wiif-Modules.zip
md5 = d85086143384a4ffa0a6f8465ba39f1b

==================================================================================

MDPI


COCONUT
LuPuS_coconut_GingerBreadv2-full.img
md5 = 71bd36d3e30a79194f7c97d68a094a14

Wiif-Modules.zip
md5 = 755c689eae4d1ca851c63bf463edcf85


MANGO
LuPuS_mango_GingerBreadv2-full.img
md5 = e176c74d0f75a4eaa71cb86946093cb4

Wiif-Modules.zip
md5 = 2edc383e67baa651961b51e740fbfb25


SATSUMA
LuPuS_satsuma_GingerBreadv2-full.img
md5 = c35ebb1ac991ed768e01e59e8b74ea6e

Wiif-Modules.zip
md5 = ea03ad6d868856e06e0aac2a26799eb2


SMULTRON
LuPuS_smultron_GingerBreadv1-full.img
md5 = be6cbda2b0cd6510743ab199a8e120a0

Wiif-Modules.zip
md5 = 78685e9f02bf24ded8da5e4306770960




Kernel source --- -branch master
https://github.com/garwedgess/LuPuS-GingerBread

CWM source -- https://github.com/garwedgess/android_bootable_recovery -b lupus-cwm


Code:
[B]v2[/B]
- Added UKSM ( can enable it in LuPuS Menu)
- Set default swapiness to 20
- Removed fsync 
- Removed Cleancache
- Removed zCache
- Removed ZEN IO-SCheduler
- Tweaked Entropy
- Stopped entropy from depleting
- Reduced lag in gaming
- Fix LEDs
- Updated CWM
 * brought back reboot system and Power off options to main menu
 * Fixed advanced restore menu
 * updated to latest CWM source 
- Fixed charging offline (on some devices)
- Fixed Google PLAY FC'ing (IYOKAN)
- Minor Clean-up of lupus menu 
- Minor Ramdisk changes
 
Last edited:

Slicko

Member
Dec 1, 2012
22
1
0
Bro, it's working !!!
Wifi is working !!!
Thx a lot !!!

Anyway, is it possible to add touchscreen features on CWM ? I mean like xKernel on ICS (if i'm not mistaken)

Sorry for my bad english...
and once more..

THANK YOU !!!
 

Runner_cz

Senior Member
Dec 29, 2007
161
45
48
spb
TRied to change the zRam values. The zRAM menu shows only enable or disable. And neither of the two works. :(

---------- Post added at 12:59 AM ---------- Previous post was at 12:26 AM ----------

cosmetical issue:

ray's wifi drivers script says

ui_print("| For Xperia anzu |");

But ray is urushi
 

Runner_cz

Senior Member
Dec 29, 2007
161
45
48
spb
One of my colleagues tried the folowing Lupus Menu twiks on the gin2jellybean ROM and this kernel:

2. SQLITE3 optimization
3. LMK
5. Network optimization
8. SDcard speed tweak

After the tweaks were applied and the phone restarted - the phone didn't start - it's got into cycle reboot loop. It seems it conflicts with some gin2jellybean own scripts... Not sure if this should be taken as kernel or rom issue... Just for the info so far.
 
Last edited:

Runner_cz

Senior Member
Dec 29, 2007
161
45
48
spb
Today've got a strange problem with USB-OTG.
USB mouse works fine.
USB keyboard - doesnt's work, isn't even recognized.
USB flash stick - recognized, but the phone says "unsupported hardware connected"

Any ideas?
 

Jorre2220

Senior Member
Aug 14, 2012
166
41
0
Why would you install a xperia ray kernel on a xperia mini?

I suggest that you install xperia mini firmware or kernel to get your device back working

Sent from my ST18i using xda app-developers app
 

coolkaas

Senior Member
Nov 14, 2010
169
100
0
Today've got a strange problem with USB-OTG.
USB mouse works fine.
USB keyboard - doesnt's work, isn't even recognized.
USB flash stick - recognized, but the phone says "unsupported hardware connected"

Any ideas?
no any my sticks mounts successfully at aires' kernels. I use simple one file fuse.ko and puts it at /system/lib/modules with appropr. perms after that helper (and Q5 utility too) mounts any sticks, multi-card readers perfectly.
maybe I wrong but try this))

upd: oops, kernel utility drops all needed files (sym-links) to modules folder. so, Runner try to re-enable otg feature.
 

Attachments

Last edited:
  • Like
Reactions: Runner_cz

Runner_cz

Senior Member
Dec 29, 2007
161
45
48
spb
Got strange problem in TWRP.
SOme of the ZIP updates can't be installed. TWRP simply reports an error during attept to install the zip-file, without details. The same zip is OK installed from CWM.
 

Runner_cz

Senior Member
Dec 29, 2007
161
45
48
spb
One of my colleagues tried the folowing Lupus Menu twiks on the gin2jellybean ROM and this kernel:

2. SQLITE3 optimization
3. LMK
5. Network optimization
8. SDcard speed tweak

After the tweaks were applied and the phone restarted - the phone didn't start - it's got into cycle reboot loop. It seems it conflicts with some gin2jellybean own scripts... Not sure if this should be taken as kernel or rom issue... Just for the info so far.
I have got a similarproblem with cycle reboot using this kernel.The story was:

1. Full wipe
2. Install radio modules from .85
3. Install this kernel
4. Clean install gin2jellybean 2.4.0 + install WIFI modules from lupus on top.
5. Boot, set up and tweak the system: settings, programs, USB Helper, autostarts, etc..Enabled some tweaks in Lupus menu: frandom + USB OTG
(I used the system for several days)
6. Make CWM nandroid backup
7. Restored from this and other backups (e.g. old repack7 and repack8 backups) several times successfully.

So far so good, everything works.

8. Again full wipe using the CWM, like usually, before installing another rom.
9. FULL install of the STOCK GB 4.0.2.A.84 version (this ROM version finally appeared available yesterday!!! see here: http://forum.xda-developers.com/showpost.php?p=41976134&postcount=541)
10. Used this stock rom for several hours, everything fine. Tired of it, found nothing interesting. Decided to go back to my previous state.
11. So, on top of this stock (in order to keep the newest version of radio .86 from this new stock) - installed this Lupus kernel back. Rebooted.
12. Got into CWM and made again full wipe (including system)
13. Restored my last backup, no errors.
14. Restarted - and, voila! got cycle reboot!!! No even ROM logo appears.
15. OK, get back into CWM and tred to restore other g2jb backup, older one - and again cycle reboot after restart.
16. OK, get back to WRP and restore the TWRP backup - no luck, still cycle reboot ater restart.
17. OK, tried from CWM the very oldest backup of Repack8, from some week ago. Still cycle reboot ater restart.
So it seems the issue is not in the rom backups, but in kernel.
To check this - flashed aire's uv7.1.4 kernel and restored the most recent g2jb backup. And the system booted OK without any issues!
So now it runs perfectly with radio .86 + aire's kernel + most recent backup of g2jb


Any ideas?