From owner-freebsd-arm@freebsd.org Sat Jan 16 17:48:36 2021 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 495A64E61AB for ; Sat, 16 Jan 2021 17:48:36 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mx.blih.net (mx.blih.net [212.83.155.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mx.blih.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DJ5BW4HVgz4bcm for ; Sat, 16 Jan 2021 17:48:35 +0000 (UTC) (envelope-from manu@bidouilliste.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bidouilliste.com; s=mx; t=1610819313; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=HGKk70jjaf8P774onGKTpvnTax8Bd1UoTz/leOgBDvs=; b=qbVrdo6fRq6aFqEFlSTH6P6q+0jDb3WGyJl2+JMiXlF6RFDPJvciKk9rp+huRew//Bz7XP WdlxO7KSn5PAU5vkqcUCi9TJdLMnwVxdknMKW+9GfsKIdSZAcbCoUbNjz6VEPYiUaY5DM3 nMD2xylVSJz3eCERGz3zt0rzZ1QWrEM= Received: from skull.home.blih.net (lfbn-idf2-1-745-114.w86-247.abo.wanadoo.fr [86.247.192.114]) by mx.blih.net (OpenSMTPD) with ESMTPSA id ffca2263 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Sat, 16 Jan 2021 17:48:33 +0000 (UTC) Date: Sat, 16 Jan 2021 18:48:33 +0100 From: Emmanuel Vadot To: Emmanuel Vadot Cc: "Dr. Rolf Jansen" , freebsd-arm@freebsd.org Subject: Re: GENERICSD snapshot on a BBB has issues with loading the if_rtwn_usb module Message-Id: <20210116184833.1a3182a20a2b6c727b64bb59@bidouilliste.com> In-Reply-To: <20210116184333.f91594f9c3505d2c588d9634@bidouilliste.com> References: <47700631-2D94-4BA8-9707-9ADD70C99600@obsigna.com> <20210116184333.f91594f9c3505d2c588d9634@bidouilliste.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd13.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4DJ5BW4HVgz4bcm X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bidouilliste.com header.s=mx header.b=qbVrdo6f; dmarc=pass (policy=none) header.from=bidouilliste.com; spf=pass (mx1.freebsd.org: domain of manu@bidouilliste.com designates 212.83.155.74 as permitted sender) smtp.mailfrom=manu@bidouilliste.com X-Spamd-Result: default: False [-3.50 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[bidouilliste.com:s=mx]; FREEFALL_USER(0.00)[manu]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+mx:c]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; NEURAL_HAM_LONG(-1.00)[-1.000]; TO_DN_SOME(0.00)[]; RCVD_TLS_ALL(0.00)[]; SPAMHAUS_ZRD(0.00)[212.83.155.74:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[bidouilliste.com:+]; MID_RHS_MATCH_FROM(0.00)[]; DMARC_POLICY_ALLOW(-0.50)[bidouilliste.com,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RBL_DBL_DONT_QUERY_IPS(0.00)[212.83.155.74:from]; ASN(0.00)[asn:12876, ipnet:212.83.128.0/19, country:FR]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-arm] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Jan 2021 17:48:36 -0000 On Sat, 16 Jan 2021 18:43:33 +0100 Emmanuel Vadot wrote: > On Sat, 16 Jan 2021 14:08:58 -0300 > "Dr. Rolf Jansen" wrote: > > > I updated one of my BBB from an older 13-CURRENT (July 2020) to the latest 13-ALPHA1 snapshot from Jan, 14th ? GENERICSD-20210114-7ae27c2d6c4-255938. > > > > I had successfully employed an USB-WLAN dongle based on the RTL8188eu chipset. I only added the following into /boot/loader.conf: > > > > if_rtwn_usb_load="YES" > > > > By that all dependend modules were loaded automatically in a snap. With ALPHA1 this doesn?t work anymore. After hours of troubleshooting, I got it working by adding the following into /etc/rc.conf: > > > > kld_list="if_rtwn_usb" > > > > The "Loading kernel modules:" takes apprx. 4 seconds, however, then the USB-WLAN device is enumerated correctly and it is ready to use. This makes me think that this uncommon huge delay is the culprit. I checked this with some snapshot thats I had installed already. The issue seems to have been introduced together with the switch to GENERICSD. A GENERICSD 13-CURRENT from end of December showed this issue already, while a BBB-specific snapshot (from November 2020) that I had installed on another BBB works as before by loading the modules in /boot/loader.conf. > > > > I don't mind to load the modules by the way of the kld_list directive in /etc/rc.conf. However, the unusual long duration of loading the module and its dependencies might be an indication for a more fundamental issue. > > > > Please feel free to ask me for doing more tests. > > > > Best regards > > > > Rolf > > I can reproduce that on my netbooted BBB. > The module is correctly loaded : > > Loading > kernel... /boot/kernel/kernel text=0x1b4 text=0x68d638 text=0x1c84f0 > data=0xb4070 data=0x0+0x258000 syms=[0x4+0xa5ab0+0x4+0x119fd4] Loading > configured modules... /boot/kernel/if_rtwn_usb.ko text=0xb960 > text=0x62c0 data=0x2cc+0x3b syms=[0x4+0x3570+0x4+0x293f] /boot/entropy > size=0x1000 /etc/hostid > size=0x25 Using DTB provided by EFI at > 0x87f00000. Kernel entry at > 0x96e00200... Kernel args: > (null) > ---<>--- > > But it isn't loaded anymore after booting : > root@bbb:~ # kldstat > Id Refs Address Size Name > 1 1 0xc0000000 d23a8c kernel > > I don't think it has to do with the switch to GENERICSD, there is (at > least shouldn't be) any difference between the old BBB image and the > GENERICSD one. Just did a test on my OrangePi One (Allwinner H3 armv7 with 512MB of RAM) and this is the same. The problem seems to be module dependancy, loader only loads if_rtnw_usb but doing a kldload also brings wlan.ko and rtwn.ko -- Emmanuel Vadot