Coder Social home page Coder Social logo

agerwick / rt28xx-rt539x-linux-driver Goto Github PK

View Code? Open in Web Editor NEW
23.0 23.0 9.0 1.09 MB

2011_1007_RT5390_RT5392_Linux_STA_V2.5.0.3_DPO updated to work with Linux kernel 3.8 and above. Tested with Ubuntu 14.04 and 16.04

License: GNU General Public License v2.0

C 95.90% Objective-C 2.81% Shell 0.04% Makefile 0.94% Roff 0.30%

rt28xx-rt539x-linux-driver's People

Contributors

agerwick avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

rt28xx-rt539x-linux-driver's Issues

Driver not working for me - Ubuntu 16.04 LTS on Linux Kernel 4.4.0-197 x64

It compiles and installs fine. There are a few seemingly harmless compile warnings, but otherwise it looks good... The only warning that potentially concerns me is:

WARNING: modpost: missing MODULE_LICENSE() in /home/chris/RT28XX-RT539X-Linux-driver-master/os/linux/rt5390sta.o

I assume that's normal?

After following all the instructions to install it into the kernel without restarting the computer:

sudo depmod -a
sudo modprobe -rfv rt2800pci
sudo modprobe -v rt5390sta

Nothing! There simply are no wireless adapters available (link not ready). The driver therefore seems to just refuse to load for my card, almost like it was the wrong driver. Same thing if I add the blacklists and re-boot, there is no wireless network card visible.

My full wireless info report:
(using default rt2800pci) here: https://termbin.com/m00z
(using default rt5390sta) here: https://termbin.com/54ucb

lspci info:

2f:00.0 Network controller [0280]: Ralink corp. RT5392 PCIe Wireless Network Adapter [1814:5392]
	Subsystem: Ralink corp. RT5392 PCIe Wireless Network Adapter [1814:f053]
	Kernel modules: rt2800pci, rt5390sta

This is the same behavior as when I tried the rt3290sta from @pkeeper here on GitHub. MediaTek only has the Windows driver posted for this card. I just don't understand what the problem could be! Everything indicates these drivers should work with my card, but they don't! The problem with the rt2800pci driver is the wifi connection is very slow, and that is not the behavior with this same hardware under the official Windows drivers.

Any ideas how to figure out what's wrong? Or what else to try to make it work? Really disappointing.

Cannot install on Debian 11

root@calleva:/home/rwb/RT28XX-RT539X-Linux-driver# make
make -C tools
make[1]: Entering directory '/home/rwb/RT28XX-RT539X-Linux-driver/tools'
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory '/home/rwb/RT28XX-RT539X-Linux-driver/tools'
/home/rwb/RT28XX-RT539X-Linux-driver/tools/bin2h
cp -f os/linux/Makefile.6 /home/rwb/RT28XX-RT539X-Linux-driver/os/linux/Makefile
make -C /lib/modules/5.10.0-22-amd64/build SUBDIRS=/home/rwb/RT28XX-RT539X-Linux-driver/os/linux modules
make[1]: Entering directory '/usr/src/linux-headers-5.10.0-22-amd64'
/usr/src/linux-headers-5.10.0-22-common/Makefile:232: =============== ERROR ==============
/usr/src/linux-headers-5.10.0-22-common/Makefile:233: 'SUBDIRS' was removed in Linux 5.3
/usr/src/linux-headers-5.10.0-22-common/Makefile:234: Use 'M=' or 'KBUILD_EXTMOD=' instead
/usr/src/linux-headers-5.10.0-22-common/Makefile:235: ====================================
/usr/src/linux-headers-5.10.0-22-common/Makefile:236: *** ..  Stop.
make[1]: *** [/usr/src/linux-headers-5.10.0-22-common/Makefile:192: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.10.0-22-amd64'
make: *** [Makefile:373: LINUX] Error 2
root@calleva:/home/rwb/RT28XX-RT539X-Linux-driver#

Error at compilation

Hi @agerwick

There is an error with the files. This output is produced on :
Linux GPC 4.15.0-39-generic #42-Ubuntu SMP Tue Oct 23 15:48:01 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

In file included from ./include/linux/bitmap.h:9,
                 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 /tmp/RT28XX-RT539X-Linux-driver/include/os/rt_linux.h:31,
                 from /tmp/RT28XX-RT539X-Linux-driver/include/rtmp_os.h:44,
                 from /tmp/RT28XX-RT539X-Linux-driver/include/rtmp_comm.h:69,
                 from /tmp/RT28XX-RT539X-Linux-driver/os/linux/../../os/linux/sta_ioctl.c:30:
In function ‘memcpy’,
    inlined from ‘rt_ioctl_iwaplist’ at /tmp/RT28XX-RT539X-Linux-driver/os/linux/../../os/linux/sta_ioctl.c:694: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 '/tmp/RT28XX-RT539X-Linux-driver/os/linux/../../os/linux/sta_ioctl.o' failed
make[2]: *** [/tmp/RT28XX-RT539X-Linux-driver/os/linux/../../os/linux/sta_ioctl.o] Error 1
Makefile:1551: recipe for target '_module_/tmp/RT28XX-RT539X-Linux-driver/os/linux' failed
make[1]: *** [_module_/tmp/RT28XX-RT539X-Linux-driver/os/linux] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.15.0-39-generic'
Makefile:372: recipe for target 'LINUX' failed
make: *** [LINUX] Error 2

It just doesn't work on my laptop

Running Ubuntu 14.04LTS on an HP 2000-bl69wh, and it just doesn't work at all. Still sitting on my LAN network, would prefer to be WAN for portability.

depmod: ERROR: Bad version passed rt5390sta

After creating the missing folder from the previous issue I managed to compile and install the driver.
But now I have another issue:
$ sudo depmod rt5390sta
depmod: ERROR: Bad version passed rt5390sta

$ modinfo rt5390sta
filename: /lib/modules/4.4.2-2-rt7-ARCH/kernel/drivers/net/wireless/rt5390sta.ko
version: 2.6.0.0
srcversion: 95F69F45628F41F1E10506E
alias: pci:v00001186d00003C05sv_sd_bc_sc_i*
alias: pci:v00001814d00005362sv_sd_bc_sc_i*
alias: pci:v00001814d00005392sv_sd_bc_sc_i*
alias: pci:v00001814d0000539Fsv_sd_bc_sc_i*
alias: pci:v00001814d00005390sv_sd_bc_sc_i*
alias: pci:v00001814d00003390sv_sd_bc_sc_i*
alias: pci:v00001814d00003092sv_sd_bc_sc_i*
alias: pci:v00001814d00003091sv_sd_bc_sc_i*
alias: pci:v00001814d00003090sv_sd_bc_sc_i*
depends:
vermagic: 4.4.2-2-rt7-ARCH SMP preempt mod_unload modversions ARMv7 p2v8
parm: mac:rt28xx: wireless mac addr (charp)

$ uname -a
Linux udoo-quad 4.4.2-2-rt7-ARCH #1 SMP PREEMPT RT Fri Feb 26 00:58:50 UTC 2016 armv7l GNU/Linux

My gcc version:
gcc version 5.3.0 (GCC)

Error building the drivers Ubuntu 16.04

Not exactly sure what all this means but I can't build the driver. Help would be much appriciated.

/home/carsen/RT28XX-RT539X-Linux-driver/os/linux/../../sta/sta_cfg.c: In function ‘RTMPIoctlShow’:
/home/carsen/RT28XX-RT539X-Linux-driver/os/linux/../../sta/sta_cfg.c:5041:85: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
             snprintf(extra, size, "Driver version-%s, %s %s\n", STA_DRIVER_VERSION, __DATE__, __TIME__ );
                                                                                     ^
/home/carsen/RT28XX-RT539X-Linux-driver/os/linux/../../sta/sta_cfg.c:5041:95: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
             snprintf(extra, size, "Driver version-%s, %s %s\n", STA_DRIVER_VERSION, __DATE__, __TIME__ );
                                                                                               ^
cc1: some warnings being treated as errors
scripts/Makefile.build:258: recipe for target '/home/carsen/RT28XX-RT539X-Linux-driver/os/linux/../../sta/sta_cfg.o' failed
make[2]: *** [/home/carsen/RT28XX-RT539X-Linux-driver/os/linux/../../sta/sta_cfg.o] Error 1
Makefile:1396: recipe for target '_module_/home/carsen/RT28XX-RT539X-Linux-driver/os/linux' failed
make[1]: *** [_module_/home/carsen/RT28XX-RT539X-Linux-driver/os/linux] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.4.0-21-generic'
Makefile:372: recipe for target 'LINUX' failed
make: *** [LINUX] Error 2

Crash

I try your solution and I restart my computer and now my Ubuntu 14.04 totally crash when I start any application (Mozilla, Search, ...).

I have to pull the power button to shutdown ...

Any solution ?

Compile error "cp: cannot create regular file '/tftpboot': Permission denied"

I'm having this compile error after doing make:
cp: cannot create regular file '/tftpboot': Permission denied
I'm compiling this in arch linux, in Makefile:
PLATFORM = PC
I'm compiling with a normal user, of course.
It looks like make is copying a file into /tftpboot folder, is it normal? Looking inside Makefile I see it in lots of places... I don't have this folder in my file system.
So, two questions:

  1. why make is copying files? They should be copied only with make install
  2. why is it using this folder named /tftpboot ?

Make fails on Gentoo

output of sudo make

make -C tools
make[1]: Entering directory '/home/***/rawireless/RT28XX-RT539X-Linux-driver/tools'
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory '/home/***/rawireless/RT28XX-RT539X-Linux-driver/tools'
/home/***/rawireless/RT28XX-RT539X-Linux-driver/tools/bin2h
cp -f os/linux/Makefile.6 /home/***/rawireless/RT28XX-RT539X-Linux-driver/os/linux/Makefile
make -C /lib/modules/3.17.7-hardened-r1/build SUBDIRS=/home/***/rawireless/RT28XX-RT539X-Linux-driver/os/linux modules
make[1]: Entering directory '/usr/src/linux-3.17.7-hardened-r1'
  CC [M]  /home/***/rawireless/RT28XX-RT539X-Linux-driver/os/linux/../../common/crypt_md5.o
In file included from /home/***/rawireless/RT28XX-RT539X-Linux-driver/include/rt_config.h:77:0,
                 from /home/***/rawireless/RT28XX-RT539X-Linux-driver/os/linux/../../common/crypt_md5.c:28:
/home/***/rawireless/RT28XX-RT539X-Linux-driver/include/rt_os_net.h: In function ‘VIRTUAL_IF_UP’:
/home/***/rawireless/RT28XX-RT539X-Linux-driver/include/rt_os_net.h:294:2: error: invalid initializer
  RT_CMD_INF_UP_DOWN InfConf = { rt28xx_open, rt28xx_close };
  ^
/home/***/rawireless/RT28XX-RT539X-Linux-driver/include/rt_os_net.h:294:2: error: (near initialization for ‘InfConf.<anonymous>’)
/home/***/rawireless/RT28XX-RT539X-Linux-driver/include/rt_os_net.h: In function ‘VIRTUAL_IF_DOWN’:
/home/***/rawireless/RT28XX-RT539X-Linux-driver/include/rt_os_net.h:303:2: error: invalid initializer
  RT_CMD_INF_UP_DOWN InfConf = { rt28xx_open, rt28xx_close };
  ^
/home/***/rawireless/RT28XX-RT539X-Linux-driver/include/rt_os_net.h:303:2: error: (near initialization for ‘InfConf.<anonymous>’)
scripts/Makefile.build:257: recipe for target '/home/***/rawireless/RT28XX-RT539X-Linux-driver/os/linux/../../common/crypt_md5.o' failed
make[2]: *** [/home/***/rawireless/RT28XX-RT539X-Linux-driver/os/linux/../../common/crypt_md5.o] Error 1
Makefile:1450: recipe for target '_module_/home/***/rawireless/RT28XX-RT539X-Linux-driver/os/linux' failed
make[1]: *** [_module_/home/***/rawireless/RT28XX-RT539X-Linux-driver/os/linux] Error 2
make[1]: Leaving directory '/usr/src/linux-3.17.7-hardened-r1'
Makefile:372: recipe for target 'LINUX' failed
make: *** [LINUX] Error 2

uname -a
Linux **** 3.17.7-hardened-r1 #4 SMP Mon Jun 22 16:59:29 EDT 2015 x86_64 AMD A4-3300M APU with Radeon(tm) HD Graphics AuthenticAMD GNU/Linux

Cannot install on ubuntu 18.04

I have tried to install the driver but I faced errors after sudo make install.

linux/sta_ioctl.c:2560:72: error: macro "access_ok" passed 3 arguments, but takes just 2
../../os/linux/sta_ioctl.c:2560:10: error: ‘access_ok’ undeclared (first use in this function)
if ( access_ok(VERIFY_WRITE, wrqin->u.data.pointer, sizeof(privtab)) != TRUE)
/../../os/linux/sta_ioctl.c:2560:72: error: macro "access_ok" passed 3 arguments, but takes just 2
if ( access_ok(VERIFY_WRITE, wrqin->u.data.pointer, sizeof(privtab)) != TRUE)
../../os/linux/sta_ioctl.c:2573:73: error: macro "access_ok" passed 3 arguments, but takes just 2
f(access_ok(VERIFY_READ, wrqin->u.data.pointer, wrqin->u.data.length) != TRUE)
^

RT5390 not found. Full log included. Attempted multiple times.

husky@Husky:$ sudo apt-get update
[sudo] password for husky:
Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease
Get:2 http://dl.google.com/linux/chrome/deb stable Release [1,189 B]
Hit:3 http://us.archive.ubuntu.com/ubuntu yakkety InRelease
Get:4 http://dl.google.com/linux/chrome/deb stable Release.gpg [916 B]
Get:5 http://us.archive.ubuntu.com/ubuntu yakkety-updates InRelease [102 kB]
Ign:6 http://ppa.launchpad.net/marko-techytalk.info/ralink-wireless/ubuntu yakkety InRelease
Hit:7 http://ppa.launchpad.net/webupd8team/java/ubuntu yakkety InRelease
Ign:8 http://ppa.launchpad.net/marko-techytalk.info/ralink-wireless/ubuntu yakkety Release
Get:9 http://us.archive.ubuntu.com/ubuntu yakkety-backports InRelease [102 kB]
Ign:10 http://ppa.launchpad.net/marko-techytalk.info/ralink-wireless/ubuntu yakkety/main amd64 Packages
Ign:11 http://ppa.launchpad.net/marko-techytalk.info/ralink-wireless/ubuntu yakkety/main all Packages
Ign:12 http://ppa.launchpad.net/marko-techytalk.info/ralink-wireless/ubuntu yakkety/main i386 Packages
Get:13 http://dl.google.com/linux/chrome/deb stable/main amd64 Packages [1,458 B]
Ign:14 http://ppa.launchpad.net/marko-techytalk.info/ralink-wireless/ubuntu yakkety/main Translation-en
Ign:15 http://ppa.launchpad.net/marko-techytalk.info/ralink-wireless/ubuntu yakkety/main Translation-en_US
Ign:16 http://ppa.launchpad.net/marko-techytalk.info/ralink-wireless/ubuntu yakkety/main all DEP-11 Metadata
Ign:17 http://ppa.launchpad.net/marko-techytalk.info/ralink-wireless/ubuntu yakkety/main amd64 DEP-11 Metadata
Get:18 http://us.archive.ubuntu.com/ubuntu yakkety-updates/main amd64 Packages [94.0 kB]
Ign:19 http://ppa.launchpad.net/marko-techytalk.info/ralink-wireless/ubuntu yakkety/main DEP-11 64x64 Icons
Ign:10 http://ppa.launchpad.net/marko-techytalk.info/ralink-wireless/ubuntu yakkety/main amd64 Packages
Get:20 http://us.archive.ubuntu.com/ubuntu yakkety-updates/main i386 Packages [92.6 kB]
Get:21 http://us.archive.ubuntu.com/ubuntu yakkety-updates/main amd64 DEP-11 Metadata [76.6 kB]
Ign:11 http://ppa.launchpad.net/marko-techytalk.info/ralink-wireless/ubuntu yakkety/main all Packages
Get:22 http://us.archive.ubuntu.com/ubuntu yakkety-updates/main DEP-11 64x64 Icons [33.7 kB]
Get:23 http://us.archive.ubuntu.com/ubuntu yakkety-updates/universe i386 Packages [44.8 kB]
Ign:12 http://ppa.launchpad.net/marko-techytalk.info/ralink-wireless/ubuntu yakkety/main i386 Packages
Get:24 http://us.archive.ubuntu.com/ubuntu yakkety-updates/universe amd64 Packages [46.9 kB]
Get:25 http://us.archive.ubuntu.com/ubuntu yakkety-updates/universe amd64 DEP-11 Metadata [59.8 kB]
Get:26 http://us.archive.ubuntu.com/ubuntu yakkety-updates/universe DEP-11 64x64 Icons [67.7 kB]
Ign:14 http://ppa.launchpad.net/marko-techytalk.info/ralink-wireless/ubuntu yakkety/main Translation-en
Get:27 http://us.archive.ubuntu.com/ubuntu yakkety-updates/multiverse amd64 DEP-11 Metadata [212 B]
Get:28 http://us.archive.ubuntu.com/ubuntu yakkety-backports/main amd64 DEP-11 Metadata [212 B]
Get:29 http://us.archive.ubuntu.com/ubuntu yakkety-backports/universe amd64 DEP-11 Metadata [212 B]
Get:30 http://us.archive.ubuntu.com/ubuntu yakkety-backports/multiverse amd64 DEP-11 Metadata [216 B]
Ign:15 http://ppa.launchpad.net/marko-techytalk.info/ralink-wireless/ubuntu yakkety/main Translation-en_US
Ign:16 http://ppa.launchpad.net/marko-techytalk.info/ralink-wireless/ubuntu yakkety/main all DEP-11 Metadata
Ign:17 http://ppa.launchpad.net/marko-techytalk.info/ralink-wireless/ubuntu yakkety/main amd64 DEP-11 Metadata
Ign:19 http://ppa.launchpad.net/marko-techytalk.info/ralink-wireless/ubuntu yakkety/main DEP-11 64x64 Icons
Get:31 http://security.ubuntu.com/ubuntu yakkety-security InRelease [102 kB]
Ign:10 http://ppa.launchpad.net/marko-techytalk.info/ralink-wireless/ubuntu yakkety/main amd64 Packages
Ign:11 http://ppa.launchpad.net/marko-techytalk.info/ralink-wireless/ubuntu yakkety/main all Packages
Ign:12 http://ppa.launchpad.net/marko-techytalk.info/ralink-wireless/ubuntu yakkety/main i386 Packages
Ign:14 http://ppa.launchpad.net/marko-techytalk.info/ralink-wireless/ubuntu yakkety/main Translation-en
Ign:15 http://ppa.launchpad.net/marko-techytalk.info/ralink-wireless/ubuntu yakkety/main Translation-en_US
Ign:16 http://ppa.launchpad.net/marko-techytalk.info/ralink-wireless/ubuntu yakkety/main all DEP-11 Metadata
Ign:17 http://ppa.launchpad.net/marko-techytalk.info/ralink-wireless/ubuntu yakkety/main amd64 DEP-11 Metadata
Get:32 http://security.ubuntu.com/ubuntu yakkety-security/main amd64 DEP-11 Metadata [5,476 B]
Ign:19 http://ppa.launchpad.net/marko-techytalk.info/ralink-wireless/ubuntu yakkety/main DEP-11 64x64 Icons
Get:33 http://security.ubuntu.com/ubuntu yakkety-security/universe amd64 DEP-11 Metadata [208 B]
Get:34 http://security.ubuntu.com/ubuntu yakkety-security/multiverse amd64 DEP-11 Metadata [212 B]
Ign:10 http://ppa.launchpad.net/marko-techytalk.info/ralink-wireless/ubuntu yakkety/main amd64 Packages
Ign:11 http://ppa.launchpad.net/marko-techytalk.info/ralink-wireless/ubuntu yakkety/main all Packages
Ign:12 http://ppa.launchpad.net/marko-techytalk.info/ralink-wireless/ubuntu yakkety/main i386 Packages
Ign:14 http://ppa.launchpad.net/marko-techytalk.info/ralink-wireless/ubuntu yakkety/main Translation-en
Ign:15 http://ppa.launchpad.net/marko-techytalk.info/ralink-wireless/ubuntu yakkety/main Translation-en_US
Ign:16 http://ppa.launchpad.net/marko-techytalk.info/ralink-wireless/ubuntu yakkety/main all DEP-11 Metadata
Ign:17 http://ppa.launchpad.net/marko-techytalk.info/ralink-wireless/ubuntu yakkety/main amd64 DEP-11 Metadata
Ign:19 http://ppa.launchpad.net/marko-techytalk.info/ralink-wireless/ubuntu yakkety/main DEP-11 64x64 Icons
Ign:10 http://ppa.launchpad.net/marko-techytalk.info/ralink-wireless/ubuntu yakkety/main amd64 Packages
Ign:11 http://ppa.launchpad.net/marko-techytalk.info/ralink-wireless/ubuntu yakkety/main all Packages
Ign:12 http://ppa.launchpad.net/marko-techytalk.info/ralink-wireless/ubuntu yakkety/main i386 Packages
Ign:14 http://ppa.launchpad.net/marko-techytalk.info/ralink-wireless/ubuntu yakkety/main Translation-en
Ign:15 http://ppa.launchpad.net/marko-techytalk.info/ralink-wireless/ubuntu yakkety/main Translation-en_US
Ign:16 http://ppa.launchpad.net/marko-techytalk.info/ralink-wireless/ubuntu yakkety/main all DEP-11 Metadata
Ign:17 http://ppa.launchpad.net/marko-techytalk.info/ralink-wireless/ubuntu yakkety/main amd64 DEP-11 Metadata
Ign:19 http://ppa.launchpad.net/marko-techytalk.info/ralink-wireless/ubuntu yakkety/main DEP-11 64x64 Icons
Err:10 http://ppa.launchpad.net/marko-techytalk.info/ralink-wireless/ubuntu yakkety/main amd64 Packages
404 Not Found
Ign:11 http://ppa.launchpad.net/marko-techytalk.info/ralink-wireless/ubuntu yakkety/main all Packages
Ign:12 http://ppa.launchpad.net/marko-techytalk.info/ralink-wireless/ubuntu yakkety/main i386 Packages
Ign:14 http://ppa.launchpad.net/marko-techytalk.info/ralink-wireless/ubuntu yakkety/main Translation-en
Ign:15 http://ppa.launchpad.net/marko-techytalk.info/ralink-wireless/ubuntu yakkety/main Translation-en_US
Ign:16 http://ppa.launchpad.net/marko-techytalk.info/ralink-wireless/ubuntu yakkety/main all DEP-11 Metadata
Ign:17 http://ppa.launchpad.net/marko-techytalk.info/ralink-wireless/ubuntu yakkety/main amd64 DEP-11 Metadata
Ign:19 http://ppa.launchpad.net/marko-techytalk.info/ralink-wireless/ubuntu yakkety/main DEP-11 64x64 Icons
Fetched 833 kB in 9s (86.9 kB/s)
Reading package lists... Done
W: The repository 'http://ppa.launchpad.net/marko-techytalk.info/ralink-wireless/ubuntu yakkety Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://ppa.launchpad.net/marko-techytalk.info/ralink-wireless/ubuntu/dists/yakkety/main/binary-amd64/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
husky@Husky:
$ sudo apt-get install git linux-headers-generic linux-headers-$(uname -r) build-essential dkms fakeroot
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version (12.1ubuntu2).
dkms is already the newest version (2.2.0.3-2ubuntu14).
fakeroot is already the newest version (1.21-1ubuntu2).
git is already the newest version (1:2.9.3-1).
linux-headers-4.8.0-27-generic is already the newest version (4.8.0-27.29).
linux-headers-4.8.0-27-generic set to manually installed.
linux-headers-generic is already the newest version (4.8.0.27.36).
linux-headers-generic set to manually installed.
The following packages were automatically installed and are no longer required:
fonts-lato gksu javascript-common libgksu2-0 libjs-jquery libruby2.3 rake
ruby ruby-atk ruby-cairo ruby-cairo-gobject ruby-did-you-mean
ruby-gdk-pixbuf2 ruby-gdk3 ruby-glib2 ruby-gobject-introspection ruby-gtk3
ruby-minitest ruby-net-telnet ruby-pango ruby-power-assert ruby-test-unit
ruby2.3 rubygems-integration
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
husky@Husky:$ git clone https://github.com/agerwick/RT28XX-RT539X-Linux-driver
fatal: destination path 'RT28XX-RT539X-Linux-driver' already exists and is not an empty directory.
husky@Husky:
$ cd RT28XX-RT539X-Linux-driver
husky@Husky:/RT28XX-RT539X-Linux-driver$ sudo make
make -C tools
make[1]: Entering directory '/home/husky/RT28XX-RT539X-Linux-driver/tools'
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory '/home/husky/RT28XX-RT539X-Linux-driver/tools'
/home/husky/RT28XX-RT539X-Linux-driver/tools/bin2h
cp -f os/linux/Makefile.6 /home/husky/RT28XX-RT539X-Linux-driver/os/linux/Makefile
make -C /lib/modules/4.8.0-27-generic/build SUBDIRS=/home/husky/RT28XX-RT539X-Linux-driver/os/linux modules
make[1]: Entering directory '/usr/src/linux-headers-4.8.0-27-generic'
CC [M] /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../sta/sta_cfg.o
/home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../sta/sta_cfg.c: In function ‘Set_EncrypType_Proc’:
/home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../sta/sta_cfg.c:755:5: warning: this ‘else’ clause does not guard... [-Wmisleading-indentation]
else
^~~~
/home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../sta/sta_cfg.c:758:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘else’
if (pAd->StaCfg.BssType == BSS_ADHOC)
^

/home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../sta/sta_cfg.c: In function ‘RTMPIoctlShow’:
/home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../sta/sta_cfg.c:5041:85: error: macro "DATE" might prevent reproducible builds [-Werror=date-time]
intf(extra, size, "Driver version-%s, %s %s\n", STA_DRIVER_VERSION, DATE, TIME );
^~~~~~~~
/home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../sta/sta_cfg.c:5041:95: error: macro "TIME" might prevent reproducible builds [-Werror=date-time]
, size, "Driver version-%s, %s %s\n", STA_DRIVER_VERSION, DATE, TIME );
^~~~~~~~
/home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../sta/sta_cfg.c: In function ‘RtmpIoctl_rt_ioctl_siwfreq’:
/home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../sta/sta_cfg.c:5276:5: warning: this ‘else’ clause does not guard... [-Wmisleading-indentation]
else
^~~~
/home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../sta/sta_cfg.c:5279:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘else’
return NDIS_STATUS_SUCCESS;
^~~~~~
/home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../sta/sta_cfg.c: In function ‘RtmpIoctl_rt_ioctl_giwrate’:
/home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../sta/sta_cfg.c:7104:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
if (rate_index >= rate_count)
^~
/home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../sta/sta_cfg.c:7107:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’
*(ULONG *)pData = ralinkrate[rate_index] * 500000;
^
cc1: some warnings being treated as errors
scripts/Makefile.build:289: recipe for target '/home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../sta/sta_cfg.o' failed
make[2]: *** [/home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../sta/sta_cfg.o] Error 1
Makefile:1489: recipe for target 'module/home/husky/RT28XX-RT539X-Linux-driver/os/linux' failed
make[1]: *** [module/home/husky/RT28XX-RT539X-Linux-driver/os/linux] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.8.0-27-generic'
Makefile:372: recipe for target 'LINUX' failed
make: *** [LINUX] Error 2
husky@Husky:/RT28XX-RT539X-Linux-driver$ sudo make install
make -C /home/husky/RT28XX-RT539X-Linux-driver/os/linux -f Makefile.6 install
make[1]: Entering directory '/home/husky/RT28XX-RT539X-Linux-driver/os/linux'
mkdir: cannot create directory ‘/etc/Wireless’: File exists
rm -rf /etc/Wireless/RT2860STA
mkdir /etc/Wireless/RT2860STA
cp /home/husky/RT28XX-RT539X-Linux-driver/RT2860STA.dat /etc/Wireless/RT2860STA/.
install -d /lib/modules/4.8.0-27-generic/kernel/drivers/net/wireless/
install -m 644 -c rt5390sta.ko /lib/modules/4.8.0-27-generic/kernel/drivers/net/wireless/
install: cannot stat 'rt5390sta.ko': No such file or directory
Makefile.6:352: recipe for target 'install' failed
make[1]: *** [install] Error 1
make[1]: Leaving directory '/home/husky/RT28XX-RT539X-Linux-driver/os/linux'
Makefile:465: recipe for target 'install' failed
make: *** [install] Error 2
husky@Husky:
/RT28XX-RT539X-Linux-driver$ sudo nano /etc/modprobe.d/blacklist.conf
husky@Husky:/RT28XX-RT539X-Linux-driver$ sudo nano /etc/modules
husky@Husky:
/RT28XX-RT539X-Linux-driver$ sudo depmod -a
husky@Husky:/RT28XX-RT539X-Linux-driver$ sudo modprobe -rfv rt2800pci
husky@Husky:
/RT28XX-RT539X-Linux-driver$ sudo modprobe -v rt5390sta
modprobe: FATAL: Module rt5390sta not found in directory /lib/modules/4.8.0-27-generic
husky@Husky:/RT28XX-RT539X-Linux-driver$ sudo nano /etc/modules
husky@Husky:
/RT28XX-RT539X-Linux-driver$ sudo modprobe -v rt5390sta
modprobe: FATAL: Module rt5390sta not found in directory /lib/modules/4.8.0-27-generic
husky@Husky:~/RT28XX-RT539X-Linux-driver$ ~/RT28XX-RT539X-Linux-driver/update-driver-after-kernel-upgrade

This will recompile the RT28XX/RT539X Wireless Network driver for your current Linux kernel.
You need to do this after upgrading the kernel and restarting the computer.
If your wireless stopped working after restarting after installing an Ubuntu update, that's probably what you did.
Conversely, if your wireless is still working, you probably haven't restarted yet. If that's the case, you should not run this now.
Basically, DON'T RUN THIS IF YOUR WIRELESS NETWORK ADAPTER IS STILL WORKING!

If you've made any manual changes to the code in /home/husky/RT28XX-RT539X-Linux-driver you will want to abort this now, as any changes will be wiped.
Unless you've modified the Makefile or modified the code in any other way, don't worry about the above warning.
Best of luck, and hopefully the Open Source driver will work properly soon, so we can avoid this nonsense!

  • Ronny Ager-Wick

If you do NOT want to continue, press Ctrl-C now.
Press any key to continue...

Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version (12.1ubuntu2).
dkms is already the newest version (2.2.0.3-2ubuntu14).
fakeroot is already the newest version (1.21-1ubuntu2).
git is already the newest version (1:2.9.3-1).
linux-headers-4.8.0-27-generic is already the newest version (4.8.0-27.29).
The following packages were automatically installed and are no longer required:
fonts-lato gksu javascript-common libgksu2-0 libjs-jquery libruby2.3 rake
ruby ruby-atk ruby-cairo ruby-cairo-gobject ruby-did-you-mean
ruby-gdk-pixbuf2 ruby-gdk3 ruby-glib2 ruby-gobject-introspection ruby-gtk3
ruby-minitest ruby-net-telnet ruby-pango ruby-power-assert ruby-test-unit
ruby2.3 rubygems-integration
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
/home/husky/RT28XX-RT539X-Linux-driver/update-driver-after-kernel-upgrade: line 19: //: Is a directory
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
fonts-lato gksu javascript-common libgksu2-0 libjs-jquery libruby2.3 rake
ruby ruby-atk ruby-cairo ruby-cairo-gobject ruby-did-you-mean
ruby-gdk-pixbuf2 ruby-gdk3 ruby-glib2 ruby-gobject-introspection ruby-gtk3
ruby-minitest ruby-net-telnet ruby-pango ruby-power-assert ruby-test-unit
ruby2.3 rubygems-integration
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
linux-headers-4.8.0-22* linux-headers-4.8.0-22-generic*
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
After this operation, 80.7 MB disk space will be freed.
(Reading database ... 203681 files and directories currently installed.)
Removing linux-headers-4.8.0-22-generic (4.8.0-22.24) ...
Removing linux-headers-4.8.0-22 (4.8.0-22.24) ...
M tools/bin2h
Already on 'master'
Your branch is up-to-date with 'origin/master'.
HEAD is now at 69ed5af fixed bug in update script
Removing chips/.rtmp_chip.o.cmd
Removing chips/rtmp_chip.o
Removing common/.action.o.cmd
Removing common/.cmm_aes.o.cmd
Removing common/.cmm_asic.o.cmd
Removing common/.cmm_cfg.o.cmd
Removing common/.cmm_cmd.o.cmd
Removing common/.cmm_data.o.cmd
Removing common/.cmm_info.o.cmd
Removing common/.cmm_profile.o.cmd
Removing common/.cmm_radar.o.cmd
Removing common/.cmm_sanity.o.cmd
Removing common/.cmm_sync.o.cmd
Removing common/.cmm_tkip.o.cmd
Removing common/.cmm_wep.o.cmd
Removing common/.cmm_wpa.o.cmd
Removing common/.crypt_aes.o.cmd
Removing common/.crypt_arc4.o.cmd
Removing common/.crypt_hmac.o.cmd
Removing common/.crypt_md5.o.cmd
Removing common/.crypt_sha2.o.cmd
Removing common/.drs_grp.o.cmd
Removing common/.eeprom.o.cmd
Removing common/.mlme.o.cmd
Removing common/.rt_channel.o.cmd
Removing common/.rtmp_init.o.cmd
Removing common/.rtmp_init_inf.o.cmd
Removing common/.rtmp_timer.o.cmd
Removing common/.spectrum.o.cmd
Removing common/action.o
Removing common/cmm_aes.o
Removing common/cmm_asic.o
Removing common/cmm_cfg.o
Removing common/cmm_cmd.o
Removing common/cmm_data.o
Removing common/cmm_info.o
Removing common/cmm_profile.o
Removing common/cmm_radar.o
Removing common/cmm_sanity.o
Removing common/cmm_sync.o
Removing common/cmm_tkip.o
Removing common/cmm_wep.o
Removing common/cmm_wpa.o
Removing common/crypt_aes.o
Removing common/crypt_arc4.o
Removing common/crypt_hmac.o
Removing common/crypt_md5.o
Removing common/crypt_sha2.o
Removing common/drs_grp.o
Removing common/eeprom.o
Removing common/mlme.o
Removing common/rt_channel.o
Removing common/rtmp_init.o
Removing common/rtmp_init_inf.o
Removing common/rtmp_timer.o
Removing common/spectrum.o
Removing os/linux/.rt_profile.o.cmd
Removing os/linux/Makefile
Removing os/linux/rt_profile.o
Removing sta/.ags.o.cmd
Removing sta/.assoc.o.cmd
Removing sta/.auth.o.cmd
Removing sta/.auth_rsp.o.cmd
Removing sta/.connect.o.cmd
Removing sta/.rtmp_data.o.cmd
Removing sta/.sanity.o.cmd
Removing sta/.sta_cfg.o.d
Removing sta/.sync.o.cmd
Removing sta/.wpa.o.cmd
Removing sta/ags.o
Removing sta/assoc.o
Removing sta/auth.o
Removing sta/auth_rsp.o
Removing sta/connect.o
Removing sta/rtmp_data.o
Removing sta/sanity.o
Removing sta/sync.o
Removing sta/wpa.o
From https://github.com/agerwick/RT28XX-RT539X-Linux-driver

  • branch master -> FETCH_HEAD
    Already up-to-date.
    make -C tools
    make[1]: Entering directory '/home/husky/RT28XX-RT539X-Linux-driver/tools'
    gcc -g bin2h.c -o bin2h
    make[1]: Leaving directory '/home/husky/RT28XX-RT539X-Linux-driver/tools'
    /home/husky/RT28XX-RT539X-Linux-driver/tools/bin2h
    cp -f os/linux/Makefile.6 /home/husky/RT28XX-RT539X-Linux-driver/os/linux/Makefile
    make -C /lib/modules/4.8.0-27-generic/build SUBDIRS=/home/husky/RT28XX-RT539X-Linux-driver/os/linux modules
    make[1]: Entering directory '/usr/src/linux-headers-4.8.0-27-generic'
    CC [M] /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../common/crypt_md5.o
    In file included from /home/husky/RT28XX-RT539X-Linux-driver/include/rtmp_os.h:44:0,
    from /home/husky/RT28XX-RT539X-Linux-driver/include/rtmp_comm.h:69,
    from /home/husky/RT28XX-RT539X-Linux-driver/include/rt_config.h:33,
    from /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../common/crypt_md5.c:28:
    /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../common/crypt_md5.c: In function ‘MD5Final’:
    /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../common/crypt_md5.c:333:32: warning: argument to ‘sizeof’ in ‘memset’ call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess]
    NdisZeroMemory(pCtx, sizeof(pCtx)); /* memory free /
    ^
    /home/husky/RT28XX-RT539X-Linux-driver/include/os/rt_linux.h:473:76: note: in definition of macro ‘NdisZeroMemory’
    fine NdisZeroMemory(Destination, Length) memset(Destination, 0, Length)
    ^~~~~~
    /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../common/crypt_md5.c: In function ‘SHAFinal’:
    /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../common/crypt_md5.c:632:32: warning: argument to ‘sizeof’ in ‘memset’ call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess]
    NdisZeroMemory(pCtx, sizeof(pCtx)); /
    memory free */
    ^
    /home/husky/RT28XX-RT539X-Linux-driver/include/os/rt_linux.h:473:76: note: in definition of macro ‘NdisZeroMemory’
    fine NdisZeroMemory(Destination, Length) memset(Destination, 0, Length)
    ^~~~~~
    /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../common/crypt_md5.c: In function ‘SHATransform’:
    /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../common/crypt_md5.c:707:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
    for (i=0; i<5; i++)
    ^~~
    /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../common/crypt_md5.c:710:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’
    if (W != NULL)
    ^~
    CC [M] /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../common/crypt_sha2.o
    CC [M] /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../common/crypt_hmac.o
    CC [M] /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../common/crypt_aes.o
    CC [M] /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../common/crypt_arc4.o
    CC [M] /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../common/mlme.o
    In file included from /home/husky/RT28XX-RT539X-Linux-driver/include/rtmp_os.h:44:0,
    from /home/husky/RT28XX-RT539X-Linux-driver/include/rtmp_comm.h:69,
    from /home/husky/RT28XX-RT539X-Linux-driver/include/rt_config.h:33,
    from /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../common/mlme.c:28:
    /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../common/mlme.c: In function ‘MlmeResetRalinkCounters’:
    /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../common/mlme.c:825:7: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
    (UINT32)&pAd->RalinkCounters.OneSecEnd -
    ^
    /home/husky/RT28XX-RT539X-Linux-driver/include/os/rt_linux.h:473:76: note: in definition of macro ‘NdisZeroMemory’
    fine NdisZeroMemory(Destination, Length) memset(Destination, 0, Length)
    ^~~~~~
    /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../common/mlme.c:826:7: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
    (UINT32)&pAd->RalinkCounters.OneSecStart);
    ^
    /home/husky/RT28XX-RT539X-Linux-driver/include/os/rt_linux.h:473:76: note: in definition of macro ‘NdisZeroMemory’
    fine NdisZeroMemory(Destination, Length) memset(Destination, 0, Length)
    ^~~~~~
    CC [M] /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../common/drs_grp.o
    CC [M] /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../common/cmm_wep.o
    CC [M] /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../common/action.o
    CC [M] /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../common/cmm_data.o
    CC [M] /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../common/rtmp_init.o
    CC [M] /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../common/rtmp_init_inf.o
    CC [M] /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../common/cmm_tkip.o
    CC [M] /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../common/cmm_aes.o
    CC [M] /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../common/cmm_sync.o
    CC [M] /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../common/eeprom.o
    CC [M] /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../common/cmm_sanity.o
    CC [M] /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../common/cmm_info.o
    /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../common/cmm_info.c: In function ‘GetEncryptType’:
    /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../common/cmm_info.c:2296:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
    if(enc == Ndis802_11Encryption3Enabled)
    ^~
    /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../common/cmm_info.c:2298:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’
    if(enc == Ndis802_11Encryption4Enabled)
    ^~
    /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../common/cmm_info.c: In function ‘GetAuthMode’:
    /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../common/cmm_info.c:2308:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
    if(auth == Ndis802_11AuthModeShared)
    ^~
    /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../common/cmm_info.c:2310:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’
    if(auth == Ndis802_11AuthModeAutoSwitch)
    ^~
    /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../common/cmm_info.c:2320:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
    if(auth == Ndis802_11AuthModeWPA2PSK)
    ^~
    /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../common/cmm_info.c:2322:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’
    if(auth == Ndis802_11AuthModeWPA1WPA2)
    ^~
    /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../common/cmm_info.c: In function ‘Show_PMK_Proc’:
    /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../common/cmm_info.c:4286:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
    for (idx = 0; idx < 32; idx++)
    ^~~
    /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../common/cmm_info.c:4289:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’
    return 0;
    ^~~~~~
    CC [M] /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../common/cmm_cfg.o
    CC [M] /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../common/cmm_wpa.o
    /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../common/cmm_wpa.c: In function ‘WPAStart2WayGroupHS’:
    /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../common/cmm_wpa.c:1241:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
    if ((!pEntry) || !IS_ENTRY_CLIENT(pEntry))
    ^~
    /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../common/cmm_wpa.c:1246:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’
    os_alloc_mem(NULL, (PUCHAR *)&mpool, TX_EAPOL_BUFFER);
    ^~~~~~~~~~~~
    CC [M] /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../common/cmm_radar.o
    CC [M] /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../common/spectrum.o
    In file included from /home/husky/RT28XX-RT539X-Linux-driver/include/rtmp_os.h:44:0,
    from /home/husky/RT28XX-RT539X-Linux-driver/include/rtmp_comm.h:69,
    from /home/husky/RT28XX-RT539X-Linux-driver/include/rt_config.h:33,
    from /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../common/spectrum.c:28:
    /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../common/spectrum.c: In function ‘PeerMeasureReportAction’:
    /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../common/spectrum.c:1951:29: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long unsigned int’ [-Wformat=]
    DBGPRINT(RT_DEBUG_ERROR, ("%s unable to alloc memory for measure report buffer (size=%d).\n", FUNCTION, sizeof(MEASURE_RPI_REPORT)));
    ^
    /home/husky/RT28XX-RT539X-Linux-driver/include/os/rt_linux.h:661:16: note: in definition of macro ‘DBGPRINT_RAW’
    printk Fmt;
    ^~~
    /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../common/spectrum.c:1951:3: note: in expansion of macro ‘DBGPRINT’
    DBGPRINT(RT_DEBUG_ERROR, ("%s unable to alloc memory for measure report buffer (size=%d).\n", FUNCTION, sizeof(MEASURE_RPI_REPORT)));
    ^~~~~~~~
    CC [M] /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../common/rtmp_timer.o
    CC [M] /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../common/rt_channel.o
    /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../common/rt_channel.c: In function ‘N_ChannelGroupCheck’:
    /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../common/rt_channel.c:1870:4: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
    if (IsValidChannel(pAd, ExtCh))
    ^~
    /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../common/rt_channel.c:1872:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’
    break;
    ^~~~~
    CC [M] /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../common/cmm_profile.o
    CC [M] /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../common/cmm_asic.o
    /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../common/cmm_asic.c: In function ‘AsicGetAutoAgcOffsetForTemperatureSensor’:
    /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../common/cmm_asic.c:1233:28: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
    TxPowerTuningTableEntry0 = &TxPowerTuningTable[TuningTableIndex0 + TX_POWER_TUNING_ENTRY_OFFSET];
    ^
    /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../common/cmm_asic.c:1246:28: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
    TxPowerTuningTableEntry1 = &TxPowerTuningTable[TuningTableIndex1 + TX_POWER_TUNING_ENTRY_OFFSET];
    ^
    CC [M] /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../common/cmm_cmd.o
    CC [M] /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../os/linux/rt_profile.o
    In file included from /home/husky/RT28XX-RT539X-Linux-driver/include/rtmp_os.h:44:0,
    from /home/husky/RT28XX-RT539X-Linux-driver/include/rtmp_comm.h:69,
    from /home/husky/RT28XX-RT539X-Linux-driver/include/rt_config.h:33,
    from /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../os/linux/rt_profile.c:28:
    /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../os/linux/rt_profile.c: In function ‘STA_MonPktSend’:
    /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../os/linux/rt_profile.c:408:35: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long unsigned int’ [-Wformat=]
    DBGPRINT(RT_DEBUG_ERROR, ("%s : Size is too large! (%d)\n", FUNCTION, pRxBlk->DataSize + sizeof(wlan_ng_prism2_header)));
    ^
    /home/husky/RT28XX-RT539X-Linux-driver/include/os/rt_linux.h:661:16: note: in definition of macro ‘DBGPRINT_RAW’
    printk Fmt;
    ^~~
    /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../os/linux/rt_profile.c:408:9: note: in expansion of macro ‘DBGPRINT’
    DBGPRINT(RT_DEBUG_ERROR, ("%s : Size is too large! (%d)\n", FUNCTION, pRxBlk->DataSize + sizeof(wlan_ng_prism2_header)));
    ^~~~~~~~
    CC [M] /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../chips/rtmp_chip.o
    CC [M] /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../sta/assoc.o
    CC [M] /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../sta/auth.o
    CC [M] /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../sta/auth_rsp.o
    CC [M] /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../sta/sync.o
    CC [M] /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../sta/sanity.o
    CC [M] /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../sta/rtmp_data.o
    CC [M] /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../sta/connect.o
    CC [M] /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../sta/wpa.o
    CC [M] /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../sta/ags.o
    CC [M] /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../sta/sta_cfg.o
    /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../sta/sta_cfg.c: In function ‘Set_EncrypType_Proc’:
    /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../sta/sta_cfg.c:755:5: warning: this ‘else’ clause does not guard... [-Wmisleading-indentation]
    else
    ^~~~
    /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../sta/sta_cfg.c:758:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘else’
    if (pAd->StaCfg.BssType == BSS_ADHOC)
    ^~
    /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../sta/sta_cfg.c: In function ‘RTMPIoctlShow’:
    /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../sta/sta_cfg.c:5041:85: error: macro "DATE" might prevent reproducible builds [-Werror=date-time]
    intf(extra, size, "Driver version-%s, %s %s\n", STA_DRIVER_VERSION, DATE, TIME );
    ^~~~~~~~
    /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../sta/sta_cfg.c:5041:95: error: macro "TIME" might prevent reproducible builds [-Werror=date-time]
    , size, "Driver version-%s, %s %s\n", STA_DRIVER_VERSION, DATE, TIME );
    ^~~~~~~~
    /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../sta/sta_cfg.c: In function ‘RtmpIoctl_rt_ioctl_siwfreq’:
    /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../sta/sta_cfg.c:5276:5: warning: this ‘else’ clause does not guard... [-Wmisleading-indentation]
    else
    ^~~~
    /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../sta/sta_cfg.c:5279:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘else’
    return NDIS_STATUS_SUCCESS;
    ^~~~~~
    /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../sta/sta_cfg.c: In function ‘RtmpIoctl_rt_ioctl_giwrate’:
    /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../sta/sta_cfg.c:7104:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
    if (rate_index >= rate_count)
    ^~
    /home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../sta/sta_cfg.c:7107:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’
    *(ULONG *)pData = ralinkrate[rate_index] * 500000;
    ^
    cc1: some warnings being treated as errors
    scripts/Makefile.build:289: recipe for target '/home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../sta/sta_cfg.o' failed
    make[2]: *** [/home/husky/RT28XX-RT539X-Linux-driver/os/linux/../../sta/sta_cfg.o] Error 1
    Makefile:1489: recipe for target 'module/home/husky/RT28XX-RT539X-Linux-driver/os/linux' failed
    make[1]: *** [module/home/husky/RT28XX-RT539X-Linux-driver/os/linux] Error 2
    make[1]: Leaving directory '/usr/src/linux-headers-4.8.0-27-generic'
    Makefile:372: recipe for target 'LINUX' failed
    make: *** [LINUX] Error 2
    make -C /home/husky/RT28XX-RT539X-Linux-driver/os/linux -f Makefile.6 install
    make[1]: Entering directory '/home/husky/RT28XX-RT539X-Linux-driver/os/linux'
    mkdir: cannot create directory ‘/etc/Wireless’: File exists
    rm -rf /etc/Wireless/RT2860STA
    mkdir /etc/Wireless/RT2860STA
    cp /home/husky/RT28XX-RT539X-Linux-driver/RT2860STA.dat /etc/Wireless/RT2860STA/.
    install -d /lib/modules/4.8.0-27-generic/kernel/drivers/net/wireless/
    install -m 644 -c rt5390sta.ko /lib/modules/4.8.0-27-generic/kernel/drivers/net/wireless/
    install: cannot stat 'rt5390sta.ko': No such file or directory
    Makefile.6:352: recipe for target 'install' failed
    make[1]: *** [install] Error 1
    make[1]: Leaving directory '/home/husky/RT28XX-RT539X-Linux-driver/os/linux'
    Makefile:465: recipe for target 'install' failed
    make: *** [install] Error 2

If there are any errors above, this will not work. Warnings are fine.

modprobe: FATAL: Module rt5390sta not found in directory /lib/modules/4.8.0-27-generic

Your wireless network adapter should start working in a few seconds. If not, try restarting.
husky@Husky:~/RT28XX-RT539X-Linux-driver$ cd /lib/modules
husky@Husky:/lib/modules$ ls -a
. .. 4.8.0-22-generic 4.8.0-27-generic
husky@Husky:/lib/modules$

Cannot install on Linux Mint 20.1

Hi.
I get some errors on sudo make:

make -C tools
make[1]: se entra en el directorio '/home/daniel/RT28XX-RT539X-Linux-driver/tools'
gcc -g bin2h.c -o bin2h
make[1]: se sale del directorio '/home/daniel/RT28XX-RT539X-Linux-driver/tools'
/home/daniel/RT28XX-RT539X-Linux-driver/tools/bin2h
cp -f os/linux/Makefile.6 /home/daniel/RT28XX-RT539X-Linux-driver/os/linux/Makefile
make -C /lib/modules/5.4.0-67-generic/build SUBDIRS=/home/daniel/RT28XX-RT539X-Linux-driver/os/linux modules
make[1]: se entra en el directorio '/usr/src/linux-headers-5.4.0-67-generic'
make[2]: *** No hay ninguna regla para construir el objetivo 'arch/x86/tools/relocs_32.c', necesario para 'arch/x86/tools/relocs_32.o'.  Alto.
make[1]: *** [arch/x86/Makefile:232: archscripts] Error 2
make[1]: se sale del directorio '/usr/src/linux-headers-5.4.0-67-generic'
make: *** [Makefile:373: LINUX] Error 2

Can you help me?

Thank you.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.