datagueule
April 15th, 2020, 01:25 AM
Hi All,
I purchased a wireless USB adapter for my desktop (supposed to work on linux)
But I got a bit lost with the driver installation.
I found on the website (http://www.szedup.com/product-item/wireless-usb-adapter-6dbi-antenna/#tab-id-1)that the model is EP-MS8551. So I could find the driver on the website brand here (http://www.szedup.com/support/driver-download/ep-n8551-driver/).
The driver is a .zip file, so I first search where to copy past the folder, but I realized that might be a bad idea. from the README:
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
but I m confused here. they say to define the kernel to the LINUX_SRC. But there are a lot of lines in the makefile with that, and I have no idea what to modify and how. That s just point 2. Point 3 I don t know how to define all this. It seems really complicated so I tried to find another source looking for RT2870STA which I understood was the driver name. I found this (https://wiki.debian.org/rt2870sta#supported) but in the list of supported devices, there is no EDUP EP-MS8551. Would it still work?
anybody has an easier way?
thank you!
I purchased a wireless USB adapter for my desktop (supposed to work on linux)
But I got a bit lost with the driver installation.
I found on the website (http://www.szedup.com/product-item/wireless-usb-adapter-6dbi-antenna/#tab-id-1)that the model is EP-MS8551. So I could find the driver on the website brand here (http://www.szedup.com/support/driver-download/ep-n8551-driver/).
The driver is a .zip file, so I first search where to copy past the folder, but I realized that might be a bad idea. from the README:
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
but I m confused here. they say to define the kernel to the LINUX_SRC. But there are a lot of lines in the makefile with that, and I have no idea what to modify and how. That s just point 2. Point 3 I don t know how to define all this. It seems really complicated so I tried to find another source looking for RT2870STA which I understood was the driver name. I found this (https://wiki.debian.org/rt2870sta#supported) but in the list of supported devices, there is no EDUP EP-MS8551. Would it still work?
anybody has an easier way?
thank you!