agerwick / RT28XX-RT539X-Linux-driver

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
GNU General Public License v2.0
23 stars 9 forks source link

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

Open Husky4HR opened 7 years ago

Husky4HR commented 7 years ago

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!

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

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$

agerwick commented 7 years ago

I'm afraid I can't help much on this, as I made this solution a long time ago when setting up a friend's laptop. I am no longer in the same country as said laptop and thus cannot test. It has probably something to do with you running a much more recent Ubuntu version. Fell free to fork, modify and fix yourself. If you manage to make it work, I'll add a comment in the Readme that people should go to your repository instead if they want it to work on yakkety. Ronny.

On 2016-11-25 09:37, Husky4HR wrote:

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 https://github.com/agerwick/RT28XX-RT539X-Linux-driver/commit/69ed5af9fa70d969971be1cab28ecc51b35ea599 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$

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/agerwick/RT28XX-RT539X-Linux-driver/issues/7, or mute the thread https://github.com/notifications/unsubscribe-auth/AAEHt1vj7n2ChYv5X41dRy7is-SyGXZxks5rBp5EgaJpZM4K8NmH.

agerwick commented 7 years ago

Just in case others have this issue - if "sudo make" ends in error (like above), there's no point executing "sudo make install". It will not work unless the error has been resolved first. Unfortunately I cannot replicate this issue on my system (Ubuntu 16.04) so if anyone else has such an issue, be sure to specify some details of the system you're running so other at least can attempt to reproduce the error. One of the issues here (error: macro "DATE" might prevent reproducible builds [-Werror=date-time]) was already fixed, but the other one cannot be reproduced (warning: this ‘else’ clause does not guard... [-Wmisleading-indentation])

If you have errors, then look at the error message, go to the line in the code and see if you can figure it out, then try: sudo make clean sudo make Sometimes it's pretty elementary, but not always of course :) Be sure to send a patch if you succeed.