From nobody Fri Oct 01 06:35:13 2021 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 91E6717E5DD5 for ; Fri, 1 Oct 2021 06:35:13 +0000 (UTC) (envelope-from ari@stonepile.fi) Received: from dmx.stonepile.fi (dmx.stonepile.fi [84.22.101.171]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4HLL2S4fygz4dwm for ; Fri, 1 Oct 2021 06:35:12 +0000 (UTC) (envelope-from ari@stonepile.fi) Received: from dmx.stonepile.fi (localhost [127.0.0.1]) by dmx.stonepile.fi (Postfix) with ESMTP id BD272273EEF for ; Fri, 1 Oct 2021 09:35:05 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=stonepile.fi; h= content-language:content-transfer-encoding:content-type :content-type:mime-version:user-agent:date:date:message-id :subject:subject:from:from:received:received; s=k2; t= 1633070103; bh=y4PEsJ7UFQcbzxxbhn/OUp79kgPu3XjVRnzaoW9u4FI=; b=A d7r6ORAjkExe/utThIWyDXq6E+tO0SMmvqvUMgoDO3c6tHVQnPnhOIAXk2m1G0HI Rm5uGQyPvnI3agWn1pTdqslrgC7vb/2SOcdECqQyEc3N6Y6e2chxp3o25+fafn81 L4bYRzebFz614Xuq8r9Ci0ujn9W61vApvEYNqzk9QE= Received: from dmx.stonepile.fi ([127.0.0.1]) by dmx.stonepile.fi (dmx.stonepile.fi [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id Rvh0Pb0j93fh for ; Fri, 1 Oct 2021 09:35:03 +0300 (EEST) Received: from [192.168.2.221] (unknown [194.136.144.131]) by dmx.stonepile.fi (Postfix) with ESMTPSA id DAF10273030 for ; Fri, 1 Oct 2021 09:35:03 +0300 (EEST) Subject: Problems with 4G Huawei stick & RPi3 after upgrading to 13.0 To: freebsd-arm@freebsd.org Message-ID: <4918ed59-dfe4-2669-dc0e-d768fedef157@stonepile.fi> Date: Fri, 1 Oct 2021 09:35:13 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: 4HLL2S4fygz4dwm X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=stonepile.fi header.s=k2 header.b="A d7r6OR"; dmarc=pass (policy=quarantine) header.from=stonepile.fi; spf=pass (mx1.freebsd.org: domain of ari@stonepile.fi designates 84.22.101.171 as permitted sender) smtp.mailfrom=ari@stonepile.fi X-Spamd-Result: default: False [-4.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[stonepile.fi:s=k2]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCVD_COUNT_THREE(0.00)[4]; DKIM_TRACE(0.00)[stonepile.fi:+]; DMARC_POLICY_ALLOW(-0.50)[stonepile.fi,quarantine]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:196752, ipnet:84.22.100.0/23, country:NL]; MID_RHS_MATCH_FROM(0.00)[] Reply-To: ari@stonepile.fi From: Ari Suutari via freebsd-arm X-Original-From: Ari Suutari X-ThisMailContainsUnwantedMimeParts: N Hi, I have a remote system on RPi3 which has been running FreeBSD 12.x for about two years. It has a Huawei 4G usb stick/dongle for internet connection: Bus /dev/usb Device /dev/ugen1.6: ID 12d1:1f01 Huawei Technologies Co., Ltd. E353/E3131 (Mass storage mode) Huawei stick requires usb_modeswitch to change it from mass storage mode to ethernet interface (it's seen as ue1 after switch), so I have devd setup so that it performs this when stick is detected: Bus /dev/usb Device /dev/ugen0.6: ID 12d1:14dc Huawei Technologies Co., Ltd. E3372 LTE/UMTS/GSM HiLink Modem/Networkcard This all has been working very nicely, no problems at all. Yesterday I upgraded the system to FreeBSD 13.0. To my great surprise, Huawei stick didn't work. It is detected OK in mass storage mode, but usb_modeswitch fails with error -7 like this: ------ Look for default devices ...  Found devices in default mode (1) Access device 006 on bus 001 Get the current device configuration ... Current configuration number is 1 Use interface number 0  with class 8 Use endpoints 0x01 (out) and 0x81 (in) Using standard Huawei switching message Looking for active drivers ... Set up interface 0 Use endpoint 0x01 for message sending ... Trying to send message 1 to endpoint 0x01 ...  Sending the message returned error -7. Try to continue Read the response to message 1 (CSW) ...  Response reading failed (error -7)  Device is gone, skip any further commands ---- I tried this maybe dozen times and usb_modeswitch succeeded once, without any changes in anything, so it looks highly unreliable. No difference if I power off completely, just reboot or reinsert the stick. As this is at remote location, I couldn't leave it like this. I inserted my backup SD card with FreeBSD 12.2  and everything works again. The version of usb_modeswitch is the same (2.6.0). What might be the problem here ?     Ari S.