[SOLVED] Installing Driver for Wireless USB Adapter
by RichE from LinuxQuestions.org on (#5NW3X)
I recently purchased a Panda PAU05 Wireless USB Adapter; however, I am having trouble with the installation. I am following the directions on their website for the Linux installation https://www.pandawireless.com/downlo...inux_v1.0s.pdf :
Code:1) Blacklist RT2800 wireless module in the Linux Kernel
$>cd /etc/modprobe.d
$>vi blacklist.conf
Add "blacklist rt2800usb" at the end of the file.
2) Copy RT2870STA to /etc (RT2870STA.dat is located in your driver install directory)
$>mkdir -p Wireless/RT2870STA (under /etc directory)
$>cp RT2870STA.dat /etc/Wireless/RT2870STA/RT2870STA.dat
3) Create tftpboot directory under root directory
$> mkdir /tftpboot
4) Compile the driver for the Panda Wireless N adapter
$> tar jxvf LinuxDriver4Fedora_v2.5.0.3.tar.bz2
$> make
You will find rt3070sta.ko in /tftpboot directory
5) Load driver
$>insmod rt3070sta.ko
$>ifconfig ra0 inet up
6) Unload driver
$>ifconfig ra0 inet down
$>rmmod rt3070sta.koOnce I get to the instruction to make, there is no rt3070sta.ko file in my /tftpboot directory and I receive this output/errors in the terminal:
Code:make -C tools
make[1]: Entering directory '/home/rich/Downloads/LinuxDriver4Fedora_v2.5.0.3/tools'
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory '/home/rich/Downloads/LinuxDriver4Fedora_v2.5.0.3/tools'
/home/rich/Downloads/LinuxDriver4Fedora_v2.5.0.3/tools/bin2h
cp -f os/linux/Makefile.6 /home/rich/Downloads/LinuxDriver4Fedora_v2.5.0.3/os/linux/Makefile
make -C /lib/modules/5.11.0-27-generic/build SUBDIRS=/home/rich/Downloads/LinuxDriver4Fedora_v2.5.0.3/os/linux modules
make[1]: Entering directory '/usr/src/linux-headers-5.11.0-27-generic'
SYNC include/config/auto.conf.cmd
LEX scripts/kconfig/lexer.lex.c
/bin/sh: 1: flex: not found
make[3]: *** [scripts/Makefile.host:9: scripts/kconfig/lexer.lex.c] Error 127
make[2]: *** [Makefile:629: syncconfig] Error 2
make[1]: *** [Makefile:737: include/config/auto.conf.cmd] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.11.0-27-generic'
make: *** [Makefile:357: LINUX] Error 2I am using Ubuntu 20.04.3, but the filename of the driver says LinuxDriver4Fedora_v2.5.0.3.tar.bz2 . That's the only one they have for Linux, so I am assuming the instructions for Ubuntu are quite similar; however, I am not sure how to proceed.
Code:1) Blacklist RT2800 wireless module in the Linux Kernel
$>cd /etc/modprobe.d
$>vi blacklist.conf
Add "blacklist rt2800usb" at the end of the file.
2) Copy RT2870STA to /etc (RT2870STA.dat is located in your driver install directory)
$>mkdir -p Wireless/RT2870STA (under /etc directory)
$>cp RT2870STA.dat /etc/Wireless/RT2870STA/RT2870STA.dat
3) Create tftpboot directory under root directory
$> mkdir /tftpboot
4) Compile the driver for the Panda Wireless N adapter
$> tar jxvf LinuxDriver4Fedora_v2.5.0.3.tar.bz2
$> make
You will find rt3070sta.ko in /tftpboot directory
5) Load driver
$>insmod rt3070sta.ko
$>ifconfig ra0 inet up
6) Unload driver
$>ifconfig ra0 inet down
$>rmmod rt3070sta.koOnce I get to the instruction to make, there is no rt3070sta.ko file in my /tftpboot directory and I receive this output/errors in the terminal:
Code:make -C tools
make[1]: Entering directory '/home/rich/Downloads/LinuxDriver4Fedora_v2.5.0.3/tools'
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory '/home/rich/Downloads/LinuxDriver4Fedora_v2.5.0.3/tools'
/home/rich/Downloads/LinuxDriver4Fedora_v2.5.0.3/tools/bin2h
cp -f os/linux/Makefile.6 /home/rich/Downloads/LinuxDriver4Fedora_v2.5.0.3/os/linux/Makefile
make -C /lib/modules/5.11.0-27-generic/build SUBDIRS=/home/rich/Downloads/LinuxDriver4Fedora_v2.5.0.3/os/linux modules
make[1]: Entering directory '/usr/src/linux-headers-5.11.0-27-generic'
SYNC include/config/auto.conf.cmd
LEX scripts/kconfig/lexer.lex.c
/bin/sh: 1: flex: not found
make[3]: *** [scripts/Makefile.host:9: scripts/kconfig/lexer.lex.c] Error 127
make[2]: *** [Makefile:629: syncconfig] Error 2
make[1]: *** [Makefile:737: include/config/auto.conf.cmd] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.11.0-27-generic'
make: *** [Makefile:357: LINUX] Error 2I am using Ubuntu 20.04.3, but the filename of the driver says LinuxDriver4Fedora_v2.5.0.3.tar.bz2 . That's the only one they have for Linux, so I am assuming the instructions for Ubuntu are quite similar; however, I am not sure how to proceed.