1

I have a problem with installing drivers for my wireless network adapter. When I try installing the drivers for my network adapter, everything goes fine until I have to make the driver after, every time that I try to make it always gives me Makefile Error 2. Anyone knows how to fix this? I'm using Ubuntu Budgie and trying to install drivers for TP-Link archer t2uh. After that I get this in terminal

make -C UTIL/ osutil
make[1]: Entering directory '/home/pleple66/Archer_T2UH_Linux/Driver/UTIL'
cp -f os/linux/Makefile.6.util /home/pleple66/Archer_T2UH_Linux/Driver/UTIL/os/linux/Makefile
make -C /lib/modules/5.4.0-21-generic/build SUBDIRS=/home/pleple66/Archer_T2UH_Linux/Driver/UTIL/os/linux modules
make[2]: Entering directory '/usr/src/linux-headers-5.4.0-21-generic'
arch/x86/Makefile:147: CONFIG_X86_X32 enabled but no binutils support
make[3]: *** No rule to make target 'arch/x86/tools/relocs_32.c', needed by 'arch/x86/tools/relocs_32.o'.  Stop.
make[2]: *** [arch/x86/Makefile:232: archscripts] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-5.4.0-21-generic'
make[1]: *** [Makefile:528: osutil] Error 2
make[1]: Leaving directory '/home/pleple66/Archer_T2UH_Linux/Driver/UTIL'
make: *** [Makefile:3: all] Error 2
Tilman
  • 3,769

3 Answers3

0

Your system lacks basic packages for compiling kernel modules. The compilation instructions for the TP-Link archer t2uh are woefully incomplete in that respect. Install at least the build-essential and kernel-headers packages as described here before trying again.

Tilman
  • 3,769
0

I'm pretty sure you don't need to install the firmware on a newer kernel as it's built in.

First, make sure the linux-firmware and extra module packages are installed

sudo apt update
sudo apt dist-upgrade
sudo apt install linux-firmware linux-image-generic 

note: if you downloaded and manually installed Nvidia drivers from the Nvidia website you will also need to run sudo ubuntu-drivers autoinstall to reinstall the drivers

Next, reboot to make sure you're running on the latest kernel.

Finally, run the following command to enable the driver for your device:

sudo modprobe mt76x0u

You may have to run that before you plug the device in or you might have to plug the device in before you run that command to enable the driver.

Please comment below if this doesn't work.

mchid
  • 44,904
  • 8
  • 102
  • 162
-2

i386 headers required:

sudo apt-get install linux-headers-*(kernel version)*:i386

Example:

sudo apt-get install linux-headers-5.4.0-42:i386
Zanna
  • 72,312