From nobody Thu Feb 17 09:20:34 2022 X-Original-To: hackers@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 76AE719C1EA0; Thu, 17 Feb 2022 09:20:41 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from kabab.cs.huji.ac.il (kabab.cs.huji.ac.il [132.65.116.210]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Jzq793m1Wz4Sp1; Thu, 17 Feb 2022 09:20:37 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=cs.huji.ac.il; s=57791128; h=To:References:Message-Id:Content-Transfer-Encoding:Cc:Date:In-Reply-To:From:Subject:Mime-Version:Content-Type; bh=TxkbuM00Tw8U7zIq1+G/ba1yuRngKvgfxFqV9U5wBbU=; b=wdrugC6qCT2M3+bOGZvEfI6CXCNDMjXW1Wc9jkYMB0JsdcFKniMRnGtENfUsvm0GNOT6UpvJ9FIqgDqgB2uYUVIHeVPVihd77GIqsyi0RUAvpiUklpDKAwxX2+7QFXjTkEX8NYHP3KZyDocegNmazEQYegHHDycTc9C65Fbsc/zTtfR/Z93U+XpyeuNC3zfCqoW7ct18dksCUutokiev45h+mdLpWfLxcZ9Tzb5OfVzAFohNbVXWtUGGX6LzltNc2vyEhnYrLbo6CQ2EcDpbrhquZc/KBDQz0bNl/QeXJ4U15zEhN+jsv7+rQ7RQOejQU68kxvUFiU63cjfkUYqoUw==; Received: from bach.cs.huji.ac.il ([132.65.80.20] helo=smtpclient.apple) by kabab.cs.huji.ac.il with esmtp id 1nKcxn-0005VX-4z; Thu, 17 Feb 2022 11:20:35 +0200 Content-Type: text/plain; charset=utf-8 List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: usb CH9102 serial chip From: Daniel Braniss In-Reply-To: <7DD6E1FA-3EA4-44D9-A272-9E51FB9F2BFC@dons.net.au> Date: Thu, 17 Feb 2022 11:20:34 +0200 Cc: freebsd- , "usb@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: References: <7DD6E1FA-3EA4-44D9-A272-9E51FB9F2BFC@dons.net.au> To: Daniel O'Connor X-Mailer: Apple Mail (2.3654.120.0.1.13) X-Rspamd-Queue-Id: 4Jzq793m1Wz4Sp1 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cs.huji.ac.il header.s=57791128 header.b=wdrugC6q; dmarc=pass (policy=none) header.from=huji.ac.il; spf=none (mx1.freebsd.org: domain of danny@cs.huji.ac.il has no SPF policy when checking 132.65.116.210) smtp.mailfrom=danny@cs.huji.ac.il X-Spamd-Result: default: False [-3.29 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[cs.huji.ac.il:s=57791128]; FREEFALL_USER(0.00)[danny]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; MV_CASE(0.50)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[cs.huji.ac.il:+]; DMARC_POLICY_ALLOW(-0.50)[huji.ac.il,none]; NEURAL_HAM_SHORT(-0.99)[-0.990]; MLMMJ_DEST(0.00)[hackers,usb]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:378, ipnet:132.64.0.0/15, country:IL]; RCVD_COUNT_TWO(0.00)[2]; MID_RHS_MATCH_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N > On 17 Feb 2022, at 11:09, Daniel O'Connor wrote: >=20 >=20 >=20 >> On 17 Feb 2022, at 17:47, Daniel Braniss wrote: >> is there some quirk to enable this chip? >> it=E2=80=99s an new riskv esp32 board but I can only use the usb to = download software, no console output from it. >=20 > Are you saying that you can flash the board with it? >=20 > If that is the case then the chip/driver are working fine since that = requires bidirectional communication etc.. >=20 but that works only if I power up the board while pressing a button, = then it also appears as /dev/ttyU0, and so then I can flash, after reset, the device is gone and there are = errors ( BTW, the flashed image workes): Feb 17 09:46:59 pampero kernel: usbd_setup_device_desc: getting device = descriptor at addr 4 failed, USB_ERR_IOERROR Feb 17 09:47:00 pampero kernel: usbd_req_re_enumerate: addr=3D4, set = address failed! (USB_ERR_IOERROR, ignored) Feb 17 09:47:01 pampero kernel: usbd_setup_device_desc: getting device = descriptor at addr 4 failed, USB_ERR_IOERROR Feb 17 09:47:01 pampero kernel: usbd_req_re_enumerate: addr=3D4, set = address failed! (USB_ERR_IOERROR, ignored) Feb 17 09:47:03 pampero kernel: usbd_setup_device_desc: getting device = descriptor at addr 4 failed, USB_ERR_IOERROR Feb 17 09:47:03 pampero kernel: usbd_req_re_enumerate: addr=3D4, set = address failed! (USB_ERR_IOERROR, ignored) Feb 17 09:47:05 pampero kernel: usbd_setup_device_desc: getting device = descriptor at addr 4 failed, USB_ERR_IOERROR Feb 17 09:47:06 pampero kernel: usbd_req_re_enumerate: addr=3D4, set = address failed! (USB_ERR_IOERROR, ignored) Feb 17 09:47:08 pampero kernel: usbd_setup_device_desc: getting device = descriptor at addr 4 failed, USB_ERR_IOERROR Feb 17 09:47:08 pampero kernel: ugen0.4: at usbus0 = (disconnected) Feb 17 09:47:08 pampero kernel: uhub_reattach_port: could not allocate = new device > -- > Daniel O'Connor > "The nice thing about standards is that there > are so many of them to choose from." > -- Andrew Tanenbaum >=20 cheers, danny