I'm having a problem installing a driver for my USB adapter...

Questions about Wi-Fi and other network devices, file sharing, firewalls, connection sharing etc
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
MrOzwaldMan
Level 1
Level 1
Posts: 8
Joined: Tue May 24, 2022 10:18 pm

I'm having a problem installing a driver for my USB adapter...

Post by MrOzwaldMan »

https://www.lb-link.cn/download-detail.php?DId=172 I am trying to install this driver, please give me a step-by-step guide because I don't know what I'm doing. I tried doing "make" but it didn't work, nothing worked.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
MrOzwaldMan
Level 1
Level 1
Posts: 8
Joined: Tue May 24, 2022 10:18 pm

Re: I'm having a problem installing a driver for my USB adapter...

Post by MrOzwaldMan »

Update: I found a read me and this is only a portion:
=======================================================================
Build Instructions:
====================

1> $tar -xvzf DPB_RT2870_Linux_STA_x.x.x.x.tgz
go to "./DPB_RT2870_Linux_STA_x.x.x.x" directory.

2> In Makefile
set the "MODE = STA" in Makefile and chose the TARGET to Linux by set "TARGET = LINUX"
define the linux kernel source include file path LINUX_SRC
modify to meet your need.

3> In os/linux/config.mk
define the GCC and LD of the target machine
define the compiler flags CFLAGS
modify to meet your need.
** Build for being controlled by NetworkManager or wpa_supplicant wext functions
Please set 'HAS_WPA_SUPPLICANT=y' and 'HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y'.
=> #>cd wpa_supplicant-x.x
=> #>./wpa_supplicant -Dwext -ira0 -c wpa_supplicant.conf -d
** Build for being controlled by WpaSupplicant with Ralink Driver
Please set 'HAS_WPA_SUPPLICANT=y' and 'HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=n'.
=> #>cd wpa_supplicant-0.5.7
=> #>./wpa_supplicant -Dralink -ira0 -c wpa_supplicant.conf -d

4> $make
# compile driver source code
# To fix "error: too few arguments to function ¡¥iwe_stream_add_event"
=> $patch -i os/linux/sta_ioctl.c.patch os/linux/sta_ioctl.c

5> $cp RT2870STA.dat /etc/Wireless/RT2870STA/RT2870STA.dat

6> load driver, go to "os/linux/" directory.
#[kernel 2.4]
# $/sbin/insmod rt2870sta.o
# $/sbin/ifconfig ra0 inet YOUR_IP up

#[kernel 2.6]
# $/sbin/insmod rt2870sta.ko
# $/sbin/ifconfig ra0 inet YOUR_IP up

7> unload driver
$/sbin/ifconfig ra0 down
$/sbin/rmmod rt2870sta
pdc_2
Level 10
Level 10
Posts: 3019
Joined: Mon May 11, 2009 1:21 am

Re: I'm having a problem installing a driver for my USB adapter...

Post by pdc_2 »

this link https://askubuntu.com/questions/656146/ ... r-bl-wn151 from 2015 suggested a simpler series of commands to paste into the terminal; one by one;

would you consider trying that?

I wonder the driver has not made its way into a kernel release
sleeper12
Level 21
Level 21
Posts: 14607
Joined: Thu May 25, 2017 3:22 pm

Re: I'm having a problem installing a driver for my USB adapter...

Post by sleeper12 »

We need to see more to identify the correct driver. With the adapter plugged in, post what this shows:

Code: Select all

lsusb
Locked

Return to “Networking”