Ralink RAL2870 Wi-Fi USB network hardware setup

Add your Tips and tricks to configure and tweak your GhostBSD System here.
Post Reply
wb7odyfred
Posts: 203
Joined: Sat Nov 12, 2016 5:44 pm

Ralink RAL2870 Wi-Fi USB network hardware setup

Post by wb7odyfred »

RAL2870 USB LAN Card software installation for Wi-Fi operation on GhostBSD

From a terminal window command line, execute the following 3 lines

Code: Select all

sysrc kld_list+="if_run runfw"

Code: Select all

ifconfig wlan0 create wlandev ral0

Code: Select all

service networking restart

Code: Select all

ifconfig wlan0
Or if that did not work then reboot, It is that simple with GhostBSD 20.0x and the Networkmgr program when you click the Network [ ] RJ45 jack icon.


Check what WLAN Wifi device is in your computer system with this sysctl command

Code: Select all

sysctl net.wlan.devices
net.wlan.devices: run0

list the usb devices in your computer. Look for the network device in the list. Ralink in this case.

Code: Select all

usbconfig list
ugen0.1: <0x8086 XHCI root HUB> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA)
ugen0.2: <vendor 0x05e3 USB2.0 Hub> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (100mA)
ugen0.3: <Ralink 802.11 n WLAN> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (450mA)
ugen0.4: <vendor 0x1bcf USB Optical Mouse> at usbus0, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON (98mA)

Code: Select all

usbconfig dump_device_desc
ugen0.3: <Ralink 802.11 n WLAN> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (450mA)

bLength = 0x0012
bDescriptorType = 0x0001
bcdUSB = 0x0200
bDeviceClass = 0x0000 <Probed by interface class>
bDeviceSubClass = 0x0000
bDeviceProtocol = 0x0000
bMaxPacketSize0 = 0x0040
idVendor = 0x148f
idProduct = 0x3070
bcdDevice = 0x0101
iManufacturer = 0x0001 <Ralink>
iProduct = 0x0002 <802.11 n WLAN>
iSerialNumber = 0x0003 <1.0>
bNumConfigurations = 0x0001

ugen0.4: <vendor 0x1bcf USB Optical Mouse> at usbus0, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON (98mA)

bLength = 0x0012
bDescriptorType = 0x0001
bcdUSB = 0x0200
bDeviceClass = 0x0000 <Probed by interface class>
bDeviceSubClass = 0x0000
bDeviceProtocol = 0x0000
bMaxPacketSize0 = 0x0008
idVendor = 0x1bcf
idProduct = 0x0007
bcdDevice = 0x0014
iManufacturer = 0x0000 <no string>
iProduct = 0x0002 <USB Optical Mouse>
iSerialNumber = 0x0000 <no string>
bNumConfigurations = 0x0001

Manual Steps
4. Alternatively, to load the firmware images as a module at boot time,
place the following 2 lines in /boot/loader.conf(5):

Code: Select all

if_run_load="YES"
runfw_load="YES"
5. then edit these 2 lines into /etc/rc.conf

Code: Select all

wlans_ral0="wlan0"
ifconfig_wlan0="WPA SYNCDHCP"
manually create a file /etc/wpa_supplicant.conf with these minimal contents. GhostBSD Networkmgr will automatically create this file and the specific WLAN Wi-Fi access point that you select. The Wi-Fi ssid name is "innflux" and is an open network. No WEP or WPA-2 selected

Code: Select all

network={
 	ssid="innflux"
        key_mgmt=NONE
}


6. then reboot or issue command

Code: Select all

service network restart
7. finally, run command

Code: Select all

ifconfig wlan0 create wlandev ral0

https://www.freebsd.org/cgi/man.cgi?que ... &sektion=4 RUNFW firmware for RT2780 & RT3071 runfw -- Firmware Module for Ralink driver
Alternatively, to load the firmware images as a module at boot time,
place the following 2 lines in /boot/loader.conf(5):

Code: Select all

runfw_load="YES"
if_run_load="YES"
Useful pages to read
https://www.freebsd.org/cgi/man.cgi?que ... +and+Ports loader.conf(5)
https://www.freebsd.org/cgi/man.cgi?que ... +and+Ports run(4)
https://www.mediatek.com/products/broadbandWifi/rt2870 Apple and Windows Drivers


You can try making and editing wpa supplicant

cd /etc

touch wpa_supplicant.conf
ee wpa_supplicant.conf

Then put this in the file

Code: Select all

network={
     ssid="your router SSID number"
     psk="your router's password"
}

Then

ee /etc/rc.conf

And add these lines

Code: Select all

wlans_run0="wlan0"
ifconfig_wlan0="WPA SYNCDHCP"
Then save and reboot
Post Reply