[Streak 5 Android Development] _n0p_:
[Kernel] Phoenix Universal

Hi everybody!

As disk space on my build machine is low :) and i've tired of branching - here's first version of Phoenix Universal kernel.

--

DSC Phoenix kernel was created by

_n0p_, GSpecial, LTrifonov, hPa, hunderteins.

--

Features:

Timer (no SoD) fix.

i2c bus fixes.

Touchpad freeze (after call) fix.

Under/Overclocked.

Undervolted (configurable).

Baseband check disabled.

Reboot on BB reset disabled.

Backcover detection removed.

Power button dejitter patch.

TUN/TAP support (built-in, tested with OpenVpn Installer/Settings, you don't need to load module, again, it's built-in)

CIFS support (Tested with CifsManager, over OpenVPN connection)

EXT4/NTFS support.

Configurable Mugen extended batteries support.

Configurable uncap patch (hPa, thank you!).

init.d support.

EXT4 driver used for EXT2/3.

--

Enabling and configuring Mugen extended battery:​

Following lines should be added to postboot script,

or you may use DSC Mugen Power config.

echo 1 > /sys/module/qsd_battery/parameters/use_mugen

this will enable Mugen 4800 battery support on-the fly with Dude_Virus tested parameters.

echo 1 > /sys/module/qsd_battery/parameters/log

this will enable logging.

--

Other parameters:

interpolation - how many samples will be taken into count (default 48)

highest_mv - your highest mV value (with unplugged charger!, better to round it down a bit)

lowest_mv - your lowest mV value (when system goes off, round it up a bit)

charger_correction = (highest mV with charger - highest mV without charger, should be about 70-100 mV)

--

Controlling framerate:​

I didn't disable vsync, as it results in jerky animations, but you can control framerate a bit.

Controlled by

/sys/module/mddi_auo/parameters/t2_register

444 - stock value (~45 fps), hPa recommended max - 361 (~55 fps)

--

Controlling undervolting:​

You may enable and disable UV on the fly with

/sys/module/acpuclock_8x50/parameters/uv

1 - enable UV, 0 - disable UV. Disabled by default.

--

Power button dejitter patch:​

Though it shouldn't be any need to change it manually, you can control delay after depress in ms via

/sys/module/rpc_server_handset/parameters/keyfilter

Default is 175.

--

Wifi power modes:​

It has three modes - PM_FAST(2) - default for active/resumed device, PM_MAX(1) - default for suspended device, PM_OFF(0).

Right now i cannot find a (nice) way to pass parameters to loadable module (no, modprobe.conf is not in play :), it's loaded from legacy hardware lib), so it's usuful only for playing with.

You can control it (only when Wifi is on) by reading/writing this parameters:

/sys/module/dhd/parameters/dhd_pm_active
/sys/module/dhd/parameters/dhd_pm_suspended

WiFi timeout: our driver has internal watchdog that turns device off on inactivity. This may lead to losing AP in sleep mode. You can increase timout, reducing sleep times in cost of increased stability.

/sys/module/dhd/parameters/dhd_watchdog_ms

Default is 1000ms.

--

CPU kick:​

My attemp to fix a slow wake problem and old trouble with CPU staying on lowest frequency after the wake.

/sys/module/wakelock/parameters/kick

On by default.

--

Conservative governor hacks:​

Introducing ramp_freq parameter: CPU will jump right to this frequency if load requires higher frequency and requested freq is lower than ramp_freq.

Also, sampling_rate increased to 100'000 to increase overall responciveness of the governor.

576000 by default.

--

http://n0p.8bit.fm/streak/DSC_PhoenixU25.zip

Mirror @ khoacoi's server:

http://www.littlemaruko.com/Nopteam/DSC_PhoenixU25.zip

--

As always, any feedback is welcome.

Sergei,

DSC Team.

GitHub link: https://github.com/dsc-team/dsc-team-kernel-project

Changelog:

29.10.2012 - Added SmartassV2, Conservative hacks, DHD WiFi timeout and PM configuration. Enabled advanced routing.

15.10.2012 - Kick CPU only on device resume, configurable.

10.09.2012 - Also kick CPU on device resume, power mode parameters for Wifi driver. Internal version is in hostname now :)

07.09.2012 - UX improvement - kick CPU on touchscreen resume and power button press.

05.09.2012 - Rewritten power button dejitter patch, compile-time optimizations.

16.07.2012 - EXT4 driver for EXT2/3 FS.

05.07.2012 - Disabled BB check in kernel. Now you can use 366 BB.

11.06.2012 - [MUGEN] - increased chanrging timeout to 12h (was 4h). Battery FULL should be on when battery is fully charged (on charger termination).

Put back IPv6 support.

25.04.2012 - First release.

History (saving it from getting lost):

Second DSC Team Phoenix kernel release.

First DSC Team Phoenix kernel release.