[Kernel][harpia] Squid Kernel for Moto G4 Play - Moto G4 Play ROMs, Kernels, Recoveries, & Other De

This is my "Squid Kernel" for the 2016 Moto G4 Play, codenamed harpia. It shares a common codebase with my kernels for osprey, surnia, and lux. It consists of the latest Motorola MSM8916 kernel, with all the latest changes from CodeAurora and Kernel.org merged in, along with select cherry-picks and additions of my own. Flash it using TWRP. Bug reports and contributions are welcome.
This kernel supports both the stock ROM and custom ROMs.
Disclaimer:
This is for the 2016 Moto G4 Play (harpia) only! Versions r22 and up are for Nougat ROMs with modern blobs only! Don't flash it on a previous Moto G, or surnia, or lux. This kernel is provided AS-IS, with no warranties. I am not responsible for bricking your device. Flash at your own risk.
Features:
Moderately undervolted
Updated to Linux 3.10.108
Synced with latest CodeAurora changes
Improved memory management
Improved memory caching backported from Linux 3.15
Improved storage performance
Optimized ARM crypto routines
Updated f2fs and WiFi drivers
FIOPS and BFQ I/O schedulers
Lionfish CPU governor
IntelliPlug CPU hotplug (by faux123)
KCAL MDP5 colour control (by savoca)
Improved zRAM backported from Linux 4.9
Vibration intensity control
Compiled with Linaro GCC 7.3 and optimized for Cortex A53
Stripped down and optimized configuration
Release History:
Code:
r23: August 15, 2018
- More reliable headphone detection on harpia
- Tonnes of security patches
- Updated binder
- Compiled with Linaro GCC 7.3.1
r22b: January 13, 2018
- Audio driver fixes
r22: January 11, 2018
- Security patches
- Updated camera drivers
- Stock Nougat support
- Nougat only, requires modern blobs
r21: December 6, 2017
- Updated to Linux 3.10.108
- Security patches
- Oreo support related patches
r20: August 2, 2017
- Updated to Linux 3.10.107
- Tonnes of security patches from many places
- Updated sdcardfs from Google
- Updated WiFi driver from CAF
- Compiled with Linaro GCC 6.3.1
r19: January 1, 2017
- Added support for Nougat ROMs
- Updated zRAM from Linux 4.9
- Updated (optimized) FUSE from CAF
- Kernel ASLR and many info leak fixes
- ARM PXN support for exploit mitigation
- Tons of security updates
- Some CAF updated from LA.BR.1.2.9_rb1.10
- Fixed kernel panic on VPN disconnection
- Updated compiler to Linaro GCC 6.2.1
r18: November 8, 2016
- Initial release for harpia
Downloads:
Main downloads tab
XDA:DevDB Information
Squid Kernel for Moto G4 Play, Kernel for the Moto G4 Play
Contributors
squid2
Source Code: https://github.com/sultanqasim/android_kernel_motorola_msm8916
Kernel Special Features: undervolted, lionfish, fiops, intelliplug, latest Linux and Qualcomm fixes
Version Information
Status: Stable
Current Stable Version: r23
Stable Release Date: 2018-08-15
Created 2016-11-09
Last Updated 2018-08-15

it is for all Harpia XT16XX?

mario156090 said:
it is for all Harpia XT16XX?
Click to expand...
Click to collapse
Yes, all harpia variants running all Marshmallow ROMs (stock and custom) should work with r18. A Nougat-only version will be coming later once I bring CM14.1 to this device.

I'm trying it now. No issues so far.
Just in case, how I would I could go back to stock kernel?

Frank_s_ph said:
I'm trying it now. No issues so far.
Just in case, how I would I could go back to stock kernel?
Click to expand...
Click to collapse
Flash your stock twrp backup
Sent from my Moto G Play using XDA-Developers mobile app

@squid2, Your kernel is very good, is it possible to overlock?

Just wanted to say this kernel is amazing. Not sure how accurate the seetings for the battery are but it says I have 4 days remaining at 86%. Even if its half that its still a massive improvement, thanks for your devotion and work on the g series @squid2.

You are ruling the harpia forum.
Great job

For whatever it's worth, I installed BaseMark OS II and ran a before and after test of the Nov 8 kernel. It slowed down the memory a bit. The first four columns are stock and the last four columns are with the Nov 8 kernel.
Overall 628 625 628 621 | 542 538 541 539
System 1043 1029 1062 1054 | 1028 1048 1067 1040
Memory 852 853 847 828 | 517 496 503 505
Graphics 315 315 315 313 | 305 304 299 304
Web 554 551 549 545 | 531 533 535 527
For such a big hit to the memory score, it didn't affect the rest all that much. I wonder if there isn't some boost in battery life that I'm not sure how to measure. I didn't notice much warmth from the phone while running the benchmark, but I didn't really make a good test of that. If the battery life is xx% better, then it's a choice of what you value.
Please don't take this as being negative. I really appreciate the chance to try this out. Keep going Squid! I'm dying to see the CM's going on this phone!!

Hello @squid2 sir
I can't find any undervolting commit on github
Can you help me find it ?
Sent from my Motorola Moto E using XDA Labs

Should I be seeing better battery life when compared to stock? Because it looks to be worse (higher consumption when using, like wifi browsing). Do I have to change the governor?
Also, if I switch back to stock kernel, do I have to reset something (like some settings)?

I guess that the kernel wasn't the differentiating factor, as I just got similar performance as with stock - 3 days standby and 10 hours screen on time.

nick_white said:
Should I be seeing better battery life when compared to stock? Because it looks to be worse (higher consumption when using, like wifi browsing). Do I have to change the governor?
Also, if I switch back to stock kernel, do I have to reset something (like some settings)?
Click to expand...
Click to collapse
No need for setting anything when going back to stock kernel.

I'm wondering if this kernel makes it possible to use the white battery LED as notification LED?
To me the G4 Play's only flaw is not having a notification LED, but an "battery is being charged" LED... Very odd.

yeah this would be cool

K.E. said:
I'm wondering if this kernel makes it possible to use the white battery LED as notification LED?
To me the G4 Play's only flaw is not having a notification LED, but an "battery is being charged" LED... Very odd.
Click to expand...
Click to collapse
I second this. I found it really odd how it's charging only, but not for notifications. I really would love to see if anyone could incorporate a notification light setting

Is the carging led somewhere at the bottom left of the phione? I can see something beneath the glass (looks like the proximity sensor), but mine is not lighting up when charging...

nick_white said:
Is the carging led somewhere at the bottom left of the phione? I can see something beneath the glass (looks like the proximity sensor), but mine is not lighting up when charging...
Click to expand...
Click to collapse
It's in the slightly on the bottom left side when plugged in. Surprised me the first time I installed CM after running stock for a little while, I didn't see a setting in the stock rom for it.

VPN disconnect reboot
I found a reproducible bug that causes a reboot with the r18 kernel. When using the built-in Android VPN feature the phone reboots as soon as I click disconnect. I tested with the stock kernel and it works fine, also tested with and without SuperSu. Phone is a xt1607 running stock ROM 6.0.1. The VPN type is PPTP.
Code:
<1>[ 328.175881,1] Unable to handle kernel NULL pointer dereference at virtual address 00000004
<1>[ 328.175928,1] pgd = c0004000
<1>[ 328.175946,1] [00000004] *pgd=00000000
<0>[ 328.175977,1] Internal error: Oops: 5 [#1] PREEMPT SMP ARM
<4>[ 328.175995,1] Modules linked in:
<4>[ 328.176025,1] CPU: 1 PID: 9399 Comm: pppd Tainted: G W 3.10.104-r18-g15931b7-03706-gec43596 #2
<4>[ 328.176046,1] task: c5fa78c0 ti: dc0f4000 task.ti: dc0f4000
<4>[ 328.176081,1] PC is at ppp_unregister_channel+0x200/0x2c0
<4>[ 328.176106,1] LR is at _raw_spin_unlock_irqrestore+0x28/0x48
<4>[ 328.176129,1] pc : [<c06ca324>] lr : [<c0e1b918>] psr: 600f0013
<4>[ 328.176129,1] sp : dc0f5da0 ip : 00000091 fp : d2f00548
<4>[ 328.176153,1] r10: dfdc9a60 r9 : dfdc9a60 r8 : dee68fcc
<4>[ 328.176172,1] r7 : ccafb590 r6 : c15cdc40 r5 : e2d848cc r4 : dee68f80
<4>[ 328.176191,1] r3 : 00000004 r2 : 00000000 r1 : 00000000 r0 : 00000000
<4>[ 328.176212,1] Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
<4>[ 328.176232,1] Control: 10c0383d Table: a2b2c06a DAC: 00000015
<0>[ 328.176250,1] Process pppd (pid: 9399, stack limit = 0xdc0f4238)
<0>[ 328.176268,1] Stack: (0xdc0f5da0 to 0xdc0f6000)
<0>[ 328.176299,1] 5da0: e1506400 00000000 c2a16d00 e3b61010 dfdc9a40 c06d0934 e1506400 c06d3cac
<0>[ 328.176327,1] 5dc0: dfdc9a60 00000000 dfcadf68 e3b61010 00000008 c0bc2b14 d2f00540 00000000
<0>[ 328.176356,1] 5de0: dfcadf68 c02934a8 00000000 00000000 e2fffa90 c5fa7d44 00000000 c16490b8
<0>[ 328.176384,1] 5e00: c5fa78c0 de508540 de508574 00418004 fffffdfe c015d770 c5fa78c0 002f002f
<0>[ 328.176412,1] 5e20: dc0f4000 c5fa7d64 c5fa78c0 00000001 dc0f4000 c0138c5c 00000000 00000000
<0>[ 328.176440,1] 5e40: 00000002 e1316000 002f002f c0e1e388 c5fa78c0 56e80405 e131601c dc0f5ee8
<0>[ 328.176468,1] 5e60: fffffdfe c013a76c dc0f4000 00000009 c29d4000 dc0f5ee8 c0f01c48 c014d950
<0>[ 328.176497,1] 5e80: 603d2b40 0000004c c151d290 da5e4ec0 c15e1064 da5e53c4 418004fc 00040005
<0>[ 328.176525,1] 5ea0: 00040006 dc0f5ed4 c25ee300 dc0f4000 dc0f5fb0 c151c408 dc0f5ed4 dc0f5ee8
<0>[ 328.176554,1] 5ec0: b6d980f8 b6d980fc fffffdfe c01111a4 0000000a c0e1b418 0000000a c0e1b918
<0>[ 328.176582,1] 5ee0: 0000000a c013d950 00000009 00000000 00000000 00000000 00000000 00000000
<0>[ 328.176610,1] 5f00: c151c408 fffffdfe 00000000 be86a810 00000008 00000000 dc0f4000 c02ac660
<0>[ 328.176638,1] 5f20: dc0f5f4c 00000000 be86a840 00000000 be86a8c0 000006bf 00000807 310fd355
<0>[ 328.176666,1] 5f40: 00000000 000006bf 30898980 00000807 310fd355 000006bf 30898980 000006bf
<0>[ 328.176696,1] 5f60: 2a78fbd9 000006bf 2a78fbd9 56e80405 c010db64 dc0f4000 dc0f4000 dc0f4000
<0>[ 328.176724,1] 5f80: dc0f5fb0 c010db64 dc0f4000 00000000 b6fc7d54 c01116c0 be86a810 00000000
<0>[ 328.176752,1] 5fa0: 000006bf 0000014f c010db64 c010da28 00000008 be86a840 00000000 be86a8c0
<0>[ 328.176780,1] 5fc0: be86a810 00000000 000006bf 0000014f be86a840 00000008 b6f7fbd1 b6fc7d54
<0>[ 328.176808,1] 5fe0: be86a808 be86a7f8 b6d704c9 b6d980f8 40070010 00000008 00000000 00252522
<4>[ 328.176853,1] [<c06ca324>] (ppp_unregister_channel) from [<c06d0934>] (pppox_unbind_sock+0x1c/0x28)
<4>[ 328.176892,1] [<c06d0934>] (pppox_unbind_sock) from [<c06d3cac>] (pppopns_release+0xe0/0x118)
<4>[ 328.176926,1] [<c06d3cac>] (pppopns_release) from [<c0bc2b14>] (sock_close+0x24/0xac)
<4>[ 328.176961,1] [<c0bc2b14>] (sock_close) from [<c02934a8>] (____fput+0x98/0x224)
<4>[ 328.176993,1] [<c02934a8>] (____fput) from [<c015d770>] (task_work_run+0xb8/0xf4)
<4>[ 328.177031,1] [<c015d770>] (task_work_run) from [<c0138c5c>] (do_exit+0x304/0x9c0)
<4>[ 328.177061,1] [<c0138c5c>] (do_exit) from [<c013a76c>] (do_group_exit+0x38/0xb0)
<4>[ 328.177093,1] [<c013a76c>] (do_group_exit) from [<c014d950>] (get_signal_to_deliver+0x324/0x668)
<4>[ 328.177127,1] [<c014d950>] (get_signal_to_deliver) from [<c01111a4>] (do_signal+0x9c/0x458)
<4>[ 328.177162,1] [<c01111a4>] (do_signal) from [<c01116c0>] (do_work_pending+0x74/0xbc)
<4>[ 328.177194,1] [<c01116c0>] (do_work_pending) from [<c010da28>] (work_pending+0xc/0x20)
<0>[ 328.177223,1] Code: e5940064 e2803004 f57ff05b f5d3f000 (e1932f9f)
<4>[ 328.177947,3] ---[ end trace 55110d0257cc6671 ]---

just found these commits - maybe this can be adapted to harpia?
https://review.cyanogenmod.org/#/c/144769/
https://review.cyanogenmod.org/#/c/144770/
https://review.cyanogenmod.org/#/c/144768/
K.E. said:
I'm wondering if this kernel makes it possible to use the white battery LED as notification LED?
To me the G4 Play's only flaw is not having a notification LED, but an "battery is being charged" LED... Very odd.
Click to expand...
Click to collapse

Related

Devs who look at ICS Source. Look here!

So we have a portal writer that has written multiple articles on the stuff I made and the stuff we've been doing. He asked us for more info on the Amaze source so he can write about it and help us get more recognition. Don't believe me? Look for yourself.
https://twitter.com/PoorCollegeGuy/status/222516466711396352
So can you say what new changes have been made. Did HTC make it harder on us to hack it? Did they not release anything we need? anything so we can get this published. Write it all here and I'll pass the link to this thread to him when we get responses.
Please, only respond here with information on source. NOTHING ELSE! I want to keep it nice and clean here.
Well my understanding is the wi-fi drivers are there they just commented out what we need to build it and a compat-wireless modules that they didn't include but i found another way to get it working just fine
sportsstar89 said:
Well my understanding is the wi-fi drivers are there they just commented out what we need to build it and a compat-wireless modules that they didn't include but i found another way to get it working just fine
Click to expand...
Click to collapse
That is one long run on sentence lol. Any other info you guys found out. We need to add more so he can write more about it!
hasoon2000 said:
That is one long run on sentence lol. Any other info you guys found out. We need to add more so he can write more about it!
Click to expand...
Click to collapse
Don't criticize my grammar and writing ability I go to school for that lol but my teachers tell me I'm the best writer in the class
Sent from my HTC_Amaze_4G using xda premium
sportsstar89 said:
Don't criticize my grammar and writing ability I go to school for that lol but my teachers tell me I'm the best writer in the class
Sent from my HTC_Amaze_4G using xda premium
Click to expand...
Click to collapse
hard to believe =D lol. But GETTING BACK ON THE TOPIC! lol. Any other info you guys find out?
Wifi is working using the existing modules that HTC provided. Currently we are still looking for a way to get the modules that are compiled by the kernel to work.
Sent from my HTC One X using xda premium
sportsstar89 said:
Well my understanding is the wi-fi drivers are there they just commented out what we need to build it and a compat-wireless modules that they didn't include but i found another way to get it working just fine
Click to expand...
Click to collapse
kozmikkick said:
Wifi is working using the existing modules that HTC provided. Currently we are still looking for a way to get the modules that are compiled by the kernel to work.
Sent from my HTC One X using xda premium
Click to expand...
Click to collapse
Yeah, it appears that they commented out the building of the wl12xx drivers, but the stock ICS does have wl12xx modules. The evidence (commentd out makefile, presence of compat.ko, wl12xx.ko, wl12xx_sdio.ko, etc.) points to HTC using a version of compat-wireless drivers, but which one, I don't know. I also don't know if HTC made any modifications to the wireless drivers, but if they did, they'd be obligated by the GPL to release the updates.
Since the tweaks sportsstar used to get wifi work in his kernel worked, that means that we should have everything we need on the kernel side of things, we just need to get and build the proper version of compat wireless. I also wonder if we need to match the version of compat-wireless with the binary firmware blob from TI. In all the work building different versions of compat-wireless, it could be we also need the proper firmware.
oryan_dunn said:
Yeah, it appears that they commented out the building of the wl12xx drivers, but the stock ICS does have wl12xx modules. The evidence (commentd out makefile, presence of compat.ko, wl12xx.ko, wl12xx_sdio.ko, etc.) points to HTC using a version of compat-wireless drivers, but which one, I don't know. I also don't know if HTC made any modifications to the wireless drivers, but if they did, they'd be obligated by the GPL to release the updates.
Since the tweaks sportsstar used to get wifi work in his kernel worked, that means that we should have everything we need on the kernel side of things, we just need to get and build the proper version of compat wireless. I also wonder if we need to match the version of compat-wireless with the binary firmware blob from TI. In all the work building different versions of compat-wireless, it could be we also need the proper firmware.
Click to expand...
Click to collapse
The only problem with the current tweak to use existing wifi modules is that I think it may be breaking other functions. Not sure about this yet though.
When I get my amaze this week my plan is to try a few different firmware from ti. I think you're right about needing to swap out the blobs. If this is the case then it should make things pretty easy.
Sent from my HTC One X using xda premium
Ok, since this is a generic thread about ICS source, I'm moving all of my kernel ramblings here, instead of taking up space in Kozmik's kernel thread.
Anyways, I ran modinfo on all the modules in the T-Mobile ICS update. Here are the results:
Code:
filename: bluetooth.ko
alias: net-pf-31
license: GPL
version: 2.16
description: Bluetooth Core ver 2.16
author: Marcel Holtmann <[email protected]>
srcversion: 7F6941AC162E74AA0B26DAF
depends:
vermagic: 3.0.16-ga4fb83c SMP preempt mod_unload ARMv7
parm: disable_esco:Disable eSCO connection creation (bool)
parm: disable_ertm:Disable enhanced retransmission mode (bool)
parm: enable_hs:Enable High Speed (bool)
parm: enable_mgmt:Enable Management interface (bool)
parm: enable_le:Enable LE support (bool)
parm: force_acl_master:Always try to switch to master role on ACL link (int)
filename: bnep.ko
alias: bt-proto-4
license: GPL
version: 1.3
description: Bluetooth BNEP ver 1.3
author: Marcel Holtmann <[email protected]>
srcversion: 77A9BE70DF012F020FC7798
depends: bluetooth
vermagic: 3.0.16-ga4fb83c SMP preempt mod_unload ARMv7
parm: compress_src:Compress sources headers (bool)
parm: compress_dst:Compress destination headers (bool)
filename: btwilink.ko
license: GPL
version: 1.0
description: Bluetooth Driver for TI Shared Transport1.0
author: Raja Mani <[email protected]>
srcversion: 269FE2F6F705EA176E7CD4D
depends: bluetooth
vermagic: 3.0.16-ga4fb83c SMP preempt mod_unload ARMv7
filename: cfg80211.ko
description: wireless configuration support
license: GPL
author: Johannes Berg
depends:
vermagic: 3.0.16-ga4fb83c SMP preempt mod_unload ARMv7
parm: ieee80211_regdom:IEEE 802.11 regulatory domain code (charp)
parm: cfg80211_disable_40mhz_24ghz:Disable 40MHz support in the 2.4GHz band (bool)
filename: compat.ko
license: GPL
description: Kernel compatibility module
author: Luis R. Rodriguez
license: Dual BSD/GPL
author: Broadcom Corporation
description: Cordic functions
license: Dual BSD/GPL
author: Broadcom Corporation
description: CRC8 (by Williams, Ross N.) function
depends:
vermagic: 3.0.16-ga4fb83c SMP preempt mod_unload ARMv7
parm: compat_base_tree:The upstream tree used as base for this backport (charp)
parm: compat_base_tree_version:The git-describe of the upstream base tree (charp)
parm: compat_version:Version of the kernel compat backport work (charp)
filename: fm_drv.ko
license: GPL
depends:
staging: Y
vermagic: 3.0.16-ga4fb83c SMP preempt mod_unload ARMv7
filename: hid-magicmouse.ko
license: GPL
alias: hid:b0005v000005ACp0000030E
alias: hid:b0005v000005ACp0000030D
depends:
vermagic: 3.0.16-ga4fb83c SMP preempt mod_unload ARMv7
parm: emulate_3button:Emulate a middle button (bool)
parm: emulate_scroll_wheel:Emulate a scroll wheel (bool)
parm: scroll_speed:Scroll speed, value from 0 (slow) to 63 (fast)
parm: scroll_acceleration:Accelerate sequential scroll events (bool)
parm: report_touches:Emit touch records (otherwise, only use them for emulation) (bool)
parm: report_undeciphered:Report undeciphered multi-touch state field using a MSC_RAW event (bool)
filename: hidp.ko
alias: bt-proto-6
license: GPL
version: 1.2
description: Bluetooth HIDP ver 1.2
author: Marcel Holtmann <[email protected]>
srcversion: AC3509329E41D74FA70B7C0
depends: bluetooth
vermagic: 3.0.16-ga4fb83c SMP preempt mod_unload ARMv7
filename: mac80211.ko
license: GPL
description: IEEE 802.11 subsystem
depends: cfg80211
vermagic: 3.0.16-ga4fb83c SMP preempt mod_unload ARMv7
parm: ieee80211_default_rc_algo:Default rate control algorithm for mac80211 to use (charp)
parm: max_nullfunc_tries:Maximum nullfunc tx tries before disconnecting (reason 4). (int)
parm: max_probe_tries:Maximum probe tries before disconnecting (reason 4). (int)
parm: probe_wait_ms:Maximum time(ms) to wait for probe response before disconnecting (reason 4). (int)
filename: rfcomm.ko
alias: bt-proto-3
license: GPL
version: 1.11
description: Bluetooth RFCOMM ver 1.11
author: Marcel Holtmann <[email protected]>
srcversion: 436C8832D80BAD759212601
depends: bluetooth
vermagic: 3.0.16-ga4fb83c SMP preempt mod_unload ARMv7
parm: disable_cfc:Disable credit based flow control (bool)
parm: channel_mtu:Default MTU for the RFCOMM channel (int)
parm: l2cap_mtu:Default MTU for the L2CAP connection (uint)
parm: l2cap_ertm:Use L2CAP ERTM mode for connection (bool)
filename: wl12xx.ko
author: Juuso Oikarinen <[email protected]>
author: Luciano Coelho <[email protected]>
license: GPL
alias: platform:wl12xx
depends: cfg80211,mac80211
vermagic: 3.0.16-ga4fb83c SMP preempt mod_unload ARMv7
parm: debug_level:wl12xx debugging level (uint)
parm: fwlog:charp
parm: keymap:FW logger options: continuous, ondemand, dbgpins or disable
parm: bug_on_recovery:BUG() on fw recovery (bool)
parm: fref:FREF clock: 19.2, 26, 26x, 38.4, 38.4x, 52 (charp)
parm: tcxo:TCXO clock: 19.2, 26, 38.4, 52, 16.368, 32.736, 16.8, 33.6 (charp)
filename: wl12xx_sdio.ko
firmware: ti-connectivity/wl128x-fw-4-mr.bin
firmware: ti-connectivity/wl128x-fw-4-sr.bin
firmware: ti-connectivity/wl127x-fw-4-mr.bin
firmware: ti-connectivity/wl127x-fw-4-sr.bin
author: Juuso Oikarinen <[email protected]>
author: Luciano Coelho <[email protected]>
license: GPL
alias: sdio:c*v0097d4076*
depends: wl12xx
vermagic: 3.0.16-ga4fb83c SMP preempt mod_unload ARMv7
They are all GPL with the exception of compat.ko being dual licensed. I don't think that should be an issue (ie. doubt HTC had modifications) as I think that modules function is to interface with the other drivers (wl12xx, etc.) to the current kernel version. The rest are GPL and therefore HTC must release the source for it.
oryan_dunn said:
They are all GPL with the exception of compat.ko being dual licensed.
Click to expand...
Click to collapse
I'm not perfectly clear on dual licenses, so it should be posed to FSF, but from what I understand, it allows the code to be compatible with GPL and BSD projects. However, if used in a GPL project, I believe the GPL portion of the license is what takes effect, since the BSD portion is not compatible with the GPL project.
A quote from Linus Torvalds:
"This is no different from the fact that we have some drivers that are GPLv2/BSD licensed. Within the kernel, they are GPLv2. But on their own, you can choose to use them under the BSD license, make your changes to them, and release them commercially. And correct - I cannot (and neither can anybody else) then accept those *non*GPLv2 changes back."
Click to expand...
Click to collapse
I'm having trouble with "on their own" and "within the kernel".
I guess this simply means that if the modules are released within a kernel like a single entity then it has to be GPLv2 but if the module's source is not released as "part of the Linux kernel" but just like "a module to make that piece of hardware working with the Linux kernel" then it can be released under BSD license.
Sent from my HTC_Amaze
johnride said:
I guess this simply means that if the modules are released within a kernel like a single entity then it has to be GPLv2 but if the module's source is not released as "part of the Linux kernel" but just like "a module to make that piece of hardware working with the Linux kernel" then it can be released under BSD license.
Sent from my HTC_Amaze
Click to expand...
Click to collapse
The only module that's dual licensed is the compat.ko module, not the actual driver files, which are all still GPL. I assume that if HTC did make modifications to compat.ko, that they'd have to update the license to say BSD and not BSD/GPL. I believe all the code in compat-wireless is from the kernel itself, just a newer version, that you compile for an older kernel.
On another note, I am supposed to get a call from HTCdev escalation on the GPL driver issue. I wonder if the person who will call me will actually know what's going on, or if it will just be the generic customer support escalation team.
oryan_dunn said:
I assume that if HTC did make modifications to compat.ko, that they'd have to update the license to say BSD and not BSD/GPL.
Click to expand...
Click to collapse
I'm still fuzzy on dual licensing, but seeing that HTC released the module as dual licensed (GPL/BSD), doesn't that allow the user to decide the license? So, if you decide that it is GPL, shouldn't they release the source for it?
oryan_dunn said:
On another note, I am supposed to get a call from HTCdev escalation on the GPL driver issue. I wonder if the person who will call me will actually know what's going on, or if it will just be the generic customer support escalation team.
Click to expand...
Click to collapse
Either way, keep up the good fight.
brainbone said:
Either way, keep up the good fight.
Click to expand...
Click to collapse
Well, becuase 6pm eastern is within the window of 8-11pm eastern I told them to call, I missed their call. I'll try calling them tonight.
Just a heads up, we are going to have an article written on this soon. Our portal writer is going fix up some small kinks and then we will hopefully have more exposure and support.
http://www.xda-developers.com/android/telus-amaze-4g-ics-kernel-source-released-no-ti-wlan-present/
Sent From My HTC Amaze 4G Via Someone's Room
I ended up talking to HTC this weekend. It was as I expected, some guy who couldn't really do anything, but he listened and wasn't really all that hostile. He said he'd pass it on to the dept responsible. I told him that HTC was oblicated to release the source for all GPL code and that they need to release it the day the executable code is in the hands of customers. We'll see if it leads anywhere.
oryan_dunn said:
I ended up talking to HTC this weekend. It was as I expected, some guy who couldn't really do anything, but he listened and wasn't really all that hostile. He said he'd pass it on to the dept responsible. I told him that HTC was oblicated to release the source for all GPL code and that they need to release it the day the executable code is in the hands of customers. We'll see if it leads anywhere.
Click to expand...
Click to collapse
Im hoping the tmo kernel source might include what the devs need, but has htc released stuff like this by itself?
Sent from my iPad using Tapatalk HD
oryan_dunn said:
I ended up talking to HTC this weekend. It was as I expected, some guy who couldn't really do anything, but he listened and wasn't really all that hostile. He said he'd pass it on to the dept responsible. I told him that HTC was oblicated to release the source for all GPL code and that they need to release it the day the executable code is in the hands of customers. We'll see if it leads anywhere.
Click to expand...
Click to collapse
Well this is what i got from the gb drivers
filename: /home/steve/modules/kineto_gan.ko
license: GPL
version: 1.0
alias: gannet
description: Kineto GAN Virtual Ethernet Device
srcversion: FA8E773097534C9326F7196
depends:
vermagic: 2.6.35.13-g52e85af SMP preempt mod_unload ARMv7
Click to expand...
Click to collapse
filename: /home/steve/modules/st_drv.ko
license: GPL
description: Shared Transport Driver for TI BT/FM/GPS combo chips
author: Pavan Savoy <[email protected]>
depends:
staging: Y
vermagic: 2.6.35.13-g52e85af SMP preempt mod_unload ARMv7
Click to expand...
Click to collapse
filename: /home/steve/modules/tiap_drv.ko
license: Dual BSD/GPL
description: TI WLAN Embedded Station Driver
author: Ohad Ben-Cohen <[email protected]>
alias: TIWLAN_SDIO
license: GPL
description: TI WLAN 1283 SDIO interface
alias: sdio:c07v*d*
depends:
vermagic: 2.6.35.13-g52e85af SMP preempt mod_unload ARMv7
parm: driver_status:int
parm: g_sdio_debug_level:TIWLAN SDIO debug level (int)
Click to expand...
Click to collapse
filename: /home/steve/modules/ti_hci_drv.ko
license: GPL
depends: st_drv
staging: Y
vermagic: 2.6.35.13-g52e85af SMP preempt mod_unload ARMv7
Click to expand...
Click to collapse
filename: /home/steve/modules/tiwlan_drv.ko
author: Ohad Ben-Cohen <[email protected]>
alias: TIWLAN_SDIO
license: GPL
description: TI WLAN 1283 SDIO interface
license: Dual BSD/GPL
description: TI WLAN Embedded Station Driver
alias: sdio:c07v*d*
depends:
vermagic: 2.6.35.13-g52e85af SMP preempt mod_unload ARMv7
Click to expand...
Click to collapse
But tiwlan_drv.ko and tiap_drv.ko doesn't get built while compiling the kernel
My response from HTC was that they were using proprietary drivers.
Even still since the source is available from Texas it should be possible to use their code if we swap out the firmware. May have to do some calibrations and build our own WPA_supplicant though.
Sent from my HTC One X using xda premium

[KERNEL]Boeffla-kernel-2.8 for CM 11 4.4.2 (boeffla44_n5110)

KERNEL Boeffla-kernel-2.8 for CM 11 4.4.2 (boeffla44_n5110)
Build with last Boeffla-kernel : boeffla-kernel-samsung-n51x0-boeffla44_n5110
Super optimized
More Governors and I/O schedulers
CONFIG_ALLOW_CPU_ALIGNMENT=y
Build Full -O3
Build with Toolchains SaberMod 4.9 with a15, vfpv4 optimizations and Google GCC
Compress kernel in XZ ( minor size )
Compatible with 2.2.32-boeffla-config-v2.apk
I use Kernel Adiutor for Setup Kernel at cpu 1600 for more battery usage
Update 'LZ4'
config CPU_BOOST
Code:
Update:
[B][COLOR="Purple"]Boeffla-kernel-2.7-Samsung-n5110-s48-2016-01-14[/COLOR][/B]
[B][COLOR="Sienna"]zanezam committed 8 days ago
mali: 3-step gpu DVFS control for Exynos 4210
merged from this original commit:
CyanogenMod/[email protected][/COLOR][/B]
Update 2.8
Update Intelli Plug to v4.0 Implemented intelli_plug (arter97)
Fix Bluetooth Stuttering by [email protected]
Change ToolChain 4.9.4 PWR-CORE
Boeffla-Config V2
Copy to SD and Flash in Recovery:
bump update...
Version Boeffla-kernel-2.7
2016-01-14
enjoy!
RK
Update 2.8
Update Intelli Plug to v4.0 Implemented intelli_plug (arter97)
Fix Bluetooth Stuttering by [email protected]
Change ToolChain 4.9.4 PWR-CORE

Kernel value settings in ROM Toolbox Pro

Hallo, I recently rooted my Alcatel Onetouch Elevate (5017B), and am curious on if anyone has anyone has any profiles/settings saved that they use to tweak their kernel.
This is what I have:
Alcatel Onetouch Elevate
Model: 5017B
CPU: Qualcomm Snapdragon 210 MSM8909
Android version: 5.1.1
Kernel: 3.10.49-g21e07e9
Build: Android L
And here are the kernel values that I can change:
Interactive Governor-
above hispeed delay: 30000 1094400:50000
align windows: 1
boost: 0
boostpulse:
boostpulse duration: 80000
go hispeed load: 90
hispeed freq: 998400
io is busy: 0
max freq hysteresis: 0
min sample time: 50000
target loads: 1 800000:85 998400:90 1094400:80
timer rate: 30000
timer slack: 80000
use migration notif: 0
use sched load: 0
Only thing I really do on this phone is browse and play some games, and other minor things. Just looking to get more smoothness overall. Any tips?

[Kernel][delos] SomeFeaK for Samsung Galaxy Win / Quattro

This is SomeFeaK kernel for device codename "delos".
The kernel should work in stock and custom ROMs, with any variant. Tested and working in I8550L (LATAM / Win).
Disclamier:
Code:
[COLOR="red"]* Include <std_disclaimer.h>
* Your warranty is now void.
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*[/COLOR]
Features:
Added CPU governors: lionheart, smartassv2, interactivex2, wheatley, skywalker, abyssplugv2, asswax, nightmare, virtous, smartmax_eps, superbad, zzmoove, lazy, minmax, scary, smoothass, brazilianwax, dancedance, darkness, smartassh3, hyper, alucard, savagedzen, ondemandx, lulzactive, lulzactivew, conservative and intelliactive.
Tweaked RAM performance.
Downloads:
Click here or go to Downloads tab at the top of the thread.
If something goes wrong with the XDA download server or you simply want to download from somewhere else, I've been approved as developer at AFH. All downloads will also be posted here.
NEW! Ask for features, report bugs, get help with installation, usage and everything else. Join us at Telegram: t.me/somefeak
Bugs:
You tell me.
Bugs marked with a "*" will be fixed in the next release.
XDA:DevDB Information
SomeFeaK Kernel for Samsung Galaxy Win / Quattro, Kernel for the Samsung Galaxy Grand Quattro
Contributors
facuarmo, squid2
Source Code: https://github.com/FacuM/android_kernel_samsung_msm8625/tree/samsung_8625
Kernel Special Features: lots of governors, performance and RAM usage improvements and much more!
Version Information
Status: Stable
Created 2017-06-26
Last Updated 2017-06-25
If some moderator can help me moving this thread to Development area, please do it. I posted here by mistake.
Changelog (v2.50):
Kernel changes:
mm/ram:
* better overall performance.
cpufreq:
* added CPU governors: lionheart, smartassv2, interactivex2, wheatley, skywalker, abyssplugv2, asswax, nightmare, virtous, smartmax_eps, superbad, zzmoove, lazy, minmax, scary, smoothass, brazilianwax, dancedance, darkness, smartassh3, hyper, alucard, savagedzen, ondemandx, lulzactive, lulzactivew, conservative and intelliactive.
Other changes:
None.
Download:
Main link: https://forum.xda-developers.com/devdb/project/dl/?id=25345
Alternative link: https://www.androidfilehost.com/?fid=817550096634781695
MD5: a94421ae4a4aafc388a37880c9919c89
Changelog (v2.70):
Kernel changes:
power:
* disable gentle sleepers.
config:
* swap and KSM support.
block:
* added i/o schedulers: zen, vr and fiops.
Other changes:
None.
Download:
Main link: https://forum.xda-developers.com/devdb/project/dl/?id=25346
Alternative link: https://www.androidfilehost.com/?fid=673368273298967169
MD5: 51ae51fd42fe1d22fca4ffe865eded1e
Changelog (v3.00):
Kernel changes:
fs:
* improved overall performance (ASync FS).
config:
* swap and KSM support.
* EXT4 filesystems optimization.
usb:
* added fast charge support.
mm/ram:
* optimized RAM performance.
cpu:
* undervolted a bit.
gpu:
* overclocked up to 700 MHz.
* force min freq. 500 MHz.
Other changes:
None.
Download:
Main link: https://forum.xda-developers.com/devdb/project/dl/?id=25347
Alternative link: https://www.androidfilehost.com/?fid=961840155545577589
MD5: c8a80857c08f61915e3eeedc826eebb7
how to install it?
muhammadhakimi said:
how to install it?
Click to expand...
Click to collapse
Simply flash over CWM .
nice work bro
Samsung Quattro GT-i8552 pre-July 2014 device
Tried with Carbon ROM by androidlover
1) Wi-Fi got disabled permanently
2) Bluetooth got disabled permanently
3) PC stopped recognising my mobile when connected with / to USB
how about flashing to twrp.?
Very nice work
Your work is pretty unappriciated but I really liked this kernel, but can you put minimum gpu freq around 300mhz I think it's possible to do that cause when I watch some videos it drains faster because it uses the OC Gpu freq
zooperaj said:
Samsung Quattro GT-i8552 pre-July 2014 device
Tried with Carbon ROM by androidlover
1) Wi-Fi got disabled permanently
2) Bluetooth got disabled permanently
3) PC stopped recognising my mobile when connected with / to USB
Click to expand...
Click to collapse
I'm with the same error but I tested on android 5.1.1
Bootloop on Weritos Unofficial CM 13 (6.0.1) ROM Rev 1
Will this kernel work on cm 12.1 by androidlover???
this broke my wifi:
<4>[ 369.903439] c2 cfg80211: Unknown symbol skb_copy_bits (err -22)
<4>[ 369.903506] c2 cfg80211: disagrees about version of symbol skb_put
<4>[ 369.903558] c2 cfg80211: Unknown symbol skb_put (err -22)
<4>[ 369.903634] c2 cfg80211: disagrees about version of symbol consume_skb
<4>[ 369.903684] c2 cfg80211: Unknown symbol consume_skb (err -22)
<4>[ 369.903766] c2 cfg80211: disagrees about version of symbol genl_register_mc_group
<4>[ 369.903821] c2 cfg80211: Unknown symbol genl_register_mc_group (err -22)
<4>[ 369.903908] c2 cfg80211: disagrees about version of symbol genlmsg_put
<4>[ 369.903966] c2 cfg80211: Unknown symbol genlmsg_put (err -22)
<4>[ 369.904049] c2 cfg80211: disagrees about version of symbol genlmsg_multicast_allns
<4>[ 369.904114] c2 cfg80211: Unknown symbol genlmsg_multicast_allns (err -22)
<4>[ 369.904224] c2 cfg80211: disagrees about version of symbol netdev_err
<4>[ 369.905561] c2 cfg80211: Unknown symbol netdev_err (err -22)
<4>[ 369.905644] c2 cfg80211: disagrees about version of symbol pskb_expand_head
<4>[ 369.905711] c2 cfg80211: Unknown symbol pskb_expand_head (err -22)
<4>[ 369.905793] c2 cfg80211: disagrees about version of symbol kfree_skb
<4>[ 369.905859] c2 cfg80211: Unknown symbol kfree_skb (err -22)
<4>[ 369.905961] c2 cfg80211: disagrees about version of symbol netlink_broadcast
<4>[ 369.906028] c2 cfg80211: Unknown symbol netlink_broadcast (err -22)
<4>[ 369.906106] c2 cfg80211: disagrees about version of symbol net_ns_type_operations
<4>[ 369.906186] c2 cfg80211: Unknown symbol net_ns_type_operations (err -22)
<4>[ 369.906269] c2 cfg80211: disagrees about version of symbol __alloc_skb
<4>[ 369.906331] c2 cfg80211: Unknown symbol __alloc_skb (err -22)
<4>[ 369.906424] c2 cfg80211: disagrees about version of symbol __dev_get_by_index

Wetek Play unbrick

Hello everyone,
I own Wetek Play. I've been playing with software update, but it seems that it went into a bootloop. I conected serial monitor and i get following logs:
HHH
BootFrom SPI
ucl decompress
decompress false
/home/alex/uboot-wetek/arch/arm/cpu/aml_meson/common/firmware/loaduboot.cload_uboot0x0000007f⸮EEEE I3000000032940xf3001103;77520EEEE I400000004294_M6_BL1_3431>2534313
TE : 77476
BT : 22:19:13 Jan 15 2016
CPU clock is 1200MHz
wait pll-0x03 target is 0204 now it is 0x00000203
DDR clock is 516MHz with Low Power & 2T mode
DDR training :
DX0DLLCR:40000000
DX0DQTR:ffffffff
DX0DQSTR:3db05001
DX1DLLCR:40000000
DX1DQTR:ffffffff
DX1DQSTR:3db05001
DX2DLLCR:40000000
DX2DQTR:ffffffff
DX2DQSTR:3db05001
DX3DLLCR:40000000
DX3DQTR:ffffffff
DX3DQSTR:3db05001
Stage 00 Result 00000000
Stage 01 Result 00000000
Stage 02 Result 00000000
Stage 03 Result 00000000
DDR init use : 42463 us
HHH
BootFrom SPI
ucl decompress
decompress false
/home/alex/uboot-wetek/arch/arm/cpu/aml_meson/common/firmware/loaduboot.cload_uboot0x0000007f⸮EEEE I3000000032940xf3001103;77520EEEE I400000004294_M6_BL1_3431>2534313
TE : 77476
BT : 22:19:13 Jan 15 2016
CPU clock is 1200MHz
ait pll-0x03 target is 0204 now it is 0x00000203
DDR clock is 516MHz with Low Power & 2T mode
DDR training :
DX0DLLCR:40000000
DX0DQTR:ffffffff
DX0DQSTR:3db05001
DX1DLLCR:40000000
DX1DQTR:ffffffff
DX1DQSTR:3db05001
DX2DLLCR:40000000
DX2DQTR:ffffffff
DX2DQSTR:3db05001
DX3DLLCR:40000000
DX3DQTR:ffffffff
DX3DQSTR:3db05001
Stage 00 Result 00000000
Stage 01 Result 00000000
Stage 02 Result 00000000
Stage 03 Result 00000000
DDR init use : 42464 us
and so on...
The device does not react to "upgrade" button and SD card inserted.
Can anyone help me what should I do to unbrick my Wetek?
Thank you in advance.

Categories

Resources