Skip to content
This repository has been archived by the owner on Apr 25, 2019. It is now read-only.

[WISHLIST] Porting NetHunter to Huawei Nexus 6P - Nougat (7.1.1) #706

Closed
eliasps opened this issue Dec 15, 2016 · 72 comments
Closed

[WISHLIST] Porting NetHunter to Huawei Nexus 6P - Nougat (7.1.1) #706

eliasps opened this issue Dec 15, 2016 · 72 comments

Comments

@eliasps
Copy link

eliasps commented Dec 15, 2016

Huawei Nexus 6P

Nougat

Issue: Porting NetHunter to Huawei Nexus 6P - Nougat (7.1.1)

This is a "feature request", more like a wishlist item to consider once more important issues have been resolved. It's about making an official image of NetHunter for Nougat 7.1.1 on Huawei Nexus 6P (angler) to install and work out of the box.

Thank you.

@ghost
Copy link

ghost commented Dec 20, 2016

true.

@AutinMitra
Copy link

@eliasps I'll try to build a 7.1.1 image, but I don't have a 6P so I will need someone to test the kernel.

@eliasps
Copy link
Author

eliasps commented Dec 22, 2016

@AutinDroid I can test the kernel on my 6P. Contact me when you want to to get it started! Thank you!

@thnkyle
Copy link

thnkyle commented Jan 8, 2017

I can test as well and looking forward to getting it working.

@slick97477
Copy link

slick97477 commented Jan 8, 2017 via email

@ghost
Copy link

ghost commented Jan 8, 2017

I'd love to test it too!

@jcadduono
Copy link
Collaborator

jcadduono commented Jan 8, 2017

and now YOU TOO can have elementalx 4.04 with NetHunter support for 5 easy payments of $19.95

ok, it's coming, i'll need people to show up in #nethunter on freenode irc for testing.
you may need to register (/ns help register)

@jcadduono
Copy link
Collaborator

jcadduono commented Jan 8, 2017

wish granted: https://build.nethunter.com/test-builds/huawei/kernel-nethunter-angler-nougat-test1.zip

let me know how it goes

i would also appreciate a log of flashing it in twrp, so before you reboot (but after flashing) run: adb pull /tmp/recovery.log

if it doesn't boot, hopefully you can do adb pull /sys/fs/pstore in TWRP and upload the logs for me to gdrive or email (jc@add_ono.com, fill in the blank)

@dchrostowski
Copy link

Thank you, sir. Here's my TWRP log, cut down to begin at the sideload:

http://streetscrape.com/nethunter_flash.log

Haven't booted yet, will report back with results.

@dchrostowski
Copy link

dchrostowski commented Jan 8, 2017

Bootloop as anticipated from the log. No harm done, can boot back into recovery and fix. Try again.

Update:
Easily fixed by reflashing previous kernel.

@jcadduono
Copy link
Collaborator

jcadduono commented Jan 8, 2017

and logs? (really i cant do anything if you don't get me boot logs of the kernel)

here is another to test as well... less things enabled: https://build.nethunter.com/test-builds/huawei/kernel-nethunter-angler-nougat-test2.zip

@thnkyle
Copy link

thnkyle commented Jan 8, 2017

I also got the bootlop and getting logs for you. I'll upload soon and try the test2 kernel

@thnkyle
Copy link

thnkyle commented Jan 8, 2017

test2 kernel booted. Testing now.

@jcadduono
Copy link
Collaborator

test2 is just stock configuration making sure it boots with no changes

although it does have HID patch in it so go ahead and test that

@dchrostowski
Copy link

Logs were included in my first post. See above. Gonna try out the second one now and I'll post the logs at http://streetscrape.com/nethunter_flash2.log

@jcadduono
Copy link
Collaborator

jcadduono commented Jan 8, 2017

i don't see the logs, all i see is a recovery log (which looks fine)

@dchrostowski
Copy link

dchrostowski commented Jan 8, 2017

Oh I thought you only wanted the flash logs. I'll reflash the first kernel. You just want boot logs or should I dump my entire logcat to a file?

@jcadduono
Copy link
Collaborator

logcat doesn't help, i only want kernel log (dmesg if it boots far enough to get adb, /sys/fs/pstore/console-ramoops from twrp directly after boot fail if it doesn't get far enough)

@dchrostowski
Copy link

Hope this helps. I'll move on to number 2 and update the page. https://streetscrape.com/nhkt/

@jcadduono
Copy link
Collaborator

hmm ok im going to enable debug features so the console-ramoops has more info to go on

@dchrostowski
Copy link

Logs for test 2 are up.

@jcadduono
Copy link
Collaborator

ok need console-ramoops for https://build.nethunter.com/test-builds/huawei/kernel-nethunter-angler-nougat-test3.zip (same as test1, but with debug enabled to i can see trace)

@dchrostowski
Copy link

Flashing test3 now.

@dchrostowski
Copy link

logs are up.

@jcadduono
Copy link
Collaborator

Weird...Something broken in tracer

@dchrostowski
Copy link

I'm gonna re-check I put everything in the right place. I was being very careful, but doesn't hurt to triple check.

@dchrostowski
Copy link

I exported dmesg and console-ramoops again, diffed them against what's been uploaded. console-ramoops files are identical, dmesg files are identical except most recent export has a few more lines tacked on to the end. I'd say that's expected. BTW I'm in California right now, nasty storm outside, trees are falling, roads are flooding, mudslides are happening, power is flickering. I may abruptly stop responding.

@AutinMitra
Copy link

@dchrostowski I too have created a test kernel. Will be uploading soon. TIP: In that storm of yours, remember that wifi is the meaning of life... (hopefully not)

@jcadduono
Copy link
Collaborator

https://build.nethunter.com/test-builds/huawei/kernel-nethunter-angler-nougat-test4.zip k console-ramoops from this, this time i think i have fixed function tracer so should get useful output...

@dchrostowski
Copy link

As soon as I said it, boom - power goes out. I'm back on the grid and thankfully didn't drown in the "atmospheric river". Test 4 logs are up. https://streetscrape.com/nhkt/

@jcadduono
Copy link
Collaborator

consider it officially supported and good to go, have fun!

@D13man
Copy link

D13man commented Jan 10, 2017

Aw, I'm late to the party, oh well.
So, is it fully supported then? Even DriveDroid and everything? o.o

@jcadduono
Copy link
Collaborator

i believe so, first build is up @ https://build.nethunter.com/nightly/3.15.4-20170110-0950/

@ghost
Copy link

ghost commented Jan 11, 2017

I just updated my nexus 6p from 6.1 to 7.1.1, installed the above kernel after installing nethunter-generic-armhf-kalifs-full-rolling-3.15.4-20170110-0950.zip. When I plug in my otg cable the phone hangs. Whenever I plug the OTG my phone hangs until it is pulled out then it reboots.

I don't think nougat is completely supported yet.

@ghost
Copy link

ghost commented Jan 11, 2017

When I plug in the OTG without any wifi adapter plugged (I have TL-WN722N and EDIMAX EW-7811Un) it works but when I plug in any of the wifi adapters the phone reboots and gets into a boot loop until I remove the wifi adapter. When a usb to ethernet adapter is plugged in the phone works as it should and doesn't reboot.

The wifi sub system of the nougat build isn't functioning well.

@jcadduono
Copy link
Collaborator

jcadduono commented Jan 11, 2017

6P is arm64 not armhf, but anyway, you'll need to provide logs or i can't do anything for you

@AutinMitra
Copy link

@jcadduono Cause the 6P doesn't require any kernel patches for nexmon, can you just make a nexmon kernel with the current kernel?

@dchrostowski
Copy link

I could not get F2FS working with the kernel. Will post logs soon - it's been a busy week.

@jcadduono jcadduono reopened this Jan 12, 2017
@ghost
Copy link

ghost commented Jan 13, 2017

@jcadduono I downloaded and flashed nethunter-generic-arm64-kalifs-full-rolling-3.15.4-20170110-1420.zip and the same thing happened. I also flashed nethunter-generic-arm64-kalifs-minimal-rolling-3.15.4-20170110-1420.zip to no avail. I noticed that inside the above zip files there is an archive file: kalifs-armhf-full.tar.xz and kalifs-armhf-minimal.tar.xz respectively. I wonder why an armhf file is inside a file that is supposedly for arm64. What logs do you need @jcadduono for you to investigate further. Thanks.

@jcadduono
Copy link
Collaborator

dmesg from OS / /sys/fs/pstore/console-ramoops from TWRP after crash/reboot happens

@ghost
Copy link

ghost commented Jan 13, 2017

I have sent an email with the logs attached to jc@add_ono.com (your correct email).

@jcadduono
Copy link
Collaborator

https://build.nethunter.com/test-builds/huawei/kernel-nethunter-angler-nougat-debug-test1.zip
use this build for gathering log, i have a feeling i know where the real issue is but would like better traces

@ghost
Copy link

ghost commented Jan 14, 2017 via email

@jcadduono
Copy link
Collaborator

please upload the logs somewhere, you can't just post a full log like that on github issue comments it will get cut and provide no useful information

@ghost
Copy link

ghost commented Jan 14, 2017

So sorry about that. I didn't know sending it to your email would also copy it here. I have uploaded them to google drive. Thanks.

https://drive.google.com/drive/folders/0B5sZJlCToe6QRFVfLTFLN2dyR0E?usp=sharing

@jcadduono
Copy link
Collaborator

thanks, i'll go through that trace and add null checks!

@jcadduono
Copy link
Collaborator

ok @Anietie how about logs from this one now:
https://build.nethunter.com/test-builds/huawei/kernel-nethunter-angler-nougat-debug-test2.zip

i added some additional mac80211 fixes and rearranged some bad checks in bcmdhd driver (stupid oem drivers)

@ghost
Copy link

ghost commented Jan 15, 2017

Logs have been uploaded to google drive
https://drive.google.com/drive/folders/0B5sZJlCToe6QRFVfLTFLN2dyR0E

  1. I copied twrp recovery log immediately after installing kernel with twrp
  2. Copied dmesg after reboot
  3. Also copied /sys/fs/pstore

@jcadduono
Copy link
Collaborator

i wonder what the negative effects of just removing the notifier call entirely from bcmdhd would be, because i fixed any possible null pointer deref in that function and that doesn't make any sense at all

@jcadduono
Copy link
Collaborator

https://build.nethunter.com/test-builds/huawei/kernel-nethunter-angler-nougat-debug-test3.zip
@Anietie alright, see what happens with this build. might lose internal wifi, might not, not sure lol

@ghost
Copy link

ghost commented Jan 15, 2017

@jcadduono thanks for all the effort. My phone no longer freezes when the wifi is plugged in. I have uploaded the logs

  1. I copied twrp recovery log immediately after installing kernel with twrp
  2. Copied dmesg after reboot but before wifi is plugged in
  3. Copied dmesg after reboot and after wifi is plugged in
  4. Also copied console-ramoops-b4-reboot-after-kernel-install
  5. Also copied console-ramoops-after-reboot-wifi-plugged-in

I appreciate the effort sir.
Please can you point me to a guide on how to recompile the kernel so I can install the driver for my EDIMAX EW-7811Un usb adapter. And again why doesn't lsmod

Much appreciated.

@jcadduono
Copy link
Collaborator

looks fine to me, appears to be working just fine according to logs

lsmod is the wrong command, you want lsusb
lsmod is for listing modules, and all wifi drivers are built into the kernel

ip link set wlan1 up brings your device online
you need to set monitor mode before doing that command if you want to use monitor mode

otherwise, just use the enable monitor mode command from nethunter app

@eliasps
Copy link
Author

eliasps commented Jan 16, 2017

Seems to be working fine on my end too. Created a thread about it on XDA, in case more people want to help with this: https://forum.xda-developers.com/nexus-6p/general/kernel-kali-nethunter-huawei-nexus-6p-t3539084

Thanks!

@jcadduono
Copy link
Collaborator

uploading 1.1 will be in next nightly thanks

@SUbconsciousNcrytptions

I have a LG Aristo two MSM board arm7 V processing chip and I was just wondering which kernel or which nethunter I would need to run on my 7.1.2 LG Aristo 2

@0E800
Copy link

0E800 commented Jun 25, 2018

Try to find the source for the kernel of your device.
It needs to be modified and you can't modify something if you don't have the source .

Try to find the source for your ROM build as well.

@Muslim90
Copy link

Muslim90 commented Feb 2, 2019

Help bro build a Nethunter core for the Redmi note 6 pro model

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants