Discussion:
device otus unknown
tech-lists
2018-11-12 20:07:50 UTC
Permalink
Hi,

context:
freebsd-12-beta4 on amd64 and freebsd-12 on arm64, I'm trying right now
with amd64 r340354.

I have a Netgear WNDA3100 USB wireless key. Its man page has the
following:

SYNOPSIS
To compile this driver into the kernel, place the following lines
in your kernel configuration file:

device ehci
device uhci
device ohci
device usb
device otus
device wlan

so I made sure all these were in my kernel config, but when I try
building it, it bails in a second or two saying that otus is an unknown
device:

[snip]

--- buildkernel ---
make[1]: "/usr/src/Makefile.inc1" line 341: SYSTEM_COMPILER: Determined
that CC=/usr/local/bin/ccache cc matches the source tree. Not
bootstrapping a cross-compiler.
make[1]: "/usr/src/Makefile.inc1" line 346: SYSTEM_LINKER: Determined
that LD=ld matches the source tree. Not bootstrapping a cross-linker.
--- buildkernel ---

--------------------------------------------------------------
Kernel build for DESKTOP started on Mon Nov 12 17:49:52 GMT 2018
--------------------------------------------------------------
===> DESKTOP
mkdir -p /obj/usr/src/amd64.amd64/sys
--------------------------------------------------------------
stage 1: configuring the kernel
--------------------------------------------------------------
cd /usr/src/sys/amd64/conf;
PATH=/obj/usr/src/amd64.amd64/tmp/legacy/usr/sbin:/obj/usr/src/amd64.amd64\
/tmp/legacy/usr/bin:/obj/usr/src/amd64.amd64/tmp/legacy/bin:/obj/usr/src/\
amd64.amd64/tmp/usr/sbin:/obj/usr/src/amd64.amd64/tmp/usr/bin:/sbin:/bin:\
/usr/sbin:/usr/bin

config -d /obj/usr/src/amd64.amd64/sys/DESKTOP -I
'/usr/src/sys/amd64/conf' '/usr/src/sys/amd64/conf/DESKTOP'
config: Error: device "otus" is unknown
config: 1 errors
*** [buildkernel] Error code 1

make[1]: stopped in /usr/src
1 error

make[1]: stopped in /usr/src
*** [buildkernel] Error code 2

make: stopped in /usr/src
1 error

make: stopped in /usr/src

[/snip]

Maybe related to this problem: I *can* kldload otus. But when I plug in
the device, only this shows up in dmesg:

Nov 12 18:04:32 desktop kernel: ugen0.11: <Broadcom Remote Download
Wireless Adapter> at usbus0

I thought it would come up as Atheros?

kldstat
Id Refs Address Size Name
1 70 0xffffffff80200000 136ada0 kernel
2 1 0xffffffff8156c000 f980 if_bridge.ko
3 2 0xffffffff8157c000 7588 bridgestp.ko
4 2 0xffffffff81584000 134cbd8 nvidia.ko
5 3 0xffffffff828d1000 a7020 linux.ko
6 4 0xffffffff82979000 8e20 linux_common.ko
7 1 0xffffffff82982000 56ec60 vmm.ko
8 1 0xffffffff82ef1000 171d88 nvidia-modeset.ko
9 1 0xffffffff83063000 82a0 if_tap.ko
10 1 0xffffffff8306c000 2a38 nmdm.ko
11 1 0xffffffff83221000 24be60 zfs.ko
12 1 0xffffffff8346d000 7638 opensolaris.ko
13 1 0xffffffff83475000 4abc linprocfs.ko
14 1 0xffffffff8347a000 82a0 tmpfs.ko
15 1 0xffffffff83483000 1800 uhid.ko
16 1 0xffffffff83485000 2368 ums.ko
17 1 0xffffffff83488000 33f60 linux64.ko
18 1 0xffffffff834bc000 1a00 fdescfs.ko
19 1 0xffffffff834be000 acf mac_ntpd.ko
20 1 0xffffffff834bf000 a340 if_otus.ko
21 1 0xffffffff834ca000 41c48 wlan.ko

usbconfig dump_device_description :

ugen0.11: <Broadcom Remote Download Wireless Adapter> at usbus0, cfg=0
md=HOST spd=HIGH (480Mbps) pwr=ON (200mA)

bLength = 0x0012
bDescriptorType = 0x0001
bcdUSB = 0x0200
bDeviceClass = 0x00ff <Vendor specific>
bDeviceSubClass = 0x0000
bDeviceProtocol = 0x0000
bMaxPacketSize0 = 0x0040
idVendor = 0x0846
idProduct = 0x9011
bcdDevice = 0x0001
iManufacturer = 0x0001 <Broadcom>
iProduct = 0x0002 <Remote Download Wireless Adapter>
iSerialNumber = 0x0003 <0>
bNumConfigurations = 0x0001

thanks,
--
J.
Adrian Chadd
2018-11-12 20:32:25 UTC
Permalink
If it's showing up like that then it's not an AR9170 device; it's a
broadcom firmware device. :(


-a
Post by tech-lists
Hi,
freebsd-12-beta4 on amd64 and freebsd-12 on arm64, I'm trying right now
with amd64 r340354.
I have a Netgear WNDA3100 USB wireless key. Its man page has the
SYNOPSIS
To compile this driver into the kernel, place the following lines
device ehci
device uhci
device ohci
device usb
device otus
device wlan
so I made sure all these were in my kernel config, but when I try
building it, it bails in a second or two saying that otus is an unknown
[snip]
--- buildkernel ---
make[1]: "/usr/src/Makefile.inc1" line 341: SYSTEM_COMPILER: Determined
that CC=/usr/local/bin/ccache cc matches the source tree. Not
bootstrapping a cross-compiler.
make[1]: "/usr/src/Makefile.inc1" line 346: SYSTEM_LINKER: Determined
that LD=ld matches the source tree. Not bootstrapping a cross-linker.
--- buildkernel ---
--------------------------------------------------------------
Kernel build for DESKTOP started on Mon Nov 12 17:49:52 GMT 2018
--------------------------------------------------------------
===> DESKTOP
mkdir -p /obj/usr/src/amd64.amd64/sys
--------------------------------------------------------------
stage 1: configuring the kernel
--------------------------------------------------------------
cd /usr/src/sys/amd64/conf;
PATH=/obj/usr/src/amd64.amd64/tmp/legacy/usr/sbin:/obj/usr/src/amd64.amd64\
/tmp/legacy/usr/bin:/obj/usr/src/amd64.amd64/tmp/legacy/bin:/obj/usr/src/\
amd64.amd64/tmp/usr/sbin:/obj/usr/src/amd64.amd64/tmp/usr/bin:/sbin:/bin:\
/usr/sbin:/usr/bin
config -d /obj/usr/src/amd64.amd64/sys/DESKTOP -I
'/usr/src/sys/amd64/conf' '/usr/src/sys/amd64/conf/DESKTOP'
config: Error: device "otus" is unknown
config: 1 errors
*** [buildkernel] Error code 1
make[1]: stopped in /usr/src
1 error
make[1]: stopped in /usr/src
*** [buildkernel] Error code 2
make: stopped in /usr/src
1 error
make: stopped in /usr/src
[/snip]
Maybe related to this problem: I *can* kldload otus. But when I plug in
Nov 12 18:04:32 desktop kernel: ugen0.11: <Broadcom Remote Download
Wireless Adapter> at usbus0
I thought it would come up as Atheros?
kldstat
Id Refs Address Size Name
1 70 0xffffffff80200000 136ada0 kernel
2 1 0xffffffff8156c000 f980 if_bridge.ko
3 2 0xffffffff8157c000 7588 bridgestp.ko
4 2 0xffffffff81584000 134cbd8 nvidia.ko
5 3 0xffffffff828d1000 a7020 linux.ko
6 4 0xffffffff82979000 8e20 linux_common.ko
7 1 0xffffffff82982000 56ec60 vmm.ko
8 1 0xffffffff82ef1000 171d88 nvidia-modeset.ko
9 1 0xffffffff83063000 82a0 if_tap.ko
10 1 0xffffffff8306c000 2a38 nmdm.ko
11 1 0xffffffff83221000 24be60 zfs.ko
12 1 0xffffffff8346d000 7638 opensolaris.ko
13 1 0xffffffff83475000 4abc linprocfs.ko
14 1 0xffffffff8347a000 82a0 tmpfs.ko
15 1 0xffffffff83483000 1800 uhid.ko
16 1 0xffffffff83485000 2368 ums.ko
17 1 0xffffffff83488000 33f60 linux64.ko
18 1 0xffffffff834bc000 1a00 fdescfs.ko
19 1 0xffffffff834be000 acf mac_ntpd.ko
20 1 0xffffffff834bf000 a340 if_otus.ko
21 1 0xffffffff834ca000 41c48 wlan.ko
ugen0.11: <Broadcom Remote Download Wireless Adapter> at usbus0, cfg=0
md=HOST spd=HIGH (480Mbps) pwr=ON (200mA)
bLength = 0x0012
bDescriptorType = 0x0001
bcdUSB = 0x0200
bDeviceClass = 0x00ff <Vendor specific>
bDeviceSubClass = 0x0000
bDeviceProtocol = 0x0000
bMaxPacketSize0 = 0x0040
idVendor = 0x0846
idProduct = 0x9011
bcdDevice = 0x0001
iManufacturer = 0x0001 <Broadcom>
iProduct = 0x0002 <Remote Download Wireless Adapter>
iSerialNumber = 0x0003 <0>
bNumConfigurations = 0x0001
thanks,
--
J.
_______________________________________________
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
tech-lists
2018-11-12 21:33:01 UTC
Permalink
Post by Adrian Chadd
If it's showing up like that then it's not an AR9170 device; it's a
broadcom firmware device. :(
yeah. In tiny lettering it has "v2" next to the WNDA3100 so this seems
to be a completely different chipset

But what about the otus(4) manpage? Says you can compile device otus
into kernel, but buildkernel says device unknown.

thanks,
--
J.
Adrian Chadd
2018-11-12 22:03:21 UTC
Permalink
yeah, that we'll have to look into..


-a
Post by tech-lists
Post by Adrian Chadd
If it's showing up like that then it's not an AR9170 device; it's a
broadcom firmware device. :(
yeah. In tiny lettering it has "v2" next to the WNDA3100 so this seems
to be a completely different chipset
But what about the otus(4) manpage? Says you can compile device otus
into kernel, but buildkernel says device unknown.
thanks,
--
J.
_______________________________________________
https://lists.freebsd.org/mailman/listinfo/freebsd-wireless
"
Bjoern A. Zeeb
2018-11-12 23:24:30 UTC
Permalink
Post by Adrian Chadd
yeah, that we'll have to look into..
I was going to say that might be easy:

Index: sys/conf/files
===================================================================
--- sys/conf/files (revision 340282)
+++ sys/conf/files (working copy)
@@ -2577,6 +2577,7 @@ dev/ofw/ofw_subr.c optional fdt
dev/ofw/ofwbus.c optional fdt
dev/ofw/openfirm.c optional fdt
dev/ofw/openfirmio.c optional fdt
+dev/otus/if_otus.c optional otus
dev/ow/ow.c optional ow \
dependency "owll_if.h" \
dependency "own_if.h"


but you probably also want otusfw?
Post by Adrian Chadd
Post by tech-lists
Post by Adrian Chadd
If it's showing up like that then it's not an AR9170 device; it's a
broadcom firmware device. :(
yeah. In tiny lettering it has "v2" next to the WNDA3100 so this seems
to be a completely different chipset
But what about the otus(4) manpage? Says you can compile device otus
into kernel, but buildkernel says device unknown.
thanks,
--
J.
_______________________________________________
https://lists.freebsd.org/mailman/listinfo/freebsd-wireless
"
_______________________________________________
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
tech-lists
2018-11-12 22:04:57 UTC
Permalink
Post by tech-lists
Post by Adrian Chadd
If it's showing up like that then it's not an AR9170 device; it's a
broadcom firmware device. :(
yeah. In tiny lettering it has "v2" next to the WNDA3100 so this seems
to be a completely different chipset
But what about the otus(4) manpage? Says you can compile device otus
into kernel, but buildkernel says device unknown.
Seems WNDA3100 v2 has BCM4323 chip which is unsupported, drat.

thanks,
--
J.
Loading...