FORUMS
Remove All Ads from XDA

[KERNEL] Coconut-Kernel (Lineage 15.1-Oreo - Nethunter Support)

48 posts
Thanks Meter: 51
 
By fredrickz, Member on 21st February 2019, 03:02 AM
Post Reply Email Thread
Coconut Kernel for LineageOS 15.1 - With Nethunter Support

Code:
***I'm not responsible for any problems that might occur flashing this kernel or what you do with the kernel support***
This kernel is only for Lineage-OS 15.1 or ROMs based on it
Since I did not find a kernel for LOS Oreo with USB Wifi drivers, compiled one.
This kernel has been built from the LOS 15.1 source on git with changes adapted for standalone compiling. So i don't know if any ROM feature is broken though i believe stock features should work.
Yes, it supports monitor mode and packet injection.
Drivedroid is also supported by default in the kernel.

How to use USB Wifi Adapters?
Download from attachment and flash the kernel in twrp
Reboot (First boot will be a bit slow)
Plugin the adapter
MAKE SURE THAT USB OTG IS ENABLED IN SETTINGS FOR ANY OTHER LINEAGEOS BASED ROM
Test by issuing the command ifconfig wlan1 up

It's also important to be on latest 5.0.8 firmware (not rom) for this to work.

Troubleshooting
If the above steps don't work for you,
1. Clean install latest oxygen os 5.0.8 from stock recovery by side loading ( this will install latest firmware which is required)
2. Do system, dalvik, cache, data wipe(firmware will be still there)
3. Flash any lineage15.1 based rom or LOS itself and gapps
4. Flash and enable root
5. Flash coconut kernel
6. Install and open terminal and type ifconfig wlan1 up as root to test after plugging in usb card
This is the failsafe method

You can use the usb adapters in any chroot environment(eg LinuxDeploy) - not just nethunter.

To mods - i created a separated thread for people to not flash incorrect zip. if its against the rules, i can merge it.
Source
https://github.com/LineageOS/android...neplus_msm8996
Attached Files
File Type: zip coconut_lineage15.1.zip - [Click for QR Code] (12.86 MB, 156 views)
The Following 5 Users Say Thank You to fredrickz For This Useful Post: [ View ] Gift fredrickz Ad-Free
 
 
21st February 2019, 10:08 AM |#2  
Member
Thanks Meter: 1
 
More
Been looking for this for ages, gonna test now
21st February 2019, 12:01 PM |#3  
Member
Thanks Meter: 1
 
More
Hey can you add the driver for the Atheros AR9271 Chipset?
21st February 2019, 01:36 PM |#4  
OP Member
Thanks Meter: 51
 
More
Quote:
Originally Posted by hairyfred

Hey can you add the driver for the Atheros AR9271 Chipset?

It's added and tested working. Does it not work for you?
The Following User Says Thank You to fredrickz For This Useful Post: [ View ] Gift fredrickz Ad-Free
21st February 2019, 01:40 PM |#5  
Member
Thanks Meter: 1
 
More
Quote:
Originally Posted by fredrickz

It's added and tested working. Does it not work for you?

None of the drivers seem to work, in about phone it says I'm using your kernel so I'm a bit confused
I tried manually moving the file from system/etc/firmware to system/lib/modules and to modprobe it but that doesn't work there either
it's probs a simple mistake I've made, I'm on omni rom 8.1
21st February 2019, 02:14 PM |#6  
OP Member
Thanks Meter: 51
 
More
Quote:
Originally Posted by hairyfred

Hey can you add the driver for the Atheros AR9271 Chipset?

Quote:
Originally Posted by hairyfred

None of the drivers seem to work, in about phone it says I'm using your kernel so I'm a bit confused
I tried manually moving the file from system/etc/firmware to system/lib/modules and to modprobe it but that doesn't work there either
it's probs a simple mistake I've made, I'm on omni rom 8.1

I personally tested it on Lineage OS 15.1
I don't know about omnirom. My kernel has nothing to do with the folder /system/etc/firmware
See the screenshot.
There is no need to load the module as all drivers are built-in.
Post me an output of dmesg | grep htc
Reboot the phone, plugin your WiFi card, open terminal, type su, then type dmesg | grep htc

Also check if otg support is enabled in omnirom. Just plugin a USB flash drive on to the otg cable/adapter and see if the drive shows up. If yes, then otg is enabled, else you need to enable that.
I think otg maybe disabled by default in omnirom. Search otg in settings
Attached Thumbnails
Click image for larger version

Name:	Screenshot_20190221-193853_Termux.jpg
Views:	116
Size:	219.3 KB
ID:	4709737  
21st February 2019, 02:30 PM |#7  
Member
Thanks Meter: 1
 
More
Quote:
Originally Posted by fredrickz

I personally tested it on Lineage OS 15.1
I don't know about omnirom. My kernel has nothing to do with the folder /system/etc/firmware
See the screenshot.
There is no need to load the module as all drivers are built-in.
Post me an output of dmesg | grep htc
Reboot the phone, plugin your WiFi card, open terminal, type su, then type dmesg | grep htc

Also check if otg support is enabled in omnirom. Just plugin a USB flash drive on to the otg cable/adapter and see if the drive shows up. If yes, then otg is enabled, else you need to enable that.

I type it, no output, kernel might be incompatible with my rom :/ even though its lineage based
21st February 2019, 02:36 PM |#8  
OP Member
Thanks Meter: 51
 
More
Quote:
Originally Posted by hairyfred

I type it, no output, kernel might be incompatible with my rom :/ even though its lineage based

Chk the otg settings. Plugin a flash drive and see if it gets detected also type otg in settings and see if theres an option to enable it.
If you enable otg, you should remove and insert the card and test
21st February 2019, 02:38 PM |#9  
Member
Thanks Meter: 1
 
More
Quote:
Originally Posted by fredrickz

Chk the otg settings. Plugin a flash drive and see if it gets detected also type otg in settings and see if theres an option to enable it.
If you enable otg, you should remove and insert the card and test

OTG is detected , it can use usbs etc
21st February 2019, 02:40 PM |#10  
OP Member
Thanks Meter: 51
 
More
Send me a link of the omnirom u use
21st February 2019, 02:46 PM |#11  
Member
Thanks Meter: 1
 
More
Quote:
Originally Posted by fredrickz

Send me a link of the omnirom u use

http://dl.omnirom.org/oneplus3/ latest one
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes