Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to Kernel 4.12 #77

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

genodeftest
Copy link

Untested changes to make the kernel module compile on 4.12.

cfg80211.h was changed in 818a986e4ebacea2020622e48c8bc04b7f500d89
include/linux/netdevice.h was changed in cf124db566e6b036b8bcbe8decbed740bdfac8c6
@Ayaash
Copy link

Ayaash commented Aug 31, 2017

Tested, and working!
Good job and thank you so much!

@Swelio
Copy link

Swelio commented Sep 2, 2017

Tested and working. But having some problems when I start the system with Ac1200 connected on computer. And can't shutdown Ac1200 or all Wifi interfaces are freezed.

Can connect to all networks I want, so it's good.
Good job and thank you very much !

@tbeers13
Copy link

tbeers13 commented Oct 9, 2017

So how would I fix this? I'm having an issue using 'make' with Kali Linux. How would I change these files? sorry, I'm not very knowledgeable about Github

@genodeftest
Copy link
Author

So how would I fix this? I'm having an issue using 'make' with Kali Linux. How would I change these files? sorry, I'm not very knowledgeable about Github

This is not about Github, but about git. To test the changes I made, you need to run git clone https://github.com/genodeftest/Netgear-A6210.git instead of git clone https://github.com/jurobystricky/Netgear-A6210.git, then follow the steps in README.md.

@tbeers13
Copy link

tbeers13 commented Oct 10, 2017

I followed these steps, and couldn't get to the sudo make install because I got hung up right here:

git clone https://github.com/genodeftest/Netgear-A6210.git
cd Netgear-A6210
make

then I get this error, same as last time:

export DBGFLAGS

*** Building driver with debug messages ***

cp -f os/linux/Makefile.6 /root/Netgear-A6210/os/linux/Makefile

make -C /lib/modules/3.8.11/build DBGFLAGS=-DDBG SUBDIRS=/root/Netgear-A6210/os/linux modules

make[1]: *** /lib/modules/3.8.11/build: No such file or directory. Stop.

Makefile:59: recipe for target 'debug' failed

make: *** [debug] Error 2

thank you for the really quick support!! how would I solve this?

@genodeftest
Copy link
Author

@tbeers13: What is your kernel version? Try uname -a and please post the whole output.

It looks like your Linux hasn't been updated in a while, because it looks like you have kernel 3.8.11 installed, which is very old. Please update your Linux distribution before trying this again.

Are you running make as root? Please never do so, compiling any software as root is a security threat. Also, all the other commands (except make install) should never be run as root for your own safety.

@tbeers13
Copy link

Currently running

apt-get update
apt-get upgrade

as root to upgrade to the newest version, as I was in 3.8.11, then will make a non-root user and try the readme.txt again. Be back soon with the outcome! thanks again for all your help :)

@tbeers13
Copy link

tbeers13 commented Oct 17, 2017

Ok, for the past few days, I've been trying to upgrade my kernel, but it just won't update. I've added links to my sources.list and that did nothing.. I'm stuck with 3.8.11 Kali Linux on dual booting on a Samsung Chromebook (armhf, exynos) I've tried multiple Kernel Header Update tutorials, done extensive reading trying to find a solution, and I've just come to dead ends. Any ideas as to how to fix this?

@genodeftest
Copy link
Author

@tbeers13: In case you are really running linux kernel 3.8.11, you are probably using a very old distribution which has not seen any update for years. That kernel version is out of support since 2014 for ubuntu-based distros (see https://en.wikipedia.org/wiki/Linux_kernel for details). You really should not connect your device to any network or any other device at all any more. I strongly encourage you to update to a supported linux distribution immediately. I would not expect this very outdated linux to be able to compile kernel modules for a 4.12.x kernel. Please update your system! Your data is at risk! With your current setup, running this kernel module is not going to work.

@tbeers13
Copy link

I've upgraded to a new laptop and a new version of Kali
Heres the output of uname -a
Linux kali 4.12.0-kali1-amd64 #1 SMP Debian 4.12.6-1kali6 (2017-08-30) x86_64 GNU/Linux

However, It seems as though I'm running into the same problem. I try to run make and this is the response

`export DBGFLAGS

*** Building driver with debug messages ***

cp -f os/linux/Makefile.6 /root/Netgear-A6210/os/linux/Makefile
make -C /lib/modules/4.12.0-kali1-amd64/build DBGFLAGS=-DDBG SUBDIRS=/root/Netgear-A6210/os/linux modules
make[1]: *** /lib/modules/4.12.0-kali1-amd64/build: No such file or directory. Stop.
Makefile:59: recipe for target 'debug' failed
make: *** [debug] Error 2`

Any ideas as to what I'm doing wrong? Thanks for the help!

@darkess78
Copy link

im having a similar problem with my kali. heres the code:

export DBGFLAGS

*** Building driver with debug messages ***

cp -f os/linux/Makefile.6 /root/Netgear-A6210/os/linux/Makefile
make -C /lib/modules/4.12.0-kali1-amd64/build DBGFLAGS=-DDBG SUBDIRS=/root/Netgear-A6210/os/linux modules
make[1]: Entering directory '/usr/src/linux-headers-4.12.0-kali1-amd64'
CC [M] /root/Netgear-A6210/os/linux/../../os/linux/cfg80211/cfg80211.o
/root/Netgear-A6210/os/linux/../../os/linux/cfg80211/cfg80211.c:2385:25: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
.change_virtual_intf = CFG80211_OpsVirtualInfChg,
^~~~~~~~~~~~~~~~~~~~~~~~~
/root/Netgear-A6210/os/linux/../../os/linux/cfg80211/cfg80211.c:2385:25: note: (near initialization for ‘CFG80211_Ops.change_virtual_intf’)
/root/Netgear-A6210/os/linux/../../os/linux/cfg80211/cfg80211.c:2386:22: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
.add_virtual_intf = CFG80211_OpsVirtualInfAdd,
^~~~~~~~~~~~~~~~~~~~~~~~~
/root/Netgear-A6210/os/linux/../../os/linux/cfg80211/cfg80211.c:2386:22: note: (near initialization for ‘CFG80211_Ops.add_virtual_intf’)
cc1: some warnings being treated as errors
/usr/src/linux-headers-4.12.0-kali1-common/scripts/Makefile.build:307: recipe for target '/root/Netgear-A6210/os/linux/../../os/linux/cfg80211/cfg80211.o' failed
make[4]: *** [/root/Netgear-A6210/os/linux/../../os/linux/cfg80211/cfg80211.o] Error 1
/usr/src/linux-headers-4.12.0-kali1-common/Makefile:1532: recipe for target 'module/root/Netgear-A6210/os/linux' failed
make[3]: *** [module/root/Netgear-A6210/os/linux] Error 2
Makefile:152: recipe for target 'sub-make' failed
make[2]: *** [sub-make] Error 2
Makefile:8: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.12.0-kali1-amd64'
Makefile:59: recipe for target 'debug' failed
make: *** [debug] Error 2
root@kali:~/Netgear-A6210# uname -a
Linux kali 4.12.0-kali1-amd64 #1 SMP Debian 4.12.6-1kali6 (2017-08-30) x86_64 GNU/Linux

im completely new to linux but im trying a pen test course and need to use a wifi card and i had the Netgear A6210 and thought this might help cause it wasnt working before.

@genodeftest
Copy link
Author

@tbeers13 : Please try the steps suggested by @Tuxprogrammer in #75 (comment). If your issue still persist, please do not post any more under this pull request because your issue is entirely unrelated.

@genodeftest
Copy link
Author

@darkess78 : It looks like you don't have my patches applied. Please check out my port-to-4.12 branch. Anyway, you ran make as root and thus compiled code as root which is a very bad idea. For your own safety, please make sure to never do this again.

@PranavMadanahalli
Copy link

I've upgraded to a new laptop and a new version of Kali
Heres the output of uname -a
Linux kali 4.12.0-kali1-amd64 #1 SMP Debian 4.12.6-1kali6 (2017-08-30) x86_64 GNU/Linux

However, It seems as though I'm running into the same problem. I try to run make and this is the response

`export DBGFLAGS

*** Building driver with debug messages ***

cp -f os/linux/Makefile.6 /root/Netgear-A6210/os/linux/Makefile
make -C /lib/modules/4.12.0-kali1-amd64/build DBGFLAGS=-DDBG SUBDIRS=/root/Netgear-A6210/os/linux modules
make[1]: *** /lib/modules/4.12.0-kali1-amd64/build: No such file or directory. Stop.
Makefile:59: recipe for target 'debug' failed
make: *** [debug] Error 2`

Any ideas as to what I'm doing wrong? Thanks for the help!

I have the same issue as tbeers! Anyone find a solution?!

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

Successfully merging this pull request may close these issues.

6 participants