Welcome, Guest. Please login or register.

Author Topic: Can't assign wlan device on generic-pc-2.11.1b133  (Read 21648 times)

skua

  • Newbie
  • *
  • Posts: 32
  • Karma: +0/-0
    • View Profile
Can't assign wlan device on generic-pc-2.11.1b133
« on: January 23, 2017, 04:07:06 PM »
Hello!

I've got several old thin clients (Geode LX800 based) that I want to convert to wifi routers, using cheap usb dongles (Ralink RT5370).

Those boards do not have pci connectors, etc.. all components are soldered to the board so the only way is using usb-wifi adapters.

I downloaded and installed t1n1wall generic-pc-2.11.1b133. It is works good, but I just cannot add (assign) the wlan devices directly.

So I had to install smallwall 1.8.4, assign one usb wlan adapter and then backup the configuration, reinstall t1n1wall 2.11 and restore the config file.

It worked. At least now I can use one of the dongles (LAN). Problem is I need to install a second one (LAN) which is only supported in t1n1wall 2.11 (FreeBSD 11).

Am I doing something wrong? Or is it a bug?

Both usb adapters are recognized during boot. One uses rum0 and the other run0 drivers. So I think it must be something related to the WebGUI or xml.

Keep up the good work!

Awaiting responses,

Regards.

andywhite

  • Administrator
  • Full Member
  • *****
  • Posts: 124
  • Karma: +0/-0
    • View Profile
Re: Can't assign wlan device on generic-pc-2.11.1b133
« Reply #1 on: January 23, 2017, 06:26:03 PM »
Hi!

Can you post dmesg output here ?

skua

  • Newbie
  • *
  • Posts: 32
  • Karma: +0/-0
    • View Profile
Re: Can't assign wlan device on generic-pc-2.11.1b133
« Reply #2 on: January 24, 2017, 12:31:33 AM »
Hi there...

Here it goes:

Code: [Select]
$ dmesg
Copyright (c) 1992-2016 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 11.0-RELEASE-p1 #0: Tue Jan  3 16:49:53 GMT 2017
    [email protected]:/usr/t1n1wall/build11/tmp/sys/i386/compile/T1N1WALL_GENERIC i386
FreeBSD clang version 3.8.0 (tags/RELEASE_380/final 262564) (based on LLVM 3.8.0)
CPU: Geode(TM) Integrated Processor by AMD PCS (498.06-MHz 586-class CPU)
  Origin="AuthenticAMD"  Id=0x5a2  Family=0x5  Model=0xa  Stepping=2
  Features=0x88a93d<FPU,DE,PSE,TSC,MSR,CX8,SEP,PGE,CMOV,CLFLUSH,MMX>
  AMD Features=0xc0400000<MMX+,3DNow!+,3DNow!>
real memory  = 247357440 (235 MB)
avail memory = 202137600 (192 MB)
wlan: mac acl policy registered
random: entropy device external interface
kbd1 at kbdmux0
K6-family MTRR support enabled (2 registers)
cryptosoft0: <software crypto> on motherboard
acpi0: <GENSW OEM00001> on motherboard
acpi0: Power Button (fixed)
cpu0: <ACPI CPU> on acpi0
atrtc0: <AT realtime clock> port 0x70-0x71,0x72-0x73 irq 8 on acpi0
Event timer "RTC" frequency 32768 Hz quality 0
attimer0: <AT timer> port 0x40-0x43 irq 0 on acpi0
Timecounter "i8254" frequency 1193182 Hz quality 0
Event timer "i8254" frequency 1193182 Hz quality 100
Timecounter "ACPI-safe" frequency 3579545 Hz quality 850
acpi_timer0: <32-bit timer at 3.579545MHz> port 0x9c10-0x9c13 on acpi0
acpi_button0: <Power Button> on acpi0
acpi_button1: <Sleep Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pcib0: Length mismatch for 3 range: bff00000 vs bfefffff
pci0: <ACPI PCI bus> on pcib0
vgapci0: <VGA-compatible display> mem 0xe0000000-0xe0ffffff,0xe1000000-0xe1003fff,0xe1004000-0xe1007fff,0xe1008000-0xe100bfff,0xe100c000-0xe100ffff irq 11 at device 1.1 on pci0
vgapci0: Boot video device
pci0: <encrypt/decrypt, entertainment crypto> at device 1.2 (no driver attached)
rl0: <RealTek 8139 10/100BaseTX> port 0xf800-0xf8ff mem 0xe1014000-0xe10140ff irq 10 at device 13.0 on pci0
miibus0: <MII bus> on rl0
rlphy0: <RealTek internal media interface> PHY 0 on miibus0
rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
rl0: Ethernet address: 18:40:14:00:70:20
isab0: <PCI-ISA bridge> port 0xf400-0xf407,0xf000-0xf0ff,0xec00-0xec3f,0xe800-0xe81f,0xe400-0xe47f,0x9c40-0x9c7f at device 15.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <AMD CS5536 UDMA100 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xdc00-0xdc0f at device 15.2 on pci0
ata0: <ATA channel> at channel 0 on atapci0
ata1: <ATA channel> at channel 1 on atapci0
pci0: <multimedia, audio> at device 15.3 (no driver attached)
ohci0: <OHCI (generic) USB controller> mem 0xe1015000-0xe1015fff irq 11 at device 15.4 on pci0
usbus0 on ohci0
ehci0: <AMD CS5536 (Geode) USB 2.0 controller> mem 0xe1016000-0xe1016fff irq 11 at device 15.5 on pci0
ehci0: pre-2.0 USB revision (ignored)
usbus1: EHCI version 1.0
usbus1 on ehci0
pmtimer0 on isa0
orm0: <ISA Option ROMs> at iomem 0xc0000-0xc7fff,0xc8000-0xd27ff pnpid ORM0000 on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
Timecounters tick every 1.000 msec
md0: Preloadusbus0: 12Mbps Full Speed USB v1.0
usbus1: 480Mbps High Speed USB v2.0
ugen1.1: <AMD> at usbus1
uhub0: <AMD EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus1
ugen0.1: <AMD> at usbus0
uhub1: <AMD OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0
ed image </mfsroot> 23314432 bytes at 0xc10c3728
g_access(918): provider md0a has error
g_access(918): provider md0a has error
g_access(918): provider md0a has error
ada0 at ata0 bus 0 scbus0 target 0 lun 0
ada0: <EXPERT FIC 30/06/03> ATA device
ada0: Serial Number FIC00001
ada0: 16.700MB/s transfers (PIO4, PIO 512bytes)
ada0: 249MB (510976 512 byte sectors)
taskqgroup_adjust failed cnt: 1 stride: 1 mp_ncpus: 1 smp_started: 0
taskqgroup_adjust failed cnt: 1 stride: 1 mp_ncpus: 1 smp_started: 0
Timecounter "TSC" frequency 498060726 Hz quality 800
Trying to mount root from ufs:/dev/md0 []...
uhub1: 4 ports with 4 removable, self powered
stray irq7
stray irq7
uhub0: 4 ports with 4 removable, self powered
random: unblocking device.
ugen1.2: <Ralink> at usbus1
rum0: <Ralink 802.11 bg WLAN, class 0/0, rev 2.00/0.01, addr 2> on usbus1
rum0: MAC/BBP RT2573 (rev 0x2573a), RF RT2528
glxsb0: <AMD Geode LX Security Block (AES-128-CBC, RNG)> mem 0xe1010000-0xe1013fff irq 11 at device 1.2 on pci0
rl0: link state changed to DOWN
done
stray irq7
wlan0: Ethernet address: 00:b0:8c:01:8c:c3
ugen0.2: <vendor 0x04d9> at usbus0
ukbd0: <vendor 0x04d9 product 0x1400, class 0/0, rev 1.10/1.43, addr 2> on usbus0
kbd2 at ukbd0
ugen1.3: <Ralink> at usbus1
run0: <1.0> on usbus1
run0: MAC/BBP RT5390 (rev 0x0502), RF RT5370 (MIMO 1T1R), address 7c:dd:90:a1:f7:89
pflog0: promiscuous mode enabled
done
done

I have 84 of those thin clients to convert to routers... So, any help is much appreciated.

Thank you.

« Last Edit: January 24, 2017, 03:23:11 AM by skua »

skua

  • Newbie
  • *
  • Posts: 32
  • Karma: +0/-0
    • View Profile
Re: Can't assign wlan device on generic-pc-2.11.1b133
« Reply #3 on: January 24, 2017, 12:39:28 AM »
Interface assignment screenshot:



As the screenshot indicates, although FreeBSD 11 recognizes devices rum0 (ugen1.2) and run0 (ugen1.3), webgui dropdown box shows nothing.

I need to setup ugen1.2 as LAN and ugen1.3 as WAN.

rl0 as OPT1.

Ticking or UNticking the option to load Ralink firmware on "advanced" tab and rebooting has no effect also... I am clueless.

Thx.
« Last Edit: January 24, 2017, 04:54:28 PM by skua »

andywhite

  • Administrator
  • Full Member
  • *****
  • Posts: 124
  • Karma: +0/-0
    • View Profile
Re: Can't assign wlan device on generic-pc-2.11.1b133
« Reply #4 on: January 24, 2017, 10:29:30 PM »
Thanks for the data, let me take a look at the code

Can you post the output of ifconfig ? 

skua

  • Newbie
  • *
  • Posts: 32
  • Karma: +0/-0
    • View Profile
Re: Can't assign wlan device on generic-pc-2.11.1b133
« Reply #5 on: January 25, 2017, 12:30:39 AM »
Sure:

Code: [Select]
$ ifconfig
rl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=2008<VLAN_MTU,WOL_MAGIC>
ether 18:40:14:00:70:20
inet6 fe80::1a40:14ff:fe00:7020%rl0 prefixlen 64 scopeid 0x1
inet 0.0.0.0 netmask 0x0 broadcast 255.255.255.255
nd6 options=61<PERFORMNUD,AUTO_LINKLOCAL,NO_RADR>
media: Ethernet autoselect (none)
status: no carrier
enc0: flags=0<> metric 0 mtu 1536
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
groups: enc
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
inet 127.0.0.1 netmask 0xff000000
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
groups: lo
pflog0: flags=100<PROMISC> metric 0 mtu 33184
groups: pflog
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 00:b0:8c:01:8c:c3
inet6 fe80::2b0:8cff:fe01:8cc3%wlan0 prefixlen 64 scopeid 0x5
inet 10.0.0.1 netmask 0xffffff00 broadcast 10.0.0.255
nd6 options=61<PERFORMNUD,AUTO_LINKLOCAL,NO_RADR>
media: IEEE 802.11 Wireless Ethernet autoselect mode 11g <hostap>
status: running
ssid Trump channel 1 (2412 MHz 11g) bssid 00:b0:8c:01:8c:c3
regdomain FCC country US authmode WPA2/802.11i privacy MIXED
deftxkey 2 TKIP 2:128-bit txpower 26 scanvalid 60 protmode CTS wme
dtimperiod 1 -dfs
groups: wlan

As I said, the only way I could make wlan0 to work, was by restoring the config file backed up from the former smallwall installation.

andywhite

  • Administrator
  • Full Member
  • *****
  • Posts: 124
  • Karma: +0/-0
    • View Profile
Re: Can't assign wlan device on generic-pc-2.11.1b133
« Reply #6 on: January 25, 2017, 08:58:56 AM »
The firmware for run wasn't loading , which is why ifconfig only shows one wlan interface

Can you try b134 which now has that firmware ?

the wlan interface is based on a regex of the output of
Code: [Select]
/usr/bin/netstat -inW -f link
can you post me the output of that command ?

skua

  • Newbie
  • *
  • Posts: 32
  • Karma: +0/-0
    • View Profile
Re: Can't assign wlan device on generic-pc-2.11.1b133
« Reply #7 on: January 25, 2017, 11:08:55 AM »
Hello there!

OK, let's break it down:

Upgraded to build 134 and did a reset to factory defaults. Here it is:


Code: [Select]
$ /usr/bin/netstat -inW -f link
Name      Mtu Network            Address              Ipkts Ierrs Idrop    Opkts Oerrs  Coll
rl0      1500 <Link#1>           18:40:14:00:70:20      152     0     0      223     0     0
enc0*    1536 <Link#2>           enc0                     0     0     0        0     0     0
lo0     16384 <Link#3>           lo0                   3264     0     0     3264     0     0
pflog0* 33184 <Link#4>           pflog0                   0     0     0       14     0     0
vlan0    1500 <Link#5>           18:40:14:00:70:20        0     0     0       26     0     0


and


Code: [Select]
$ ifconfig
rl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=2008<VLAN_MTU,WOL_MAGIC>
ether 18:40:14:00:70:20
inet6 fe80::1a40:14ff:fe00:7020%rl0 prefixlen 64 scopeid 0x1
inet 10.1.1.10 netmask 0xffffff00 broadcast 10.1.1.255
nd6 options=61<PERFORMNUD,AUTO_LINKLOCAL,NO_RADR>
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
enc0: flags=0<> metric 0 mtu 1536
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
groups: enc
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
inet 127.0.0.1 netmask 0xff000000
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
groups: lo
pflog0: flags=100<PROMISC> metric 0 mtu 33184
groups: pflog
vlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 18:40:14:00:70:20
inet6 fe80::1a40:14ff:fe00:7020%vlan0 prefixlen 64 scopeid 0x5
inet 0.0.0.0 netmask 0x0 broadcast 255.255.255.255
nd6 options=61<PERFORMNUD,AUTO_LINKLOCAL,NO_RADR>
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
vlan: 100 vlanpcp: 0 parent interface: rl0
groups: vlan


"Enable Ralink USB wireless devices" is ticked, but the system still cannot load usb wlan firmware.

By the way, I had to create the vlan0 device and assign it as WAN, otherwise I could not assign network ports and access the system (board has only one ethernet port).

I did the same procedure (create vlan0 -> assign wlan0 as WAN -> delete vlan0) on the former smallwall 1.8.4 installation and was able to use that wifi device.

I hope this info helps. Thank you.

skua

  • Newbie
  • *
  • Posts: 32
  • Karma: +0/-0
    • View Profile
Re: Can't assign wlan device on generic-pc-2.11.1b133
« Reply #8 on: January 25, 2017, 11:23:50 AM »
dmesg of build 134:

Code: [Select]
$ dmesg
Copyright (c) 1992-2016 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 11.0-RELEASE-p1 #0: Wed Jan 25 08:41:59 GMT 2017
    [email protected]:/usr/t1n1wall/build11/tmp/sys/i386/compile/T1N1WALL_GENERIC i386
FreeBSD clang version 3.8.0 (tags/RELEASE_380/final 262564) (based on LLVM 3.8.0)
CPU: Geode(TM) Integrated Processor by AMD PCS (498.06-MHz 586-class CPU)
  Origin="AuthenticAMD"  Id=0x5a2  Family=0x5  Model=0xa  Stepping=2
  Features=0x88a93d<FPU,DE,PSE,TSC,MSR,CX8,SEP,PGE,CMOV,CLFLUSH,MMX>
  AMD Features=0xc0400000<MMX+,3DNow!+,3DNow!>
real memory  = 247357440 (235 MB)
avail memory = 202137600 (192 MB)
random: entropy device external interface
wlan: mac acl policy registered
kbd1 at kbdmux0
K6-family MTRR support enabled (2 registers)
cryptosoft0: <software crypto> on motherboard
acpi0: <GENSW OEM00001> on motherboard
acpi0: Power Button (fixed)
cpu0: <ACPI CPU> on acpi0
atrtc0: <AT realtime clock> port 0x70-0x71,0x72-0x73 irq 8 on acpi0
Event timer "RTC" frequency 32768 Hz quality 0
attimer0: <AT timer> port 0x40-0x43 irq 0 on acpi0
Timecounter "i8254" frequency 1193182 Hz quality 0
Event timer "i8254" frequency 1193182 Hz quality 100
Timecounter "ACPI-safe" frequency 3579545 Hz quality 850
acpi_timer0: <32-bit timer at 3.579545MHz> port 0x9c10-0x9c13 on acpi0
acpi_button0: <Power Button> on acpi0
acpi_button1: <Sleep Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pcib0: Length mismatch for 3 range: bff00000 vs bfefffff
pci0: <ACPI PCI bus> on pcib0
vgapci0: <VGA-compatible display> mem 0xe0000000-0xe0ffffff,0xe1000000-0xe1003fff,0xe1004000-0xe1007fff,0xe1008000-0xe100bfff,0xe100c000-0xe100ffff irq 11 at device 1.1 on pci0
vgapci0: Boot video device
pci0: <encrypt/decrypt, entertainment crypto> at device 1.2 (no driver attached)
rl0: <RealTek 8139 10/100BaseTX> port 0xf800-0xf8ff mem 0xe1014000-0xe10140ff irq 10 at device 13.0 on pci0
miibus0: <MII bus> on rl0
rlphy0: <RealTek internal media interface> PHY 0 on miibus0
rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
rl0: Ethernet address: 18:40:14:00:70:20
isab0: <PCI-ISA bridge> port 0xf400-0xf407,0xf000-0xf0ff,0xec00-0xec3f,0xe800-0xe81f,0xe400-0xe47f,0x9c40-0x9c7f at device 15.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <AMD CS5536 UDMA100 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xdc00-0xdc0f at device 15.2 on pci0
ata0: <ATA channel> at channel 0 on atapci0
ata1: <ATA channel> at channel 1 on atapci0
pci0: <multimedia, audio> at device 15.3 (no driver attached)
ohci0: <OHCI (generic) USB controller> mem 0xe1015000-0xe1015fff irq 11 at device 15.4 on pci0
usbus0 on ohci0
ehci0: <AMD CS5536 (Geode) USB 2.0 controller> mem 0xe1016000-0xe1016fff irq 11 at device 15.5 on pci0
ehci0: pre-2.0 USB revision (ignored)
usbus1: EHCI version 1.0
usbus1 on ehci0
pmtimer0 on isa0
orm0: <ISA Option ROMs> at iomem 0xc0000-0xc7fff,0xc8000-0xd27ff pnpid ORM0000 on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
Timecounters tick every 1.000 msec
mdusbus0: 12Mbps Full Speed USB v1.0
usbus1: 480Mbps High Speed USB v2.0
ugen1.1: <AMD> at usbus1
uhub0: <AMD EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus1
ugen0.1: <AMD> at usbus0
uhub1: <AMD OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0
0: Preloaded image </mfsroot> 23314432 bytes at 0xc10c5828
g_access(918): provider md0a has error
g_access(918): provider md0a has error
g_access(918): provider md0a has error
ada0 at ata0 bus 0 scbus0 target 0 lun 0
ada0: <EXPERT FIC 30/06/03> ATA device
ada0: Serial Number FIC00001
ada0: 16.700MB/s transfers (PIO4, PIO 512bytes)
ada0: 249MB (510976 512 byte sectors)
taskqgroup_adjust failed cnt: 1 stride: 1 mp_ncpus: 1 smp_started: 0
taskqgroup_adjust failed cnt: 1 stride: 1 mp_ncpus: 1 smp_started: 0
Timecounter "TSC" frequency 498062319 Hz quality 800
Trying to mount root from ufs:/dev/md0 []...
uhub1: 4 ports with 4 removable, self powered
stray irq7
stray irq7
uhub0: 4 ports with 4 removable, self powered
random: unblocking device.

ugen1.2: <Ralink> at usbus1
rum0: <Ralink 802.11 bg WLAN, class 0/0, rev 2.00/0.01, addr 2> on usbus1
rum0: MAC/BBP RT2573 (rev 0x2573a), RF RT2528
glxsb0: <AMD Geode LX Security Block (AES-128-CBC, RNG)> mem 0xe1010000-0xe1013fff irq 11 at device 1.2 on pci0
rl0: link state changed to DOWN
done
stray irq7
ukbd0: <vendor 0x04d9 product 0x1400, class 0/0, rev 1.10/1.43, addr 2> on usbus0
kbd2 at ukbd0
ugen1.3: <Ralink> at usbus1
run0: <1.0> on usbus1
run0: MAC/BBP RT5390 (rev 0x0502), RF RT5370 (MIMO 1T1R), address 7c:dd:90:a1:f7:89
done
pflog0: promiscuous mode enabled
vlan0: link state changed to UP

skua

  • Newbie
  • *
  • Posts: 32
  • Karma: +0/-0
    • View Profile
Re: Can't assign wlan device on generic-pc-2.11.1b133
« Reply #9 on: January 25, 2017, 11:59:19 AM »
Now I tried generic-pc-1.8.2b78.img (FreeBSD 8.4) and, like smallwall 1.8.4:


Code: [Select]
$ ifconfig
rl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=2008<VLAN_MTU,WOL_MAGIC>
ether 18:40:14:00:70:20
inet6 fe80::1a40:14ff:fe00:7020%rl0 prefixlen 64 scopeid 0x1
inet 10.1.1.10 netmask 0xffffff00 broadcast 10.1.1.255
nd6 options=41<PERFORMNUD,NO_RADR>
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
enc0: flags=0<> metric 0 mtu 1536
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=3<RXCSUM,TXCSUM>
inet 127.0.0.1 netmask 0xff000000
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
nd6 options=43<PERFORMNUD,ACCEPT_RTADV,NO_RADR>
rum0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 2290
ether 00:b0:8c:01:8c:c3
media: IEEE 802.11 Wireless Ethernet autoselect <adhoc> (autoselect)
status: no carrier
vlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 18:40:14:00:70:20
inet6 fe80::1a40:14ff:fe00:7020%vlan0 prefixlen 64 scopeid 0x5
inet 0.0.0.0 netmask 0xff000000 broadcast 255.255.255.255
nd6 options=41<PERFORMNUD,NO_RADR>
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
vlan: 100 parent interface: rl0


Code: [Select]
$ dmesg
Copyright (c) 1992-2013 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 8.4-RELEASE #0: Sun Dec 27 11:18:00 GMT 2015
    [email protected]:/usr/t1n1wall/build84/tmp/sys/i386/compile/T1N1WALL_GENERIC i386
gcc version 4.2.1 20070831 patched [FreeBSD]
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Geode(TM) Integrated Processor by AMD PCS (499.05-MHz 586-class CPU)
  Origin = "AuthenticAMD"  Id = 0x5a2  Family = 5  Model = a  Stepping = 2
  Features=0x88a93d<FPU,DE,PSE,TSC,MSR,CX8,SEP,PGE,CMOV,CLFLUSH,MMX>
  AMD Features=0xc0400000<MMX+,3DNow!+,3DNow!>
real memory  = 247357440 (235 MB)
avail memory = 202199040 (192 MB)
wlan: mac acl policy registered
kbd1 at kbdmux0
K6-family MTRR support enabled (2 registers)
cryptosoft0: <software crypto> on motherboard
acpi0: <GENSW OEM00001> on motherboard
acpi0: [ITHREAD]
acpi0: Power Button (fixed)
Timecounter "ACPI-safe" frequency 3579545 Hz quality 850
acpi_timer0: <32-bit timer at 3.579545MHz> port 0x9c10-0x9c13 on acpi0
cpu0: <ACPI CPU> on acpi0
acpi_button0: <Power Button> on acpi0
acpi_button1: <Sleep Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
vgapci0: <VGA-compatible display> mem 0xe0000000-0xe0ffffff,0xe1000000-0xe1003fff,0xe1004000-0xe1007fff,0xe1008000-0xe100bfff,0xe100c000-0xe100ffff irq 11 at device 1.1 on pci0
pci0: <encrypt/decrypt, entertainment crypto> at device 1.2 (no driver attached)
rl0: <RealTek 8139 10/100BaseTX> port 0xf800-0xf8ff mem 0xe1014000-0xe10140ff irq 10 at device 13.0 on pci0
miibus0: <MII bus> on rl0
rlphy0: <RealTek internal media interface> PHY 0 on miibus0
rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
rl0: Ethernet address: 18:40:14:00:70:20
rl0: [ITHREAD]
isab0: <PCI-ISA bridge> port 0xf400-0xf407,0xf000-0xf0ff,0xec00-0xec3f,0xe800-0xe81f,0xe400-0xe47f,0x9c40-0x9c7f at device 15.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <AMD CS5536 UDMA100 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xdc00-0xdc0f at device 15.2 on pci0
ata0: <ATA channel> at channel 0 on atapci0
ata0: [ITHREAD]
ata1: <ATA channel> at channel 1 on atapci0
ata1: [ITHREAD]
pci0: <multimedia, audio> at device 15.3 (no driver attached)
ohci0: <OHCI (generic) USB controller> mem 0xe1015000-0xe1015fff irq 11 at device 15.4 on pci0
ohci0: [ITHREAD]
usbus0 on ohci0
ehci0: <AMD CS5536 (Geode) USB 2.0 controller> mem 0xe1016000-0xe1016fff irq 11 at device 15.5 on pci0
ehci0: pre-2.0 USB revision (ignored)
ehci0: [ITHREAD]
usbus1: EHCI version 1.0
usbus1 on ehci0
atrtc0: <AT realtime clock> port 0x70-0x71,0x72-0x73 irq 8 on acpi0
pmtimer0 on isa0
orm0: <ISA Option ROMs> at iomem 0xc0000-0xc7fff,0xc8000-0xd27ff pnpid ORM0000 on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
atkbd0: [ITHREAD]
Timecounter "TSC" frequency 499049606 Hz quality 800
Timecounters tick every 1.000 msec
IPsec: Initialized Security Association Processing.
IP Filter: v4.1.34 initialized.  Default = block all, Logging = enabled
md0: Preloaded image </mfsrusbus0: 12Mbps Full Speed USB v1.0
usbus1: 480Mbps High Speed USB v2.0
ooad0: 249MB <EXPERT FIC 30/06/03> at ata0-master PIO4
t> 23611392 bytes at 0xc0e1c7d4
ugen0.1: <AMD> at usbus0
uhub0: <AMD OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0
ugen1.1: <AMD> at usbus1
uhub1: <AMD EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus1
Root mount waiting for: usbus1 usbus0
uhub0: 4 ports with 4 removable, self powered
Root mount waiting for: usbus1
uhub1: 4 ports with 4 removable, self powered
Root mount waiting for: usbus1
ugen1.2: <Ralink> at usbus1
rum0: <Ralink 802.11 bg WLAN, class 0/0, rev 2.00/0.01, addr 2> on usbus1
rum0: MAC/BBP RT2573 (rev 0x2573a), RF RT2528
Root mount waiting for: usbus1
ugen0.2: <vendor 0x04d9> at usbus0
ukbd0: <vendor 0x04d9 product 0x1400, class 0/0, rev 1.10/1.43, addr 2> on usbus0
kbd2 at ukbd0
Root mount waiting for: usbus1
ugen1.3: <Ralink> at usbus1
Trying to mount root from ufs:/dev/md0
glxsb0: <AMD Geode LX Security Block (AES-128-CBC, RNG)> mem 0xe1010000-0xe1013fff irq 11 at device 1.2 on pci0
rl0: link state changed to UP
vlan0: link state changed to UP
wlan999: Ethernet address: 00:b0:8c:01:8c:c3


Well... note the "wlan999: Ethernet address: 00:b0:8c:01:8c:c3" line.

Anyway, version 1.8.2 (FreeBSD 8.4) can see wlan rum driver (firmware RT2528), and webgui can assign it.

Is it possible to include firmware for RT5370 (MIMO 1T1R) on version 1.8.2 so we can give it a try?

Thank you.
« Last Edit: January 25, 2017, 12:28:10 PM by skua »

skua

  • Newbie
  • *
  • Posts: 32
  • Karma: +0/-0
    • View Profile
Re: Can't assign wlan device on generic-pc-2.11.1b133
« Reply #10 on: January 25, 2017, 04:44:40 PM »
In regard to dmesg's line "wlan999: Ethernet address: 00:b0:8c:01:8c:c3", I've found this:

http://forum.m0n0.ch/forum/topic,5657.15.html



skua

  • Newbie
  • *
  • Posts: 32
  • Karma: +0/-0
    • View Profile
Re: Can't assign wlan device on generic-pc-2.11.1b133
« Reply #11 on: January 25, 2017, 05:53:54 PM »
Hello there Mr. White!

Well, continuing my tests here, I manually created the wlans (thru exec.php) on generic-pc-2.11.1b134 :

ifconfig wlan0 create wlandev rum0

ifconfig wlan1 create wlandev run0


now:

Code: [Select]
$ ifconfig
rl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=2008<VLAN_MTU,WOL_MAGIC>
ether 18:40:14:00:70:20
inet6 fe80::1a40:14ff:fe00:7020%rl0 prefixlen 64 scopeid 0x1
inet 10.1.1.10 netmask 0xffffff00 broadcast 10.1.1.255
nd6 options=61<PERFORMNUD,AUTO_LINKLOCAL,NO_RADR>
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
enc0: flags=0<> metric 0 mtu 1536
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
groups: enc
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
inet 127.0.0.1 netmask 0xff000000
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
groups: lo
pflog0: flags=100<PROMISC> metric 0 mtu 33184
groups: pflog
vlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 18:40:14:00:70:20
inet6 fe80::1a40:14ff:fe00:7020%vlan0 prefixlen 64 scopeid 0x5
inet 0.0.0.0 netmask 0x0 broadcast 255.255.255.255
nd6 options=61<PERFORMNUD,AUTO_LINKLOCAL,NO_RADR>
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
vlan: 1 vlanpcp: 0 parent interface: rl0
groups: vlan
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 00:b0:8c:01:8c:c3
inet6 fe80::2b0:8cff:fe01:8cc3%wlan0 prefixlen 64 scopeid 0x6
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
status: no carrier
ssid "" channel 1 (2412 MHz 11g)
regdomain FCC country US authmode OPEN privacy OFF txpower 30 bmiss 7
scanvalid 60 bgscan bgscanintvl 300 bgscanidle 250 roam:rssi 7
roam:rate 5 protmode CTS wme bintval 0
groups: wlan
wlan1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 7c:dd:90:a1:f7:89
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
status: no carrier
ssid "" channel 1 (2412 MHz 11b)
regdomain FCC country US authmode OPEN privacy OFF txpower 30 bmiss 7
scanvalid 60 wme bintval 0
groups: wlan


But "Interfaces: Assign network ports: Edit WLAN --> Parent interface" on webGUI dropdown box, still shows no interfaces to choose from.

 



andywhite

  • Administrator
  • Full Member
  • *****
  • Posts: 124
  • Karma: +0/-0
    • View Profile
Re: Can't assign wlan device on generic-pc-2.11.1b133
« Reply #12 on: January 25, 2017, 11:25:05 PM »
Thanks for the detail.  one last request (I hope !)

can you send the output of

Code: [Select]
sysctl -A net.wlan.devices
It appears the netstat command has a bug introduce in freebsd11 , that it doesn't show wireless devices of this type.  I have filed a bug, it might get fixed.    but , depending on the output of above, I might be able to work around it with that new sysctl.


skua

  • Newbie
  • *
  • Posts: 32
  • Karma: +0/-0
    • View Profile
Re: Can't assign wlan device on generic-pc-2.11.1b133
« Reply #13 on: January 25, 2017, 11:54:01 PM »
Ok...

Output of sysctl as requested:

Code: [Select]
$ sysctl -A net.wlan.devices
net.wlan.devices: run0 rum0

Thanks for the help.

Awaiting orders.

:-)

andywhite

  • Administrator
  • Full Member
  • *****
  • Posts: 124
  • Karma: +0/-0
    • View Profile
Re: Can't assign wlan device on generic-pc-2.11.1b133
« Reply #14 on: January 26, 2017, 01:05:41 AM »
Can you try b135 ?