News: This forum is now permanently frozen.
Pages: [1] 2 3
Topic: Any chance to include run(4) driver -- Ralink USB IEEE 802.11a/g/n wireless?  (Read 15265 times)
« on: May 24, 2012, 12:27:00 »
funchaser *
Posts: 9

My Ralink USB works perfectly with pfsense as AP, but refuse to work with monowall  Angry
There are many inexpensive Ralink USB sticks (espesially in chinese internet shops). The one I have is very cheap and very long range. It would be good to add driver into the kernel.
Any chance?
« Reply #1 on: May 24, 2012, 18:28:56 »
iridris ***
Posts: 145

The best bet would be to first get the driver included in FreeBSD, which m0n0wall is based on. Once it is there, it can be added to m0n0wall much easier.
« Reply #2 on: May 24, 2012, 20:23:02 »
funchaser *
Posts: 9

The best bet would be to first get the driver included in FreeBSD, which m0n0wall is based on. Once it is there, it can be added to m0n0wall much easier.

FreeBSD 8.1-RELEASE Release Notes
Release Highlights
.........
The run(4) driver for Ralink RT2700U/RT2800U/RT3000U USB 802.11agn devices has been added
http://www.freebsd.org/cgi/man.cgi?query=run&apropos=0&sektion=0&manpath=FreeBSD+8.2-RELEASE&arch=default&format=html
........
« Reply #3 on: May 24, 2012, 22:49:40 »
Fred Grayson *****
Posts: 994

Which version of m0n0wall are you trying with?

--
Google is your friend and Bob's your uncle.
« Reply #4 on: May 25, 2012, 10:01:02 »
funchaser *
Posts: 9

Which version of m0n0wall are you trying with?


1.8.0b510 built on Thu May 3
« Reply #5 on: May 25, 2012, 15:48:12 »
Fred Grayson *****
Posts: 994

1.8.0b510 is built on FreeBSD 8.2-RELEASE-p6, which is the version those release notes refers to.

What I don't know is if every FreeBSD supported driver is routinely compiled into the m0n0wall kernel or if some are omitted.

Do you see anything relevant when you run dmesg from the /exec.php page?



--
Google is your friend and Bob's your uncle.
« Reply #6 on: May 25, 2012, 15:49:23 »
Lennart Grahl ***
Posts: 153

Hey guys,

I had a look at "build/kernelconfigs/M0N0WALL_GENERIC.i386" and the run-driver does not seem to be included in there.
Even if run would be available right now m0n0wall wouldn't make it available to select the device as "run" isn't known as a wireless device to m0n0wall.

This is the regex pattern which m0n0wall uses to determine whether a device is a wireless device:
Code:
"wireless_regex" => "/^(wi|an|ath|ral|rum|ural|zyd)/",
"wireless_hostap_regex" => "/^(wi|ath|ral|rum|ural)/"

Regards
« Reply #7 on: May 25, 2012, 23:13:39 »
Lennart Grahl ***
Posts: 153

I've built r510 with run (and runfw) included into the kernel.

Including runfw was a bit of a pain and I don't know if hostap mode works with this device.

Give it a try and let us know: www.lgrahl.de/download

Edit (Off topic): Oh and by the way - is there any specific reason why wlan_amrr hasn't been included into m0n0wall?
« Last Edit: May 25, 2012, 23:19:30 by Lennart Grahl »
« Reply #8 on: May 26, 2012, 11:20:10 »
funchaser *
Posts: 9

I've built r510 with run (and runfw) included into the kernel.

Including runfw was a bit of a pain and I don't know if hostap mode works with this device.

Give it a try and let us know: www.lgrahl.de/download

Edit (Off topic): Oh and by the way - is there any specific reason why wlan_amrr hasn't been included into m0n0wall?

Just one moment need to be fixed -

run0: <1.0> on usbus4
run0: MAC/BBP RT3070 (rev 0x0201), RF RT3020 (MIMO 1T1R), address 00:25:22:30:3d:6c
runfw: root not mounted yet, no way to load image
run0: failed loadfirmware of file runfw
run0: could not load 8051 microcode
device_attach: run0 attach returned 6
run0: <1.0> on usbus4
Root mount waiting for: usbus4
run0: MAC/BBP RT3070 (rev 0x0201), RF RT3020 (MIMO 1T1R), address 00:25:22:30:3d:6c
runfw: root not mounted yet, no way to load image
run0: failed loadfirmware of file runfw
run0: could not load 8051 microcode
device_attach: run0 attach returned 6

after unplug/plug USB stick

ugen4.2: <Ralink> at usbus4 (disconnected)
ugen4.2: <Ralink> at usbus4
run0: <1.0> on usbus4
run0: MAC/BBP RT3070 (rev 0x0201), RF RT3020 (MIMO 1T1R), address 00:25:22:30:3d:6c
run0: firmware RT2870 loaded

please do as sugested here
place the
     following lines in loader.conf:

      if_run_load="YES"
      runfw_load="YES"

« Last Edit: May 26, 2012, 11:29:58 by funchaser »
« Reply #9 on: May 26, 2012, 13:57:01 »
Lennart Grahl ***
Posts: 153

Please add the following line to your config.xml, reboot and try again:
Code:
<earlyshellcmd>kldload runfw</earlyshellcmd>

If this driver makes it into the current beta you won't need to do this but for now it should do the job.
« Last Edit: May 26, 2012, 14:01:56 by Lennart Grahl »
« Reply #10 on: May 26, 2012, 14:35:23 »
funchaser *
Posts: 9

Please add the following line to your config.xml, reboot and try again:
Code:
<earlyshellcmd>kldload runfw</earlyshellcmd>

If this driver makes it into the current beta you won't need to do this but for now it should do the job.

I have put it like this

<?xml version="1.0"?>
<m0n0wall>
   <version>2.0</version>
   <system>
      <earlyshellcmd>kldload runfw</earlyshellcmd>
...

unfortunatelly, does not help!
« Reply #11 on: May 26, 2012, 15:34:51 »
Lennart Grahl ***
Posts: 153

I've built another image: www.lgrahl.de/download

You may delete the earlyshellcmd line. It should work now.
« Reply #12 on: May 26, 2012, 19:32:03 »
funchaser *
Posts: 9

I've built another image: www.lgrahl.de/download

You may delete the earlyshellcmd line. It should work now.

It worked!
Thanks.
Hope, it will be included in future releases.
« Reply #13 on: May 26, 2012, 20:35:39 »
Lennart Grahl ***
Posts: 153

Great. Smiley Could you try HostAP mode in your wireless configuration?

I don't want to commit my changes to the repository yet as I'm not sure if it is the proper/best way to implement it.

@To the other commiters - please, have a look (compare it to b510): www.lgrahl.de/download/generic-pc-1.8.0b510_run_included_src.7z
« Reply #14 on: May 26, 2012, 22:05:26 »
funchaser *
Posts: 9

Great. Smiley Could you try HostAP mode in your wireless configuration?

I don't want to commit my changes to the repository yet as I'm not sure if it is the proper/best way to implement it.

@To the other commiters - please, have a look (compare it to b510): www.lgrahl.de/download/generic-pc-1.8.0b510_run_included_src.7z

It's in HostAP!

wlan1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
   ether 00:25:22:30:3d:6c
   inet6 fe80::225:22ff:fe30:3d6c%wlan1 prefixlen 64 scopeid 0x8
   inet 192.168.180.254 netmask 0xffffff00 broadcast 192.168.180.255
   nd6 options=41<PERFORMNUD,NO_RADR>
   media: IEEE 802.11 Wireless Ethernet autoselect mode 11g <hostap>
   status: running
   ssid RALINK channel 1 (2412 MHz 11g) bssid 00:25:22:30:3d:6c
   country US authmode WPA2/802.11i privacy MIXED deftxkey 3
   AES-CCM 2:128-bit AES-CCM 3:128-bit txpower 0 scanvalid 60
   protmode CTS wme dtimperiod 1 -dfs

 
Pages: [1] 2 3
 
 
Powered by SMF 1.1.20 | SMF © 2013, Simple Machines