Wireless Driver Missing

My wireless drivers are missing and i cant seem to find them
this is my system
HP Pavilion g6-1d85nr Notebook PC

Hi,

try running the following terminal commands using a network cable connection:

sudo apt-get update && sudo apt-get install -f

And possibly this one if the above doesn't work?:

sudo apt-get update && sudo apt-get dist-upgrade -f

See also:

Hope it helps!. :smiley:

Ideally, drivers would be already pre-installed and/or part of the kernel, but your particular hardware doesn’t in this case, either because they are non-free or temperamental.

Please could you share the output of these commands from the terminal:

lspci

This will output the ID of the connected components and their brands, we’ll be able to pinpoint which packages you need to compile/install for the wireless.

In case it is not the drivers you are missing and it's the so-called "hardware switch" that is disabled here is a solution:

If there someone out there that can help me, i would love that. Show me what to do.

I admit, hunting for drivers that aren't/can't be added to the kernel so it "just works" isn't the greatest thing. :frowning:

First, we'd need to know exactly what wireless hardware inside the machine.

To do that, open the terminal (press CTRL+ALT+T as a shortcut) and type:

lspci

This lists the PCI devices installed on your machine. Copy the line containing the network adapter here (for us to see) and then the search can begin. :smile:

xcoryakx@home-net-pc2:~$ lspci
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h Processor Root Complex
00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Sumo [Radeon HD 6480G]
00:01.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] BeaverCreek HDMI Audio [Radeon HD 6500D and 6400G-6600G series]
00:04.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 12h Processor Root Port
00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [IDE mode]
00:12.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB OHCI Controller (rev 11)
00:12.2 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI Controller (rev 11)
00:13.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB OHCI Controller (rev 11)
00:13.2 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI Controller (rev 11)
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 13)
00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD] FCH Azalia Controller (rev 01)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 11)
00:14.4 PCI bridge: Advanced Micro Devices, Inc. [AMD] FCH PCI Bridge (rev 40)
00:15.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Hudson PCI to PCI bridge (PCIE port 0)
00:15.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Hudson PCI to PCI bridge (PCIE port 1)
00:15.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Hudson PCI to PCI bridge (PCIE port 2)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 0 (rev 43)
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 6
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 5
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 7
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller (rev 05)
07:00.0 Network controller: Ralink corp. RT5390 Wireless 802.11n 1T/1R PCIe
08:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5209 PCI Express Card Reader (rev 01)
xcoryakx@home-net-pc2:~$

So, from that list, this is your wireless device:

07:00.0 Network controller: Ralink corp. RT5390 Wireless 802.11n 1T/1R PCIe

Ralink hardware under Linux, this will be a little bit of a bumpy ride. :confounded:

After a quick Google Search, I came across this thread (first result), and the last post links to this repository containing drivers for your device.

The README file has the instructions you need. Execute these commands in the terminal (CTRL+ALT+T) and with a bit of luck, you'll be able to build and install the drivers for your system:

How to install

  • sudo apt-get update
  • sudo apt-get install git linux-headers-generic linux-headers-$(uname -r) build-essential dkms fakeroot
  • git clone https://github.com/agerwick/RT28XX-RT539X-Linux-driver
  • cd RT28XX-RT539X-Linux-driver
  • sudo make
  • sudo make install
  • sudo nano /etc/modprobe.d/blacklist.conf

Add the following lines:

blacklist rt2800pci
blacklist rt2800lib
blacklist rt2x00usb
blacklist rt2x00pci
blacklist rt2x00lib
blacklist rt2860sta
blacklist rt3090sta

To save and exit, press Ctrl-X, Y, Enter

  • sudo nano /etc/modules

Add the following line:

  • rt5390sta

To save and exit, press Ctrl-X, Y, Enter

Now restart the computer, or alternatively:

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

How to update the driver after a Linux kernel upgrade

To update the driver (or "recompile it for your current kernel", to be exact), run the shellscript included here, named "update-driver-after-kernel-upgrade".

If you were in your home directory (that's the default when you open a terminal) when you issued the "git clone" command above, then you can enter the following code in your terminal:

  • ~/RT28XX-RT539X-Linux-driver/update-driver-after-kernel-upgrade

If you get stuck or encounter some problems, we might be able to help. :slight_smile:

xcoryakx@home-net-pc2:~$ sudo apt-get install git linux-headers-generic linux-headers-$(uname -r) build-essential dkms fakeroot
[sudo] password for xcoryakx: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
build-essential is already the newest version.
linux-headers-4.2.0-16-generic is already the newest version.
linux-headers-4.2.0-16-generic set to manually installed.
linux-headers-generic is already the newest version.
Suggested packages:
  git-daemon-run git-daemon-sysvinit git-doc git-el git-email git-gui gitk
  gitweb git-arch git-cvs git-mediawiki git-svn
The following NEW packages will be installed:
  dkms fakeroot git git-man liberror-perl libfakeroot
0 upgraded, 6 newly installed, 0 to remove and 5 not upgraded.
Need to get 3,852 kB of archives.
After this operation, 24.8 MB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu/ wily/main dkms all 2.2.0.3-2ubuntu6 [65.5 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ wily/main libfakeroot amd64 1.20.2-1ubuntu1 [25.5 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu/ wily/main fakeroot amd64 1.20.2-1ubuntu1 [61.8 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu/ wily/main liberror-perl all 0.17-1.1 [21.1 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu/ wily/main git-man all 1:2.5.0-1 [727 kB]
Get:6 http://us.archive.ubuntu.com/ubuntu/ wily/main git amd64 1:2.5.0-1 [2,951 kB]
Fetched 3,852 kB in 8s (446 kB/s)                                              
Selecting previously unselected package dkms.
(Reading database ... 188499 files and directories currently installed.)
Preparing to unpack .../dkms_2.2.0.3-2ubuntu6_all.deb ...
Unpacking dkms (2.2.0.3-2ubuntu6) ...
Selecting previously unselected package libfakeroot:amd64.
Preparing to unpack .../libfakeroot_1.20.2-1ubuntu1_amd64.deb ...
Unpacking libfakeroot:amd64 (1.20.2-1ubuntu1) ...
Selecting previously unselected package fakeroot.
Preparing to unpack .../fakeroot_1.20.2-1ubuntu1_amd64.deb ...
Unpacking fakeroot (1.20.2-1ubuntu1) ...
Selecting previously unselected package liberror-perl.
Preparing to unpack .../liberror-perl_0.17-1.1_all.deb ...
Unpacking liberror-perl (0.17-1.1) ...
Selecting previously unselected package git-man.
Preparing to unpack .../git-man_1%3a2.5.0-1_all.deb ...
Unpacking git-man (1:2.5.0-1) ...
Selecting previously unselected package git.
Preparing to unpack .../git_1%3a2.5.0-1_amd64.deb ...
Unpacking git (1:2.5.0-1) ...
Processing triggers for man-db (2.7.4-1) ...
Setting up dkms (2.2.0.3-2ubuntu6) ...
Setting up libfakeroot:amd64 (1.20.2-1ubuntu1) ...
Setting up fakeroot (1.20.2-1ubuntu1) ...
update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto mode
Setting up liberror-perl (0.17-1.1) ...
Setting up git-man (1:2.5.0-1) ...
Setting up git (1:2.5.0-1) ...
xcoryakx@home-net-pc2:~$ git clone https://github.com/agerwick/RT28XX-RT539X-Linux-driver
Cloning into 'RT28XX-RT539X-Linux-driver'...
remote: Counting objects: 253, done.
remote: Total 253 (delta 0), reused 0 (delta 0), pack-reused 253
Receiving objects: 100% (253/253), 1.08 MiB | 1.55 MiB/s, done.
Resolving deltas: 100% (79/79), done.
Checking connectivity... done.
xcoryakx@home-net-pc2:~$ cd RT28XX-RT539X-Linux-driver
xcoryakx@home-net-pc2:~/RT28XX-RT539X-Linux-driver$ sudo make
make -C tools
make[1]: Entering directory '/home/xcoryakx/RT28XX-RT539X-Linux-driver/tools'
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory '/home/xcoryakx/RT28XX-RT539X-Linux-driver/tools'
/home/xcoryakx/RT28XX-RT539X-Linux-driver/tools/bin2h
cp -f os/linux/Makefile.6 /home/xcoryakx/RT28XX-RT539X-Linux-driver/os/linux/Makefile
make -C /lib/modules/4.2.0-16-generic/build SUBDIRS=/home/xcoryakx/RT28XX-RT539X-Linux-driver/os/linux modules
make[1]: Entering directory '/usr/src/linux-headers-4.2.0-16-generic'
  CC [M]  /home/xcoryakx/RT28XX-RT539X-Linux-driver/os/linux/../../common/crypt_md5.o
In file included from /home/xcoryakx/RT28XX-RT539X-Linux-driver/include/rtmp_os.h:44:0,
                 from /home/xcoryakx/RT28XX-RT539X-Linux-driver/include/rtmp_comm.h:69,
                 from /home/xcoryakx/RT28XX-RT539X-Linux-driver/include/rt_config.h:33,
                 from /home/xcoryakx/RT28XX-RT539X-Linux-driver/os/linux/../../common/crypt_md5.c:28:
/home/xcoryakx/RT28XX-RT539X-Linux-driver/os/linux/../../common/crypt_md5.c: In function ‘MD5Final’:
/home/xcoryakx/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/xcoryakx/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/xcoryakx/RT28XX-RT539X-Linux-driver/os/linux/../../common/crypt_md5.c: In function ‘SHAFinal’:
/home/xcoryakx/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/xcoryakx/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/xcoryakx/RT28XX-RT539X-Linux-driver/os/linux/../../common/crypt_sha2.o
  CC [M]  /home/xcoryakx/RT28XX-RT539X-Linux-driver/os/linux/../../common/crypt_hmac.o
  CC [M]  /home/xcoryakx/RT28XX-RT539X-Linux-driver/os/linux/../../common/crypt_aes.o
  CC [M]  /home/xcoryakx/RT28XX-RT539X-Linux-driver/os/linux/../../common/crypt_arc4.o
  CC [M]  /home/xcoryakx/RT28XX-RT539X-Linux-driver/os/linux/../../common/mlme.o
In file included from /home/xcoryakx/RT28XX-RT539X-Linux-driver/include/rtmp_os.h:44:0,
                 from /home/xcoryakx/RT28XX-RT539X-Linux-driver/include/rtmp_comm.h:69,
                 from /home/xcoryakx/RT28XX-RT539X-Linux-driver/include/rt_config.h:33,
                 from /home/xcoryakx/RT28XX-RT539X-Linux-driver/os/linux/../../common/mlme.c:28:
/home/xcoryakx/RT28XX-RT539X-Linux-driver/os/linux/../../common/mlme.c: In function ‘MlmeResetRalinkCounters’:
/home/xcoryakx/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/xcoryakx/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/xcoryakx/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/xcoryakx/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/xcoryakx/RT28XX-RT539X-Linux-driver/os/linux/../../common/drs_grp.o
  CC [M]  /home/xcoryakx/RT28XX-RT539X-Linux-driver/os/linux/../../common/cmm_wep.o
  CC [M]  /home/xcoryakx/RT28XX-RT539X-Linux-driver/os/linux/../../common/action.o
  CC [M]  /home/xcoryakx/RT28XX-RT539X-Linux-driver/os/linux/../../common/cmm_data.o
  CC [M]  /home/xcoryakx/RT28XX-RT539X-Linux-driver/os/linux/../../common/rtmp_init.o
  CC [M]  /home/xcoryakx/RT28XX-RT539X-Linux-driver/os/linux/../../common/rtmp_init_inf.o
  CC [M]  /home/xcoryakx/RT28XX-RT539X-Linux-driver/os/linux/../../common/cmm_tkip.o
  CC [M]  /home/xcoryakx/RT28XX-RT539X-Linux-driver/os/linux/../../common/cmm_aes.o
  CC [M]  /home/xcoryakx/RT28XX-RT539X-Linux-driver/os/linux/../../common/cmm_sync.o
  CC [M]  /home/xcoryakx/RT28XX-RT539X-Linux-driver/os/linux/../../common/eeprom.o
  CC [M]  /home/xcoryakx/RT28XX-RT539X-Linux-driver/os/linux/../../common/cmm_sanity.o
  CC [M]  /home/xcoryakx/RT28XX-RT539X-Linux-driver/os/linux/../../common/cmm_info.o
  CC [M]  /home/xcoryakx/RT28XX-RT539X-Linux-driver/os/linux/../../common/cmm_cfg.o
  CC [M]  /home/xcoryakx/RT28XX-RT539X-Linux-driver/os/linux/../../common/cmm_wpa.o
  CC [M]  /home/xcoryakx/RT28XX-RT539X-Linux-driver/os/linux/../../common/cmm_radar.o
  CC [M]  /home/xcoryakx/RT28XX-RT539X-Linux-driver/os/linux/../../common/spectrum.o
In file included from /home/xcoryakx/RT28XX-RT539X-Linux-driver/include/rtmp_os.h:44:0,
                 from /home/xcoryakx/RT28XX-RT539X-Linux-driver/include/rtmp_comm.h:69,
                 from /home/xcoryakx/RT28XX-RT539X-Linux-driver/include/rt_config.h:33,
                 from /home/xcoryakx/RT28XX-RT539X-Linux-driver/os/linux/../../common/spectrum.c:28:
/home/xcoryakx/RT28XX-RT539X-Linux-driver/os/linux/../../common/spectrum.c: In function ‘PeerMeasureReportAction’:
/home/xcoryakx/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 buffe
                             ^
/home/xcoryakx/RT28XX-RT539X-Linux-driver/include/os/rt_linux.h:661:16: note: in definition of macro ‘DBGPRINT_RAW’
         printk Fmt;               \
                ^
/home/xcoryakx/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 buffe
   ^
  CC [M]  /home/xcoryakx/RT28XX-RT539X-Linux-driver/os/linux/../../common/rtmp_timer.o
  CC [M]  /home/xcoryakx/RT28XX-RT539X-Linux-driver/os/linux/../../common/rt_channel.o
  CC [M]  /home/xcoryakx/RT28XX-RT539X-Linux-driver/os/linux/../../common/cmm_profile.o
  CC [M]  /home/xcoryakx/RT28XX-RT539X-Linux-driver/os/linux/../../common/cmm_asic.o
/home/xcoryakx/RT28XX-RT539X-Linux-driver/os/linux/../../common/cmm_asic.c: In function ‘AsicGetAutoAgcOffsetForTemperatureSensor’:
/home/xcoryakx/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_T
                            ^
/home/xcoryakx/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_T
                            ^
  CC [M]  /home/xcoryakx/RT28XX-RT539X-Linux-driver/os/linux/../../common/cmm_cmd.o
  CC [M]  /home/xcoryakx/RT28XX-RT539X-Linux-driver/os/linux/../../os/linux/rt_profile.o
In file included from /home/xcoryakx/RT28XX-RT539X-Linux-driver/include/rtmp_os.h:44:0,
                 from /home/xcoryakx/RT28XX-RT539X-Linux-driver/include/rtmp_comm.h:69,
                 from /home/xcoryakx/RT28XX-RT539X-Linux-driver/include/rt_config.h:33,
                 from /home/xcoryakx/RT28XX-RT539X-Linux-driver/os/linux/../../os/linux/rt_profile.c:28:
/home/xcoryakx/RT28XX-RT539X-Linux-driver/os/linux/../../os/linux/rt_profile.c: In function ‘STA_MonPktSend’:
/home/xcoryakx/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_
                                   ^
/home/xcoryakx/RT28XX-RT539X-Linux-driver/include/os/rt_linux.h:661:16: note: in definition of macro ‘DBGPRINT_RAW’
         printk Fmt;               \
                ^
/home/xcoryakx/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_
         ^
  CC [M]  /home/xcoryakx/RT28XX-RT539X-Linux-driver/os/linux/../../chips/rtmp_chip.o
  CC [M]  /home/xcoryakx/RT28XX-RT539X-Linux-driver/os/linux/../../sta/assoc.o
  CC [M]  /home/xcoryakx/RT28XX-RT539X-Linux-driver/os/linux/../../sta/auth.o
  CC [M]  /home/xcoryakx/RT28XX-RT539X-Linux-driver/os/linux/../../sta/auth_rsp.o
  CC [M]  /home/xcoryakx/RT28XX-RT539X-Linux-driver/os/linux/../../sta/sync.o
  CC [M]  /home/xcoryakx/RT28XX-RT539X-Linux-driver/os/linux/../../sta/sanity.o
  CC [M]  /home/xcoryakx/RT28XX-RT539X-Linux-driver/os/linux/../../sta/rtmp_data.o
  CC [M]  /home/xcoryakx/RT28XX-RT539X-Linux-driver/os/linux/../../sta/connect.o
  CC [M]  /home/xcoryakx/RT28XX-RT539X-Linux-driver/os/linux/../../sta/wpa.o
  CC [M]  /home/xcoryakx/RT28XX-RT539X-Linux-driver/os/linux/../../sta/ags.o
  CC [M]  /home/xcoryakx/RT28XX-RT539X-Linux-driver/os/linux/../../sta/sta_cfg.o
/home/xcoryakx/RT28XX-RT539X-Linux-driver/os/linux/../../sta/sta_cfg.c: In function ‘RTMPIoctlShow’:
/home/xcoryakx/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__, _
                                                                     ^
/home/xcoryakx/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__ );
                                                                     ^
cc1: some warnings being treated as errors
scripts/Makefile.build:258: recipe for target '/home/xcoryakx/RT28XX-RT539X-Linux-driver/os/linux/../../sta/sta_cfg.o' failed
make[2]: *** [/home/xcoryakx/RT28XX-RT539X-Linux-driver/os/linux/../../sta/sta_cfg.o] Error 1
Makefile:1398: recipe for target '_module_/home/xcoryakx/RT28XX-RT539X-Linux-driver/os/linux' failed
make[1]: *** [_module_/home/xcoryakx/RT28XX-RT539X-Linux-driver/os/linux] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.2.0-16-generic'
Makefile:372: recipe for target 'LINUX' failed
make: *** [LINUX] Error 2
xcoryakx@home-net-pc2:~/RT28XX-RT539X-Linux-driver$ sudo make install
make -C /home/xcoryakx/RT28XX-RT539X-Linux-driver/os/linux -f Makefile.6 install
make[1]: Entering directory '/home/xcoryakx/RT28XX-RT539X-Linux-driver/os/linux'
rm -rf /etc/Wireless/RT2860STA
mkdir /etc/Wireless/RT2860STA
cp /home/xcoryakx/RT28XX-RT539X-Linux-driver/RT2860STA.dat /etc/Wireless/RT2860STA/.
install -d /lib/modules/4.2.0-16-generic/kernel/drivers/net/wireless/
install -m 644 -c rt5390sta.ko /lib/modules/4.2.0-16-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/xcoryakx/RT28XX-RT539X-Linux-driver/os/linux'
Makefile:465: recipe for target 'install' failed
make: *** [install] Error 2
xcoryakx@home-net-pc2:~/RT28XX-RT539X-Linux-driver$

If this is your card:

02:00.0 Network controller [0280]: Ralink corp. RT5390 Wireless 802.11n 1T/1R PCIe [1814:5390]

Subsystem: Hewlett-Packard Company U98Z077.00 Half-size Mini PCIe Card [103c:1636]

Kernel driver in use: rt2800pci

This wireless card uses the rt2800pci kernel module which is included with the Linux kernel.

Make sure you have installed the package “linux-firmware” as this package has the necessary microcode for the wireless chip.

“dmesg | grep firmware” should show whether you have the correct microcode files.

kernel: ieee80211 phy0: rt2x00lib_request_firmware: Info - Loading firmware file ‘rt2860.bin’
kernel: ieee80211 phy0: rt2x00lib_request_firmware: Info - Firmware detected - version: 0.34

djb

Still having the same issue, if possible could someone remote desktop me to help.

07:00.0 Network controller [0280]: Ralink corp. RT5390 Wireless 802.11n 1T/1R PCIe [1814:5390]
DeviceName: Ralink 5390GN 802.11b/g/n 1x1 WiFi Adapter
Subsystem: Hewlett-Packard Company U98Z077.00 Half-size Mini PCIe Card [103c:1636]

Hi @xCoryAKx,

there has been a new kernel update (4.4.0-22-generic), try doing a full system update and see if it solves the problem as has been pointed out above, your WiFi is in the kernel!:

The issue is still there I need a remote desktop help

Have you tried “dmesg | grep firmware” like I suggested above?

RT5390 is well supported in Linux 4.4.x kernels.

Did you try running the "Live CD" to see if it works in live mode?. :smiley:

I have try ever Ubuntu that I can same issue with each one

You may want to make sure that your wireless is not being blocked by doing this...

At the terminal run:

sudo rfkill list

You should see something like this returned to the screen:

1: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no

If instead you see that the 'blocked' comes back as "yes" then note the number your WiFi is being assigned (in the example above it is a "1") from the terminal run the following with the noted number:

sudo rfkill unblock 1
sudo /etc/init.d/networking restart

If they are 'hard blocked' you may have set your BIOS to 'default' settings.

It looks like the driver could be the issue, in which case you could try is to take down the bad one and start up the good one by doing something like this in the terminal:

sudo rmmod rt28XX && modprobe rt2800pci

1 Like

I am by no means any sort of “expert” although I’ve using ubuntu in one “flavor” or another for many years ever since XP drove me to find an alternative.

I have my first laptop, an old Presario C502 , a back-up machine which principally resides in my workshop and works through my lan. I had a “can’t find it” situation with the wifi and just about gave up on u-MATE until I found the following:

$ sudo apt-get --purge bcmwl-kernel-source
$ sudo apt-get install linux-firmware-nonfree
$ sudo modprobe b43
$ sudo su

echo “b43” … /etc/modules

It worked for me… but it’s not persistent. Upon every boot it requires I open a terminal and type in the sudo modprobe b43 command.

Any ideas on how I can make it persistent?

Speaking of persistence, I changed the computer’s password successfully and it works with sudo identification… until I reboot. Hints also needed here.

Thanks in advance from an 81 year old geek… sorta.

please help me. i'm unable to connect wifi. it's showing wifi driver missing. my output is like this:
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 60h-6fh) Processor Root Complex
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 60h-6fh) I/O Memory Management Unit
00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Stoney [Radeon R2/R3/R4/R5 Graphics] (rev d4)
00:01.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Device 15b3
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 60h-6fh) Host Bridge
00:02.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 60h-6fh) Processor Root Port
00:02.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 60h-6fh) Processor Root Port
00:02.4 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 60h-6fh) Processor Root Port
00:03.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 60h-6fh) Host Bridge
00:08.0 Encryption controller: Advanced Micro Devices, Inc. [AMD] Device 1578
00:09.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 157d
00:09.2 Audio device: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 60h-6fh) Audio Controller
00:10.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB XHCI Controller (rev 20)
00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 4b)
00:12.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI Controller (rev 49)
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 4b)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 11)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 15b0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 15b1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 15b2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 15b3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 15b4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 15b5
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
03:00.0 Network controller: Realtek Semiconductor Co., Ltd. Device d723