× Introducing the Orbi 970 Series Mesh System with WiFi 7 technology. For more information visit the NETGEAR Press Room.
Orbi WiFi 7 RBE973
Reply

Netgear A6210 - compiling Linux driver

Kasperczak
Tutor

Netgear A6210 - compiling Linux driver

I recently purchased the Network USB stick and am trying to compile the driver on Linux.  I am running on Linux Mint 19 (Ubuntu 18.04) and trying to follow the thread here:

 

https://community.netgear.com/t5/WiFi-Adapters/A6210-ADAPTER-ON-LINUX-UBUNTU/td-p/1062677

 

I downloaded the driver successfully but am getting an error on running make:

 

$ make
export DBGFLAGS

*** Building driver with debug messages ***

cp -f os/linux/Makefile.6 /home/johnc/src/Netgear-A6210/os/linux/Makefile
make -C /lib/modules/4.18.0-14-generic/build DBGFLAGS=-DDBG SUBDIRS=/home/johnc/src/Netgear-A6210/os/linux modules
make[1]: Entering directory '/usr/src/linux-headers-4.18.0-14-generic'
  CC [M]  /home/johnc/src/Netgear-A6210/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/johnc/src/Netgear-A6210/include/os/rt_linux.h:14,
                 from /home/johnc/src/Netgear-A6210/include/rtmp_os.h:30,
                 from /home/johnc/src/Netgear-A6210/include/rtmp_comm.h:64,
                 from /home/johnc/src/Netgear-A6210/os/linux/../../os/linux/sta_ioctl.c:33:
In function ‘memcpy’,
    inlined from ‘rt_ioctl_iwaplist’ at /home/johnc/src/Netgear-A6210/os/linux/../../os/linux/sta_ioctl.c:549:2:
./include/linux/string.h:341: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:325: recipe for target '/home/johnc/src/Netgear-A6210/os/linux/../../os/linux/sta_ioctl.o' failed
make[2]: *** [/home/johnc/src/Netgear-A6210/os/linux/../../os/linux/sta_ioctl.o] Error 1
Makefile:1534: recipe for target '_module_/home/johnc/src/Netgear-A6210/os/linux' failed
make[1]: *** [_module_/home/johnc/src/Netgear-A6210/os/linux] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.18.0-14-generic'
Makefile:59: recipe for target 'debug' failed
make: *** [debug] Error 2

I am therefore unable to complete compilation. Can anyone help me with this please?

 

 

Model: A6210|AC1200 High Gain Antenna WiFi USB Adapter
Message 1 of 3
Kasperczak
Tutor

Re: Netgear A6210 - compiling Linux driver

I think I have solved this problem by using the driver from here instead:

 

git clone -b port-to-4.15 https://github.com/kaduke/Netgear-A6210.git

 

This version compiled with some warnings but compilation completed successfully. After a 'make install' the A6210 was recognized and functioned correctly at least for a brief test.

 

Model: A6210|AC1200 High Gain Antenna WiFi USB Adapter
Message 2 of 3
laurence_jj
Aspirant

Re: Netgear A6210 - compiling Linux driver

Hi, I still get the same error as reported by the OP. Even following these instructions.

Message 3 of 3
Top Contributors
Discussion stats
  • 2 replies
  • 18177 views
  • 1 kudo
  • 2 in conversation
Announcements

Orbi WiFi 7