Post Reply

[KERNEL][PLAY] LuPuS_JBv13 [JB 4.1 &4.2][LINARO 4.7.3][v8Multiboot][06-06-13]

OP wedgess

30th August 2012, 07:20 PM   |  #1  
wedgess's Avatar
OP Forum Moderator / Recognized Developer
Flag Dublin, Ireland
Thanks Meter: 13,569
 
2,815 posts
Join Date:Joined: Apr 2012
Donate to Me
More
LuPuS JellyBean v13 Kernel


LuPuS-CM9-Kernel HERE
LuPuS-STOCK-GB Kernel HERE
LuPuS-iCs-BeTa Kernel HERE


Just after downloading AOKP jellybean last night and wanted to use my kernel so thought I would
make another LuPuS and release it, obviously certain things are still meehhhhh like the CWM glitching
and the camera which are things in all Xplay JB kernels/ROMS. So I reduced it down a bit from FXP and
given an extra 18mb of Ram so its not 368mb Ram, don't wanna go any lower. Once camera is fixed i'll make a 720p
version as well. Everything else thats added is the same with my most recent CM9 update.
This kernel was just built so its up-to-date with all of FXP's sources


Disclaimer

Code:
#include <std_disclaimer.h>
/*
* 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.
*/

#ifdef
You have a question post it in the thread,
Instead of Pm'ing me, as other users may
experience you problems
#endif



What Works --
  • Wifi - (flash modules)
    Bluetooth
    Everything Else that works on FXP and any other JB kernel

What doesn't work --
  • ALS (Disabled)
    Anything that doesn't work on FXP and any other JB kernel

Included in kernel


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

Added Governors --
  • - lagfree
    - brazillianwax
    - smoothass
    - scary
    - savagedzen
    - smartass
    - smartassv2
    - interactivex
    - minmax
    - + the 5or6 that are there with FXP

    Lulzactive - Thanks to Tegrak
    Based on Interactive and Smartass. When workload is greater than or equal to 60%, the governor scales up
    CPU to next higher step. When workload is less than 60%, governor scales down CPU to next lower step.
    When screen is off, frequency is locked to global scaling minimum frequency

    Virtuous
    Virtuous is a modded smartassV2 which gives even more battery time then smartassV2

    Intellidemand - Thanks to faux123
    This is an intelligent ondemand that enters browsing mode to limit max frequency when GPU is idling,
    and (exits browsing mode) behaves like ondemand when GPU is busy; to deliver performance for gaming and such.
    Intellidemand does not jump to highest frequency when screen is off.

    Lazy - Thanks to Ezekeel
    The Idea here is to eliminate any instabilities caused by fast frequency switching by ondemand.
    Lazy governor polls more often than ondemand, but changes frequency only after completing min_time_state
    on a step overriding sampling interval.
    Lazy also has a screenoff_maxfreq parameter which when enabled will cause the governor to always
    select the maximum frequency while the screen is off.


    -Ondemandx:
    Basically an ondemand with suspend/wake profiles. This governor is supposed to be a battery friendly ondemand. When screen is off, max frequency is capped at 500 mhz. Even though ondemand is the default governor in many kernel and is considered safe/stable, the support for ondemand/ondemandX depends on CPU capability to do fast frequency switching which are very low latency frequency transitions. I have read somewhere that the performance of ondemand/ondemandx were significantly varying for different i/o schedulers. This is not true for most of the other governors. I personally feel ondemand/ondemandx goes best with SIO I/O scheduler.

    -Lionheart:
    Is a conservative-based governor. The tunables (such as the thresholds and sampling rate) were changed so the governor behaves more like the performance one, at the cost of battery as the scaling is very aggressive.

    To 'experience' Lionheart using conservative, try these tweaks:
    sampling_rate:10000 or 20000 or 50000, whichever you feel is safer. (transition latency of the CPU is something below 10ms/10,000uS hence using 10,000 might not be safe).
    up_threshold:60
    down_threshold:30
    freq_step:5
    Lionheart goes well with deadline i/o scheduler. When it comes to smoothness (not considering battery drain), a tuned conservative delivers more as compared to a tuned ondemand.

    BadAss Governor:
    Badass removes all of this "fast peaking" to the max frequency. Badass will also take the gpu load into consideration. If the gpu is moderately busy it will bypass the above check and clock the cpu with 1024Mhz. If the gpu is crushed under load, badass will lift the restrictions to the cpu.

    Superbad -
    A "superbad" super smooth rendition of a highly optimized "smartass" governor!

    Darkside -
    A "slightly more agressive smart" optimized governor!

What else-----
  • -SLQB - (SLAB allocator with Queue)-(both)
    This memory allocator is designed for small number of CPUs system (such as desktop or smart phone devices). This allocator is design to be simple and it is optimized for using order-0 pages as much as possible (order-0 pages are the simplest therefore quickest type of memory in a Linux system to allocate).

    - Added Cleancache
    - Updated zRam
    - Lzo compression/decompression speed doubled on average



--When phone vibrates tap the vol-down key to enter Multiboot menu


I would like to say a big thanks to -
  • paxChristos - Tutorial / Help
    FXP - Sources
    Cyanogenmod - Souces
    DooMLoRD - Everything he's done for XPLay
    CosmicDan - Multiboot
    Supervenom - For the amazing AOKP rom
    Solomon4400 - For helping me test
    tempest918 - For the New Logo
    xeozus
    NobodyAtAll
    Faux123
    Erasmus
    Leedroid
    Jerpelea
    Phil3759
    CTCaer
    Anyone missing please PM me


Kernel sources -b jellybean
https://github.com/garwedgess/semc-kernel-msm7x30

CWM source -- https://github.com/garwedgess/android_bootable_recovery -b lupus-cwm
Last edited by wedgess; 6th June 2013 at 12:50 AM.
The Following 165 Users Say Thank You to wedgess For This Useful Post: [ View ]
30th August 2012, 07:21 PM   |  #2  
wedgess's Avatar
OP Forum Moderator / Recognized Developer
Flag Dublin, Ireland
Thanks Meter: 13,569
 
2,815 posts
Join Date:Joined: Apr 2012
Donate to Me
More
LuPuS-Jellybean-DOWNLOADS

Code:
-v2 changes

- Added Governor Intellidemand thanks to faux123 and CosmicDan for modifying it
- Variuos improvements to make for smoother android
- built with linaro v 4.6
- Changed recovery entering will now flash green, pink and blue (PACman colours :)  )
- cleancache , zram, and new lzo compression have been reverted for now
- Changed sources to newest CM so that there is no random freezes ect


- v3 changes

- Reverted back to zImage
- Added cpu-freq table now upto 2ghz
- Increased VM-max read ahead
- Works now on PAC-man v2

- V4 changelog

- Updated to latest FXP sources
- Updated GENLOCK (FXP)
- Added cleancache
- Re - Enabled CIFS


v5 changes
- Fixed battery dran
- Updated SIO IO-schedule
- Reverted 2ghz to 1.6ghz
- Updated LZO compression / Decompression
- Further optimzed

v6 changes

- Multiboot Kernel ~ Thanks @comicDan
- Recovery Fixed no more "DANCING" Thanks @Skritchz
- Added Tiny RCU 
- Added Custom partition sizes ~ Thanks @CosmicDan
- Patched LZO
- Updated to Linaro 4.7 toolchain
- Changed to Google snappy compression/decompression
- Much more optimizations
- Wifi Modules included ~ Thanks @CosmicDan


v7 changes

- TWRP recovery (fully touch)
- Enabled USB tether
- Disabled gentle_fair_sleepers
- Updated video drivers
- Added memcopy
- Added compaction
- Backported binder changes
- Lowered vfs_cache_pressure
- LMK (lowmemorykiller) optimizations
- All latest multiboot changes from [B @CosmicDan huge thanks[/B] 
- Moved 30MB from userdata to system. NANDROID BACKUP BEFORE UPGRADING YOUR KERNEL. -Thanks @CosmicDan

v8
- Latest MultiBoot Changes ---- Huge Thanks @CosmicDan
- Built with Linaro 4.7.3 (02-01-2013)
- Fix Entropy Depleting (no more depleting) - Thanks @ Kees Cook
- Fix PageHead
- Fix binder. use of uninitialized variable.
- Fix kernel/net Memory Leaks
- Eliminate kstrdup memory leak
- Makefile optimisations (snapdragon & neon) - Thanks at Paul678 
- Tweaked permormance on interactive governor - Thanks at Paul678 
- Tweaked SIO io sched - Thanks at Paul678 
- Free'd some RAM from loggers
- Reduce swappiness
- ipv4: force_igmp_version ignored when a IGMPv3 query received 
- enable ipsec tunnel support in kernel (Latest FXP Change)
- ARM7 optimsations + more in config


v9  IN POST 3
Note if coming from a multiboot kernel you must wipe ALL partitions
- No multiboot
- No need to flash phoenix vendor - partitions are stock for now
- Supports both 4.1 & 4.2 JB
- New IIO Scheduler ZEN thanks @bbedward
- New Governor smartassH3 thanks @Hero
- Tweaked Deadline IO scheduler
- Tweaked smartassv2
- Frandom
- Wifi improvement
- SFB Net scheduler
- OC up to 1804.8MHz
- Logger backported from CAF
- ALS is enabled by default - You can disable it from LuPuS Menu
- Free RAM from logger
- LMK updated and optimized + various LMK tweaks
- Various ARM & RAM changes
- TinyRCU optimizations
- Optimized crc32 lib
- various VM changes
- Improved cleancache
- Undervolt LCD display, touch sensor proximity sensor & Wi-Fi thanks @ M66B
- Entropy tweaks
- Try fix for CRT animation @paul678
- TWRP & CWM
- LuPuS Menu
- Auto Loading wifi
- All modules and init.d's included No need to flash anything after kernel
Plus alot more changes see  for full list of credits and patches used

v10
- Latest changes to ALS -- Thanks @ FXP
- Lowered OC to 1612.8Mhz
- Remove ALS  option from LuPuS Menu (no longer needed)
- Random reboots should be fixed ( for those who where having such issues )


v11
- UN-RELEASED

v12
- Fixed reboot to recovery
---- Custom CWM
- Clean-up of menu
- Added own wipe options menu -- with extra options
- Aroma File Manager from CWM --- Must have aroma (aromafm.zip) placed on root of sdcard) 
- Multi zip installer
- Reboot options - Power off re-added under this menu
- Pointless but people keep asking me for it so re-added wipe battery stats also.
- LuPuS themed...
- Fixed "dancing android

Multiboot[/SIZE][/U][/B]



For help and support on Multiboot, please check fma965's thread - "Noob friendly guide to Multibooting Jellybean"


Requirements:
Quote:

  • Unlocked Vendor partition (see "Download/Installation" below)
  • System size below 310MB
  • ICS Only - AOSP-based ROM (not stock-based)



Features:

Huge thanks @CosmicDan



Quote:

ICS and JB Support
One kernel, two worlds... you can install any AOSP-based ICS ROM (e.g. CM9, AOKP, etc) in any Slot (as long as it's multiboot aware, see below) and it will work automatically.


Team Win Recovery Project
CWM-Recovery has been replaced with the powerful TWRP. Full touch interface, file browser, backup names with keyboard, batch ZIP install, and more.


Multiboot RAMDisk
Pressing Vol-Down will now show a GUI for selecting which slot you want to boot or enter recovery on. Slot 2 and 3 are stored in ext2 images on your SDCard, and the process is fully automated and well-detailed to guide you through it. Please note that you can only install a ZIP in Recovery for Slot 2 and 3 if it is marked "Multiboot-aware" (see Compatibility section below).


Repair Tools
The Tools > Repair menu allows you to check your sdcard and sd-ext for errors and repair them. Also fix permissions and scan/repair Slot 2 and 3. This solves a lot of common problems with data and app2sd issues.


609MB data partition space
Cache is reduced to 8MB and system reduced to 280MB, giving a total size of 639MB for data. The ROM must be smaller than 280MB for this to work obviously (see "tested" section below). The cache is only 8MB so the kernel automatically links /cache/dalvik-cache to /data/dalvik-cache (simulates MIUI behavior).


Wifi Module auto-install
If the wifi module on the system doesn't exist or is different to the one in the ramdisk, it will be installed/replaced automatically. As an additional fail-safe, the kernel has magic checking (module version) removed - so any module will install on this kernel (but that does not mean it will work!)


Compatibility

Quote:

The kernel has been tested and working on the following ROM's -

  • Turbo UI Preview (CosmicDan's source build) (Multiboot-aware)
  • Project Jellyzeus AOSP (CosmicDan's source build) (Multiboot-aware)
  • SlimBean for Xperia Play GSM/CDMA (cj360's source build) (Multiboot-aware)
  • P.A.C Man-PA (wedgess' source build) (Multiboot-aware)
  • Paranoid Android (wedgess' source build) (Multiboot-aware)
  • CM10 (Not multiboot-aware)
  • CM9 (Not multiboot-aware)
Please report if it works or not for other Jellybean/ICS-AOSP ROM's.


Bugs/Important Caveats


Quote:

  • If your ROM has a "Reboot to Recovery" option, using it will load a broken Recovery where no mounts work. I can't fix this, so simply don't use it (just use Vol-Down on normal reboot).
  • Using Fastboot may trigger a "boot menu loop" - simply enter CWM-Recovery for any slot and then select reboot to solve it.



Important info regarding safe Multiboot
Quote:

  • Do NOT install a ROM ZIP in Slot 2 or 3 until it is marked "multiboot-aware". Otherwise the ROM will format/install to your internal, no matter *what* you do. For details on how to make a ROM multiboot-aware, see this post.
  • To get around a ROM not being multiboot aware (if you want to install it in Slot 2 or 3), simply install in Internal (Slot 1) as normal, then set up the second or third slot with "Copy from Internal" instead of "Blank". Then of course you can reformat and reinstall on Internal.
  • Make sure your SDCard is free of errors. If you encounter *any* issues with a ROM, do a full Repair in the Tools menu before reporting any issues.
  • *Never* unmount SDCard in Recovery for Slot 2 and 3. But Mounting USB Storage is 100% fine.


Downloads



If you like my work please consider buying me a beer or something else
by clicking the DONATE ME button, of course it isn't needed but greatly appreciated and keeps me motivated.


################################################## ################################################## #################

LuPuSv8-720p-jB-Kernel.img
Md5 = 0x39750d29497af539a3810b4b877fd5e0
LuPuSv8-480p-jB-Kernel.img
Md5 = 0x965333fb455d7f077dfa1f7428058d6a

If wifi doesnt work flashable zip is attached at the bottom of the post
################################################## ################################################## #################[/LIST]


First-time users - Enter Multiboot Menu (Vol-Down key) and go to Internal > Recovery, then format system, data and cache before doing anything else. Very important.


If you cannot enter the Boot Menu or Recovery after flashing, you need to flash the FTF first.


Quote:

If you are running LuPuS-jB-v6 or older, the partition map has changed (30MB moved from data to system). You MUST Nandroid Backup before flashing the v7 update, then Nandroid restore after flashing. Otherwise you WILL lose your data.


If your MD5# doesn't match re-download
Attached Files
File Type: zip wedgess_Zram-Enabler_05-02-13.zip - [Click for QR Code] (120.9 KB, 2398 views)
Last edited by wedgess; 30th April 2013 at 04:23 PM.
The Following 74 Users Say Thank You to wedgess For This Useful Post: [ View ]
30th August 2012, 07:22 PM   |  #3  
wedgess's Avatar
OP Forum Moderator / Recognized Developer
Flag Dublin, Ireland
Thanks Meter: 13,569
 
2,815 posts
Join Date:Joined: Apr 2012
Donate to Me
More
LuPuS v13


Changelog
Code:
v13
- Added option to enable Quick Key Reset (enable / disable via LuPuS Menu)
- Tuned Governors 
  * superbad
  * lionheart
  * virtuous
  * darkside
  * conservative
  * smartassH3
- Really use google snappy zRam (improves zRam)
- Added zCache
- Removed persistent RAM
- Removed some more kernel debugging
- uninterruptible sleep
- Update SIO & CFQ
- Added Ultra-KSM
- Removed optimized AES & SHA1 routines
- Updated TWRP to 2.4.4
   *Fixed Mount USB Storage in TWRP
- Updated CWM to latest Official CWM source
   *Removed reboot options
   *Re-added power off and reboot system now to main menu
- Improved wifi-loading scripts
- Clean up of lupus menu
- Fixed root issue on some devices
- Reworked kernel logs (can  be found in /data/local/tmp)
- Boot.d - If phone is taking a long time to start move suspicious init.d scripts to /system/etc/boot.d
  They will be run in background and won't affect boot time.



LuPuS MENU



You can run lupus menu from terminal or scriptmanager or similar, you must run as root or script will exit with a message

in terminal

Code:
su
sh lupus

* information is in lupus menu

1/ CIFS Menu *
  • Enable
    Disable

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

3/ Frandom Menu *
  • Enable
    Disable

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

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

6/ Choose Recovery
  • TWRP
    CWM

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.


If you like my work please consider buying me a beer or something else
by clicking the DONATE ME button, of course it isn't needed but greatly appreciated and keeps me motivated.




Downloads



If you like my work please consider buying me a beer or something else
by clicking the DONATE ME button, of course it isn't needed but greatly appreciated and keeps me motivated.


################################################## ################################################## #################


480p
LuPuS_zeus_jBv13-ram.img
md5 = d3588985ea241c4e44cf27be30b74b0f


720p
LuPuS_zeus_jBv13-full.img
md5 = 9d5d17ca438ae745a793a6841b320f48
Attached Files
File Type: zip lupus-jb-cifs-fuse-ntfs.zip - [Click for QR Code] (374.4 KB, 2146 views)
Last edited by wedgess; 6th June 2013 at 12:49 AM.
The Following 59 Users Say Thank You to wedgess For This Useful Post: [ View ]
30th August 2012, 07:31 PM   |  #4  
MonY960's Avatar
Senior Member
Flag Jeddah
Thanks Meter: 25
 
114 posts
Join Date:Joined: Aug 2011
More
You are awesome
31st August 2012, 02:34 AM   |  #5  
yekasangredevago's Avatar
Senior Member
Flag Venado Tuerto
Thanks Meter: 203
 
491 posts
Join Date:Joined: Aug 2012
when you leave a rom jelly bean with touchpad and camera working support me step by JB definitely .. meanwhile I stay with my dear GB
JB Lupus kernel (Linaro) + rom JB (Linaro) that combination would be good ..
You're Wedgess.
3rd September 2012, 03:20 AM   |  #6  
Zerosuit Connor's Avatar
Senior Member
Flag Sydney
Thanks Meter: 240
 
303 posts
Join Date:Joined: Mar 2012
Donate to Me
More
Enjoying this kernel quite a lot Figured I'd say thanks and bump this thread at the same time :P
3rd September 2012, 09:19 AM   |  #7  
wedgess's Avatar
OP Forum Moderator / Recognized Developer
Flag Dublin, Ireland
Thanks Meter: 13,569
 
2,815 posts
Join Date:Joined: Apr 2012
Donate to Me
More
Quote:
Originally Posted by Zerosuit Connor

Enjoying this kernel quite a lot Figured I'd say thanks and bump this thread at the same time :P

Good stuff ill update it with fxps latest changes this week. And click thanks in the OP, better then saying it

Sent from my GT-I9300
The Following 5 Users Say Thank You to wedgess For This Useful Post: [ View ]
3rd September 2012, 08:31 PM   |  #8  
vrkamath2020's Avatar
Senior Member
Flag Mumbai
Thanks Meter: 32
 
119 posts
Join Date:Joined: Oct 2010
Donate to Me
More
Hey Wedgess ... Thanks for the awesome kernel.... Could you do one more thing ....The volume output everywhere(loudspeaker, ear speaker etc.) is very low...Can you increase it ???
3rd September 2012, 09:23 PM   |  #9  
MonY960's Avatar
Senior Member
Flag Jeddah
Thanks Meter: 25
 
114 posts
Join Date:Joined: Aug 2011
More
Quote:
Originally Posted by vrkamath2020

Hey Wedgess ... Thanks for the awesome kernel.... Could you do one more thing ....The volume output everywhere(loudspeaker, ear speaker etc.) is very low...Can you increase it ???

Yp same here but this bug from the rom not from the kernel
The Following 2 Users Say Thank You to MonY960 For This Useful Post: [ View ]
3rd September 2012, 09:38 PM   |  #10  
vrkamath2020's Avatar
Senior Member
Flag Mumbai
Thanks Meter: 32
 
119 posts
Join Date:Joined: Oct 2010
Donate to Me
More
Quote:
Originally Posted by MonY960

Yp same here but this bug from the rom not from the kernel

Ohh...hehe....kkk....I guess, i'll ask the developer in the rom's post ....thank you for pointing it out...

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Xperia Play Android Development by ThreadRank