Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Jul 2020 11:17:38 +0000
From:      Dan Kotowski <dan.kotowski@a9development.com>
To:        =?utf-8?Q?Danilo_Eg=C3=AAa_Gondolfo?= <danilo@freebsd.org>
Cc:        freebsd-arm@freebsd.org
Subject:   Re: Wifi dongles on RockPro64
Message-ID:  <0jgY8VW1okmFTqw1ly0QQ3h_oUewnxficODafESkX2OhrQS08nribtby6uXv0crrIFZ1OXKZ2rrD0a8VsNRmV9lbtMFGUdVad9rGacbr_1Y=@a9development.com>
In-Reply-To: <CAFU7VyPQ9NMHUEVtxQk%2B16AhFvmrSoOs=%2BH8cYhVFvifxe%2BDBA@mail.gmail.com>
References:  <CAFU7VyPQ9NMHUEVtxQk%2B16AhFvmrSoOs=%2BH8cYhVFvifxe%2BDBA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> Hello,
>
> are you using wifi USB adapters on your RockPro64 boards?
>
> I'm trying to use one but without success. The device will disappear as
> soon as it is powered up.
>
> Example:
>
> ifconfig wlan0 create wlandev run0
>
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>
> run0 on uhub0
> run0: <1.0> on usbus2
> run0: MAC/BBP RT5390 (rev 0x0502), RF RT5370 (MIMO 1T1R), address
> 00:c1:40:61:01:cb
> run0: [HT] Enabling 802.11n
> ieee80211_load_module: load the wlan_amrr module by hand for now.
> wlan0: Ethernet address: 00:c1:40:61:01:cb
>
> ifconfig wlan0 up
>
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>
> wlan0: Ethernet address: 00:c1:40:61:01:cb
> run0: firmware RT3071 ver. 0.33 loaded
> run0: at uhub0, port 1, addr 2 (disconnected)
>
> It seems it's not a FreeBSD issue. I've tested it on NetBSD and Linux and
> it fails too. The adapter is working fine, I've tested on my laptop. Mayb=
e
> it's an issue related to voltage regulation or some board limitation. So
> I'm curious, is anybody successfully using wifi dongles on this board?
>
> Thanks.

Is the wlan_amrr module loaded? It looks like you may need that.

kldstat -v | grep wlan_amrr

Looks like you may need to load by hand:

kldload wlan_amrr

Or via /boot/loader.conf:

wlan_amrr_load=3D"YES"

If that doesn't help, you may just want to try a different dongle. run(4) e=
xplicitly mentions the RT5390 MAC and RT5370 radio, but not the overall RT3=
071 chip specifically.

I just got a handful of Edimax EW-7811UN dongles for US$15 each which are s=
upported and use the urtwn driver.

https://deviwiki.com/wiki/Edimax_EW-7811Un

https://www.freebsd.org/cgi/man.cgi?query=3Durtwn&apropos=3D0&sektion=3D4&m=
anpath=3DFreeBSD+12.1-RELEASE+and+Ports&arch=3Ddefault&format=3Dhtml

You can even find them actually sold and shipped by Amazon, not one of the =
3rd-party scammers that have been swamping their site the past couple years=
!



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0jgY8VW1okmFTqw1ly0QQ3h_oUewnxficODafESkX2OhrQS08nribtby6uXv0crrIFZ1OXKZ2rrD0a8VsNRmV9lbtMFGUdVad9rGacbr_1Y=>