[SOLVED]Netgear 6210 wifi adapter not installing

I just installed ubuntu on both my laptop and gaming desktop. my laptop is working fine but I have a netgear wifi card on my pc. I have tried following some tutorials online but have come up empty. there is a github page https://github.com/jurobystricky/Netgear-A6210 where someone has made a driver. I tried copying and pasting the commands in terminal but I just get command not found. How would I go about installing this driver? is there anything I need to type into the terminal berfore copying and pasting?

update now it will say
E: Unable to locate package clone
E: Unable to locate package https://github.com/jurobystricky
E: Couldn’t find any package by glob ‘https://github.com/jurobystricky
E: Couldn’t find any package by regex ‘https://github.com/jurobystricky

Please make sure git is installed on your system. Please run these commands:

sudo apt-get update
sudo apt-get install git

The first command updates the package list on your computer, the second one will install the program git, which you will use to install the driver.

After that is done, run the commands from the github again, one by one. Make sure not to copy the “$” at the start of the command.

Hope this helps. Please report back :slight_smile:

Thanks man. It just installed git and most of the commands worked but with exception of the last line sudo make install

What did it say? Any error messages? According to the github issues page it should work fine on 18.04.

make -C /home/kevin/Netgear-A6210/os/linux -f Makefile.6 install
make[1]: Entering directory ‘/home/kevin/Netgear-A6210/os/linux’
rm -rf /etc/Wireless/RT2870STA
mkdir -pv /etc/Wireless/RT2870STA
mkdir: created directory ‘/etc/Wireless/RT2870STA’
cp /home/kevin/Netgear-A6210/conf/RT2870STA.dat /etc/Wireless/RT2870STA/.
install -d /lib/modules/4.15.0-29-generic/kernel/drivers/net/wireless/
install -m 644 -c mt7662u_sta.ko /lib/modules/4.15.0-29-generic/kernel/drivers/net/wireless/
install: cannot stat ‘mt7662u_sta.ko’: No such file or directory
Makefile.6:721: recipe for target ‘install’ failed
make[1]: *** [install] Error 1
make[1]: Leaving directory ‘/home/kevin/Netgear-A6210/os/linux’
Makefile:76: recipe for target ‘install’ failed
make: *** [install] Error 2

I think i know what went wrong. We are using the wrong git repo. The update for kernel 4.15 and up is at https://github.com/kaduke/Netgear-A6210

Please run the following commands (explanations below):

rm -rf ~/Netgear-A6210
git clone https://github.com/kaduke/Netgear-A6210
cd Netgear-A6210
make
sudo make install

The first command will delete the “Netgear-A6210” folder in your home directory
The second command clones the correct git repo into your home directory
The third command changes directory into the cloned repo
The fourth command compiles the code
The fifth installs the driver

Please report back.

EDIT: Removed broken commands.

1 Like

it still shows the same error message when i type in make


*** Building driver with debug messages ***

cp -f os/linux/Makefile.6 /home/kevin/Netgear-A6210/os/linux/Makefile
make -C /lib/modules/4.15.0-29-generic/build DBGFLAGS=-DDBG SUBDIRS=/home/kevin/Netgear-A6210/os/linux modules
make[1]: Entering directory '/usr/src/linux-headers-4.15.0-29-generic'
arch/x86/Makefile:156: CONFIG_X86_X32 enabled but no binutils support
Makefile:976: "Cannot use CONFIG_STACK_VALIDATION=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel"
  CC [M]  /home/kevin/Netgear-A6210/os/linux/../../sta/assoc.o
/bin/sh: 1: gcc: not found
scripts/Makefile.build:332: recipe for target '/home/kevin/Netgear-A6210/os/linux/../../sta/assoc.o' failed
make[2]: *** [/home/kevin/Netgear-A6210/os/linux/../../sta/assoc.o] Error 127
Makefile:1552: recipe for target '_module_/home/kevin/Netgear-A6210/os/linux' failed
make[1]: *** [_module_/home/kevin/Netgear-A6210/os/linux] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.15.0-29-generic'
Makefile:59: recipe for target 'debug' failed
make: *** [debug] Error 2

Wait for the other guy to respond. But I think you need these packages.

2 Likes

Cleaned up your posts code by using three of these ```

1 Like

Thanks I installed the first package, but the other two didnt install. said it was unable to locate package

1 Like

Sry for the long wait. Did some more digging, finally figured it out.

make clean
cd ..
rm -rf ~/Netgear-A6210
sudo apt-get install libelf-dev gcc
git clone -b port-to-4.15 https://github.com/kaduke/Netgear-A6210
cd Netgear-A6210
make
sudo make install

First, we clean up the mess we made and remove the directory… again.
Next we install the missing dependency libelf-dev (the other two are just other names for the same thing) and gcc (GNU compiler collection).
After that we clone the git repo, again, but this time we clone the correct branch (-b option).
Now we can finally build and install the driver. Yay.
Don’t bother with the DKMS stuff mentioned above. It’s broken.

Please report back.

PS: Thanks @Goalkeeper :smile:

2 Likes

sorry, that didnt work either. Im probably going to have to find another wifi adapter.

That’s strange, it worked flawlessly in my VM just now. What does it say now?

‘’'export DBGFLAGS

*** Building driver with debug messages ***

cp -f os/linux/Makefile.6 /home/kevin/Netgear-A6210-master/os/linux/Makefile
make -C /lib/modules/4.15.0-33-generic/build DBGFLAGS=-DDBG SUBDIRS=/home/kevin/Netgear-A6210-master/os/linux modules
make[1]: Entering directory ‘/usr/src/linux-headers-4.15.0-33-generic’
CC [M] /home/kevin/Netgear-A6210-master/os/linux/…/…/sta/assoc.o
CC [M] /home/kevin/Netgear-A6210-master/os/linux/…/…/sta/auth.o
CC [M] /home/kevin/Netgear-A6210-master/os/linux/…/…/sta/auth_rsp.o
CC [M] /home/kevin/Netgear-A6210-master/os/linux/…/…/sta/sync.o
CC [M] /home/kevin/Netgear-A6210-master/os/linux/…/…/sta/sanity.o
CC [M] /home/kevin/Netgear-A6210-master/os/linux/…/…/sta/rtmp_data.o
CC [M] /home/kevin/Netgear-A6210-master/os/linux/…/…/sta/connect.o
CC [M] /home/kevin/Netgear-A6210-master/os/linux/…/…/sta/wpa.o
CC [M] /home/kevin/Netgear-A6210-master/os/linux/…/…/sta/sta_cfg.o
CC [M] /home/kevin/Netgear-A6210-master/os/linux/…/…/sta/sta.o
CC [M] /home/kevin/Netgear-A6210-master/os/linux/…/…/os/linux/sta_ioctl.o
In file included from ./include/linux/bitmap.h:9:0,
from ./include/linux/cpumask.h:12,
from ./arch/x86/include/asm/cpumask.h:5,
from ./arch/x86/include/asm/msr.h:11,
from ./arch/x86/include/asm/processor.h:21,
from ./arch/x86/include/asm/cpufeature.h:5,
from ./arch/x86/include/asm/thread_info.h:53,
from ./include/linux/thread_info.h:38,
from ./arch/x86/include/asm/preempt.h:7,
from ./include/linux/preempt.h:81,
from ./include/linux/spinlock.h:51,
from ./include/linux/seqlock.h:36,
from ./include/linux/time.h:6,
from ./include/linux/stat.h:19,
from ./include/linux/module.h:10,
from /home/kevin/Netgear-A6210-master/include/os/rt_linux.h:14,
from /home/kevin/Netgear-A6210-master/include/rtmp_os.h:30,
from /home/kevin/Netgear-A6210-master/include/rtmp_comm.h:64,
from /home/kevin/Netgear-A6210-master/os/linux/…/…/os/linux/sta_ioctl.c:33:
In function ‘memcpy’,
inlined from ‘rt_ioctl_iwaplist’ at /home/kevin/Netgear-A6210-master/os/linux/…/…/os/linux/sta_ioctl.c:549:2:
./include/linux/string.h:340:4: error: call to ‘__read_overflow2’ declared with attribute error: detected read beyond size of object passed as 2nd parameter
__read_overflow2();
^~~~~~~~~~~~~~~~~~
scripts/Makefile.build:332: recipe for target ‘/home/kevin/Netgear-A6210-master/os/linux/…/…/os/linux/sta_ioctl.o’ failed
make[2]: *** [/home/kevin/Netgear-A6210-master/os/linux/…/…/os/linux/sta_ioctl.o] Error 1
Makefile:1552: recipe for target ‘module/home/kevin/Netgear-A6210-master/os/linux’ failed
make[1]: *** [module/home/kevin/Netgear-A6210-master/os/linux] Error 2
make[1]: Leaving directory ‘/usr/src/linux-headers-4.15.0-33-generic’
Makefile:59: recipe for target ‘debug’ failed
make: *** [debug] Error 2

Do a make clean and then reboot the machine and try again.

well I think it installed… It didnt pop up with anything

Cool. Unplug your wifi dongle and plug it back in and it should now work.

so it looks like it did install, but im not seeing any networks

Reboot. Check for networks. If you see no networks, unplug the dongle and plug it back in. If you still see no networks, run sudo service network-manager restart to restart your network manager.

1 Like