Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
faux123
Old
(Last edited by faux123; 29th March 2013 at 04:19 PM.)
#1  
faux123's Avatar
Senior Member - OP
Thanks Meter 20603
Posts: 6,290
Join Date: Dec 2010
Location: West Los Angeles

 
DONATE TO ME
Wink [Kernel]Amaze ICS(v029)OC~1.73/IntellidemandV3/UV/CIFS+UTF-8/FauxSound[Mar-28]

NOTICE: This is COMPATIBLE with ALL Amaze (AKA Ruby) Rooted Stock and Custom ROMs

For frequency control use fauxclock from Google Play

Just a statement regarding kernel source: The Kernel Source is of course covered under GPL version 2. Free software does NOT mean no work or time was spent working on it. I have donated a large sum of my free time to hack this kernel. If you use my modified kernel source in parts or in its entirety, I kindly ask you mention its origins and to send me a github pull request or PM whenever you find bugs or think you can help improve my kernel hack further. This way the entire community will truly benefit from the spirit of open source. Thank you



Hi XDA members and fellow Amaze users:

This is my twelfths kernel hack. I want to thank xboarder56, and several others I cannot recall for inspiring me to venture into this unfamiliar territory for me.

What is a Kernel? The Kernel is the Foundation in which everything else builds upon in any software system.
[Car Analogy]: Kernel is like the Engine, Electrical system and the Transmission to a car. The Library, Framework and the Apps [AKA ROM] are the body frame and the rest of the Car.




THIS KERNEL is BASED ON HTC Source Code. So it is COMPATIBLE ONLY WITH HTC Gingerbread Amaze Builds.

Please DO NOT use any task killers, they DO NOT improve performance nor battery life. They INTERFERE with your phone's stability (more crashes) and App compatibilities (Forced Close).


CleanCache (via ZCache backend)

ZCACHE is a new technology I introduced to Sensation Kernel. ZCACHE is a compressed cache similar to ZRAM but the similarity ends there. ZCache is meant to provide as many "cleancache" pages (non-dirty or untouched "virgin" memory) to apps that request for new memory. CleanCache is very easy to allocate and no additional penalty are required to hand them out, so having more CleanCache pages will improve performance. Under heavy memory pressure, often times the kernel will NOT have enough CleanCache pages, so the kernel has to do EXTRA work to reclaim dirty cache pages and clean them for the new apps that's requesting for them. The described process creates a performance hit for the kernel and the app, so the idea is to use compression to create more CleanCache pages available for use. Of course there's a penalty to pay for using compression, but the trade-off between compression penalty and the penalty for reclaiming dirty cache pages and allocating them after cleaning is smaller for compression, so in the end, CleanCache should add more performance.

ZRAM (aka CompCache aka RAMZSwap)

ZRAM is an updated version formally known as CompCache and RAMZSwap. It was originally designed for 2.6.38.xx kernels, I have backported to our 2.6.35.xx kernel. ZRAM allows real-time compression of memory objects in RAM thus reducing memory pressure for the Linux kernel and can keep more apps in memory longer (more apps in RAM == better performance, less fetching from slower MMC or SDCard). Compression, however, is not Free. Some CPU cycles are required to do the compress/decompression, so there's a slight penalty for it. The original CompCache / RAMZSwap required a user space binary to control its behavior which adds additional penalty to performance, but the new version ZRAM eliminated the need for a separate dedicated daemon, thus reducing the overhead and increased performance from the old CompCache by 20%. Therefore, with the newer implementation of ZRAM interface, the performance penalty is almost negligible.

Joe's RCU (Optimized for Small SMP systems)

Joe Korty has created an RCU for small SMP systems (> 32 cores). His approach is to isolate all the Garbage Collection (GC, a slow time consuming but necessary processing) to a single core, thus allowing other cores to ONLY work on real required processing. This will allow the additional cores to complete their assigned tasks as fast as possible (not bogged down by GC) then immediately go back to a suspended state (saving battery).

NoHz RCU (Optimized for SMP operations)

Fast NoHz is an optimized version of the traditional Tree RCU. Many new kernels are using the Tickless NoHz design. This RCU is tailored and designed to work with the new NoHz kernel system.

SmartAssV2 Governor (Balanced)

This governor has a built-in "profile" similar to SetCPU, so screen off will use lower clock rate thus conserve more battery, but it also has a fast wake up feature so that user interaction will not see the lag when switching from Sleep to Wake state.... (So SetCPU Profiles are sorta redundant when using this governor, you can still use SetCPU to OC to higher than default Clock frequency).

Interactive Governor (Performance)

This governor is designed to put more priority to User Interface (UI aka Apps) tasks, therefore appears more responsive then the traditional OnDemand governor. So if you want the smoothest UI interaction, this governor is for you...

Brain F*ck Scheduler - (BFS)

This scheduler is designed to be simple and speedy tailor specifically for user interface type systems such as desktop/smart phone devices where user interaction is MORE important than serving 1 million web requests (CFS, the default scheduler) at the same time (think of nimble desktop workstations vs large corporate servers).

SLQB - (SLAB allocator with Queue)

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). Not all kernels are using SLQB including CM7 main line...

Fair Budget Queue (BFQ I/O scheduler)

This I/O scheduler is an improvement on top of Completely Fair Queue (CFQ). CFQ is fair in terms of time but not in terms of throughput / bandwidth, so BFQ make sure that both time and throughput / bandwidth are balanced across all requests.

Installation Instructions:

Here's a step by step instruction to install this kernel:

************************** Ice Cream Sandwich (S-OFF ONLY) **************************
[ CFS ] (Ultimate Edition - should work with most phones but NOT GUARANTEED!)
The File ==> Amaze ICS Kernel <==
MD5SUM ==> <==

************************** Gingerbread **************************
[ CFS ] (Ultimate Edition - should work with most phones but NOT GUARANTEED!)
The File ==> Amaze GB Kernel <==
MD5SUM ==> <==

CWM Flash Instructions: (NO LONGER SUPPORTING CWM METHOD DUE TO HTC's STUPID S-ON UNLOCK!!!)

1. Copy file to SDcard
2. Reboot to CWM recovery
3. Flash the Zip file (if you noticed an error, Flash the same file the 2nd time)
4. Reboot, Done!


Easy Kernel Flasher Instructions:

1. download the above file (via phone directly or to a PC)
2. unzip to a folder then depends on PC or Linux
[ Windows ] open command prompt window and type Flash.bat
[ Linux ] open terminal window and type ./Flash.sh (make sure permission is set to 755 for the Flash.sh)
3. Let the script complete!


NOTE: Because the previous kernel included a Secured RAM Disk, so you may need to run the script twice. (Once this is done, then any subsequent flash should complete on the first time)

Note: After FLASHING, the first reboot may take longer than usual, please be patient... After the first reboot, it may lag during initial load (let everything finish loading). Once everything is loaded and phone is ready for use, reboot the phone a 2nd time and the lag will be gone and everything should be silky smooth...

[ Optional: ]

NOTE: if you come from a ROM with my kernel pre-installed, you DO NOT NEED to flash the reset kernels from above!

[ For Kernel Devlopers ONLY: ]



Optional Under voltage: Version 0.0.x+ ONLY

Code:
[ to over volt ALL frequencies by 25000 uv (microvolts) ]
echo "+25000" > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels
[ to under volt ALL frequencies by 25000 uv (microvolts) ]
echo "-25000" > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels

[ to set a specific frequency (ie 1.18 GHz) 
  with a specific voltage (ie 1.0875 volts) ]
echo "1188000 1087500" > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels
CPU Frequency Voltage Table Example
Code:
  192000:   812500
  310500:   812500
  384000:   812500
  432000:   812500
  486000:   837500
  540000:   850000
  594000:   862500
  648000:   875000
  702000:   900000
  756000:   925000
  810000:   937500
  864000:   962500
  918000:   962500
  972000:   962500
 1026000:   975000
 1080000:   987500
 1134000:  1000000
 1188000:  1012500
 1242000:  1025000
 1296000:  1050000
 1350000:  1075000
 1404000:  1100000
 1458000:  1112500
 1512000:  1125000
 1566000:  1150000
Optional: Stock Clock Frequencies for Dual CPUs
Code:
su
echo 192000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo 1188000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

echo 1 > /sys/devices/system/cpu/cpu1/cpufreq/online
echo 192000 > /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq
echo 1188000 > /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq
Low Voltage - Under Volt the processor, therefore uses Less Battery, but NOT ALL CHIPS can handle Under Volt.. If you experience instability, try the Stock Voltage Version.

Stock Voltage - Uses the voltage values from ORIGINAL HTC Kernel Source.

There are NO PERFORMANCE DIFFERENCE between the Under Volted and Stock Voltage versions!


NEWS BULLETIN:

Version 022 is OUT!

Please don't hesitate to talk among yourselves and help each other out... The XDA community is what inspired me to hack kernels for everyone since everyone here is nice and helpful to each other... Keep helping each other.... Famous proverb: It's better to give than to receive...

BUGS:

Not All CHIPS ARE CREATED EQUAL


TO DO:

version 1.x.x -- Haven't thought about it yet...

History:

See Post below...

Standard Disclaimer: Not responsible for bricking your phone, voiding your warranty, or any other pain or suffering you may feel as result of using this kernel!!!

My github Complying with GPL and XDA rulez

Follow me on :

If you find this Kernel useful, feel free to hit the [Thanks] button below
The Following 151 Users Say Thank You to faux123 For This Useful Post: [ Click to Expand ]
 
faux123
Old
(Last edited by faux123; 23rd July 2012 at 05:10 AM.)
#2  
faux123's Avatar
Senior Member - OP
Thanks Meter 20603
Posts: 6,290
Join Date: Dec 2010
Location: West Los Angeles

 
DONATE TO ME
[ History Ice Cream Sandwich]

Ice Cream Sandwich Change Log
The Following 44 Users Say Thank You to faux123 For This Useful Post: [ Click to Expand ]
 
faux123
Old
(Last edited by faux123; 23rd July 2012 at 05:09 AM.)
#3  
faux123's Avatar
Senior Member - OP
Thanks Meter 20603
Posts: 6,290
Join Date: Dec 2010
Location: West Los Angeles

 
DONATE TO ME
[ History Gingerbread]

Version 004 - Dec 16, 2011 (Deprecated, GB)

Add OC to 1.73 GHz
Add UV table
Add PPP async for VPN users
add CIFS+UTF-8
add Fast NoHz RCU option
CFS Auto Group V2
Optimized memmove and memcpy
Opitmized JHash
code sourcery: fixed code sourcery compilation warnings
dm-cache: block level disk cache target for device mapper
kernel:sched: LOAD_FREQ (4*HZ+61) avoids loadavg Moire

Version 005 - Dec 17, 2011 (deprecated, GB)

Removed some annoying kernel debugging messages from Spamming dmesg log
Switched to Xboarder's Easy Kernel Flasher Version 3 (EKF)

Version 006 - Dec 17, 2011 (deprecated, GB)

Lowered LED button back light current
Enabled Automatic Brightness on LED button back light.

Version 008 - Jan 22, 2011 (Short Term Release, GB)

http://faux.eth0.it/Amaze-EKF-008b13-sense.zip

Disable CPU time statistics (this is the same as my Sensation kernel, a slow memory leak which leads to a kernel crash!)
Patched KGSL (GPU)
Patched MMC for better battery savings
PM / Hibernate: Correct additional page calculation
arm: Allow CPU-supported unaligned accesses
ARM/MM: reduce memory footprint
partition_sched_domains: Do not destroy old sched domain on cpu_up
lockdep: print lock name for lockdep_init_error
init/main.c: execute lockdep_init as early as possible
cpufreq: ondemand gov tweaks
msm: audio: qdsp6v2: Close smd ports upon failure to open.
msm: audio: qdsp6v2: Reduce the pcm write timeout value
cpufreq: add ondemand two-phase scheduling
msm: cpufreq: Use INIT_COMPLETION instead of init_completion
cpufreq: add CPU sibling code to remember last cpu freq before unplug
msm: cpufreq: Create cpufreq workqueue for freq changes
Fixed CPU1 voltage and frequency issues introduced in Beta 9
added XZ compression (reduce kernel size)
more MMC patch
added SHA-1 for faster boot
added SMP optimization
disable USB OTG capability
Updated USB, OTG, VIDC, Camera and DMA drivers from Telus Kernel source.
disabled CPU overclocking
sdio: Handle graceful shutdown
sdio: fix MCI_CLK corruption
driver/vibrator: reduce debug message spam to dmesg log
Added JRCU (thanks to Joe Korty!)
Patched MMC lock up issue
Removed additional Panasonic Gyro Log Spams
Patched RPC and SMD drivers

Version 009 - Mar 13, 2011 (Current, GB)

Reverted back to Fast NoHz RCU (better battery life than jRCU)
disabled Gentle Fair Sleepers (supposedly better for Android interactivity)
tweaked RAMDISK settings for kernel scheduling parameters for better interactivity
Reduced 2D instantaneous bandwidth demand to conserve more battery life
The Following 16 Users Say Thank You to faux123 For This Useful Post: [ Click to Expand ]
 
gaww
Old
#4  
Senior Member
Thanks Meter 121
Posts: 2,273
Join Date: Oct 2010
Location: Western NC
Hello and welcome faux.

I have your kernels on my G2X (DS OC/UV) and family plan member's MT4G (stock).

I will be trying this as soon as the link is up. Will also be helping you to get the phone, but am traveling (back in CA) right now.

I like this device so far. Has the best camera and video cam I have tried so far.

Will be even better after HTC drops the source - it needs AOSP/Cm7(?)/Miui real bad.

Xboarder (all 16 years) has been doing all the heavy lifting so far, so your coming over here - especially with respect to kernels, is a very good thing.
The Following User Says Thank You to gaww For This Useful Post: [ Click to Expand ]
 
mike1986.
Old
#5  
mike1986.'s Avatar
Recognized Developer / Recognized Contributor
Thanks Meter 46851
Posts: 30,650
Join Date: Mar 2009
Location: XDA-Developers

 
DONATE TO ME
Thanks faux, gonna update my rom today how about tmobile compatibilty?

Sent from my HTC Sensation Z710e using Tapatalk


Archived devices and my other threads:

Join Android Revolution HD community

Facebook | Twitter | IRC chat | Visit my blog

If you appreciate my work, you can buy me a beer
Every donation is greatly appreciated and it helps the development!


 
faux123
Old
#6  
faux123's Avatar
Senior Member - OP
Thanks Meter 20603
Posts: 6,290
Join Date: Dec 2010
Location: West Los Angeles

 
DONATE TO ME
I need some help....


Can someone with the phone tell me which partition the boot.img is located?

My guess is either /dev/block/mmcblk0p28 or /dev/block/mmcblk0p32

Thanks!
The Following 4 Users Say Thank You to faux123 For This Useful Post: [ Click to Expand ]
 
macheteZen
Old
#7  
macheteZen's Avatar
Senior Member
Thanks Meter 42
Posts: 339
Join Date: Nov 2010
Location: Denver
Faux123 it's so great to see you over here in the Amaze forum, loved your great work over on the MT4G. Hope to see the bounty take off so you don't have to dev blind.
Devices:
Samsung Galaxy S4 (White) 16GB
-Stock

Samsung GS3 (Blue) 16GB (Wifey)
-Stock

Amazon Kindle Fire
-JB of some kind

Old:
Samsung GS3 (White) 16GB : FOR SALE
HTC Amaze 4G (White) : FOR SALE
LG G2X : FOR SALE
HTC Leo (HD2-TMOUS) : SOLD
HTC Glacier (White) : SOLD
Toshiba Thrive AT100 : Returned
HTC G2 : Returned
Samsung Galaxy S : Returned

---------------------
 
gaww
Old
(Last edited by gaww; 23rd November 2011 at 09:24 PM.)
#8  
Senior Member
Thanks Meter 121
Posts: 2,273
Join Date: Oct 2010
Location: Western NC
Quote:
Originally Posted by faux123 View Post
I need some help....


Can someone with the phone tell me which partition the boot.img is located?

My guess is either /dev/block/mmcblk0p28 or /dev/block/mmcblk0p32

Thanks!
I am not sure how to find that out. There had been a thread on the partition layout of the Amaze, but now can't find it.

New thread in General says Amaze source just dropped - will that show it?

http://www.mobileburn.com/17631/news...ire-s-amaze-4g

Actual link:
http://www.htcdev.com/devcenter/downloads
 
heyjoe66
Old
#9  
Senior Member
Thanks Meter 111
Posts: 422
Join Date: Mar 2007
Quote:
Originally Posted by faux123 View Post
I need some help....


Can someone with the phone tell me which partition the boot.img is located?

My guess is either /dev/block/mmcblk0p28 or /dev/block/mmcblk0p32

Thanks!
i'm still waiting for my precious and, by the way, it's great to see you here
but maybe this will help
http://forum.xda-developers.com/show....php?t=1306211
The Following User Says Thank You to heyjoe66 For This Useful Post: [ Click to Expand ]
 
faux123
Old
#10  
faux123's Avatar
Senior Member - OP
Thanks Meter 20603
Posts: 6,290
Join Date: Dec 2010
Location: West Los Angeles

 
DONATE TO ME
Amaze Enhanced Kernel with JRCU is OUT.. Check OP for link and check 2nd post for change log for this initial BETA.

WARNING: THIS IS A BLIND BUILD, please keep this in mind when flashing this kernel. This kernel is stock @ 1.512 GHz with NO OC and NO UV enabled. Once I get my hand on the hardware and TEST the OC/UV myself, I will add those capabilities to this phone.

ALSO this is BASED ON T-MOBILE kernel source. I realize there's a separate Telius source and I WILL MERGE the two together as 1 unified kernel but again I will reserve it until I have the hardware in hand.

The Following 7 Users Say Thank You to faux123 For This Useful Post: [ Click to Expand ]
 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...