From owner-freebsd-arm@freebsd.org Tue Jul 14 11:17:53 2020 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 25AFC35EAB8 for ; Tue, 14 Jul 2020 11:17:53 +0000 (UTC) (envelope-from dan.kotowski@a9development.com) Received: from mail-40133.protonmail.ch (mail-40133.protonmail.ch [185.70.40.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "protonmail.com", Issuer "SwissSign Server Gold CA 2014 - G22" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4B5dKW59l5z45Pg for ; Tue, 14 Jul 2020 11:17:51 +0000 (UTC) (envelope-from dan.kotowski@a9development.com) Date: Tue, 14 Jul 2020 11:17:38 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=a9development.com; s=protonmail; t=1594725469; bh=DkYj8zjfK+diEyLMO4okKm/fcccHHyOBhQn8EUb9jwc=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=EWCZQrVec/DGLSaJy36dInR9Zr/UYlzDz3ny0669/4DBt9ldRWIU3A57A4RRMn3di wY7I89vFHWx63hKoS7SXuX7g0jElO8+Wfet7JT8dz88Z68jT87F50YFQJCJiO912hX 9saQBocLwa85mdRvSklPmL5fzIB2LpZGiTbN/h5M= To: =?utf-8?Q?Danilo_Eg=C3=AAa_Gondolfo?= From: Dan Kotowski Cc: freebsd-arm@freebsd.org Reply-To: Dan Kotowski Subject: Re: Wifi dongles on RockPro64 Message-ID: <0jgY8VW1okmFTqw1ly0QQ3h_oUewnxficODafESkX2OhrQS08nribtby6uXv0crrIFZ1OXKZ2rrD0a8VsNRmV9lbtMFGUdVad9rGacbr_1Y=@a9development.com> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=7.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mail.protonmail.ch X-Rspamd-Queue-Id: 4B5dKW59l5z45Pg X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=a9development.com header.s=protonmail header.b=EWCZQrVe; dmarc=pass (policy=none) header.from=a9development.com; spf=none (mx1.freebsd.org: domain of dan.kotowski@a9development.com has no SPF policy when checking 185.70.40.133) smtp.mailfrom=dan.kotowski@a9development.com X-Spamd-Result: default: False [-3.25 / 15.00]; HAS_REPLYTO(0.00)[dan.kotowski@a9development.com]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[a9development.com:s=protonmail]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; RWL_MAILSPIKE_GOOD(0.00)[185.70.40.133:from]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; NEURAL_HAM_MEDIUM(-0.96)[-0.957]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[a9development.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[a9development.com,none]; NEURAL_HAM_SHORT(-0.40)[-0.396]; R_SPF_NA(0.00)[no SPF record]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:62371, ipnet:185.70.40.0/24, country:CH]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[185.70.40.133:from] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jul 2020 11:17:53 -0000 > 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= !