From nobody Mon Dec 13 12:59:18 2021 X-Original-To: freebsd-hardware@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 C0D3F18EF6C7 for ; Mon, 13 Dec 2021 12:59:40 +0000 (UTC) (envelope-from Axel.Rau@Chaos1.DE) Received: from mailout5.lrau.net (mailout5.lrau.net [IPv6:2a05:bec0:26:5::73]) (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 "mailout5.lrau.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JCM6M5BYfz4nc3 for ; Mon, 13 Dec 2021 12:59:36 +0000 (UTC) (envelope-from Axel.Rau@Chaos1.DE) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=chaos1.de; s=email1; h=To:Date:Message-Id:Subject:Mime-Version:Content-Type:From:Sender: Reply-To:Cc:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=tSCSbmmSbRsSUIbJ2B9Is3TMXkrDgb2VtfXvY68e5HE=; b=Fk35npHAZdKj726i0NfHGwF4yF KK3a4yaG5WUEGk4BwbRAG9zwd1Jp+Q/YtrRmeqXvQkAgxMvqsQ4ysZVHRjHpv3srdxbwc+ArKJTMX XovgJhx77ZeW9qQutYRE9Q5AWu7bJy4mvh/vglSFcDyPiXPvjzGDL+/TnN/S2NUw9GUD5B3WD+dga ylz6Qfw0Evyun8oBb/bRNr8tl+SxQ6pxD8n5+wx5b8xhm3u6ZHae1elx5AAube/5olYyiKXfJJpfW pa7rc0gsvF+koc1F18n6onqi8UfyQdUeQcD0uTkAlgfJJRd2HJ7elIAc2VVMtJ7JmC4DdbiiI85hd y+Wx4mwg==; Received: from [2a05:bec0:26:5::74] (helo=imap5.lrau.net) by mailout5.lrau.net with esmtp (Exim 4.94.2 (FreeBSD)) (envelope-from ) id 1mwkvP-0007WJ-3Q for freebsd-hardware@FreeBSD.org; Mon, 13 Dec 2021 12:59:27 +0000 Received: from Axel.Rau@Chaos1.DE by imap5.lrau.net (Archiveopteryx 3.2.0) with esmtpsa id 1639400366-24827-24196/7/3; Mon, 13 Dec 2021 12:59:26 +0000 From: Axel Rau Content-Type: multipart/signed; protocol="application/pgp-signature"; boundary="Apple-Mail=_8A0093DD-92B5-4344-A45E-23B22DF8B57C"; micalg=pgp-sha256 List-Id: General discussion of FreeBSD hardware List-Archive: https://lists.freebsd.org/archives/freebsd-hardware List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hardware@freebsd.org Mime-Version: 1.0 Subject: RealTek 8168/8111 does not come up on 13.0-STABLE GENERIC amd64 Message-Id: <18A04696-D586-46BB-AF18-DFA28B1DA8E6@Chaos1.DE> Date: Mon, 13 Dec 2021 13:59:18 +0100 To: freebsd-hardware@freebsd.org X-Mailer: Apple Mail (2.3608.120.23.2.7) X-Rspamd-Queue-Id: 4JCM6M5BYfz4nc3 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=chaos1.de header.s=email1 header.b=Fk35npHA; dmarc=none; spf=none (mx1.freebsd.org: domain of Axel.Rau@Chaos1.DE has no SPF policy when checking 2a05:bec0:26:5::73) smtp.mailfrom=Axel.Rau@Chaos1.DE X-Spamd-Result: default: False [-3.90 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[chaos1.de:s=email1]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[chaos1.de:dkim]; MV_CASE(0.50)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.20)[multipart/signed,multipart/mixed,text/plain]; HAS_ATTACHMENT(0.00)[]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-0.996]; RCVD_COUNT_THREE(0.00)[3]; DMARC_NA(0.00)[Chaos1.DE]; NEURAL_SPAM_SHORT(0.10)[0.099]; DKIM_TRACE(0.00)[chaos1.de:+]; SIGNED_PGP(-2.00)[]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:+,3:~,4:~,5:+,6:~]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:197071, ipnet:2a05:bec0::/29, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[2a05:bec0:26:5::73:from] X-ThisMailContainsUnwantedMimeParts: Y --Apple-Mail=_8A0093DD-92B5-4344-A45E-23B22DF8B57C Content-Type: multipart/mixed; boundary="Apple-Mail=_2A27CF1D-2500-4295-B357-985779CE2937" --Apple-Mail=_2A27CF1D-2500-4295-B357-985779CE2937 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Hi all, this is a ghostbsd box with GhostBSD 21.11.24 fresh installed. The re0 is flapping during startup and stays down on shutdown/boot When I do a reboot, it comes up. I attach one dmsesg for each case. Any help appreciated, Axel --Apple-Mail=_2A27CF1D-2500-4295-B357-985779CE2937 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 --- PGP-Key: CDE74120 =E2=98=80 computing @ chaos claudius --Apple-Mail=_2A27CF1D-2500-4295-B357-985779CE2937-- --Apple-Mail=_8A0093DD-92B5-4344-A45E-23B22DF8B57C Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEl5evOTfnjZdhkBzKaPxTRM3nQSAFAmG3Q6YACgkQaPxTRM3n QSBPlxAAlqYndbvQZOPpN6DyoBzB4FrPJrc4mcMRAkAONa7aondf8cpeELRbqJJ/ 2wqY6BxPaFgHO6nliYBckWwAfFo8T/m6wr8GRwGCTZEqTMgMzDmQqgQtKasm99iG fDI2W26i7UbfdLwzcuLYdqxfWpCgJwnKBVK1CKv6wXEtH4KdN2RfVSkiwNnFNyn9 hAFGkuNAAFs8cwKN0XWGCSAPiPLQhs7mCZ2bdKY/1A6Ei0c5snojCj5ntA0pvZrY Z0MZqxRDsEDYBVEGGP0ep+gTrhTXvAmBnP+VqfILMkhCZEmIfViDbx/rGkIiKR4j XD4EWGer7Nquqnwh0w3KFmUcsBifBaZwTPx1XYjCrPGEQH7ol5UlCF4230eknPSi 0vemm/2AVESVLTnob5o3Z5QxLYd1JDT2/wON5z7kFSQ+HqSJ1w6iT05MzRSRW27W kNs8GfrrPpkO44NQM++adfWXAWxxmlJJbUNWS8yMkWZg9rAjTllpZ2abCOraZvrP m/BBIkhmxVvINp8THM7YUSJcm8CPK8WpvNxuSnrrDY3g/F+OsiClwE2fNtxAdU1y Uij8CKaF7Pl95PysnLYMtNlEMfhsY7pfVvdLAtpFGNIA5/5+oSgLbOy++ekcsegh fhUw6+zSx0x+jMOp5OYyXVjMJrAn+9cEocfQM8BvjcChNVh5zsE= =ftMD -----END PGP SIGNATURE----- --Apple-Mail=_8A0093DD-92B5-4344-A45E-23B22DF8B57C-- From nobody Mon Dec 13 16:32:01 2021 X-Original-To: freebsd-hardware@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 BD8B418D49A6 for ; Mon, 13 Dec 2021 16:32:13 +0000 (UTC) (envelope-from Axel.Rau@Chaos1.DE) Received: from mailout5.lrau.net (mailout5.lrau.net [IPv6:2a05:bec0:26:5::73]) (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 "mailout5.lrau.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JCRqd0pVfz4ST4 for ; Mon, 13 Dec 2021 16:32:13 +0000 (UTC) (envelope-from Axel.Rau@Chaos1.DE) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=chaos1.de; s=email1; h=Message-Id:In-Reply-To:To:References:Date:Subject:Mime-Version: Content-Type:From:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=ENUoU28478UfAU2rfOY2g6f1XUNaXDBMSeAcFQL0Ftk=; b=Cghni6vQfC80efqQ7tqailTuR/ H+g2dc8XPef0c7SVphxfn7/rhCPbesVK3qUw+4lbp9SV59AjKRGrsq+JCoHfPrExYBtvml0uruIyi S3uuWJ8AdkCJpfKRXglxtNPHxZTgt171KIVySu2R952ERxDFVrKlE+HsvOYb1DUGrPV5cJvt1odcl 1v3z29BxS6vJTw+iRJpFHuySVzo104wmgrTKu8/wbDnM+rZHhxb3vH2E/ex9MlYf90tq0s4g2pJMW j8QGIA3sy9SKM4hEy1bOLQQC0LFCn5nOdGR3Ohs/iIkl7CJmUY74fAO/xe7UfZXDfKv7JFiyjkH05 XmXgOL6g==; Received: from [2a05:bec0:26:5::74] (helo=imap5.lrau.net) by mailout5.lrau.net with esmtp (Exim 4.94.2 (FreeBSD)) (envelope-from ) id 1mwoFI-000LGC-3T for freebsd-hardware@FreeBSD.org; Mon, 13 Dec 2021 16:32:12 +0000 Received: from Axel.Rau@Chaos1.DE by imap5.lrau.net (Archiveopteryx 3.2.0) with esmtpsa id 1639413131-24530-24196/7/2; Mon, 13 Dec 2021 16:32:11 +0000 From: Axel Rau Content-Type: multipart/signed; protocol="application/pgp-signature"; boundary="Apple-Mail=_65775E5D-9B00-4F06-82FE-7F7225521854"; micalg=pgp-sha256 List-Id: General discussion of FreeBSD hardware List-Archive: https://lists.freebsd.org/archives/freebsd-hardware List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hardware@freebsd.org Mime-Version: 1.0 Subject: Re: RealTek 8168/8111 does not come up on 13.0-STABLE GENERIC amd64 Date: Mon, 13 Dec 2021 17:32:01 +0100 References: <18A04696-D586-46BB-AF18-DFA28B1DA8E6@Chaos1.DE> To: freebsd-hardware@freebsd.org In-Reply-To: <18A04696-D586-46BB-AF18-DFA28B1DA8E6@Chaos1.DE> Message-Id: <7CF754F9-D5D1-4304-9885-4BC6992B4041@Chaos1.DE> X-Mailer: Apple Mail (2.3608.120.23.2.7) X-Rspamd-Queue-Id: 4JCRqd0pVfz4ST4 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=chaos1.de header.s=email1 header.b=Cghni6vQ; dmarc=none; spf=none (mx1.freebsd.org: domain of Axel.Rau@Chaos1.DE has no SPF policy when checking 2a05:bec0:26:5::73) smtp.mailfrom=Axel.Rau@Chaos1.DE X-Spamd-Result: default: False [-3.75 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[chaos1.de:s=email1]; RCVD_IN_DNSWL_LOW(-0.10)[2a05:bec0:26:5::73:from]; FROM_HAS_DN(0.00)[]; MV_CASE(0.50)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.20)[multipart/signed,multipart/alternative,text/plain]; HAS_ATTACHMENT(0.00)[]; TO_DN_NONE(0.00)[]; NEURAL_SPAM_MEDIUM(0.25)[0.249]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCVD_COUNT_THREE(0.00)[3]; DMARC_NA(0.00)[Chaos1.DE]; DKIM_TRACE(0.00)[chaos1.de:+]; NEURAL_HAM_SHORT(-1.00)[-1.000]; SIGNED_PGP(-2.00)[]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:+,3:~,4:~]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:197071, ipnet:2a05:bec0::/29, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[chaos1.de:dkim] X-ThisMailContainsUnwantedMimeParts: Y --Apple-Mail=_65775E5D-9B00-4F06-82FE-7F7225521854 Content-Type: multipart/alternative; boundary="Apple-Mail=_4AD85167-78AA-4E83-BF48-DBF552E8CF74" --Apple-Mail=_4AD85167-78AA-4E83-BF48-DBF552E8CF74 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Both dmesgs may be find here: https://www.chaos1.de/downloads/realtek.zip = Axel > Am 13.12.2021 um 13:59 schrieb Axel Rau : >=20 > Hi all, >=20 > this is a ghostbsd box with GhostBSD 21.11.24 fresh installed. > The re0 is flapping during startup and stays down on shutdown/boot > When I do a reboot, it comes up. >=20 > I attach one dmsesg for each case. >=20 > Any help appreciated, > Axel >=20 >=20 > --- > PGP-Key: CDE74120 =E2=98=80 computing @ chaos claudius >=20 --- PGP-Key: CDE74120 =E2=98=80 computing @ chaos claudius --Apple-Mail=_4AD85167-78AA-4E83-BF48-DBF552E8CF74-- --Apple-Mail=_65775E5D-9B00-4F06-82FE-7F7225521854 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEl5evOTfnjZdhkBzKaPxTRM3nQSAFAmG3dYIACgkQaPxTRM3n QSCjYg/8C/8bU50/tkyztA7If2kToCgBtWXfF8FV54sKsRYkUcvfmsN/Z9gES33U nWGR2ox7TgJca05lRS57R9bTzP7tGeMPOhiBsBYCQxEGrAO3gowP9jvlgWz8dfc2 8guFIV3Y1ZizodW9UjvQ3gLXHTu+TklZD/q94Y7S19mH7MLJGAuTeGWXOw8wVFIS cDB8sGrEkFCC7Ot2dguoLL9nzyCkgfO4C8pGBwR3Hp/njI6T/Mf9z9OzdgO5Cugs dcBhkGDa93apZOm9xw4/qJ8kGCiddndK+IusR4YyaL6/C6DOtB6yPndNRXUBnX59 E2JBeVKJucntbowsmi5teCQvlwIqSHjc8f8pkq6eH0D5j3NIZdqGDn+4qxjR2J7z HX5H9GNJpgHiiu364rIjzR3lTL7k36hr+IISoPGHgVVhLQth8x0e9jZ7Hgb/pKUf ijq4H37XgwvMG9FOA9n/2rdqcM+lGsX9eEHUcTPpd1hVDDqHdOwZ1+36IVJG75WY 9DwEG12o5d5nAkfkeBFFXa8mkflEGmGG3JiYCIYfg+dTZXasm+/ws+OpuG2dyOPg 3lIpNo5GXOkv6+2LnPrD8ggSZtKx6CZHB8LopwvEldFwWf3auvuSFf5aeTGZGr4r 2WWRlj9llQSLLEHtd2YuyqIkal45KuVCPgAuNOMM/J9/Wj2JqhY= =FcWG -----END PGP SIGNATURE----- --Apple-Mail=_65775E5D-9B00-4F06-82FE-7F7225521854-- From nobody Mon Dec 20 10:29:29 2021 X-Original-To: freebsd-hardware@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 7709A18F4654 for ; Mon, 20 Dec 2021 10:30:03 +0000 (UTC) (envelope-from Axel.Rau@Chaos1.DE) Received: from mailout5.lrau.net (mailout5.lrau.net [IPv6:2a05:bec0:26:5::73]) (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 "mailout5.lrau.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JHbSV3cFdz4SRb for ; Mon, 20 Dec 2021 10:30:02 +0000 (UTC) (envelope-from Axel.Rau@Chaos1.DE) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=chaos1.de; s=email1; h=Message-Id:In-Reply-To:To:References:Date:Subject:Mime-Version: Content-Type:From:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=lQw7ivK9yWY1pHOmA0zlDff2azIc6BQDCYIDxidsMIQ=; b=WP5tyN9aTZpK++7NiW0y5oJoz1 CP8OEggKR2PUauI57KpahzxkfpeFDxEZtiU23AtS/D9C3mYjF0dfFn6lAGjtOpvLkI7afKFGhDWIc k7sHcd1dXQYB2jUxWbTXGrunTWi7eA4onmsO028YuOPq2fmb6SB/92ZXTSmabA5ut/wj7UMaTCs9e Et+V9TgPPvVxpwwQkccDuUCqJLbGJK0CfILJhJJ9colfesd/rod8qcZjpLU6c3jLDQ8I2W3WxDPGo DMRqZTRRDLvsyAcQBA8MpJ01g2ODpOool2aOof3F/JTAQ+xBgKaWhfiX7noDQB//menQeLgFoIXH3 eGuOVZQg==; Received: from [2a05:bec0:26:5::74] (helo=imap5.lrau.net) by mailout5.lrau.net with esmtp (Exim 4.94.2 (FreeBSD)) (envelope-from ) id 1mzFvf-0003qm-5X for freebsd-hardware@freebsd.org; Mon, 20 Dec 2021 10:29:54 +0000 Received: from Axel.Rau@Chaos1.DE by imap5.lrau.net (Archiveopteryx 3.2.0) with esmtpsa id 1639996193-4894-3149/7/4; Mon, 20 Dec 2021 10:29:53 +0000 From: Axel Rau Content-Type: multipart/signed; protocol="application/pgp-signature"; boundary="Apple-Mail=_DF58F659-0F23-4C09-A1DC-78592A4A24B9"; micalg=pgp-sha256 List-Id: General discussion of FreeBSD hardware List-Archive: https://lists.freebsd.org/archives/freebsd-hardware List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hardware@freebsd.org Mime-Version: 1.0 Subject: Re: RealTek 8168/8111 does not come up on 13.0-STABLE GENERIC amd64 Date: Mon, 20 Dec 2021 11:29:29 +0100 References: <18A04696-D586-46BB-AF18-DFA28B1DA8E6@Chaos1.DE> <7CF754F9-D5D1-4304-9885-4BC6992B4041@Chaos1.DE> To: freebsd-hardware@freebsd.org In-Reply-To: <7CF754F9-D5D1-4304-9885-4BC6992B4041@Chaos1.DE> Message-Id: X-Mailer: Apple Mail (2.3608.120.23.2.7) X-Rspamd-Queue-Id: 4JHbSV3cFdz4SRb X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=chaos1.de header.s=email1 header.b=WP5tyN9a; dmarc=none; spf=none (mx1.freebsd.org: domain of Axel.Rau@Chaos1.DE has no SPF policy when checking 2a05:bec0:26:5::73) smtp.mailfrom=Axel.Rau@Chaos1.DE X-Spamd-Result: default: False [-3.49 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[chaos1.de:s=email1]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[chaos1.de:dkim]; MV_CASE(0.50)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.20)[multipart/signed,multipart/alternative,text/plain]; HAS_ATTACHMENT(0.00)[]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCVD_COUNT_THREE(0.00)[3]; DMARC_NA(0.00)[Chaos1.DE]; NEURAL_SPAM_SHORT(0.51)[0.510]; DKIM_TRACE(0.00)[chaos1.de:+]; SIGNED_PGP(-2.00)[]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:+,3:~,4:~]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:197071, ipnet:2a05:bec0::/29, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[2a05:bec0:26:5::73:from] X-ThisMailContainsUnwantedMimeParts: N --Apple-Mail=_DF58F659-0F23-4C09-A1DC-78592A4A24B9 Content-Type: multipart/alternative; boundary="Apple-Mail=_0DFB5D6D-94F8-40EF-8CE5-D9CA22112174" --Apple-Mail=_0DFB5D6D-94F8-40EF-8CE5-D9CA22112174 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Which details are needed to resolve this issue? Axel > Am 13.12.2021 um 17:32 schrieb Axel Rau : >=20 > Both dmesgs may be find here: > https://www.chaos1.de/downloads/realtek.zip = > Axel >=20 >> Am 13.12.2021 um 13:59 schrieb Axel Rau : >>=20 >> Hi all, >>=20 >> this is a ghostbsd box with GhostBSD 21.11.24 fresh installed. >> The re0 is flapping during startup and stays down on shutdown/boot >> When I do a reboot, it comes up. >>=20 >> I attach one dmsesg for each case. >>=20 >> Any help appreciated, >> Axel >>=20 --- PGP-Key: CDE74120 =E2=98=80 computing @ chaos claudius --Apple-Mail=_0DFB5D6D-94F8-40EF-8CE5-D9CA22112174 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Which= details are needed to resolve this issue?

Axel

Am = 13.12.2021 um 17:32 schrieb Axel Rau <Axel.Rau@chaos1.de>:

Both dmesgs may be find here:
= https://www.chaos1.de/downloads/realtek.zip <https://www.chaos1.de/downloads/realtek.zip>
Axel

Am 13.12.2021 um 13:59 schrieb Axel Rau <Axel.Rau@chaos1.de>:

Hi = all,

this is a ghostbsd box with GhostBSD = 21.11.24 fresh installed.
The re0 is flapping during = startup and stays down on shutdown/boot
When I do a = reboot, it comes up.

I attach one dmsesg = for each case.

Any help appreciated,
Axel

---
PGP-Key: CDE74120 =  =E2=98=80  computing @ chaos = claudius

= --Apple-Mail=_0DFB5D6D-94F8-40EF-8CE5-D9CA22112174-- --Apple-Mail=_DF58F659-0F23-4C09-A1DC-78592A4A24B9 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEl5evOTfnjZdhkBzKaPxTRM3nQSAFAmHAWwkACgkQaPxTRM3n QSBjERAApQXeR8B/wffQ7o1lDjLtsZC7DwdgGOIUOA/+1TjaPvGafRN7DHPnrgzV vXDKaISYTJJapSFyxPkWjkAOmGKMz1o4zErjK5PyAmku51T9JJ2dw3AsYi/DATCX soWpIhdFWnowGMog6hMXnlc3UtRGmAFOSsnQkNpUQOL6xRXVibKHZ6KwqbOm9keC WqcKXGkJqpJeOH8hucm6LpUlthuoGw2DpLFQEeu09G0XNWs6U9sxllXXmrpPGtWN 7PLTcRuvfPWpk3GIBIIVSKJzweT3RxoJCUcCek/Sae3snxyAhs7cxsWMbNiWrvsB 8lByRw37LwRttyuv/BZbfqssOyfvwKPxZM1rmlPcWyD4O0TAej/ZpcGddBHegzW/ 2vq3ggTZ1hlLaeSnp2V0n/WYFygfHPZrn8u+5K6C37xn2CKLIkaGeOgeCV4dlIIC Lji9+WwUFXx7Mm/XrWbXvIz3ng2YYaEDL5se0+/lN4YtX3dAtOwP3FHmFN3JEnLT ADsv5hYVLdTr0dEvXDFNXCXlJ3Vaeo88g/hS00YUhvT2PwYwRScyRm/Hb1JJ3Ezv Ue0WB+XGMOfupf+vwCnkM4YZE/d7S8XXtk7l2xT3NTG486LcMlKDzSNjR4AJQtvx fPLshsMg28F2CgmVfys5v7/unkE8h11GC20Lk2rSmnNCVdMj4SE= =JD20 -----END PGP SIGNATURE----- --Apple-Mail=_DF58F659-0F23-4C09-A1DC-78592A4A24B9-- From nobody Sat Jan 15 00:21:27 2022 X-Original-To: freebsd-hardware@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 9B0E8195C5BC for ; Sat, 15 Jan 2022 00:21:37 +0000 (UTC) (envelope-from kolipe.c@exoticsilicon.com) Received: from smtp.exoticsilicon.com (smtp.exoticsilicon.com [IPv6:2a03:6000:6f67:627::7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA512) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4JbJkQ6njkz4VBR for ; Sat, 15 Jan 2022 00:21:34 +0000 (UTC) (envelope-from kolipe.c@exoticsilicon.com) Date: Fri, 14 Jan 2022 21:21:27 -0300 From: Crystal Kolipe To: freebsd-hardware@freebsd.org Subject: FreeBSD 13.0-STABLE on Pinephone Message-ID: List-Id: General discussion of FreeBSD hardware List-Archive: https://lists.freebsd.org/archives/freebsd-hardware List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hardware@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Queue-Id: 4JbJkQ6njkz4VBR X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of kolipe.c@exoticsilicon.com designates 2a03:6000:6f67:627::7 as permitted sender) smtp.mailfrom=kolipe.c@exoticsilicon.com X-Spamd-Result: default: False [-1.32 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; SH_EMAIL_DBL_DONT_QUERY_IPS(0.00)[0.0.0.2:email,0.0.0.0:email,0.0.0.1:email,0.0.0.3:email]; R_SPF_ALLOW(-0.20)[+a:smtp.exoticsilicon.com.:c]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[exoticsilicon.com]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000]; DBL_PROHIBIT(0.00)[0.0.0.0:email,0.0.0.2:email,0.0.0.3:email,0.0.0.1:email]; NEURAL_SPAM_SHORT(0.98)[0.978]; MLMMJ_DEST(0.00)[freebsd-hardware]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:3265, ipnet:2a03:6000::/32, country:NL]; MID_RHS_MATCH_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N Hi, I installed FreeBSD 13.0-STABLE on a Pinephone 1.2 for testing, and thought that the dmesg output would be of interest to the list: ---<>--- WARNING: Cannot find freebsd,dts-version property, cannot check DTB compliance Copyright (c) 1992-2021 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 13.0-STABLE #0 stable/13-n248759-3684bb89d52: Thu Dec 30 03:49:13 UTC 2021 root@releng3.nyi.freebsd.org:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC arm64 FreeBSD clang version 13.0.0 (git@github.com:llvm/llvm-project.git llvmorg-13.0.0-0-gd7b669b3a303) VT: init without driver. module firmware already present! real memory = 3221004288 (3071 MB) avail memory = 3118305280 (2973 MB) Starting CPU 1 (1) Starting CPU 2 (2) Starting CPU 3 (3) FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs random: unblocking device. random: entropy device external interface MAP f8f2b000 mode 2 pages 4 MAP f8f30000 mode 2 pages 4 MAP fdf60000 mode 2 pages 16 kbd0 at kbdmux0 ofwbus0: clk_fixed0: on ofwbus0 clk_fixed1: on ofwbus0 simplebus0: on ofwbus0 regfix0: on ofwbus0 regfix1: on ofwbus0 psci0: on ofwbus0 rtc0: mem 0x1f00000-0x1f003ff irq 58,59 on simplebus0 rtc0: registered as a time-of-day clock, resolution 1.000000s ccu_a64ng0: mem 0x1c20000-0x1c203ff on simplebus0 ccu_sun8i_r0: mem 0x1f01400-0x1f014ff on simplebus0 gic0: mem 0x1c81000-0x1c81fff,0x1c82000-0x1c83fff,0x1c84000-0x1c85fff,0x1c86000-0x1c87fff irq 53 on simplebus0 gic0: pn 0x2, arch 0x2, rev 0x1, implementer 0x43b irqs 224 aw_r_intc_gicp0: mem 0x1f00c00-0x1f00fff irq 60 on simplebus0 gpio0: mem 0x1c20800-0x1c20bff irq 24,25,26 on simplebus0 gpiobus0: on gpio0 iichb0: mem 0x1c2ac00-0x1c2afff irq 40 on simplebus0 iicbus0: on iichb0 iichb1: mem 0x1c2b000-0x1c2b3ff irq 41 on simplebus0 iicbus1: on iichb1 iichb2: mem 0x1c2b400-0x1c2b7ff irq 42 on simplebus0 iicbus2: on iichb2 gpio1: mem 0x1f02c00-0x1f02fff irq 63 on simplebus0 gpiobus1: on gpio1 generic_timer0: irq 4,5,6,7 on ofwbus0 Timecounter "ARM MPCore Timecounter" frequency 24000000 Hz quality 1000 Event timer "ARM MPCore Eventtimer" frequency 24000000 Hz quality 1000 a10_timer0: mem 0x1c20c00-0x1c20c2b irq 8,9 on simplebus0 Timecounter "a10_timer timer0" frequency 24000000 Hz quality 2000 aw_syscon0: mem 0x1c00000-0x1c00fff on simplebus0 rtc1: at addr 0xd0 irq 69 on iicbus1 rtc1: Error when reading reg 0x02, rv: 3 rtc1: Failed to configure RTC device_attach: rtc1 attach returned 5 rtc1: at addr 0xd0 irq 69 on iicbus1 rtc1: Error when reading reg 0x02, rv: 3 rtc1: Failed to configure RTC device_attach: rtc1 attach returned 5 aw_sid0: mem 0x1c14000-0x1c143ff on simplebus0 rtc1: at addr 0xd0 irq 69 on iicbus1 rtc1: Error when reading reg 0x02, rv: 3 rtc1: Failed to configure RTC device_attach: rtc1 attach returned 5 mmc_pwrseq0: on ofwbus0 awusbphy0: mem 0x1c19400-0x1c19413,0x1c1a800-0x1c1a803,0x1c1b800-0x1c1b803 on simplebus0 rtc1: at addr 0xd0 irq 69 on iicbus1 rtc1: Error when reading reg 0x02, rv: 3 rtc1: Failed to configure RTC device_attach: rtc1 attach returned 5 iichb3: mem 0x1f03400-0x1f037ff irq 64 on simplebus0 iicbus3: on iichb3 axp8xx_pmu0: at addr 0x746 irq 70 on iicbus3 axp8xx_pmu0: cannot allocate resources for device device_attach: axp8xx_pmu0 attach returned 6 cpulist0: on ofwbus0 cpu0: on cpulist0 cpufreq_dt0: on cpu0 cpufreq_dt0: no regulator for cpu@0 device_attach: cpufreq_dt0 attach returned 6 cpu1: on cpulist0 cpufreq_dt1: on cpu1 cpufreq_dt1: no regulator for cpu@1 device_attach: cpufreq_dt1 attach returned 6 cpu2: on cpulist0 cpufreq_dt2: on cpu2 cpufreq_dt2: no regulator for cpu@2 device_attach: cpufreq_dt2 attach returned 6 cpu3: on cpulist0 cpufreq_dt3: on cpu3 cpufreq_dt3: no regulator for cpu@3 device_attach: cpufreq_dt3 attach returned 6 pmu0: irq 0,1,2,3 on ofwbus0 a31dmac0: mem 0x1c02000-0x1c02fff irq 10 on simplebus0 aw_mmc0: mem 0x1c0f000-0x1c0ffff irq 14 on simplebus0 aw_mmc1: mem 0x1c10000-0x1c10fff irq 15 on simplebus0 aw_mmc2: mem 0x1c11000-0x1c11fff irq 16 on simplebus0 musbotg0: mem 0x1c19000-0x1c193ff irq 19 on simplebus0 musbotg0: setting phy mode 3 usbus0: Dynamic FIFO sizing detected, assuming 16Kbytes of FIFO RAM usbus0 on musbotg0 ehci0: mem 0x1c1a000-0x1c1a0ff irq 20 on simplebus0 usbus1: EHCI version 1.0 usbus1 on ehci0 ohci0: mem 0x1c1a400-0x1c1a4ff irq 21 on simplebus0 usbus2 on ohci0 ehci1: mem 0x1c1b000-0x1c1b0ff irq 22 on simplebus0 usbus3: EHCI version 1.0 usbus3 on ehci1 ohci1: mem 0x1c1b400-0x1c1b4ff irq 23 on simplebus0 usbus4 on ohci1 gpioc0: on gpio0 aw_thermal0: mem 0x1c25000-0x1c250ff irq 34 on simplebus0 uart0: <16750 or compatible> mem 0x1c28000-0x1c283ff irq 35 on simplebus0uart0: console (115384,n,8,1) uart1: <16750 or compatible> mem 0x1c28400-0x1c287ff irq 36 on simplebus0 uart2: <16750 or compatible> mem 0x1c28c00-0x1c28fff irq 38 on simplebus0 iicbus0: at addr 0xba iic0: on iicbus0 iicbus1: at addr 0x3c iicbus1: at addr 0x90 rtc1: at addr 0xd0 irq 69 on iicbus1 rtc1: Error when reading reg 0x02, rv: 3 rtc1: Failed to configure RTC device_attach: rtc1 attach returned 5 iic1: on iicbus1 iic2: on iicbus2 pwm0: mem 0x1f03800-0x1f03bff on simplebus0 pwmbus0: on pwm0 pwmc0: channel 0 on pwmbus0 gpioc1: on gpio1 axp8xx_pmu0: at addr 0x746 irq 70 on iicbus3 axp8xx_pmu0: cannot allocate resources for device device_attach: axp8xx_pmu0 attach returned 6 iic3: on iicbus3 aw_wdog0: mem 0x1c20ca0-0x1c20cbf irq 65 on simplebus0 gpioled0: on ofwbus0 armv8crypto0: cpufreq_dt0: on cpu0 cpufreq_dt0: no regulator for cpu@0 device_attach: cpufreq_dt0 attach returned 6 cpufreq_dt1: on cpu1 cpufreq_dt1: no regulator for cpu@1 device_attach: cpufreq_dt1 attach returned 6 cpufreq_dt2: on cpu2 cpufreq_dt2: no regulator for cpu@2 device_attach: cpufreq_dt2 attach returned 6 cpufreq_dt3: on cpu3 cpufreq_dt3: no regulator for cpu@3 device_attach: cpufreq_dt3 attach returned 6 Timecounters tick every 1.000 msec CPU 0: ARM Cortex-A53 r0p4 affinity: 0 Cache Type = <64 byte D-cacheline,64 byte I-cacheline,VIPT ICache,64 byte ERG,64 byte CWG> Instruction Set Attributes 0 = Instruction Set Attributes 1 = <> Processor Features 0 = Processor Features 1 = <> Memory Model Features 0 = Memory Model Features 1 = <8bit VMID> Memory Model Features 2 = <32bit CCIDX,48bit VA> Debug Features 0 = Debug Features 1 = <> Auxiliary Features 0 = <> Auxiliary Features 1 = <> AArch32 Instruction Set Attributes 5 = AArch32 Media and VFP Features 0 = AArch32 Media and VFP Features 1 = CPU 1: ARM Cortex-A53 r0p4 affinity: 1 CPU 2: ARM Cortex-A53 r0p4 affinity: 2 CPU 3: ARM Cortex-A53 r0p4 affinity: 3 Release APs...done usbus0: 480Mbps High Speed USB v2.0 usbus1: 480Mbps High Speed USB v2.0 usbus2: 12Mbps Full Speed USB v1.0 usbus3: 480Mbps High Speed USB v2.0 usbus4: 12Mbps Full Speed USB v1.0 Trying to mount root from ufs:/dev/ufs/rootfs [rw]... ugen0.1: at usbus0 Root mount waiting for:uhub0ugen2.1: at usbus2 ugen1.1: at usbus1 on usbus0 uhub0: on usbus0 usbus0uhub1 on usbus2 usbus1uhub1: on usbus2 usbus2ugen3.1: at usbus3 usbus3uhub2 usbus4 on usbus1 uhub2: on usbus1 uhub3 on usbus3 uhub3: on usbus3 ugen4.1: at usbus4 uhub4 on usbus4 uhub4: on usbus4 uhub1: 1 port with 1 removable, self powered uhub4: 1 port with 1 removable, self powered uhub0: 1 port with 1 removable, self powered mmc0: on aw_mmc2 mmc0: Failed to set VCCQ for card at relative address 2 mmcsd0: 31GB at mmc0 52.0MHz/8bit/4096-block mmcsd0boot0: 4MB partition 1 at mmcsd0 mmcsd0boot1: 4MB partition 2 at mmcsd0 mmcsd0rpmb: 17MB partition 3 at mmcsd0 mmc1: on aw_mmc1 mmc1: No compatible cards found on bus aw_mmc1: Spurious interrupt - no active request, rint: 0x00000004 uhub2: 1 port with 1 removable, self powered uhub3: 1 port with 1 removable, self powered mountroot: waiting for device /dev/ufs/rootfs... Dual Console: Serial Primary, Video Secondary Setting hostuuid: 30633239-6439-6162-3062-303436373435. Setting hostid: 0x09ffad61. /etc/rc: WARNING: $zfskeys_enable is not set properly - see rc.conf(5). Starting file system checks: /dev/ufs/rootfs: FILE SYSTEM CLEAN; SKIPPING CHECKS /dev/ufs/rootfs: clean, 6670786 free (26 frags, 833845 blocks, 0.0% fragmentation) Mounting local filesystems:. Setting hostname: generic. ELF ldconfig path: /lib /usr/lib /usr/lib/compat Setting up harvesting: [UMA],[FS_ATIME],SWI,INTERRUPT,NET_NG,[NET_ETHER],NET_TUN,MOUSE,KEYBOARD,ATTACH,CACHED Feeding entropy: . Autoloading module: pwm_backlight warning: KLD '/boot/kernel/backlight.ko' is newer than the linker.hints file pwm_backlight0: on ofwbus0 pwm_backlight0: No power-supply property device_attach: pwm_backlight0 attach returned 6 lo0: link state changed to UP Starting Network: lo0. lo0: flags=8049 metric 0 mtu 16384 options=680003 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1 inet 127.0.0.1 netmask 0xff000000 groups: lo nd6 options=21 Starting devd. add host 127.0.0.1: gateway lo0 fib 0: route already in table add host ::1: gateway lo0 fib 0: route already in table add net fe80::: gateway ::1 add net ff02::: gateway ::1 add net ::ffff:0.0.0.0: gateway ::1 add net ::0.0.0.0: gateway ::1 Updating /var/run/os-release done. Creating and/or trimming log files. Clearing /tmp (X related). Updating motd:. Starting syslogd. Mounting late filesystems:. Performing sanity check on sshd configuration. Starting sshd. Starting cron. Starting background file system checks in 60 seconds. Fri Jan 1 00:04:48 UTC 2010 FreeBSD/arm64 (generic) (ttyu0) login: root Password: Jan 1 00:04:50 generic login[835]: ROOT LOGIN (root) ON ttyu0 From nobody Sat Jan 15 08:04:48 2022 X-Original-To: freebsd-hardware@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 1E504195C885 for ; Sat, 15 Jan 2022 08:05:00 +0000 (UTC) (envelope-from carlavilla@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JbW176jdpz4W4Z for ; Sat, 15 Jan 2022 08:04:59 +0000 (UTC) (envelope-from carlavilla@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1642233900; 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: in-reply-to:in-reply-to:references:references; bh=MdHzTgPRt8WP/R8TE5QYLvL6qcY1vTyXJxiZHBOJOxw=; b=DqEZYgNval0US8chzgtxfedvW2q8GMFUfrZmQxcWQWo/+yyURviYn4lRPmzxLb2EijxuKy GL+fW7Q/BeNysgIqBAC4uHoBNxkKTpyzin9wCn5z9VM+rIs992dcKG9rVmRfvTHHZE6W/P EmCMi4Um1vKZYn+LhcSpCRwtmsE6mGTcUoCg94ZTzw2fLozwsMBLqj4FJyJGL777t/qMKD GDI4pKyf5Np0zESAxF5HA1im2PqKMPpHv5J5qDLfFkbfkJDSdszt+2+o3/Lbk9vFDVUUnq f+BUSXpgJNPh1V/hwlciQdxqSfKJKBUK76TUr3iuVHECgZJLlGY9NLMIsax9cw== Received: from mail-ua1-f46.google.com (mail-ua1-f46.google.com [209.85.222.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) (Authenticated sender: carlavilla) by smtp.freebsd.org (Postfix) with ESMTPSA id C0FAC21395 for ; Sat, 15 Jan 2022 08:04:59 +0000 (UTC) (envelope-from carlavilla@freebsd.org) Received: by mail-ua1-f46.google.com with SMTP id x33so20986090uad.12 for ; Sat, 15 Jan 2022 00:04:59 -0800 (PST) X-Gm-Message-State: AOAM532XL7u6G0k6jgwLoHUsGEFT9+sadaBWKoG61nhDro7Qa0kmH+Jc YJxipYtAzE2puHEtCBR+8VjIHB+NJw8su8v42VQ= X-Google-Smtp-Source: ABdhPJw8v40r+ewd6VMR0b3X0xFVlFvQrLBVR3n0u9YZ9sieEZZAH4ldrFzJzkGKAdOVCMhfhiYOk9a10R53wzunPLA= X-Received: by 2002:ab0:43e3:: with SMTP id l90mr5593247ual.6.1642233899054; Sat, 15 Jan 2022 00:04:59 -0800 (PST) List-Id: General discussion of FreeBSD hardware List-Archive: https://lists.freebsd.org/archives/freebsd-hardware List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hardware@freebsd.org MIME-Version: 1.0 References: In-Reply-To: From: Sergio Carlavilla Date: Sat, 15 Jan 2022 09:04:48 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: FreeBSD 13.0-STABLE on Pinephone To: Crystal Kolipe Cc: freebsd-hardware@freebsd.org Content-Type: multipart/alternative; boundary="00000000000030f9b005d59a60b1" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1642233900; 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: in-reply-to:in-reply-to:references:references; bh=MdHzTgPRt8WP/R8TE5QYLvL6qcY1vTyXJxiZHBOJOxw=; b=gbaU9Ido/CEzCaOgclwOAbQY9ZbaR7AfoiqsRyvmTkkroMRJyVpO9zElBFrf8dnbwhRIZU 0y8IF1GLFazHKIZZxnmuJGktQ7HVK1rcP1IeY/H8vrkWuhnjG/aHl9zOYwXC/jINpfYFCf V2f4ZpSS/tkGsTXFbQ2Z1TCCgLy11TngznhM0MQPZ4jFFATsRcwlF0n1bmnd2sIeCxzchc ZrPuR4PboJ3AEI/su6NhpVg0SE4GiJ95DBJYML0Zvjey4vh/tpx3HCQXFZKqc88TVPqbsJ 51dAXLDM7ons5/whAhylqXK3YV/V3Dlm0UQQ33tpz/cCUnugVVfFr4tvMY6AJg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1642233900; a=rsa-sha256; cv=none; b=ACUQpBBJcpRSbWjUW9fhW/h392yCu7OmocBBeeBdBJYGJyFEMV69bB9jZyZOu9SKKgqx2r 9SpuWSia7JzLmlbgW/+TI7b9JEgDCnoNtiY7YR0CEVs+CmQSbWqf2Ph/xLFidvAFAt00Zz JJDA0wMaEoYzuFDNloTffrNg2NkbrF3/NIVOSGtIcUGoCt61fAf67cHZRNRn2BbGJqppjK kFy+tkztfyzuhWcE17sa0U6oiEstpH5x7e2JmTR1LpkroDxex10K3moGnP0jaA9X9QicqO /qvLvn0UXc+674FY8gm5xrrP2UJgupmVT2y9EEXSgWl6LOy7XndLZfKJ8A97VQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N --00000000000030f9b005d59a60b1 Content-Type: text/plain; charset="UTF-8" On Sat, 15 Jan 2022 at 01:21, Crystal Kolipe wrote: > Hi, > > I installed FreeBSD 13.0-STABLE on a Pinephone 1.2 for testing, and > thought that the dmesg output would be of interest to the list: > > ---<>--- > WARNING: Cannot find freebsd,dts-version property, cannot check DTB > compliance > Copyright (c) 1992-2021 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > The Regents of the University of California. All rights reserved. > FreeBSD is a registered trademark of The FreeBSD Foundation. > FreeBSD 13.0-STABLE #0 stable/13-n248759-3684bb89d52: Thu Dec 30 03:49:13 > UTC 2021 > root@releng3.nyi.freebsd.org:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC > arm64 > FreeBSD clang version 13.0.0 (git@github.com:llvm/llvm-project.git > llvmorg-13.0.0-0-gd7b669b3a303) > VT: init without driver. > module firmware already present! > real memory = 3221004288 (3071 MB) > avail memory = 3118305280 (2973 MB) > Starting CPU 1 (1) > Starting CPU 2 (2) > Starting CPU 3 (3) > FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs > random: unblocking device. > random: entropy device external interface > MAP f8f2b000 mode 2 pages 4 > MAP f8f30000 mode 2 pages 4 > MAP fdf60000 mode 2 pages 16 > kbd0 at kbdmux0 > ofwbus0: > clk_fixed0: on ofwbus0 > clk_fixed1: on ofwbus0 > simplebus0: on ofwbus0 > regfix0: on ofwbus0 > regfix1: on ofwbus0 > psci0: on ofwbus0 > rtc0: mem 0x1f00000-0x1f003ff irq 58,59 on simplebus0 > rtc0: registered as a time-of-day clock, resolution 1.000000s > ccu_a64ng0: mem 0x1c20000-0x1c203ff > on simplebus0 > ccu_sun8i_r0: mem > 0x1f01400-0x1f014ff on simplebus0 > gic0: mem > 0x1c81000-0x1c81fff,0x1c82000-0x1c83fff,0x1c84000-0x1c85fff,0x1c86000-0x1c87fff > irq 53 on simplebus0 > gic0: pn 0x2, arch 0x2, rev 0x1, implementer 0x43b irqs 224 > aw_r_intc_gicp0: mem 0x1f00c00-0x1f00fff irq 60 on > simplebus0 > gpio0: mem 0x1c20800-0x1c20bff irq > 24,25,26 on simplebus0 > gpiobus0: on gpio0 > iichb0: mem 0x1c2ac00-0x1c2afff > irq 40 on simplebus0 > iicbus0: on iichb0 > iichb1: mem 0x1c2b000-0x1c2b3ff > irq 41 on simplebus0 > iicbus1: on iichb1 > iichb2: mem 0x1c2b400-0x1c2b7ff > irq 42 on simplebus0 > iicbus2: on iichb2 > gpio1: mem 0x1f02c00-0x1f02fff irq 63 > on simplebus0 > gpiobus1: on gpio1 > generic_timer0: irq 4,5,6,7 on ofwbus0 > Timecounter "ARM MPCore Timecounter" frequency 24000000 Hz quality 1000 > Event timer "ARM MPCore Eventtimer" frequency 24000000 Hz quality 1000 > a10_timer0: mem 0x1c20c00-0x1c20c2b irq 8,9 on simplebus0 > Timecounter "a10_timer timer0" frequency 24000000 Hz quality 2000 > aw_syscon0: mem 0x1c00000-0x1c00fff on simplebus0 > rtc1: at addr 0xd0 irq 69 on iicbus1 > rtc1: Error when reading reg 0x02, rv: 3 > rtc1: Failed to configure RTC > device_attach: rtc1 attach returned 5 > rtc1: at addr 0xd0 irq 69 on iicbus1 > rtc1: Error when reading reg 0x02, rv: 3 > rtc1: Failed to configure RTC > device_attach: rtc1 attach returned 5 > aw_sid0: mem 0x1c14000-0x1c143ff on > simplebus0 > rtc1: at addr 0xd0 irq 69 on iicbus1 > rtc1: Error when reading reg 0x02, rv: 3 > rtc1: Failed to configure RTC > device_attach: rtc1 attach returned 5 > mmc_pwrseq0: on ofwbus0 > awusbphy0: mem > 0x1c19400-0x1c19413,0x1c1a800-0x1c1a803,0x1c1b800-0x1c1b803 on simplebus0 > rtc1: at addr 0xd0 irq 69 on iicbus1 > rtc1: Error when reading reg 0x02, rv: 3 > rtc1: Failed to configure RTC > device_attach: rtc1 attach returned 5 > iichb3: mem 0x1f03400-0x1f037ff irq 64 on simplebus0 > iicbus3: on iichb3 > axp8xx_pmu0: at addr 0x746 irq 70 > on iicbus3 > axp8xx_pmu0: cannot allocate resources for device > device_attach: axp8xx_pmu0 attach returned 6 > cpulist0: on ofwbus0 > cpu0: on cpulist0 > cpufreq_dt0: on cpu0 > cpufreq_dt0: no regulator for cpu@0 > device_attach: cpufreq_dt0 attach returned 6 > cpu1: on cpulist0 > cpufreq_dt1: on cpu1 > cpufreq_dt1: no regulator for cpu@1 > device_attach: cpufreq_dt1 attach returned 6 > cpu2: on cpulist0 > cpufreq_dt2: on cpu2 > cpufreq_dt2: no regulator for cpu@2 > device_attach: cpufreq_dt2 attach returned 6 > cpu3: on cpulist0 > cpufreq_dt3: on cpu3 > cpufreq_dt3: no regulator for cpu@3 > device_attach: cpufreq_dt3 attach returned 6 > pmu0: irq 0,1,2,3 on ofwbus0 > a31dmac0: mem 0x1c02000-0x1c02fff irq 10 on > simplebus0 > aw_mmc0: mem 0x1c0f000-0x1c0ffff > irq 14 on simplebus0 > aw_mmc1: mem 0x1c10000-0x1c10fff > irq 15 on simplebus0 > aw_mmc2: mem 0x1c11000-0x1c11fff > irq 16 on simplebus0 > musbotg0: mem 0x1c19000-0x1c193ff irq 19 on simplebus0 > musbotg0: setting phy mode 3 > usbus0: Dynamic FIFO sizing detected, assuming 16Kbytes of FIFO RAM > usbus0 on musbotg0 > ehci0: mem 0x1c1a000-0x1c1a0ff irq 20 on > simplebus0 > usbus1: EHCI version 1.0 > usbus1 on ehci0 > ohci0: mem 0x1c1a400-0x1c1a4ff irq 21 on > simplebus0 > usbus2 on ohci0 > ehci1: mem 0x1c1b000-0x1c1b0ff irq 22 on > simplebus0 > usbus3: EHCI version 1.0 > usbus3 on ehci1 > ohci1: mem 0x1c1b400-0x1c1b4ff irq 23 on > simplebus0 > usbus4 on ohci1 > gpioc0: on gpio0 > aw_thermal0: mem 0x1c25000-0x1c250ff > irq 34 on simplebus0 > uart0: <16750 or compatible> mem 0x1c28000-0x1c283ff irq 35 on > simplebus0uart0: console (115384,n,8,1) > uart1: <16750 or compatible> mem 0x1c28400-0x1c287ff irq 36 on simplebus0 > uart2: <16750 or compatible> mem 0x1c28c00-0x1c28fff irq 38 on simplebus0 > iicbus0: at addr 0xba > iic0: on iicbus0 > iicbus1: at addr 0x3c > iicbus1: at addr 0x90 > rtc1: at addr 0xd0 irq 69 on iicbus1 > rtc1: Error when reading reg 0x02, rv: 3 > rtc1: Failed to configure RTC > device_attach: rtc1 attach returned 5 > iic1: on iicbus1 > iic2: on iicbus2 > pwm0: mem 0x1f03800-0x1f03bff on simplebus0 > pwmbus0: on pwm0 > pwmc0: channel 0 on pwmbus0 > gpioc1: on gpio1 > axp8xx_pmu0: at addr 0x746 irq 70 > on iicbus3 > axp8xx_pmu0: cannot allocate resources for device > device_attach: axp8xx_pmu0 attach returned 6 > iic3: on iicbus3 > aw_wdog0: mem 0x1c20ca0-0x1c20cbf irq 65 on > simplebus0 > gpioled0: on ofwbus0 > armv8crypto0: > cpufreq_dt0: on cpu0 > cpufreq_dt0: no regulator for cpu@0 > device_attach: cpufreq_dt0 attach returned 6 > cpufreq_dt1: on cpu1 > cpufreq_dt1: no regulator for cpu@1 > device_attach: cpufreq_dt1 attach returned 6 > cpufreq_dt2: on cpu2 > cpufreq_dt2: no regulator for cpu@2 > device_attach: cpufreq_dt2 attach returned 6 > cpufreq_dt3: on cpu3 > cpufreq_dt3: no regulator for cpu@3 > device_attach: cpufreq_dt3 attach returned 6 > Timecounters tick every 1.000 msec > CPU 0: ARM Cortex-A53 r0p4 affinity: 0 > Cache Type = <64 byte D-cacheline,64 byte > I-cacheline,VIPT ICache,64 byte ERG,64 byte CWG> > Instruction Set Attributes 0 = > Instruction Set Attributes 1 = <> > Processor Features 0 = > Processor Features 1 = <> > Memory Model Features 0 = ASID,1TB PA> > Memory Model Features 1 = <8bit VMID> > Memory Model Features 2 = <32bit CCIDX,48bit VA> > Debug Features 0 = Breakpoints,PMUv3,Debugv8> > Debug Features 1 = <> > Auxiliary Features 0 = <> > Auxiliary Features 1 = <> > AArch32 Instruction Set Attributes 5 = > AArch32 Media and VFP Features 0 = VFPv3+v4,AdvSIMD> > AArch32 Media and VFP Features 1 = Conv,SIMDSP,SIMDInt,SIMDLS,FPDNaN,FPFtZ> > CPU 1: ARM Cortex-A53 r0p4 affinity: 1 > CPU 2: ARM Cortex-A53 r0p4 affinity: 2 > CPU 3: ARM Cortex-A53 r0p4 affinity: 3 > Release APs...done > usbus0: 480Mbps High Speed USB v2.0 > usbus1: 480Mbps High Speed USB v2.0 > usbus2: 12Mbps Full Speed USB v1.0 > usbus3: 480Mbps High Speed USB v2.0 > usbus4: 12Mbps Full Speed USB v1.0 > Trying to mount root from ufs:/dev/ufs/rootfs [rw]... > ugen0.1: at usbus0 > Root mount waiting for:uhub0ugen2.1: at usbus2 > ugen1.1: at usbus1 > on usbus0 > uhub0: on > usbus0 > usbus0uhub1 on usbus2 > usbus1uhub1: on > usbus2 > usbus2ugen3.1: at usbus3 > usbus3uhub2 usbus4 on usbus1 > > uhub2: on usbus1 > uhub3 on usbus3 > uhub3: on usbus3 > ugen4.1: at usbus4 > uhub4 on usbus4 > uhub4: on usbus4 > uhub1: 1 port with 1 removable, self powered > uhub4: 1 port with 1 removable, self powered > uhub0: 1 port with 1 removable, self powered > mmc0: on aw_mmc2 > mmc0: Failed to set VCCQ for card at relative address 2 > mmcsd0: 31GB at > mmc0 52.0MHz/8bit/4096-block > mmcsd0boot0: 4MB partition 1 at mmcsd0 > mmcsd0boot1: 4MB partition 2 at mmcsd0 > mmcsd0rpmb: 17MB partition 3 at mmcsd0 > mmc1: on aw_mmc1 > mmc1: No compatible cards found on bus > aw_mmc1: Spurious interrupt - no active request, rint: 0x00000004 > > uhub2: 1 port with 1 removable, self powered > uhub3: 1 port with 1 removable, self powered > mountroot: waiting for device /dev/ufs/rootfs... > Dual Console: Serial Primary, Video Secondary > Setting hostuuid: 30633239-6439-6162-3062-303436373435. > Setting hostid: 0x09ffad61. > /etc/rc: WARNING: $zfskeys_enable is not set properly - see rc.conf(5). > Starting file system checks: > /dev/ufs/rootfs: FILE SYSTEM CLEAN; SKIPPING CHECKS > /dev/ufs/rootfs: clean, 6670786 free (26 frags, 833845 blocks, 0.0% > fragmentation) > Mounting local filesystems:. > Setting hostname: generic. > ELF ldconfig path: /lib /usr/lib /usr/lib/compat > Setting up harvesting: > [UMA],[FS_ATIME],SWI,INTERRUPT,NET_NG,[NET_ETHER],NET_TUN,MOUSE,KEYBOARD,ATTACH,CACHED > Feeding entropy: . > Autoloading module: pwm_backlight > warning: KLD '/boot/kernel/backlight.ko' is newer than the linker.hints > file > pwm_backlight0: on ofwbus0 > pwm_backlight0: No power-supply property > device_attach: pwm_backlight0 attach returned 6 > lo0: link state changed to UP > Starting Network: lo0. > lo0: flags=8049 metric 0 mtu 16384 > options=680003 > inet6 ::1 prefixlen 128 > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1 > inet 127.0.0.1 netmask 0xff000000 > groups: lo > nd6 options=21 > Starting devd. > add host 127.0.0.1: gateway lo0 fib 0: route already in table > add host ::1: gateway lo0 fib 0: route already in table > add net fe80::: gateway ::1 > add net ff02::: gateway ::1 > add net ::ffff:0.0.0.0: gateway ::1 > add net ::0.0.0.0: gateway ::1 > Updating /var/run/os-release done. > Creating and/or trimming log files. > Clearing /tmp (X related). > Updating motd:. > Starting syslogd. > Mounting late filesystems:. > Performing sanity check on sshd configuration. > Starting sshd. > Starting cron. > Starting background file system checks in 60 seconds. > > Fri Jan 1 00:04:48 UTC 2010 > > FreeBSD/arm64 (generic) (ttyu0) > > login: root > Password: > Jan 1 00:04:50 generic login[835]: ROOT LOGIN (root) ON ttyu0 > > Hi, Nice! Can you please share with us what components are working? For example, wi-fi works? Works the baseband router? Can you connect to cellular network? And, it would be amazing if you share with us the steps to make the installation :) Bye! --00000000000030f9b005d59a60b1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Sat, 15 Jan 2022 at 01:21, Crystal Kolipe <kolipe.c@exoticsilicon.com> wrote:
Hi,

I installed FreeBSD 13.0-STABLE on a Pinephone 1.2 for testing, and thought= that the dmesg output would be of interest to the list:

---<<BOOT>>---
WARNING: Cannot find freebsd,dts-version property, cannot check DTB complia= nce
Copyright (c) 1992-2021 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 =C2=A0 =C2=A0 =C2=A0 =C2=A0 The Regents of the University of California. Al= l rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 13.0-STABLE #0 stable/13-n248759-3684bb89d52: Thu Dec 30 03:49:13 U= TC 2021
=C2=A0 =C2=A0 root@releng3.nyi.freebsd.org:/usr/obj/usr/src/arm64.aarch64/s= ys/GENERIC arm64
FreeBSD clang version 13.0.0 (git@github.com:llvm/llvm-project.git llvmorg-= 13.0.0-0-gd7b669b3a303)
VT: init without driver.
module firmware already present!
real memory=C2=A0 =3D 3221004288 (3071 MB)
avail memory =3D 3118305280 (2973 MB)
Starting CPU 1 (1)
Starting CPU 2 (2)
Starting CPU 3 (3)
FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
random: unblocking device.
random: entropy device external interface
MAP f8f2b000 mode 2 pages 4
MAP f8f30000 mode 2 pages 4
MAP fdf60000 mode 2 pages 16
kbd0 at kbdmux0
ofwbus0: <Open Firmware Device Tree>
clk_fixed0: <Fixed clock> on ofwbus0
clk_fixed1: <Fixed clock> on ofwbus0
simplebus0: <Flattened device tree simple bus> on ofwbus0
regfix0: <Fixed Regulator> on ofwbus0
regfix1: <Fixed Regulator> on ofwbus0
psci0: <ARM Power State Co-ordination Interface Driver> on ofwbus0 rtc0: <Allwinner RTC> mem 0x1f00000-0x1f003ff irq 58,59 on simplebus0=
rtc0: registered as a time-of-day clock, resolution 1.000000s
ccu_a64ng0: <Allwinner A64 Clock Control Unit NG> mem 0x1c20000-0x1c2= 03ff on simplebus0
ccu_sun8i_r0: <Allwinner SUN8I_R Clock Control Unit NG> mem 0x1f01400= -0x1f014ff on simplebus0
gic0: <ARM Generic Interrupt Controller> mem 0x1c81000-0x1c81fff,0x1c= 82000-0x1c83fff,0x1c84000-0x1c85fff,0x1c86000-0x1c87fff irq 53 on simplebus= 0
gic0: pn 0x2, arch 0x2, rev 0x1, implementer 0x43b irqs 224
aw_r_intc_gicp0: <Allwinner R INTC> mem 0x1f00c00-0x1f00fff irq 60 on= simplebus0
gpio0: <Allwinner GPIO/Pinmux controller> mem 0x1c20800-0x1c20bff irq= 24,25,26 on simplebus0
gpiobus0: <OFW GPIO bus> on gpio0
iichb0: <Allwinner Integrated I2C Bus Controller> mem 0x1c2ac00-0x1c2= afff irq 40 on simplebus0
iicbus0: <OFW I2C bus> on iichb0
iichb1: <Allwinner Integrated I2C Bus Controller> mem 0x1c2b000-0x1c2= b3ff irq 41 on simplebus0
iicbus1: <OFW I2C bus> on iichb1
iichb2: <Allwinner Integrated I2C Bus Controller> mem 0x1c2b400-0x1c2= b7ff irq 42 on simplebus0
iicbus2: <OFW I2C bus> on iichb2
gpio1: <Allwinner GPIO/Pinmux controller> mem 0x1f02c00-0x1f02fff irq= 63 on simplebus0
gpiobus1: <OFW GPIO bus> on gpio1
generic_timer0: <ARMv8 Generic Timer> irq 4,5,6,7 on ofwbus0
Timecounter "ARM MPCore Timecounter" frequency 24000000 Hz qualit= y 1000
Event timer "ARM MPCore Eventtimer" frequency 24000000 Hz quality= 1000
a10_timer0: <Allwinner timer> mem 0x1c20c00-0x1c20c2b irq 8,9 on simp= lebus0
Timecounter "a10_timer timer0" frequency 24000000 Hz quality 2000=
aw_syscon0: <Allwinner syscon> mem 0x1c00000-0x1c00fff on simplebus0<= br> rtc1: <MAX77620 RTC> at addr 0xd0 irq 69 on iicbus1
rtc1: Error when reading reg 0x02, rv: 3
rtc1: Failed to configure RTC
device_attach: rtc1 attach returned 5
rtc1: <MAX77620 RTC> at addr 0xd0 irq 69 on iicbus1
rtc1: Error when reading reg 0x02, rv: 3
rtc1: Failed to configure RTC
device_attach: rtc1 attach returned 5
aw_sid0: <Allwinner Secure ID Controller> mem 0x1c14000-0x1c143ff on = simplebus0
rtc1: <MAX77620 RTC> at addr 0xd0 irq 69 on iicbus1
rtc1: Error when reading reg 0x02, rv: 3
rtc1: Failed to configure RTC
device_attach: rtc1 attach returned 5
mmc_pwrseq0: <MMC Simple Power sequence> on ofwbus0
awusbphy0: <Allwinner USB PHY> mem 0x1c19400-0x1c19413,0x1c1a800-0x1c= 1a803,0x1c1b800-0x1c1b803 on simplebus0
rtc1: <MAX77620 RTC> at addr 0xd0 irq 69 on iicbus1
rtc1: Error when reading reg 0x02, rv: 3
rtc1: Failed to configure RTC
device_attach: rtc1 attach returned 5
iichb3: <Allwinner RSB> mem 0x1f03400-0x1f037ff irq 64 on simplebus0<= br> iicbus3: <OFW I2C bus> on iichb3
axp8xx_pmu0: <X-Powers AXP803 Power Management Unit> at addr 0x746 ir= q 70 on iicbus3
axp8xx_pmu0: cannot allocate resources for device
device_attach: axp8xx_pmu0 attach returned 6
cpulist0: <Open Firmware CPU Group> on ofwbus0
cpu0: <Open Firmware CPU> on cpulist0
cpufreq_dt0: <Generic cpufreq driver> on cpu0
cpufreq_dt0: no regulator for cpu@0
device_attach: cpufreq_dt0 attach returned 6
cpu1: <Open Firmware CPU> on cpulist0
cpufreq_dt1: <Generic cpufreq driver> on cpu1
cpufreq_dt1: no regulator for cpu@1
device_attach: cpufreq_dt1 attach returned 6
cpu2: <Open Firmware CPU> on cpulist0
cpufreq_dt2: <Generic cpufreq driver> on cpu2
cpufreq_dt2: no regulator for cpu@2
device_attach: cpufreq_dt2 attach returned 6
cpu3: <Open Firmware CPU> on cpulist0
cpufreq_dt3: <Generic cpufreq driver> on cpu3
cpufreq_dt3: no regulator for cpu@3
device_attach: cpufreq_dt3 attach returned 6
pmu0: <Performance Monitoring Unit> irq 0,1,2,3 on ofwbus0
a31dmac0: <Allwinner DMA controller> mem 0x1c02000-0x1c02fff irq 10 o= n simplebus0
aw_mmc0: <Allwinner Integrated MMC/SD controller> mem 0x1c0f000-0x1c0= ffff irq 14 on simplebus0
aw_mmc1: <Allwinner Integrated MMC/SD controller> mem 0x1c10000-0x1c1= 0fff irq 15 on simplebus0
aw_mmc2: <Allwinner Integrated MMC/SD controller> mem 0x1c11000-0x1c1= 1fff irq 16 on simplebus0
musbotg0: <Allwinner USB DRD> mem 0x1c19000-0x1c193ff irq 19 on simpl= ebus0
musbotg0: setting phy mode 3
usbus0: Dynamic FIFO sizing detected, assuming 16Kbytes of FIFO RAM
usbus0 on musbotg0
ehci0: <Generic EHCI Controller> mem 0x1c1a000-0x1c1a0ff irq 20 on si= mplebus0
usbus1: EHCI version 1.0
usbus1 on ehci0
ohci0: <Generic OHCI Controller> mem 0x1c1a400-0x1c1a4ff irq 21 on si= mplebus0
usbus2 on ohci0
ehci1: <Generic EHCI Controller> mem 0x1c1b000-0x1c1b0ff irq 22 on si= mplebus0
usbus3: EHCI version 1.0
usbus3 on ehci1
ohci1: <Generic OHCI Controller> mem 0x1c1b400-0x1c1b4ff irq 23 on si= mplebus0
usbus4 on ohci1
gpioc0: <GPIO controller> on gpio0
aw_thermal0: <Allwinner Thermal Sensor Controller> mem 0x1c25000-0x1c= 250ff irq 34 on simplebus0
uart0: <16750 or compatible> mem 0x1c28000-0x1c283ff irq 35 on simple= bus0uart0: console (115384,n,8,1)
uart1: <16750 or compatible> mem 0x1c28400-0x1c287ff irq 36 on simple= bus0
uart2: <16750 or compatible> mem 0x1c28c00-0x1c28fff irq 38 on simple= bus0
iicbus0: <unknown card> at addr 0xba
iic0: <I2C generic I/O> on iicbus0
iicbus1: <unknown card> at addr 0x3c
iicbus1: <unknown card> at addr 0x90
rtc1: <MAX77620 RTC> at addr 0xd0 irq 69 on iicbus1
rtc1: Error when reading reg 0x02, rv: 3
rtc1: Failed to configure RTC
device_attach: rtc1 attach returned 5
iic1: <I2C generic I/O> on iicbus1
iic2: <I2C generic I/O> on iicbus2
pwm0: <Allwinner PWM> mem 0x1f03800-0x1f03bff on simplebus0
pwmbus0: <OFW PWM bus> on pwm0
pwmc0: <PWM Control> channel 0 on pwmbus0
gpioc1: <GPIO controller> on gpio1
axp8xx_pmu0: <X-Powers AXP803 Power Management Unit> at addr 0x746 ir= q 70 on iicbus3
axp8xx_pmu0: cannot allocate resources for device
device_attach: axp8xx_pmu0 attach returned 6
iic3: <I2C generic I/O> on iicbus3
aw_wdog0: <Allwinner A31 Watchdog> mem 0x1c20ca0-0x1c20cbf irq 65 on = simplebus0
gpioled0: <GPIO LEDs> on ofwbus0
armv8crypto0: <AES-CBC,AES-XTS,AES-GCM>
cpufreq_dt0: <Generic cpufreq driver> on cpu0
cpufreq_dt0: no regulator for cpu@0
device_attach: cpufreq_dt0 attach returned 6
cpufreq_dt1: <Generic cpufreq driver> on cpu1
cpufreq_dt1: no regulator for cpu@1
device_attach: cpufreq_dt1 attach returned 6
cpufreq_dt2: <Generic cpufreq driver> on cpu2
cpufreq_dt2: no regulator for cpu@2
device_attach: cpufreq_dt2 attach returned 6
cpufreq_dt3: <Generic cpufreq driver> on cpu3
cpufreq_dt3: no regulator for cpu@3
device_attach: cpufreq_dt3 attach returned 6
Timecounters tick every 1.000 msec
CPU=C2=A0 0: ARM Cortex-A53 r0p4 affinity:=C2=A0 0
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Cache = Type =3D <64 byte D-cacheline,64 byte I-cacheline,VIPT ICache,64 byte ER= G,64 byte CWG>
=C2=A0Instruction Set Attributes 0 =3D <CRC32,SHA2,SHA1,AES+PMULL> =C2=A0Instruction Set Attributes 1 =3D <>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Processor Features 0 =3D <AdvSIMD,FP,E= L3 32,EL2 32,EL1 32,EL0 32>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Processor Features 1 =3D <>
=C2=A0 =C2=A0 =C2=A0 Memory Model Features 0 =3D <TGran4,TGran64,SNSMem,= BigEnd,16bit ASID,1TB PA>
=C2=A0 =C2=A0 =C2=A0 Memory Model Features 1 =3D <8bit VMID>
=C2=A0 =C2=A0 =C2=A0 Memory Model Features 2 =3D <32bit CCIDX,48bit VA&g= t;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Debug Features 0 =3D <Do= ubleLock,2 CTX BKPTs,4 Watchpoints,6 Breakpoints,PMUv3,Debugv8>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Debug Features 1 =3D <&g= t;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Auxiliary Features 0 =3D <>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Auxiliary Features 1 =3D <>
AArch32 Instruction Set Attributes 5 =3D <CRC32,SHA2,SHA1,AES+VMULL,SEVL= >
AArch32 Media and VFP Features 0 =3D <FPRound,FPSqrt,FPDivide,DP VFPv3+v= 4,SP VFPv3+v4,AdvSIMD>
AArch32 Media and VFP Features 1 =3D <SIMDFMAC,FPHP DP Conv,SIMDHP SP Co= nv,SIMDSP,SIMDInt,SIMDLS,FPDNaN,FPFtZ>
CPU=C2=A0 1: ARM Cortex-A53 r0p4 affinity:=C2=A0 1
CPU=C2=A0 2: ARM Cortex-A53 r0p4 affinity:=C2=A0 2
CPU=C2=A0 3: ARM Cortex-A53 r0p4 affinity:=C2=A0 3
Release APs...done
usbus0: 480Mbps High Speed USB v2.0
usbus1: 480Mbps High Speed USB v2.0
usbus2: 12Mbps Full Speed USB v1.0
usbus3: 480Mbps High Speed USB v2.0
usbus4: 12Mbps Full Speed USB v1.0
Trying to mount root from ufs:/dev/ufs/rootfs [rw]...
ugen0.1: <Mentor Graphics OTG Root HUB> at usbus0
Root mount waiting for:uhub0ugen2.1: <Generic OHCI root HUB> at usbus= 2
ugen1.1: <Generic EHCI root HUB> at usbus1
=C2=A0on usbus0
uhub0: <Mentor Graphics OTG Root HUB, class 9/0, rev 2.00/1.00, addr 1&g= t; on usbus0
=C2=A0usbus0uhub1 on usbus2
=C2=A0usbus1uhub1: <Generic OHCI root HUB, class 9/0, rev 1.00/1.00, add= r 1> on usbus2
=C2=A0usbus2ugen3.1: <Generic EHCI root HUB> at usbus3
=C2=A0usbus3uhub2 usbus4 on usbus1

uhub2: <Generic EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on u= sbus1
uhub3 on usbus3
uhub3: <Generic EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on u= sbus3
ugen4.1: <Generic OHCI root HUB> at usbus4
uhub4 on usbus4
uhub4: <Generic OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on u= sbus4
uhub1: 1 port with 1 removable, self powered
uhub4: 1 port with 1 removable, self powered
uhub0: 1 port with 1 removable, self powered
mmc0: <MMC/SD bus> on aw_mmc2
mmc0: Failed to set VCCQ for card at relative address 2
mmcsd0: 31GB <MMCHC DA4032 0.1 SN FF342515 MFG 06/2020 by 69 0x0000> = at mmc0 52.0MHz/8bit/4096-block
mmcsd0boot0: 4MB partition 1 at mmcsd0
mmcsd0boot1: 4MB partition 2 at mmcsd0
mmcsd0rpmb: 17MB partition 3 at mmcsd0
mmc1: <MMC/SD bus> on aw_mmc1
mmc1: No compatible cards found on bus
aw_mmc1: Spurious interrupt - no active request, rint: 0x00000004

uhub2: 1 port with 1 removable, self powered
uhub3: 1 port with 1 removable, self powered
mountroot: waiting for device /dev/ufs/rootfs...
Dual Console: Serial Primary, Video Secondary
Setting hostuuid: 30633239-6439-6162-3062-303436373435.
Setting hostid: 0x09ffad61.
/etc/rc: WARNING: $zfskeys_enable is not set properly - see rc.conf(5).
Starting file system checks:
/dev/ufs/rootfs: FILE SYSTEM CLEAN; SKIPPING CHECKS
/dev/ufs/rootfs: clean, 6670786 free (26 frags, 833845 blocks, 0.0% fragmen= tation)
Mounting local filesystems:.
Setting hostname: generic.
ELF ldconfig path: /lib /usr/lib /usr/lib/compat
Setting up harvesting: [UMA],[FS_ATIME],SWI,INTERRUPT,NET_NG,[NET_ETHER],NE= T_TUN,MOUSE,KEYBOARD,ATTACH,CACHED
Feeding entropy: .
Autoloading module: pwm_backlight
warning: KLD '/boot/kernel/backlight.ko' is newer than the linker.h= ints file
pwm_backlight0: <PWM Backlight> on ofwbus0
pwm_backlight0: No power-supply property
device_attach: pwm_backlight0 attach returned 6
lo0: link state changed to UP
Starting Network: lo0.
lo0: flags=3D8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384 =C2=A0 =C2=A0 =C2=A0 =C2=A0 options=3D680003<RXCSUM,TXCSUM,LINKSTATE,RXC= SUM_IPV6,TXCSUM_IPV6>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 inet6 ::1 prefixlen 128
=C2=A0 =C2=A0 =C2=A0 =C2=A0 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
=C2=A0 =C2=A0 =C2=A0 =C2=A0 inet 127.0.0.1 netmask 0xff000000
=C2=A0 =C2=A0 =C2=A0 =C2=A0 groups: lo
=C2=A0 =C2=A0 =C2=A0 =C2=A0 nd6 options=3D21<PERFORMNUD,AUTO_LINKLOCAL&g= t;
Starting devd.
add host = 127.0.0.1: gateway lo0 fib 0: route already in table
add host ::1: gateway lo0 fib 0: route already in table
add net fe80::: gateway ::1
add net ff02::: gateway ::1
add net ::ffff:0.0.0.0: gateway ::1
add net ::0= .0.0.0: gateway ::1
Updating /var/run/os-release done.
Creating and/or trimming log files.
Clearing /tmp (X related).
Updating motd:.
Starting syslogd.
Mounting late filesystems:.
Performing sanity check on sshd configuration.
Starting sshd.
Starting cron.
Starting background file system checks in 60 seconds.

Fri Jan=C2=A0 1 00:04:48 UTC 2010

FreeBSD/arm64 (generic) (ttyu0)

login: root
Password:
Jan=C2=A0 1 00:04:50 generic login[835]: ROOT LOGIN (root) ON ttyu0

Hi,

<= /div>
Nice! Can you please share with us what components a= re working?

For example,= wi-fi works?
Works the baseband router? Can you con= nect to cellular network?

And, it would be amazing if you share with us the steps to make the insta= llation :)

Bye!
--00000000000030f9b005d59a60b1-- From nobody Thu Apr 7 11:33:18 2022 X-Original-To: hardware@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 8E0C31A8AF8D for ; Thu, 7 Apr 2022 11:33:29 +0000 (UTC) (envelope-from Axel.Rau@chaos1.de) Received: from mailout4.lrau.net (mailout4.lrau.net [IPv6:2a05:bec0:26:2::73]) (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 "mailout4.lrau.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KYzlr1MTgz4sfD for ; Thu, 7 Apr 2022 11:33:28 +0000 (UTC) (envelope-from Axel.Rau@chaos1.de) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=chaos1.de; s=email1; h=To:Date:Message-Id:Subject:Mime-Version:Content-Transfer-Encoding :Content-Type:From:Sender:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=pz+XDFoibwDQY4cq3TSBIWZcwrTzlxzoaRyF1e/Spfs=; b=IUMsnpVNdE2tBqgq+HxNPfNRO8 pV31xx7Itv4ei9FBooK+EpNWvx8b5G+vCgK6dkg60MsdSDMKSKAPk2J//s168Vt+YqQnu3ZIx4hI5 J7GgZW23jSsTRwUBWcRxB/s6mUdbBJtlxL/fk3p0/9MA5hu+LcZt22iv6cY0i2elr0pQRuQryq1SJ tSL8GQx8Pi/N2tUYksR5Ck2rHxfX9U8Vzs2vREpDc2wz4l2RY+xWyevrtlw7pzfZvrNYn6bmfpZgp MPApF9RFe5QZalP+Yz2LL9Sooe2FvTgdkHbFdatrsRsUEjqGmBRkWjGffGI8YuSZNeBD9STF6Dt1J S7rpSjmw==; Received: from [2a05:bec0:26:2::74] (helo=imap4.lrau.net) by mailout4.lrau.net with esmtp (Exim 4.95 (FreeBSD)) (envelope-from ) id 1ncQO7-000F47-3Z for hardware@freebsd.org; Thu, 07 Apr 2022 11:33:19 +0000 Received: from Axel.Rau@Chaos1.DE by imap5.lrau.net (Archiveopteryx 3.2.0) with esmtpsa id 1649331198-84259-82485/7/7; Thu, 7 Apr 2022 11:33:18 +0000 From: Axel Rau Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: General discussion of FreeBSD hardware List-Archive: https://lists.freebsd.org/archives/freebsd-hardware List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hardware@freebsd.org Mime-Version: 1.0 Subject: timeouts on USB ISP programmer Message-Id: <3A781DFA-1E2C-41A5-8053-C90A806244DC@Chaos1.DE> Date: Thu, 7 Apr 2022 13:33:18 +0200 To: hardware@freebsd.org X-Mailer: Apple Mail (2.3608.120.23.2.7) X-Rspamd-Queue-Id: 4KYzlr1MTgz4sfD X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=chaos1.de header.s=email1 header.b=IUMsnpVN; dmarc=none; spf=none (mx1.freebsd.org: domain of Axel.Rau@chaos1.de has no SPF policy when checking 2a05:bec0:26:2::73) smtp.mailfrom=Axel.Rau@chaos1.de X-Spamd-Result: default: False [-2.82 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[chaos1.de:s=email1]; NEURAL_HAM_MEDIUM(-0.92)[-0.921]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[chaos1.de:dkim]; MV_CASE(0.50)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[chaos1.de]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[chaos1.de:+]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MLMMJ_DEST(0.00)[hardware]; 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:197071, ipnet:2a05:bec0::/29, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[2a05:bec0:26:2::73:from] X-ThisMailContainsUnwantedMimeParts: N Hi all, my DIAMEX-AVR-USB gets timeouts while talking to the target: - - - root@home2l:/ # avrdude -c stk500v2 -p t85 -P /dev/cuau1 -t -v -i 10 avrdude: Version 6.4 Copyright (c) Brian Dean, http://www.bdmicro.com/ Copyright (c) Joerg Wunsch System wide configuration file is "/usr/local/etc/avrdude.conf" User configuration file is "/root/.avrduderc" User configuration file does not exist or is not a regular = file, skipping Using Port : /dev/cuau1 Using Programmer : stk500v2 Setting isp clock delay : 10 avrdude: stk500v2_ReceiveMessage(): timeout avrdude: stk500v2_ReceiveMessage(): timeout avrdude: stk500v2_ReceiveMessage(): timeout avrdude: stk500v2_ReceiveMessage(): timeout avrdude: stk500v2_ReceiveMessage(): timeout avrdude: stk500v2_ReceiveMessage(): timeout avrdude: stk500v2_getsync(): timeout communicating with programmer AVR Part : ATtiny85 Chip Erase delay : 4500 us PAGEL : P00 BS2 : P00 RESET disposition : possible i/o RETRY pulse : SCK serial program mode : yes parallel program mode : yes Timeout : 200 StabDelay : 100 CmdexeDelay : 25 SyncLoops : 32 ByteDelay : 0 PollIndex : 3 PollValue : 0x53 Memory Detail : Block Poll Page = Polled Memory Type Mode Delay Size Indx Paged Size Size #Pages = MinW MaxW ReadBack ----------- ---- ----- ----- ---- ------ ------ ---- ------ = ----- ----- --------- eeprom 65 6 4 0 no 512 4 0 = 4000 4500 0xff 0xff flash 65 6 32 0 yes 8192 64 128 = 4500 4500 0xff 0xff signature 0 0 0 0 no 3 1 0 = 0 0 0x00 0x00 lock 0 0 0 0 no 1 1 0 = 9000 9000 0x00 0x00 lfuse 0 0 0 0 no 1 1 0 = 9000 9000 0x00 0x00 hfuse 0 0 0 0 no 1 1 0 = 9000 9000 0x00 0x00 efuse 0 0 0 0 no 1 1 0 = 9000 9000 0x00 0x00 calibration 0 0 0 0 no 1 1 0 = 0 0 0x00 0x00 Programmer Type : STK500V2 Description : Atmel STK500 Version 2.x firmware Programmer Model: Unknown avrdude: stk500v2_ReceiveMessage(): timeout . . . avrdude: stk500v2_getsync(): timeout communicating with programmer avrdude: stk500v2_command(): failed miserably to execute command 0x11 avrdude: stk500v2_disable(): failed to leave programming mode root@home2l:/ # usbconfig ugen0.1: <0x8086 XHCI root HUB> at usbus0, cfg=3D0 md=3DHOST spd=3DSUPER = (5.0Gbps) pwr=3DSAVE (0mA) ugen0.2: at usbus0, cfg=3D0 md=3DHOST = spd=3DLOW (1.5Mbps) pwr=3DON (100mA) ugen0.3: at usbus0, cfg=3D0 md=3DHOST = spd=3DLOW (1.5Mbps) pwr=3DON (100mA) ugen0.4: at usbus0, cfg=3D0 md=3DHOST spd=3DFULL = (12Mbps) pwr=3DON (500mA) root@home2l:/ # usbconfig -d ugen0.4 dump_device_desc ugen0.4: at usbus0, cfg=3D0 md=3DHOST spd=3DFULL = (12Mbps) pwr=3DON (500mA) bLength =3D 0x0012=20 bDescriptorType =3D 0x0001=20 bcdUSB =3D 0x0200=20 bDeviceClass =3D 0x0002 bDeviceSubClass =3D 0x0000=20 bDeviceProtocol =3D 0x0000=20 bMaxPacketSize0 =3D 0x0040=20 idVendor =3D 0x16c0=20 idProduct =3D 0x2a9b=20 bcdDevice =3D 0x4340=20 iManufacturer =3D 0x0001 iProduct =3D 0x0002 iSerialNumber =3D 0x0003 <19331-49101-552> bNumConfigurations =3D 0x0001=20 - - - Loading uftdi.ko did not help. Any help appreciated, Axel =2D-- PGP-Key: CDE74120 =E2=98=80 computing @ chaos claudius From nobody Thu Apr 7 12:12:34 2022 X-Original-To: hardware@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 1DA781A95723 for ; Thu, 7 Apr 2022 12:12:37 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [IPv6:2a01:4f8:c17:6c4b::2]) (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 4KZ0d03KH1z3Gvf for ; Thu, 7 Apr 2022 12:12:36 +0000 (UTC) (envelope-from hps@selasky.org) Received: from [10.36.2.165] (unknown [178.17.145.105]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 376F42601AC; Thu, 7 Apr 2022 14:12:35 +0200 (CEST) Message-ID: <34a747ea-2ee5-660f-71c6-dc00d5de337f@selasky.org> Date: Thu, 7 Apr 2022 14:12:34 +0200 List-Id: General discussion of FreeBSD hardware List-Archive: https://lists.freebsd.org/archives/freebsd-hardware List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hardware@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: timeouts on USB ISP programmer Content-Language: en-US To: Axel Rau , hardware@freebsd.org References: <3A781DFA-1E2C-41A5-8053-C90A806244DC@Chaos1.DE> From: Hans Petter Selasky In-Reply-To: <3A781DFA-1E2C-41A5-8053-C90A806244DC@Chaos1.DE> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4KZ0d03KH1z3Gvf X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of hps@selasky.org designates 2a01:4f8:c17:6c4b::2 as permitted sender) smtp.mailfrom=hps@selasky.org X-Spamd-Result: default: False [-3.28 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+a:mail.turbocat.net:c]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[selasky.org]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-0.98)[-0.982]; RCPT_COUNT_TWO(0.00)[2]; MLMMJ_DEST(0.00)[hardware]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:2a01:4f8::/32, country:DE]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On 4/7/22 13:33, Axel Rau wrote: > Hi all, > > my DIAMEX-AVR-USB gets timeouts while talking to the target: > - - - > root@home2l:/ # avrdude -c stk500v2 -p t85 -P /dev/cuau1 -t -v -i 10 > > avrdude: Version 6.4 > Copyright (c) Brian Dean, http://www.bdmicro.com/ > Copyright (c) Joerg Wunsch > > System wide configuration file is "/usr/local/etc/avrdude.conf" > User configuration file is "/root/.avrduderc" > User configuration file does not exist or is not a regular file, skipping > > Using Port : /dev/cuau1 > Using Programmer : stk500v2 > Setting isp clock delay : 10 > avrdude: stk500v2_ReceiveMessage(): timeout > avrdude: stk500v2_ReceiveMessage(): timeout > avrdude: stk500v2_ReceiveMessage(): timeout > avrdude: stk500v2_ReceiveMessage(): timeout > avrdude: stk500v2_ReceiveMessage(): timeout > avrdude: stk500v2_ReceiveMessage(): timeout > avrdude: stk500v2_getsync(): timeout communicating with programmer > AVR Part : ATtiny85 > Chip Erase delay : 4500 us > PAGEL : P00 > BS2 : P00 > RESET disposition : possible i/o > RETRY pulse : SCK > serial program mode : yes > parallel program mode : yes > Timeout : 200 > StabDelay : 100 > CmdexeDelay : 25 > SyncLoops : 32 > ByteDelay : 0 > PollIndex : 3 > PollValue : 0x53 > Memory Detail : > > Block Poll Page Polled > Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack > ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- --------- > eeprom 65 6 4 0 no 512 4 0 4000 4500 0xff 0xff > flash 65 6 32 0 yes 8192 64 128 4500 4500 0xff 0xff > signature 0 0 0 0 no 3 1 0 0 0 0x00 0x00 > lock 0 0 0 0 no 1 1 0 9000 9000 0x00 0x00 > lfuse 0 0 0 0 no 1 1 0 9000 9000 0x00 0x00 > hfuse 0 0 0 0 no 1 1 0 9000 9000 0x00 0x00 > efuse 0 0 0 0 no 1 1 0 9000 9000 0x00 0x00 > calibration 0 0 0 0 no 1 1 0 0 0 0x00 0x00 > > Programmer Type : STK500V2 > Description : Atmel STK500 Version 2.x firmware > Programmer Model: Unknown > avrdude: stk500v2_ReceiveMessage(): timeout > . . . > avrdude: stk500v2_getsync(): timeout communicating with programmer > avrdude: stk500v2_command(): failed miserably to execute command 0x11 > avrdude: stk500v2_disable(): failed to leave programming mode > > root@home2l:/ # usbconfig > ugen0.1: <0x8086 XHCI root HUB> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA) > ugen0.2: at usbus0, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON (100mA) > ugen0.3: at usbus0, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON (100mA) > ugen0.4: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (500mA) > root@home2l:/ # usbconfig -d ugen0.4 dump_device_desc > ugen0.4: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (500mA) > > bLength = 0x0012 > bDescriptorType = 0x0001 > bcdUSB = 0x0200 > bDeviceClass = 0x0002 > bDeviceSubClass = 0x0000 > bDeviceProtocol = 0x0000 > bMaxPacketSize0 = 0x0040 > idVendor = 0x16c0 > idProduct = 0x2a9b > bcdDevice = 0x4340 > iManufacturer = 0x0001 > iProduct = 0x0002 > iSerialNumber = 0x0003 <19331-49101-552> > bNumConfigurations = 0x0001 > - - - > > Loading uftdi.ko did not help. > Try: usbdump -i usbus0 -f 4 -s 65536 -vvv To see exactly what is going on. Maybe some other kernel driver is attached at the same time, consuming the response from the programmer. BTW: /dev/cuau1 is not a USB port! Maybe try: /dev/cuaU1 --HPS From nobody Thu Apr 7 13:26:02 2022 X-Original-To: hardware@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 891581A85FBC for ; Thu, 7 Apr 2022 13:26:06 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [IPv6:2a01:4f8:c17:6c4b::2]) (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 4KZ2Fn2M5cz3vlj for ; Thu, 7 Apr 2022 13:26:05 +0000 (UTC) (envelope-from hps@selasky.org) Received: from [10.36.2.165] (unknown [178.17.145.105]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 46F0D2601AC; Thu, 7 Apr 2022 15:26:03 +0200 (CEST) Message-ID: <9334c4f0-3ecf-c046-420f-516e39379981@selasky.org> Date: Thu, 7 Apr 2022 15:26:02 +0200 List-Id: General discussion of FreeBSD hardware List-Archive: https://lists.freebsd.org/archives/freebsd-hardware List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hardware@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: timeouts on USB ISP programmer Content-Language: en-US From: Hans Petter Selasky To: Axel Rau , hardware@freebsd.org References: <3A781DFA-1E2C-41A5-8053-C90A806244DC@Chaos1.DE> <34a747ea-2ee5-660f-71c6-dc00d5de337f@selasky.org> In-Reply-To: <34a747ea-2ee5-660f-71c6-dc00d5de337f@selasky.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4KZ2Fn2M5cz3vlj X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of hps@selasky.org designates 2a01:4f8:c17:6c4b::2 as permitted sender) smtp.mailfrom=hps@selasky.org X-Spamd-Result: default: False [-3.30 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+a:mail.turbocat.net:c]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[selasky.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.999]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCPT_COUNT_TWO(0.00)[2]; MLMMJ_DEST(0.00)[hardware]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:2a01:4f8::/32, country:DE]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On 4/7/22 14:12, Hans Petter Selasky wrote: > On 4/7/22 13:33, Axel Rau wrote: >> Hi all, >> >> my DIAMEX-AVR-USB gets timeouts while talking to the target: >> - - - >> root@home2l:/ #    avrdude -c stk500v2 -p t85 -P /dev/cuau1 -t -v -i 10 >> >> avrdude: Version 6.4 >>           Copyright (c) Brian Dean, http://www.bdmicro.com/ >>           Copyright (c) Joerg Wunsch >> Try: -P usb See manual page: > port can alternatively be > specified as usb[:serialno]. This will cause avrdude to > search the programmer on USB. --HPS From nobody Thu Apr 7 13:46:21 2022 X-Original-To: hardware@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 3759A1A8E561 for ; Thu, 7 Apr 2022 13:46:31 +0000 (UTC) (envelope-from Axel.Rau@Chaos1.DE) Received: from mailout5.lrau.net (mailout5.lrau.net [IPv6:2a05:bec0:26:5::73]) (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 "mailout5.lrau.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KZ2jL2tvsz4Z3x for ; Thu, 7 Apr 2022 13:46:30 +0000 (UTC) (envelope-from Axel.Rau@Chaos1.DE) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=chaos1.de; s=email1; h=References:To:Cc:In-Reply-To:Date:Subject:Mime-Version: Content-Type:Message-Id:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=i5T2SOCEmJ8dIiqdf2HPbFABwxHrJL6AarOvZSpcSM4=; b=g4S6RzOxXOFC4qv3hVlPF4dEqe e8pAWh2mj91F1iwZUf24mXllUJ3g/ew5PbIIi/tEIu1rF1sfUKsv1zkl/9Hw9NJ9FZFEXowuDatC7 qtPYX9zbRXXPDHwLdTLj8b5+x/Vaa33Z4f05MmXhiRM6iWGrdgfszOMNCLDLnYlua1yYQY4Hh79wl T+uFCcOQbo2UcXjUGSntAkCtvqCetdHf/iChnYjJxYEpGk7tPxefL0LdxbhB5tuYum5+q64WJMv74 D5ToIT24Rcxnig1xyynJiKcB3SvHDESyPxxTndMGQGE5Q1tJE9nOyyq9X3pwI8uzvT2aQJpJoNDuB 0fLNICgQ==; Received: from [2a05:bec0:26:5::74] (helo=imap5.lrau.net) by mailout5.lrau.net with esmtp (Exim 4.95 (FreeBSD)) (envelope-from ) id 1ncSSs-0005MJ-6b; Thu, 07 Apr 2022 13:46:22 +0000 Received: from Axel.Rau@Chaos1.DE by imap5.lrau.net (Archiveopteryx 3.2.0) with esmtpsa id 1649339181-83575-82485/7/9; Thu, 7 Apr 2022 13:46:21 +0000 From: Axel Rau Message-Id: <976BDBEB-8B57-4541-A0B7-3F2C89498DC6@Chaos1.DE> Content-Type: multipart/alternative; boundary="Apple-Mail=_A22F0B2F-2B70-4528-A864-7AE8426BF8ED" List-Id: General discussion of FreeBSD hardware List-Archive: https://lists.freebsd.org/archives/freebsd-hardware List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hardware@freebsd.org Mime-Version: 1.0 Subject: Re: timeouts on USB ISP programmer Date: Thu, 7 Apr 2022 15:46:21 +0200 In-Reply-To: <9334c4f0-3ecf-c046-420f-516e39379981@selasky.org> Cc: hardware@freebsd.org To: Hans Petter Selasky References: <3A781DFA-1E2C-41A5-8053-C90A806244DC@Chaos1.DE> <34a747ea-2ee5-660f-71c6-dc00d5de337f@selasky.org> <9334c4f0-3ecf-c046-420f-516e39379981@selasky.org> X-Mailer: Apple Mail (2.3608.120.23.2.7) X-Rspamd-Queue-Id: 4KZ2jL2tvsz4Z3x X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=chaos1.de header.s=email1 header.b=g4S6RzOx; dmarc=none; spf=none (mx1.freebsd.org: domain of Axel.Rau@Chaos1.DE has no SPF policy when checking 2a05:bec0:26:5::73) smtp.mailfrom=Axel.Rau@Chaos1.DE X-Spamd-Result: default: False [-2.81 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[chaos1.de:s=email1]; RCVD_IN_DNSWL_LOW(-0.10)[2a05:bec0:26:5::73:from]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; DMARC_NA(0.00)[chaos1.de]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[chaos1.de:+]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.91)[-0.909]; MLMMJ_DEST(0.00)[hardware]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:197071, ipnet:2a05:bec0::/29, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[chaos1.de:dkim] X-ThisMailContainsUnwantedMimeParts: N --Apple-Mail=_A22F0B2F-2B70-4528-A864-7AE8426BF8ED Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > Am 07.04.2022 um 15:26 schrieb Hans Petter Selasky : >=20 > On 4/7/22 14:12, Hans Petter Selasky wrote: >> On 4/7/22 13:33, Axel Rau wrote: >>> Hi all, >>>=20 >>> my DIAMEX-AVR-USB gets timeouts while talking to the target: >>> - - - >>> root@home2l:/ # avrdude -c stk500v2 -p t85 -P /dev/cuau1 -t -v -i = 10 >>>=20 >>> avrdude: Version 6.4 >>> Copyright (c) Brian Dean, http://www.bdmicro.com/ >>> Copyright (c) Joerg Wunsch >>>=20 >=20 > Try: >=20 > -P usb >=20 > See manual page: > > port can alternatively be > > specified as usb[:serialno]. This will cause = avrdude to > > search the programmer on USB. Hmm. What mewans =E2=80=99serial=E2=80=99 in this case? avrdude: usbdev_open(): did not find any (matching) USB device "usb:0" = (0x03eb:0x2104) avrdude: usbdev_open(): did not find any (matching) USB device "usb:4" = (0x03eb:0x2104) avrdude: usbdev_open(): did not find any (matching) USB device "usb:" = (0x03eb:0x2104) The avrdude package did install libftdi1, so I think its just an = USB-to-serial converter? usbconfig said: =E2=80=9Acommunication device A. =2D-- PGP-Key: CDE74120 =E2=98=80 computing @ chaos claudius --Apple-Mail=_A22F0B2F-2B70-4528-A864-7AE8426BF8ED Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
=

= Am 07.04.2022 um 15:26 schrieb Hans Petter Selasky <hps@selasky.org>:

On 4/7/22 = 14:12, Hans Petter Selasky wrote:
On 4/7/22 13:33, Axel Rau wrote:
Hi all,

my = DIAMEX-AVR-USB gets timeouts while talking to the target:
-= - -
root@home2l:/ #    avrdude -c stk500v2 = -p t85 -P /dev/cuau1 -t -v -i 10

avrdude: = Version 6.4
        = ;  Copyright (c) Brian Dean, http://www.bdmicro.com/
   &n= bsp;      Copyright (c) Joerg Wunsch


Try:
-P usb

See = manual page:
> port can alternatively be
>   &= nbsp;           &n= bsp;   specified as usb[:serialno].  This will =  cause avrdude to
>      &= nbsp;           &n= bsp;search the programmer on USB.
=

Hmm. What mewans =E2=80=99seri= al=E2=80=99 in this case?

avrdude: usbdev_open(): did not find any = (matching) USB device "usb:0" (0x03eb:0x2104)
<= div style=3D"margin: 0px; font-stretch: normal; font-size: 11px; = line-height: normal; font-family: Monaco; background-color: rgb(255, = 255, 255);" class=3D"">avrdude: usbdev_open(): did not find any (matching) = USB device "usb:4" (0x03eb:0x2104)
avrdude: usbdev_open(): did not find any (matching) USB = device "usb:" (0x03eb:0x2104)

The avrdude package did install libftdi1, so I think its just an = USB-to-serial converter?
usbconfig = said: =E2=80=9Acommunication device

A.
=
---
PGP-Key: CDE74120  =E2=98=80 =  computing @ chaos claudius

--Apple-Mail=_A22F0B2F-2B70-4528-A864-7AE8426BF8ED-- From nobody Thu Apr 7 13:57:06 2022 X-Original-To: hardware@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 7BE431A92865 for ; Thu, 7 Apr 2022 13:57:15 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [88.99.82.50]) (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 4KZ2xk46t7z4dWq for ; Thu, 7 Apr 2022 13:57:14 +0000 (UTC) (envelope-from hps@selasky.org) Received: from [10.36.2.165] (unknown [178.17.145.105]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 0D5E52603A5; Thu, 7 Apr 2022 15:57:07 +0200 (CEST) Message-ID: <9db67f2f-afe1-1348-817c-da8995c869ff@selasky.org> Date: Thu, 7 Apr 2022 15:57:06 +0200 List-Id: General discussion of FreeBSD hardware List-Archive: https://lists.freebsd.org/archives/freebsd-hardware List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hardware@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: timeouts on USB ISP programmer Content-Language: en-US To: Axel Rau Cc: hardware@freebsd.org References: <3A781DFA-1E2C-41A5-8053-C90A806244DC@Chaos1.DE> <34a747ea-2ee5-660f-71c6-dc00d5de337f@selasky.org> <9334c4f0-3ecf-c046-420f-516e39379981@selasky.org> <976BDBEB-8B57-4541-A0B7-3F2C89498DC6@Chaos1.DE> From: Hans Petter Selasky In-Reply-To: <976BDBEB-8B57-4541-A0B7-3F2C89498DC6@Chaos1.DE> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4KZ2xk46t7z4dWq X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of hps@selasky.org designates 88.99.82.50 as permitted sender) smtp.mailfrom=hps@selasky.org X-Spamd-Result: default: False [-3.30 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+a:mail.turbocat.net:c]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[selasky.org]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCPT_COUNT_TWO(0.00)[2]; MLMMJ_DEST(0.00)[hardware]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:88.99.0.0/16, country:DE]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On 4/7/22 15:46, Axel Rau wrote: > Hmm. What mewans ’serial’ in this case? Serial is this: iSerialNumber = 0x0003 <19331-49101-552> usb:19331-49101-552 --HPS From nobody Thu Apr 7 14:44:58 2022 X-Original-To: hardware@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 465691A8384E for ; Thu, 7 Apr 2022 14:45:04 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [IPv6:2a01:4f8:c17:6c4b::2]) (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 4KZ40v1r7wz4t8V for ; Thu, 7 Apr 2022 14:45:03 +0000 (UTC) (envelope-from hps@selasky.org) Received: from [10.36.2.165] (unknown [178.17.145.105]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 677702604AB; Thu, 7 Apr 2022 16:45:00 +0200 (CEST) Message-ID: <7190bdde-22bc-79ee-06d0-d0114a3ffbad@selasky.org> Date: Thu, 7 Apr 2022 16:44:58 +0200 List-Id: General discussion of FreeBSD hardware List-Archive: https://lists.freebsd.org/archives/freebsd-hardware List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hardware@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: timeouts on USB ISP programmer Content-Language: en-US To: Axel Rau Cc: hardware@freebsd.org, tomek.cedro@gmail.com References: <3A781DFA-1E2C-41A5-8053-C90A806244DC@Chaos1.DE> <34a747ea-2ee5-660f-71c6-dc00d5de337f@selasky.org> <9334c4f0-3ecf-c046-420f-516e39379981@selasky.org> <976BDBEB-8B57-4541-A0B7-3F2C89498DC6@Chaos1.DE> From: Hans Petter Selasky In-Reply-To: <976BDBEB-8B57-4541-A0B7-3F2C89498DC6@Chaos1.DE> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4KZ40v1r7wz4t8V X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of hps@selasky.org designates 2a01:4f8:c17:6c4b::2 as permitted sender) smtp.mailfrom=hps@selasky.org X-Spamd-Result: default: False [-3.28 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+a:mail.turbocat.net:c]; NEURAL_HAM_LONG(-1.00)[-1.000]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[selasky.org]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-0.98)[-0.981]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; MLMMJ_DEST(0.00)[hardware]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:2a01:4f8::/32, country:DE]; FREEMAIL_CC(0.00)[freebsd.org,gmail.com]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-ThisMailContainsUnwantedMimeParts: N On 4/7/22 15:46, Axel Rau wrote: > > >> Am 07.04.2022 um 15:26 schrieb Hans Petter Selasky : >> >> On 4/7/22 14:12, Hans Petter Selasky wrote: >>> On 4/7/22 13:33, Axel Rau wrote: >>>> Hi all, >>>> >>>> my DIAMEX-AVR-USB gets timeouts while talking to the target: >>>> - - - >>>> root@home2l:/ # avrdude -c stk500v2 -p t85 -P /dev/cuau1 -t -v -i 10 >>>> >>>> avrdude: Version 6.4 >>>> Copyright (c) Brian Dean, http://www.bdmicro.com/ >>>> Copyright (c) Joerg Wunsch >>>> >> >> Try: >> >> -P usb >> >> See manual page: >>> port can alternatively be >>> specified as usb[:serialno]. This will cause avrdude to >>> search the programmer on USB. > > > Hmm. What mewans ’serial’ in this case? > > avrdude: usbdev_open(): did not find any (matching) USB device "usb:0" (0x03eb:0x2104) > avrdude: usbdev_open(): did not find any (matching) USB device "usb:4" (0x03eb:0x2104) > avrdude: usbdev_open(): did not find any (matching) USB device "usb:" (0x03eb:0x2104) > > The avrdude package did install libftdi1, so I think its just an USB-to-serial converter? > usbconfig said: ‚communication device > Hi Tomek, Do you see what is wrong here? Maybe he needs to use "avrisp2" instead of "stk500v2"? --HPS From nobody Thu Apr 7 17:40:59 2022 X-Original-To: hardware@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 8DF531A893C4 for ; Thu, 7 Apr 2022 17:41:16 +0000 (UTC) (envelope-from tomek@cedro.info) Received: from mail-oa1-x36.google.com (mail-oa1-x36.google.com [IPv6:2001:4860:4864:20::36]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KZ7wB0Jvmz4S7N for ; Thu, 7 Apr 2022 17:41:13 +0000 (UTC) (envelope-from tomek@cedro.info) Received: by mail-oa1-x36.google.com with SMTP id 586e51a60fabf-d39f741ba0so7091108fac.13 for ; Thu, 07 Apr 2022 10:41:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cedro.info; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=lH8vnIbeZfVVFxvjUpvn6umN7MEJ2lwmiCeIkwjbnGM=; b=aWgSEDIVVuti8PRpbYPi7XRz5cyCdz9ebcgLt5U93rWw8f8szDy904D5T0APHqnKVr Bx/vchKNu3JmCx7gj6MlfzRsFs7YxL7VjqPXoiPr5agwk813SJLy7Mo+2Qpsx6mhXrQV I5xdx84FX6UmX2o3axhLgBLhqkODh+45ATAluK3RtbbBes5dTReQtQu4Co6znhf+ogn1 iI/zetl6BWRhyI9AZkvTMRgvT6TOm6znT79rvkI8haLUvztAXeNJ9JB6h9rZTceDSSYC 8Ixc++CUz7cBLXJlZEiOulot7pJ9k0EeKHbpHF4kh9wJHw7UnQjFrSBDMA7T1HR7zc6F g7Qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=lH8vnIbeZfVVFxvjUpvn6umN7MEJ2lwmiCeIkwjbnGM=; b=dEkEEN74wSgvbcaUrct6p054VuSbvT3thybb/O5KWy2x1/ERSZ9y8XrtAAwQlRmz7/ K89krHreFEoSP+QkAzkPZbM6e72e4GBtxWEnbStLvaQ5sVxMuZtot3CGne8j/rPwQjQa +MeSvNnPcr6zDNjYtFZ7RoEqi8BgWkYSIYOJjlMh0ZiNz15C6RLPh0SOYNBy5UQ5Vq4i T/YQzvTemO5wfxarOupXUWFoO5e+W3ls4iyGq7a3uZUbvQaIhfd8fxR7mUw/Y95lllU5 gR8/tjTxl3TUpSuphC9HnSS0KD5z1VEYSEPkWS2FVRvnxqvPAPQCC1Jd2aqKashRtkpE 6gow== X-Gm-Message-State: AOAM530RAWKZY4lVNAyyUYOFSYMh6frajmXYcYqT47v4vox6RP185Mtg xTSCdG8gmxitfvhrY5L6rLpWa3S1mkzI2euT X-Google-Smtp-Source: ABdhPJzBNi+36eHpfVSmVLOCq5F1Pb+qWIlYHjujVutLM9HSlwQ4DKgc4nH1/ISEJ7yT03VEvEUqEQ== X-Received: by 2002:a05:6870:e88b:b0:e1:e51e:236f with SMTP id q11-20020a056870e88b00b000e1e51e236fmr6843073oan.205.1649353272685; Thu, 07 Apr 2022 10:41:12 -0700 (PDT) Received: from mail-oa1-f50.google.com (mail-oa1-f50.google.com. [209.85.160.50]) by smtp.gmail.com with ESMTPSA id q16-20020a9d4b10000000b005b22b93d468sm8163308otf.74.2022.04.07.10.41.12 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 07 Apr 2022 10:41:12 -0700 (PDT) Received: by mail-oa1-f50.google.com with SMTP id 586e51a60fabf-df02f7e2c9so7113917fac.10 for ; Thu, 07 Apr 2022 10:41:12 -0700 (PDT) X-Received: by 2002:a05:6870:248c:b0:d7:19f3:a52c with SMTP id s12-20020a056870248c00b000d719f3a52cmr6562379oaq.149.1649353271811; Thu, 07 Apr 2022 10:41:11 -0700 (PDT) List-Id: General discussion of FreeBSD hardware List-Archive: https://lists.freebsd.org/archives/freebsd-hardware List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hardware@freebsd.org MIME-Version: 1.0 References: <3A781DFA-1E2C-41A5-8053-C90A806244DC@Chaos1.DE> <34a747ea-2ee5-660f-71c6-dc00d5de337f@selasky.org> <9334c4f0-3ecf-c046-420f-516e39379981@selasky.org> <976BDBEB-8B57-4541-A0B7-3F2C89498DC6@Chaos1.DE> <7190bdde-22bc-79ee-06d0-d0114a3ffbad@selasky.org> In-Reply-To: From: Tomek CEDRO Date: Thu, 7 Apr 2022 19:40:59 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: timeouts on USB ISP programmer To: Hans Petter Selasky Cc: Axel Rau , hardware@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4KZ7wB0Jvmz4S7N X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cedro.info header.s=google header.b=aWgSEDIV; dmarc=none; spf=none (mx1.freebsd.org: domain of tomek@cedro.info has no SPF policy when checking 2001:4860:4864:20::36) smtp.mailfrom=tomek@cedro.info X-Spamd-Result: default: False [-2.87 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[cedro.info:s=google]; NEURAL_HAM_MEDIUM(-0.97)[-0.970]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-0.999]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[hardware@freebsd.org]; DMARC_NA(0.00)[cedro.info]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[cedro.info:+]; NEURAL_HAM_SHORT(-0.60)[-0.601]; RCVD_IN_DNSWL_NONE(0.00)[209.85.160.50:received,2001:4860:4864:20::36:from]; MLMMJ_DEST(0.00)[hardware]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:15169, ipnet:2001:4860:4864::/48, country:US]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N Sorry, this time a reply that is subscribed to the list :-) Hello world :-) Short story: * Try `-P usb:/dev/cuaU0` parameter. You need to use `usb:` prefix for the USB adapter. * Did that interface worked well on other OS with avrdude 6.4 (we currently have 6.3 port on FreeBSD)? * I have encountered similar issue with VID:PID pair on my ATtiny416XNANO board. This needs patching the upstream. But port uses several local patched to build on FreeBSD that are not part of the upstream. We have to make upstream build cleanly on FreeBSD in the first place :-) Long story: I have some Attiny104XplainedNano and Attiny416XplainedNano develkits we can play with. I will provide example step by step documentation that helps solving problems and that got me into conslusions presented above :-) Best regards :-) Tomek == OS == FreeBSD hexagon 13.1-STABLE FreeBSD 13.1-STABLE #0 stable/13-n250096-4f69c575996: Fri Mar 25 03:50:58 CET 2022 root@hexagon:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 == ATtiny416XplainedNano == # dmesg | tail ugen0.8: at usbus0 usbhid4 on uhub15 usbhid4: on usbus0 hidbus4: on usbhid4 umodem0 on uhub15 umodem0: on usbus0 umodem0: data interface 2, has CM over data, has break # usbconfig -d 0.8 dump_device_desc ugen0.8: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (100mA) bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x00ef bDeviceSubClass = 0x0002 bDeviceProtocol = 0x0001 bMaxPacketSize0 = 0x0020 idVendor = 0x03eb idProduct = 0x2145 bcdDevice = 0x1000 iManufacturer = 0x0001 iProduct = 0x0002 iSerialNumber = 0x0003 bNumConfigurations = 0x0001 == ATtiny416XplainedNano == # dmesg | tail ugen0.8: at usbus0 (disconnected) usbhid4: at uhub15, port 4, addr 7 (disconnected) hidbus4: detached usbhid4: detached umodem0: at uhub15, port 4, addr 7 (disconnected) umodem0: detached ugen0.8: at usbus0 usbhid4 on uhub15 usbhid4: on usbus0 hidbus4: on usbhid4 umodem0 on uhub15 umodem0: on usbus0 umodem0: data interface 2, has CM over data, has break # usbconfig -d 0.8 dump_device_desc ugen0.8: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (100mA) bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x00ef bDeviceSubClass = 0x0002 bDeviceProtocol = 0x0001 bMaxPacketSize0 = 0x0020 idVendor = 0x03eb idProduct = 0x2145 bcdDevice = 0x1000 iManufacturer = 0x0001 iProduct = 0x0002 iSerialNumber = 0x0003 bNumConfigurations = 0x0001 == AVRDUDE PART == % avrdude -c "?" Valid programmers are: 2232HIO = FT2232H based generic programmer 4232h = FT4232H based generic programmer arduino = Arduino arduino-ft232r = Arduino: FT232R connected to ISP atmelice = Atmel-ICE (ARM/AVR) in JTAG mode atmelice_dw = Atmel-ICE (ARM/AVR) in debugWIRE mode atmelice_isp = Atmel-ICE (ARM/AVR) in ISP mode atmelice_pdi = Atmel-ICE (ARM/AVR) in PDI mode atmelice_updi = Atmel-ICE (ARM/AVR) in UPDI mode avr109 = Atmel AppNote AVR109 Boot Loader avr910 = Atmel Low Cost Serial Programmer avr911 = Atmel AppNote AVR911 AVROSP avrftdi = FT2232D based generic programmer avrisp = Atmel AVR ISP avrisp2 = Atmel AVR ISP mkII avrispmkII = Atmel AVR ISP mkII avrispv2 = Atmel AVR ISP V2 buspirate = The Bus Pirate buspirate_bb = The Bus Pirate (bitbang interface, supports TPI) butterfly = Atmel Butterfly Development Board butterfly_mk = Mikrokopter.de Butterfly bwmega = BitWizard ftdi_atmega builtin programmer C232HM = FT232H based module from FTDI and Glyn.com.au c2n232i = serial port banging, reset=dtr sck=!rts mosi=!txd miso=!cts dasa = serial port banging, reset=rts sck=dtr mosi=txd miso=cts dasa3 = serial port banging, reset=!dtr sck=rts mosi=txd miso=cts diecimila = alias for arduino-ft232r dragon_dw = Atmel AVR Dragon in debugWire mode dragon_hvsp = Atmel AVR Dragon in HVSP mode dragon_isp = Atmel AVR Dragon in ISP mode dragon_jtag = Atmel AVR Dragon in JTAG mode dragon_pdi = Atmel AVR Dragon in PDI mode dragon_pp = Atmel AVR Dragon in PP mode ehajo-isp = avr-isp-programmer from eHaJo, http://www.eHaJo.de flip1 = FLIP USB DFU protocol version 1 (doc7618) flip2 = FLIP USB DFU protocol version 2 (AVR4023) ft232r = FT232R Synchronous BitBang ft245r = FT245R Synchronous BitBang iseavrprog = USBtiny-based USB programmer, https://github.com/IowaScaledEngineering/ckt-avrp jtag1 = Atmel JTAG ICE (mkI) jtag1slow = Atmel JTAG ICE (mkI) jtag2 = Atmel JTAG ICE mkII jtag2avr32 = Atmel JTAG ICE mkII im AVR32 mode jtag2dw = Atmel JTAG ICE mkII in debugWire mode jtag2fast = Atmel JTAG ICE mkII jtag2isp = Atmel JTAG ICE mkII in ISP mode jtag2pdi = Atmel JTAG ICE mkII PDI mode jtag2slow = Atmel JTAG ICE mkII jtag3 = Atmel AVR JTAGICE3 in JTAG mode jtag3dw = Atmel AVR JTAGICE3 in debugWIRE mode jtag3isp = Atmel AVR JTAGICE3 in ISP mode jtag3pdi = Atmel AVR JTAGICE3 in PDI mode jtag3updi = Atmel AVR JTAGICE3 in UPDI mode jtagkey = Amontec JTAGKey, JTAGKey-Tiny and JTAGKey2 jtagmkI = Atmel JTAG ICE (mkI) jtagmkII = Atmel JTAG ICE mkII jtagmkII_avr32 = Atmel JTAG ICE mkII im AVR32 mode lm3s811 = Luminary Micro LM3S811 Eval Board (Rev. A) mib510 = Crossbow MIB510 programming board mkbutterfly = Mikrokopter.de Butterfly nibobee = NIBObee o-link = O-Link, OpenJTAG from www.100ask.net openmoko = Openmoko debug board (v3) pavr = Jason Kyle's pAVR Serial Programmer pickit2 = MicroChip's PICkit2 Programmer pickit4_updi = MPLAB(R) PICkit 4 in UPDI mode pkobn_updi = Curiosity nano (nEDBG) in UPDI mode ponyser = design ponyprog serial, reset=!txd sck=rts mosi=dtr miso=cts powerdebugger = Atmel PowerDebugger (ARM/AVR) in JTAG mode powerdebugger_dw = Atmel PowerDebugger (ARM/AVR) in debugWire mode powerdebugger_isp = Atmel PowerDebugger (ARM/AVR) in ISP mode powerdebugger_pdi = Atmel PowerDebugger (ARM/AVR) in PDI mode powerdebugger_updi = Atmel PowerDebugger (ARM/AVR) in UPDI mode siprog = Lancos SI-Prog snap_updi = MPLAB(R) SNAP in UPDI mode stk500 = Atmel STK500 stk500hvsp = Atmel STK500 V2 in high-voltage serial programming mode stk500pp = Atmel STK500 V2 in parallel programming mode stk500v1 = Atmel STK500 Version 1.x firmware stk500v2 = Atmel STK500 Version 2.x firmware stk600 = Atmel STK600 stk600hvsp = Atmel STK600 in high-voltage serial programming mode stk600pp = Atmel STK600 in parallel programming mode tc2030 = Tag-Connect TC2030 ttl232r = FTDI TTL232R-5V with ICSP adapter tumpa = TIAO USB Multi-Protocol Adapter UM232H = FT232H based module from FTDI and Glyn.com.au uncompatino = uncompatino with all pairs of pins shorted usbasp = USBasp, http://www.fischl.de/usbasp/ usbasp-clone = Any usbasp clone with correct VID/PID usbtiny = USBtiny simple USB programmer, https://learn.adafruit.com/usbtinyisp wiring = Wiring xbee = XBee Series 2 Over-The-Air (XBeeBoot) xplainedmini = Atmel AVR XplainedMini in ISP mode xplainedmini_dw = Atmel AVR XplainedMini in debugWIRE mode xplainedmini_updi = Atmel AVR XplainedMini in UPDI mode xplainedpro = Atmel AVR XplainedPro in JTAG mode xplainedpro_updi = Atmel AVR XplainedPro in UPDI mode % avrdude -p "?" Valid parts are: uc3a0512 = AT32UC3A0512 c128 = AT90CAN128 c32 = AT90CAN32 c64 = AT90CAN64 pwm2 = AT90PWM2 pwm216 = AT90PWM216 pwm2b = AT90PWM2B pwm3 = AT90PWM3 pwm316 = AT90PWM316 pwm3b = AT90PWM3B 1200 = AT90S1200 2313 = AT90S2313 2333 = AT90S2333 2343 = AT90S2343 4414 = AT90S4414 4433 = AT90S4433 4434 = AT90S4434 8515 = AT90S8515 8535 = AT90S8535 usb1286 = AT90USB1286 usb1287 = AT90USB1287 usb162 = AT90USB162 usb646 = AT90USB646 usb647 = AT90USB647 usb82 = AT90USB82 m103 = ATmega103 m128 = ATmega128 m1280 = ATmega1280 m1281 = ATmega1281 m1284 = ATmega1284 m1284p = ATmega1284P m1284rfr2 = ATmega1284RFR2 m128rfa1 = ATmega128RFA1 m128rfr2 = ATmega128RFR2 m16 = ATmega16 m1608 = ATmega1608 m1609 = ATmega1609 m161 = ATmega161 m162 = ATmega162 m163 = ATmega163 m164p = ATmega164P m168 = ATmega168 m168p = ATmega168P m168pb = ATmega168PB m169 = ATmega169 m16u2 = ATmega16U2 m2560 = ATmega2560 m2561 = ATmega2561 m2564rfr2 = ATmega2564RFR2 m256rfr2 = ATmega256RFR2 m32 = ATmega32 m3208 = ATmega3208 m3209 = ATmega3209 m324a = ATmega324A m324p = ATmega324P m324pa = ATmega324PA m324pb = ATmega324PB m325 = ATmega325 m3250 = ATmega3250 m328 = ATmega328 m328p = ATmega328P m328pb = ATmega328PB m329 = ATmega329 m3290 = ATmega3290 m3290p = ATmega3290P m329p = ATmega329P m32m1 = ATmega32M1 m32u2 = ATmega32U2 m32u4 = ATmega32U4 m406 = ATMEGA406 m48 = ATmega48 m4808 = ATmega4808 m4809 = ATmega4809 m48p = ATmega48P m48pb = ATmega48PB m64 = ATmega64 m640 = ATmega640 m644 = ATmega644 m644p = ATmega644P m644rfr2 = ATmega644RFR2 m645 = ATmega645 m6450 = ATmega6450 m649 = ATmega649 m6490 = ATmega6490 m64m1 = ATmega64M1 m64rfr2 = ATmega64RFR2 m8 = ATmega8 m808 = ATmega808 m809 = ATmega809 m8515 = ATmega8515 m8535 = ATmega8535 m88 = ATmega88 m88p = ATmega88P m88pb = ATmega88PB m8a = ATmega8A m8u2 = ATmega8U2 t10 = ATtiny10 t11 = ATtiny11 t12 = ATtiny12 t13 = ATtiny13 t15 = ATtiny15 t1604 = ATtiny1604 t1606 = ATtiny1606 t1607 = ATtiny1607 t1614 = ATtiny1614 t1616 = ATtiny1616 t1617 = ATtiny1617 t1624 = ATtiny1624 t1626 = ATtiny1626 t1627 = ATtiny1627 t1634 = ATtiny1634 t20 = ATtiny20 t202 = ATtiny202 t204 = ATtiny204 t212 = ATtiny212 t214 = ATtiny214 t2313 = ATtiny2313 t24 = ATtiny24 t25 = ATtiny25 t26 = ATtiny26 t261 = ATtiny261 t28 = ATtiny28 t3216 = ATtiny3216 t3217 = ATtiny3217 t4 = ATtiny4 t40 = ATtiny40 t402 = ATtiny402 t404 = ATtiny404 t406 = ATtiny406 t412 = ATtiny412 t414 = ATtiny414 t416 = ATtiny416 t417 = ATtiny417 t424 = ATtiny424 t426 = ATtiny426 t427 = ATtiny427 t4313 = ATtiny4313 t43u = ATtiny43u t44 = ATtiny44 t441 = ATtiny441 t45 = ATtiny45 t461 = ATtiny461 t5 = ATtiny5 t804 = ATtiny804 t806 = ATtiny806 t807 = ATtiny807 t814 = ATtiny814 t816 = ATtiny816 t817 = ATtiny817 t824 = ATtiny824 t826 = ATtiny826 t827 = ATtiny827 t84 = ATtiny84 t841 = ATtiny841 t85 = ATtiny85 t861 = ATtiny861 t88 = ATtiny88 t9 = ATtiny9 x128a1 = ATxmega128A1 x128a1d = ATxmega128A1revD x128a1u = ATxmega128A1U x128a3 = ATxmega128A3 x128a3u = ATxmega128A3U x128a4 = ATxmega128A4 x128a4u = ATxmega128A4U x128b1 = ATxmega128B1 x128b3 = ATxmega128B3 x128c3 = ATxmega128C3 x128d3 = ATxmega128D3 x128d4 = ATxmega128D4 x16a4 = ATxmega16A4 x16a4u = ATxmega16A4U x16c4 = ATxmega16C4 x16d4 = ATxmega16D4 x16e5 = ATxmega16E5 x192a1 = ATxmega192A1 x192a3 = ATxmega192A3 x192a3u = ATxmega192A3U x192c3 = ATxmega192C3 x192d3 = ATxmega192D3 x256a1 = ATxmega256A1 x256a3 = ATxmega256A3 x256a3b = ATxmega256A3B x256a3bu = ATxmega256A3BU x256a3u = ATxmega256A3U x256c3 = ATxmega256C3 x256d3 = ATxmega256D3 x32a4 = ATxmega32A4 x32a4u = ATxmega32A4U x32c4 = ATxmega32C4 x32d4 = ATxmega32D4 x32e5 = ATxmega32E5 x384c3 = ATxmega384C3 x384d3 = ATxmega384D3 x64a1 = ATxmega64A1 x64a1u = ATxmega64A1U x64a3 = ATxmega64A3 x64a3u = ATxmega64A3U x64a4 = ATxmega64A4 x64a4u = ATxmega64A4U x64b1 = ATxmega64B1 x64b3 = ATxmega64B3 x64c3 = ATxmega64C3 x64d3 = ATxmega64D3 x64d4 = ATxmega64D4 x8e5 = ATxmega8E5 avr128da28 = AVR128DA28 avr128da32 = AVR128DA32 avr128da48 = AVR128DA48 avr128da64 = AVR128DA64 avr128db28 = AVR128DB28 avr128db32 = AVR128DB32 avr128db48 = AVR128DB48 avr128db64 = AVR128DB64 avr32da28 = AVR32DA28 avr32da32 = AVR32DA32 avr32da48 = AVR32DA48 avr32db28 = AVR32DB28 avr32db32 = AVR32DB32 avr32db48 = AVR32DB48 avr64da28 = AVR64DA28 avr64da32 = AVR64DA32 avr64da48 = AVR64DA48 avr64da64 = AVR64DA64 avr64db28 = AVR64DB28 avr64db32 = AVR64DB32 avr64db48 = AVR64DB48 avr64db64 = AVR64DB64 ucr2 = deprecated, use 'uc3a0512' lgt8fx168p = LGT8FX168P lgt8fx328p = LGT8FX328P lgt8fx88p = LGT8FX88P % avrdude -c "?" 2>&1| grep -i diamex (no result) Diamex device is not in the list of the supported programmers of avrdude. You or Diamex will have to create and provide configuration to that interface so it is available to everyone :-) This is Open-Source project at: https://github.com/avrdudes/avrdude Nothing about Diamex mentioned in the repo: https://github.com/avrdudes/avrdude/search?q=diamex % avrdude -p "?" 2>&1| grep -i tiny104 (no result) Looks like we have no use with ATtiny104 board bacause target is not supported. % avrdude -p "?" 2>&1| grep -i tiny416 t416 = ATtiny416 But we can play with the ATtiny416 board :-) Also I have somewhere ATtiny10 purchased for one project, so I could solder that quickly and use ATtiny104XNANO as the programmer for ATtiny10 if necessary. == Memory Access == hexagon% avrdude -c xplainedmini -p t416 -P usb:/dev/cuaU0 avrdude: jtag3_open_common(): Did not find any device matching VID 0x03eb and PID list: 0x2145 avrdude done. Thank you. hexagon% avrdude -c xplainedmini_updi -p t416 -P usb:/dev/cuaU0 avrdude: jtag3_open_common(): Did not find any device matching VID 0x03eb and PID list: 0x2145 avrdude done. Thank you. hexagon% avrdude -c xplainedmini_dw -p t416 -P usb:/dev/cuaU0 avrdude: jtag3_open_common(): Did not find any device matching VID 0x03eb and PID list: 0x2145 avrdude done. Thank you. So it seems avrdude does not have VID:PID for my board in the source code. We need to patch it. This seems to be defined in `src/usbdevs.h`. However upstream is not patched to build correctly on FreeBSD. hexagon% make [ 1%] [BISON][Parser] Building parser with bison 3.8.2 [ 3%] [FLEX][Parser] Building scanner with flex 2.6.4 [ 4%] Building C object src/CMakeFiles/libavrdude.dir/arduino.c.o [ 6%] Building C object src/CMakeFiles/libavrdude.dir/avr.c.o [ 8%] Building C object src/CMakeFiles/libavrdude.dir/avr910.c.o [ 9%] Building C object src/CMakeFiles/libavrdude.dir/avrftdi.c.o In file included from /home/cederom/cederom/work/CeDeROM/lab/embedded/avr/avrdude.git/src/avrftdi.c:41: /home/cederom/cederom/work/CeDeROM/lab/embedded/avr/avrdude.git/src/avrftdi_private.h:12:11: fatal error: 'libftdi1/ftdi.h' file not found # include ^~~~~~~~~~~~~~~~~ 1 error generated. *** Error code 1 Port uses dozens patches that not only fixes build logic but also does some changes to the functional part. These should be sent for a review and merge into upstream in the first place so we can have a clean build of the upstream on FreeBSD. -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info From nobody Thu Apr 7 18:20:18 2022 X-Original-To: hardware@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 42FF01A943BF for ; Thu, 7 Apr 2022 18:20:39 +0000 (UTC) (envelope-from tomek@cedro.info) Received: from mail-oi1-x22d.google.com (mail-oi1-x22d.google.com [IPv6:2607:f8b0:4864:20::22d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KZ8nd5s6rz4dPB for ; Thu, 7 Apr 2022 18:20:37 +0000 (UTC) (envelope-from tomek@cedro.info) Received: by mail-oi1-x22d.google.com with SMTP id a19so2004111oie.7 for ; Thu, 07 Apr 2022 11:20:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cedro.info; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=oAhkt9cg5iSm0tDLeAIPCMpbRxWePR4MQwRFo1ZCpz0=; b=bQcxh5rkAlM5/GkEqEY96RWiTgh2xm8Qi8WNePb8JzoI1CmuKtbiknnfDjEmlKFSeD qsGHQhydH0hT1g7JBflprAgWkzVJGAlnWVlwRKdc6zqTazyiTFKeoHANBET7T03fk9Zg DEDhZbegP9ogEl4DpiuvgeoGyjo/b8ChR9A/r1VBNCARkvtWCbX+GcpuqQwmu2XMh5OC 1bqBKw8eEJzmWKukgddga5pg6YZuzf90JdLbdFM7+WhKowUsY10iuHANDm9bH/ymUzN8 VTwwVaiO8s+aL7YPYNAXfLDqxCHAOluiRLYmhglcSQ53h84TIpHYuStVkJ4N243yrxea Ishg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=oAhkt9cg5iSm0tDLeAIPCMpbRxWePR4MQwRFo1ZCpz0=; b=zIfVF++7364sZDPjG8V1PAYcHtdU6WTs2QdSxORqgFFrdcKCmod0p8NlDgizBsyOKT Axkc2N75iJbUDCMB2mkxG8wGdat5dG/G0R9E3l3s3gxfBWuaB0r7k3HcYLuKD7VEWj/T g7GpKj7Jsykmja3MgrDpED/8+Fp3ryN5zAaQ8DNFSN0bKm7WaifzaBP7CY3ntAqer1gM dlm59wyWQErRLJcMCZfWTqtxeV8pmFR5OgRMgz1bO+9sJqZ9GSNEN2KS8WzL0mIcLqRU 1GXyZRzWxTQUAtIjGvbie103HItvnZYUcbddSr8oIWh8jss0bfVjdEssh4S5/sM0ydvS 6qkA== X-Gm-Message-State: AOAM532Kg7o/hElLlACutiFgNeP0BfHWJxtH5aXeXwCOEgEZAcmIP+B1 OcV+NqZoC8zzOTXTwjReLRPfVTJvc5Nxnbnq X-Google-Smtp-Source: ABdhPJy64F6G9E83+4cTeUz4fcEN9b7eMOe9Hrm6Ee++DBtIKcOdIhuy0QX0B35eQbNHqXZ+XG5P6A== X-Received: by 2002:aca:34d4:0:b0:2ef:89bc:ddf4 with SMTP id b203-20020aca34d4000000b002ef89bcddf4mr6111889oia.142.1649355630856; Thu, 07 Apr 2022 11:20:30 -0700 (PDT) Received: from mail-oo1-f46.google.com (mail-oo1-f46.google.com. [209.85.161.46]) by smtp.gmail.com with ESMTPSA id u22-20020a4ae696000000b0032158ab4ce9sm7506740oot.26.2022.04.07.11.20.29 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 07 Apr 2022 11:20:30 -0700 (PDT) Received: by mail-oo1-f46.google.com with SMTP id p128-20020a4a4886000000b003296205eb59so1066880ooa.7 for ; Thu, 07 Apr 2022 11:20:29 -0700 (PDT) X-Received: by 2002:a4a:3f56:0:b0:324:bc64:6713 with SMTP id x22-20020a4a3f56000000b00324bc646713mr4862796ooe.50.1649355629709; Thu, 07 Apr 2022 11:20:29 -0700 (PDT) List-Id: General discussion of FreeBSD hardware List-Archive: https://lists.freebsd.org/archives/freebsd-hardware List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hardware@freebsd.org MIME-Version: 1.0 References: <3A781DFA-1E2C-41A5-8053-C90A806244DC@Chaos1.DE> <34a747ea-2ee5-660f-71c6-dc00d5de337f@selasky.org> <9334c4f0-3ecf-c046-420f-516e39379981@selasky.org> <976BDBEB-8B57-4541-A0B7-3F2C89498DC6@Chaos1.DE> <7190bdde-22bc-79ee-06d0-d0114a3ffbad@selasky.org> In-Reply-To: From: Tomek CEDRO Date: Thu, 7 Apr 2022 20:20:18 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: timeouts on USB ISP programmer To: hardware@freebsd.org Cc: Hans Petter Selasky , Axel Rau Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4KZ8nd5s6rz4dPB X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cedro.info header.s=google header.b=bQcxh5rk; dmarc=none; spf=none (mx1.freebsd.org: domain of tomek@cedro.info has no SPF policy when checking 2607:f8b0:4864:20::22d) smtp.mailfrom=tomek@cedro.info X-Spamd-Result: default: False [-3.22 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[cedro.info:s=google]; NEURAL_HAM_MEDIUM(-0.96)[-0.956]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-0.998]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[hardware@freebsd.org]; DMARC_NA(0.00)[cedro.info]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[cedro.info:+]; NEURAL_HAM_SHORT(-0.97)[-0.966]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::22d:from,209.85.161.46:received]; MLMMJ_DEST(0.00)[hardware]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N I have reported an issue on avrdude github project, hope they give us some hints and we all make our devices operational on FreeBSD :-) https://github.com/avrdudes/avrdude/issues/920 Regarding Diamex interface I would try one after another from the list of `-c "?"` until one of them works, then configuration file can be created. If none of them works then a configuration needs to be created from scratch based on existing configuration files. I guess this should be in the vendor interest to have that configuration working out of the box :-) Regarding FT2232H chip I have used that one long ago (~10 years) and created driver for first implementations of SWD for ARM-Cortex devices (under LibSWD project). I even created SPI interface on that chip. I was using KT-LINK interface. FT2232H has two channels, can be used for UART or serial/parallel bitbang. It uses sort of commands to read/write GPIO ports. Technical specification is here: https://www.ftdichip.com/Support/Documents/DataSheets/ICs/DS_FT2232H.pdf -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info From nobody Thu Apr 7 18:35:48 2022 X-Original-To: hardware@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 B73071A98E31 for ; Thu, 7 Apr 2022 18:36:04 +0000 (UTC) (envelope-from tomek@cedro.info) Received: from mail-oa1-x34.google.com (mail-oa1-x34.google.com [IPv6:2001:4860:4864:20::34]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KZ97R6ZBSz4gts for ; Thu, 7 Apr 2022 18:36:03 +0000 (UTC) (envelope-from tomek@cedro.info) Received: by mail-oa1-x34.google.com with SMTP id 586e51a60fabf-de3eda6b5dso7370517fac.0 for ; Thu, 07 Apr 2022 11:36:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cedro.info; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=zeTPIiZq3WWZwDongOIBbZ1IxlXalRg9RVHfz4SpCKM=; b=JHgbrtuv5HLwnsmi165T37ZRZlaDyMIrIdyjbAej3+Y52loT4ooLVE9bahzurg5H4g +wzSsgpGQ8tpHMPxU+oOCeX20vsM0s17HSkGsdIESh/Tk6xiGmfrx2SqTY4QxKOgTele 0usRuGQgYTod8scHcbO/3IqB5lcxRvaf1oOWsAuzhqphzkKVtvLC2SJglkt4seHXbrhH AWq/9318UNii9+rDZgtP6zg3K63Yzb8iiSUeF4tkeN6E2GaIEGa3P2+gnWWeFL+VMu1z 7BLYP+qnjGNwamyTEWYgGBrhgZK0M420KQA6WZDS54yfMZF64Erb7jgyL2yK+bDz+luY e/vA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zeTPIiZq3WWZwDongOIBbZ1IxlXalRg9RVHfz4SpCKM=; b=bE4YgvPt5TLCQcT1Jvv/3JjqcBXlIgUHjVwD9paTVdYyCeUgq+spRuzO8QiIt4gtkB 5j0Y1NS7VU+s5bdWNNs7BeKgrAGcYMSAnNUXIon783ILM9b3WoyS1UgHlDyExS6ZBv+R sSLt2HKJKNkEHx1ktqALApFBxcIIpWRVLTpMrmPgevuSigUbDkHBmyI0eHzFhe1ZbFlo n3reNrXE57JoJT0yf+rj8l3MfsxNL4cQgtOeI/gVPnj4JuFGyAIaer97mvst36rWLcxQ 0pwcHvm8OkduyP9R3Net1u6QRZGcvFUxPu49QsgWVsc5GpDoS3dvlCFVDat09X8rjUY+ KKrQ== X-Gm-Message-State: AOAM531fJ/+bFzKYEeg1LFbnqpfEVgbxg51auXJ2RsGLvbEx7K/8sUnX LYC+7gW84ClP1DD4fuW/nnjKXhZc2JP9GwrY X-Google-Smtp-Source: ABdhPJwfQ0oOKbiVoBNLT917mziGoQ26lTWHCWHefZO7Qs66CUnZslAOXzZnvUVuHgIvFqiD+0JSrw== X-Received: by 2002:a05:6871:793:b0:db:360c:7f5e with SMTP id o19-20020a056871079300b000db360c7f5emr6872448oap.218.1649356563088; Thu, 07 Apr 2022 11:36:03 -0700 (PDT) Received: from mail-oi1-f177.google.com (mail-oi1-f177.google.com. [209.85.167.177]) by smtp.gmail.com with ESMTPSA id n15-20020aca240f000000b002da2fc73741sm7665777oic.33.2022.04.07.11.36.00 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 07 Apr 2022 11:36:00 -0700 (PDT) Received: by mail-oi1-f177.google.com with SMTP id r8so6538807oib.5 for ; Thu, 07 Apr 2022 11:36:00 -0700 (PDT) X-Received: by 2002:aca:1e16:0:b0:2ef:4b94:2cda with SMTP id m22-20020aca1e16000000b002ef4b942cdamr6121638oic.149.1649356560358; Thu, 07 Apr 2022 11:36:00 -0700 (PDT) List-Id: General discussion of FreeBSD hardware List-Archive: https://lists.freebsd.org/archives/freebsd-hardware List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hardware@freebsd.org MIME-Version: 1.0 References: <3A781DFA-1E2C-41A5-8053-C90A806244DC@Chaos1.DE> <34a747ea-2ee5-660f-71c6-dc00d5de337f@selasky.org> <9334c4f0-3ecf-c046-420f-516e39379981@selasky.org> <976BDBEB-8B57-4541-A0B7-3F2C89498DC6@Chaos1.DE> <7190bdde-22bc-79ee-06d0-d0114a3ffbad@selasky.org> In-Reply-To: From: Tomek CEDRO Date: Thu, 7 Apr 2022 20:35:48 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: timeouts on USB ISP programmer To: hardware@freebsd.org Cc: Hans Petter Selasky , Axel Rau Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4KZ97R6ZBSz4gts X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cedro.info header.s=google header.b=JHgbrtuv; dmarc=none; spf=none (mx1.freebsd.org: domain of tomek@cedro.info has no SPF policy when checking 2001:4860:4864:20::34) smtp.mailfrom=tomek@cedro.info X-Spamd-Result: default: False [-3.28 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[cedro.info:s=google]; NEURAL_HAM_MEDIUM(-1.00)[-0.998]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-0.998]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[hardware@freebsd.org]; DMARC_NA(0.00)[cedro.info]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[cedro.info:+]; NEURAL_HAM_SHORT(-0.98)[-0.979]; RCVD_IN_DNSWL_NONE(0.00)[209.85.167.177:received,2001:4860:4864:20::34:from]; MLMMJ_DEST(0.00)[hardware]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:15169, ipnet:2001:4860:4864::/48, country:US]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N The problem is Diamex does not provide schematics for their interface. That could make things easier to compare with other interfaces to search for similar one. Are you sure it is FT2232H based? LibFTDI as dependency to avrdude may also some from other interfaces :-) But we both have VID:PID issue. I have original DevKit from Michrochip/Atmel. Schematics is here: https://ww1.microchip.com/downloads/en/DeviceDoc/ATtiny416_Xplained_Nano_Schematics.pdf Also when connecting to my devkit over serial port with Minicom (9600-8-N-1) i get "nak" from the board. So the board and connection to the board works fine. This clearly indicates problem with avrdude. Probably it has hardcoded VID:PID pairs. Maybe they are part of the configuration files. Also I noticed that we have two ports devel/arduino-avrdude-6.3 and devel/avrdude-6.4. Work in progress :-) -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info From nobody Thu Apr 7 18:55:32 2022 X-Original-To: hardware@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 11C211A9ECFD for ; Thu, 7 Apr 2022 18:55:47 +0000 (UTC) (envelope-from tomek@cedro.info) Received: from mail-oi1-x22d.google.com (mail-oi1-x22d.google.com [IPv6:2607:f8b0:4864:20::22d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KZ9ZB42KVz4ltt for ; Thu, 7 Apr 2022 18:55:46 +0000 (UTC) (envelope-from tomek@cedro.info) Received: by mail-oi1-x22d.google.com with SMTP id r8so6593828oib.5 for ; Thu, 07 Apr 2022 11:55:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cedro.info; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=lJlmrOwhpwCzJUjXWPkRdl+qswfIeJ1cUsQfMRFTqpg=; b=dxk7+My4NTeh/+ZH3urzGYCXXWWP6EKmoN2H97wbXzr8pOY8SJbVZlDYHMEGEwY+XZ LJ6SI1TFzz4NWX6MJS2t5LjEQk33eMeuKAQFt9zE0CY97JcAR4cEERiwAp/aVmwfcAFj k2zd9aI51IJQdzKBiHM7129mqhVp70NznPpS0MWD7Vdguvq24pmWYaqHM09u5li3szd7 Cu5376PJhVCs6nzJTsAQEbtrdSZ1ZjEv7lBUTjcWrMGwSKkv04slmcQZa9YnmQnqo5FN ULRUWUJPChhpUNdtTTEs9gc7H/9Akb67/M5LjVa3OrKbktsx9+WyS6WEFhmMgTAslfi7 4gRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=lJlmrOwhpwCzJUjXWPkRdl+qswfIeJ1cUsQfMRFTqpg=; b=1mwAXXE9xlw9NoyxqRdAttM9AjHKnzoeekbka/g9s4VazgRxaIROBEkPYZohIT7Vvn ESbUiAdlW0dwLaYRsxLzLGh8cR4T0+JSXvIwuM+NstzlTp8J5NEnUET3ifQLtSpbkf9P YyA6s22LshtuI+m9b6C8jHnO9ltVeF2Clh09FrdPfw7GT8MfMWN9TM9obiZAqv/CSIL5 3NhUDxujIukSeRfxyUlXq9Ezq9EkY8v9NSmKsgf7BikEru2MvPIDq1u5oBcmUWghOTqI NkVatpHIw0K97kLu4CAR7V41PQLbAIT/FD+xUpBa13YSpcijpXuSG8Nl/ilPYk9x6gvL c1yQ== X-Gm-Message-State: AOAM530m1/PwFRekp3PQ4V6iChoeGEsyCkpebp/fcUks2JfU9Wa5yx6j zg47yRqM618lSBZIo1vntZk8FzcgQp9H0FDW X-Google-Smtp-Source: ABdhPJwQQcxb+o4SA6Lrc6BWKqHFumglQAQoJvAGrIClB1dVsaTNcxSoRNgOFfDqpxe2nA0CZUEVCA== X-Received: by 2002:a05:6808:f93:b0:2f9:bdbd:4b18 with SMTP id o19-20020a0568080f9300b002f9bdbd4b18mr1201692oiw.275.1649357745833; Thu, 07 Apr 2022 11:55:45 -0700 (PDT) Received: from mail-oa1-f45.google.com (mail-oa1-f45.google.com. [209.85.160.45]) by smtp.gmail.com with ESMTPSA id e24-20020a056808111800b002f75ced8d2csm7708984oih.7.2022.04.07.11.55.43 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 07 Apr 2022 11:55:43 -0700 (PDT) Received: by mail-oa1-f45.google.com with SMTP id 586e51a60fabf-d6ca46da48so7331449fac.12 for ; Thu, 07 Apr 2022 11:55:43 -0700 (PDT) X-Received: by 2002:a05:6870:9589:b0:dc:4640:ef89 with SMTP id k9-20020a056870958900b000dc4640ef89mr6984600oao.175.1649357743751; Thu, 07 Apr 2022 11:55:43 -0700 (PDT) List-Id: General discussion of FreeBSD hardware List-Archive: https://lists.freebsd.org/archives/freebsd-hardware List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hardware@freebsd.org MIME-Version: 1.0 References: <3A781DFA-1E2C-41A5-8053-C90A806244DC@Chaos1.DE> <34a747ea-2ee5-660f-71c6-dc00d5de337f@selasky.org> <9334c4f0-3ecf-c046-420f-516e39379981@selasky.org> <976BDBEB-8B57-4541-A0B7-3F2C89498DC6@Chaos1.DE> <7190bdde-22bc-79ee-06d0-d0114a3ffbad@selasky.org> In-Reply-To: From: Tomek CEDRO Date: Thu, 7 Apr 2022 20:55:32 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: timeouts on USB ISP programmer To: hardware@freebsd.org Cc: Hans Petter Selasky , Axel Rau Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4KZ9ZB42KVz4ltt X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cedro.info header.s=google header.b=dxk7+My4; dmarc=none; spf=none (mx1.freebsd.org: domain of tomek@cedro.info has no SPF policy when checking 2607:f8b0:4864:20::22d) smtp.mailfrom=tomek@cedro.info X-Spamd-Result: default: False [-3.30 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[cedro.info:s=google]; NEURAL_HAM_MEDIUM(-1.00)[-0.998]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-0.998]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[hardware@freebsd.org]; DMARC_NA(0.00)[cedro.info]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[cedro.info:+]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::22d:from,209.85.160.45:received]; MLMMJ_DEST(0.00)[hardware]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On Thu, Apr 7, 2022 at 8:35 PM Tomek CEDRO wrote: > Also I noticed that we have two ports devel/arduino-avrdude-6.3 and > devel/avrdude-6.4. My first remarks on avrdude port were in fact made on devel/arduino-avrdude-6.3, sorry, it may require some more patches to work with Adruino. The port of our interest devel/avrdude-6.4 only needs a fix with libftdi location. Will try to create a patch to the upstream :-) Also I noticed that avrdude is CONFIGRATION centric and all Interface and Target definitions are located in the configuration file, so no rebuild may be even necessary, just a local configuration update. System wide default configuration is in `/usr/local/etc/avrdude.conf `. Will report back with working ATtiny416XNANO and ATtiny104XNANO. -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info From nobody Fri Apr 8 03:33:22 2022 X-Original-To: hardware@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 34FEE1A804D5 for ; Fri, 8 Apr 2022 03:33:37 +0000 (UTC) (envelope-from tomek@cedro.info) Received: from mail-oa1-x36.google.com (mail-oa1-x36.google.com [IPv6:2001:4860:4864:20::36]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KZP3h2Cqxz4VkW for ; Fri, 8 Apr 2022 03:33:36 +0000 (UTC) (envelope-from tomek@cedro.info) Received: by mail-oa1-x36.google.com with SMTP id 586e51a60fabf-e2442907a1so8143975fac.8 for ; Thu, 07 Apr 2022 20:33:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cedro.info; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=fPRwl/Uxp5bBEzPn/CjmDmk/ivWZyX/NbPOmJHSvcH0=; b=DKeNs26xt+wAPeANkaqKyD+9Swao3tE84F1mXh0IyV0cm7NESoOti/HZ420OpW37ZS K+z0Bwan5emGHs4KFxrJnwX1cJlmW4pxvPZoqFf5r7SOrQj7GToyrcFvo7Joywrnl1s4 scHKXB2IWXXvsmrK88Vb+QynlieeLVSFWrwWtcxzc9pCHY6v1B9zzSCV7LcvioOrnkQS m3NzD2qx3fLg6EaAvQzxTUUOfMW5YQ8vokvhLBPYm2mMWTNevlLDfGfF6d5teqyOO6Eq KG2GEQzz/3sduwvwMQwWOoIfs6LxR9iUuO7KsE2nIGlSjK9YfMbslybPOsy5z/V/Uwit oYdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=fPRwl/Uxp5bBEzPn/CjmDmk/ivWZyX/NbPOmJHSvcH0=; b=huMhY2C1AzP0jpyWNBlgzZxzHyGlmJy6/55IoFzpMsOHW0RNV6APFA9xxF5/NJPuxG f1lC+oPJ+oUJZ7F0GiuuNS+be01sHUeYHsnEZcl926UypOygxee+16XEoX/1iV9OQLR/ JtfXdPuPBcQXGls5tDdqaAHCKTM/RC8m5OcQ7DIfFS94GQ7NZgh5SA3am6j54jXogVWG yEehds22LJjtPcK5ed+7p07LJua0QCDzHZok2M26QieokeGdgshM6HRENvErBLXBmC3e tyAdARJhrEbxvs0mvhbhWc0AfWkYwqMUfBRTLhkREasXicEV1tn4tvBvbzNeNE11hj+s ln8Q== X-Gm-Message-State: AOAM53368rzeYPa1Uc7TFvXSNbimO5RTuLc2/osnjSEVGBmoLHzPby0n ygTI+ypn2QEGpGRFmE2NWBO3pCbIJAP8PNqi X-Google-Smtp-Source: ABdhPJyx7ECR2XbbrTHn/291tUTiNH20W5itimO1F43Uy8gruWe5D8b4UL+WzdT+sP9Po/8jlCFXpQ== X-Received: by 2002:a05:6870:4601:b0:d7:446:3525 with SMTP id z1-20020a056870460100b000d704463525mr7820445oao.13.1649388815286; Thu, 07 Apr 2022 20:33:35 -0700 (PDT) Received: from mail-ot1-f43.google.com (mail-ot1-f43.google.com. [209.85.210.43]) by smtp.gmail.com with ESMTPSA id s65-20020acac244000000b002ef4ee8c800sm8180858oif.13.2022.04.07.20.33.34 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 07 Apr 2022 20:33:35 -0700 (PDT) Received: by mail-ot1-f43.google.com with SMTP id k25-20020a056830151900b005b25d8588dbso5285929otp.4 for ; Thu, 07 Apr 2022 20:33:34 -0700 (PDT) X-Received: by 2002:a9d:2c42:0:b0:5cd:9e86:44c2 with SMTP id f60-20020a9d2c42000000b005cd9e8644c2mr6121772otb.250.1649388814474; Thu, 07 Apr 2022 20:33:34 -0700 (PDT) List-Id: General discussion of FreeBSD hardware List-Archive: https://lists.freebsd.org/archives/freebsd-hardware List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hardware@freebsd.org MIME-Version: 1.0 References: <3A781DFA-1E2C-41A5-8053-C90A806244DC@Chaos1.DE> <34a747ea-2ee5-660f-71c6-dc00d5de337f@selasky.org> <9334c4f0-3ecf-c046-420f-516e39379981@selasky.org> <976BDBEB-8B57-4541-A0B7-3F2C89498DC6@Chaos1.DE> <7190bdde-22bc-79ee-06d0-d0114a3ffbad@selasky.org> In-Reply-To: From: Tomek CEDRO Date: Fri, 8 Apr 2022 05:33:22 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: timeouts on USB ISP programmer To: hardware@freebsd.org Cc: Hans Petter Selasky , Axel Rau Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4KZP3h2Cqxz4VkW X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cedro.info header.s=google header.b=DKeNs26x; dmarc=none; spf=none (mx1.freebsd.org: domain of tomek@cedro.info has no SPF policy when checking 2001:4860:4864:20::36) smtp.mailfrom=tomek@cedro.info X-Spamd-Result: default: False [-2.15 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[cedro.info:s=google]; NEURAL_HAM_MEDIUM(-0.99)[-0.994]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[hardware@freebsd.org]; DMARC_NA(0.00)[cedro.info]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[cedro.info:+]; NEURAL_SPAM_LONG(0.13)[0.130]; RCVD_IN_DNSWL_NONE(0.00)[209.85.210.43:received,2001:4860:4864:20::36:from]; NEURAL_HAM_SHORT(-0.98)[-0.984]; MLMMJ_DEST(0.00)[hardware]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:15169, ipnet:2001:4860:4864::/48, country:US]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N Mystery solved ;-) For avrdude `-P` parameter defines the the programmer port __BUT__ (as obviously stated in man page) if you use `usb:` device then you need to provide programmer SERIAL NUMBER last bytes not the OS serial port device ;-) If you run avrdude with `-vvv` switch then you get increased verbosity. It will tell you what it found. You will notice that it found a device that matches VID:PID pair but not Serial NUMBER of the device (not the port) ;-) Details here: https://github.com/avrdudes/avrdude/issues/920 Because avrdude keeps all its Programmer and Target definitions in a configuration file it is possible to define completely new Programmer and Target MCU with a simple commands in `~/.avrduderc` (see `/usr/local/etc/avrdude.conf` for reference). It is also possible to build the port with `cd /usr/ports/devel/avrdude; make WITH_DEBUG=1; make reinstall` to obtain binary that can be easily debugged with `lldb` (btw I just discovered `gui` option). `usbhid_open()` and/or `usbdev_open()` is the place where VID:PID and serial is handled. I hope that helps move things forward :-) Tomek % avrdude -c xplainedmini -p t416 -P usb:3537 -vvv avrdude: Version 6.4 Copyright (c) Brian Dean, http://www.bdmicro.com/ Copyright (c) Joerg Wunsch System wide configuration file is "/usr/local/etc/avrdude.conf" User configuration file is "/home/XXX/.avrduderc" Using Port : usb:3537 Using Programmer : xplainedmini avrdude: stk500v2_jtag3_open() avrdude: usbhid_open(): Found mEDBG CMSIS-DAP, serno: ATML2795042700003537 avrdude: usbhid_open(): Opening path 0-3.4.4:1.0 avrdude: usbhid_open(): Probing for max. packet size avrdude: usbhid_open(): Setting max_xfer from DAP_Info response to 64 avrdude: Found CMSIS-DAP compliant device, using EDBG protocol avrdude: jtag3_getsync() avrdude: Sending sign-on command: avrdude: jtag3_edbg_send(): sending 3 bytes avrdude: jtag3_recv(): Got message seqno 0 (command_sequence == 0) [general] OK AVR Part : ATtiny416 Chip Erase delay : 0 us PAGEL : P00 BS2 : P00 RESET disposition : dedicated RETRY pulse : SCK serial program mode : yes parallel program mode : yes Timeout : 0 StabDelay : 0 CmdexeDelay : 0 SyncLoops : 0 ByteDelay : 0 PollIndex : 0 PollValue : 0x00 Memory Detail : -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info From nobody Fri Apr 8 09:08:54 2022 X-Original-To: hardware@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 34BB21A9048B for ; Fri, 8 Apr 2022 09:09:00 +0000 (UTC) (envelope-from Axel.Rau@Chaos1.DE) Received: from mailout5.lrau.net (mailout5.lrau.net [IPv6:2a05:bec0:26:5::73]) (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 "mailout5.lrau.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KZXVg34HBz4XQC for ; Fri, 8 Apr 2022 09:08:59 +0000 (UTC) (envelope-from Axel.Rau@Chaos1.DE) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=chaos1.de; s=email1; h=References:To:Cc:In-Reply-To:Date:Subject:Mime-Version: Content-Type:Message-Id:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=6hRI8QzRyEgVK7A2CRqkZWgXhhRxlBub73XmY9iw+18=; b=B4xwpGF+S/Af3NqB+dDyn9ueEc 4uvkgZU+QnHM65Zq/V3U4CrWNmPcQZxT2khG5sTaFbHeOtRaL0TQuAdv1aX/Pyz8cmH5n4d31cTD8 /DqkioRvbWrCxFFdglIIK+O+Z22SxvnKPEsKInVOfGaAueXFaEX5+IrJbCvJc7tfFzKEwo+HxKpyG zeZEFK4w94c+pL68myeflFblWBpSspAQR1YT/P2lwVXlccwOFdVxANYiLnFMgkTw2SdCeUN5EdEuK E/F4Zb4FzLBYhS1/Di6cxYa2QFs+VNcAqqWtSoH3zEsJ3RwQjX84Ak353VHqod78ZgThpQa2I9ES2 uNMIUovw==; Received: from [2a05:bec0:26:5::74] (helo=imap5.lrau.net) by mailout5.lrau.net with esmtp (Exim 4.95 (FreeBSD)) (envelope-from ) id 1nckbx-00012O-6y; Fri, 08 Apr 2022 09:08:57 +0000 Received: from Axel.Rau@chaos1.de by imap5.lrau.net (Archiveopteryx 3.2.0) with esmtpsa id 1649408935-28869-26670/7/2; Fri, 8 Apr 2022 09:08:55 +0000 From: Axel Rau Message-Id: <7CDFB049-241F-4C31-A7B1-A7D6BDE6A002@Chaos1.DE> Content-Type: multipart/alternative; boundary="Apple-Mail=_7BBA6BB0-F921-4DEE-81A2-A127D725402A" List-Id: General discussion of FreeBSD hardware List-Archive: https://lists.freebsd.org/archives/freebsd-hardware List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hardware@freebsd.org Mime-Version: 1.0 Subject: Re: timeouts on USB ISP programmer Date: Fri, 8 Apr 2022 11:08:54 +0200 In-Reply-To: Cc: hardware@freebsd.org, Hans Petter Selasky To: Tomek CEDRO References: <3A781DFA-1E2C-41A5-8053-C90A806244DC@Chaos1.DE> <34a747ea-2ee5-660f-71c6-dc00d5de337f@selasky.org> <9334c4f0-3ecf-c046-420f-516e39379981@selasky.org> <976BDBEB-8B57-4541-A0B7-3F2C89498DC6@Chaos1.DE> <7190bdde-22bc-79ee-06d0-d0114a3ffbad@selasky.org> X-Mailer: Apple Mail (2.3608.120.23.2.7) X-Rspamd-Queue-Id: 4KZXVg34HBz4XQC X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=chaos1.de header.s=email1 header.b=B4xwpGF+; dmarc=none; spf=none (mx1.freebsd.org: domain of Axel.Rau@Chaos1.DE has no SPF policy when checking 2a05:bec0:26:5::73) smtp.mailfrom=Axel.Rau@Chaos1.DE X-Spamd-Result: default: False [-2.81 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[chaos1.de:s=email1]; RCVD_IN_DNSWL_LOW(-0.10)[2a05:bec0:26:5::73:from]; 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)[multipart/alternative,text/plain]; DMARC_NA(0.00)[chaos1.de]; NEURAL_HAM_MEDIUM(-0.91)[-0.912]; TO_DN_SOME(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[chaos1.de:+]; NEURAL_HAM_SHORT(-1.00)[-0.997]; MLMMJ_DEST(0.00)[hardware]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:197071, ipnet:2a05:bec0::/29, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[chaos1.de:dkim] X-ThisMailContainsUnwantedMimeParts: N --Apple-Mail=_7BBA6BB0-F921-4DEE-81A2-A127D725402A Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi Tomek, > Am 08.04.2022 um 05:33 schrieb Tomek CEDRO : >=20 > Mystery solved ;-) >=20 > For avrdude `-P` parameter defines the the programmer port __BUT__ (as > obviously stated in man page) if you use `usb:` device then you need > to provide programmer SERIAL NUMBER last bytes not the OS serial port > device ;-) I have no such serial number on the outside of my DIAMEX-ISP-USB. )-: All I have is this: root@home2l:/ # usbconfig -d 0.4 dump_device_desc ugen0.4: at usbus0, cfg=3D0 md=3DHOST spd=3DFULL = (12Mbps) pwr=3DON (500mA) bLength =3D 0x0012=20 bDescriptorType =3D 0x0001=20 bcdUSB =3D 0x0200=20 bDeviceClass =3D 0x0002 bDeviceSubClass =3D 0x0000=20 bDeviceProtocol =3D 0x0000=20 bMaxPacketSize0 =3D 0x0040=20 idVendor =3D 0x16c0=20 idProduct =3D 0x2a9b=20 bcdDevice =3D 0x4340=20 iManufacturer =3D 0x0001 iProduct =3D 0x0002 iSerialNumber =3D 0x0003 <19331-49101-552> bNumConfigurations =3D 0x0001=20 Would it help to create a section for programmer diamex-isp-usb ? >=20 > If you run avrdude with `-vvv` switch then you get increased > verbosity. It will tell you what it found. You will notice that it > found a device that matches VID:PID pair but not Serial NUMBER of the > device (not the port) ;-) >=20 > Details here: https://github.com/avrdudes/avrdude/issues/920 >=20 All I got with -vvv: avrdude: usbdev_open(): did not find any (matching) USB device "usb:552" = (0x03eb:0x2104) avrdude: usbdev_open(): did not find any (matching) USB device "usb:0552"= (0x03eb:0x2104) avrdude: usbdev_open(): did not find any (matching) USB device "usb:0003"= (0x03eb:0x2104) avrdude: usbdev_open(): did not find any (matching) USB device "usb:1552"= (0x03eb:0x2104) I=E2=80=99m still not convinced that this stick does real USB mode = (instead of serial emulation via ftdi. I=E2=80=99m willing to buy a quality programmer from ATmel to move on. Any recommendations? Please advice. All I currently need, is burning/flashing/fusing ATtinys: avrdude -c stk500v2 -p t861 -P /dev/ttyU1 \ -U hfuse:w:init.t861.elf \ -U efuse:w:init.t861.elf \ -U eeprom:w:init.t861.elf \ -U flash:w:init.t861.elf But debugging support would be helpful in the future. Sorry, I'm a newbie in the MCU business. Thank you so much for all the time you did spend to help me, Axel =2D-- =2D-- PGP-Key: CDE74120 =E2=98=80 computing @ chaos claudius --Apple-Mail=_7BBA6BB0-F921-4DEE-81A2-A127D725402A Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Hi Tomek,

Am 08.04.2022 um 05:33 schrieb Tomek CEDRO <tomek@cedro.info>:

Myste= ry solved ;-)

For avrdude `-P` parameter = defines the the programmer port __BUT__ (as
obviously = stated in man page) if you use `usb:` device then you need
= to provide programmer SERIAL NUMBER last bytes not the OS serial port
device ;-)
I have no = such serial number on the outside of my DIAMEX-ISP-USB. )-:
All= I have is this:

root@home2l:/ # usbconfig -d 0.4 dump_device_desc
ugen0.4: <ERFOS AVR-ISP2> at usbus0, cfg=3D0 md=3DHOST = spd=3DFULL (12Mbps) pwr=3DON (500mA)

  bLength =3D = 0x0012 
  bDescriptorType =3D = 0x0001 
  bcdUSB =3D 0x0200 
  bDeviceClass =3D 0x0002  <Communication = device>
  bDeviceSubClass =3D 0x0000 
  bDeviceProtocol =3D 0x0000 
  bMaxPacketSize0 =3D 0x0040 
  idVendor =3D 0x16c0 
  = idProduct =3D 0x2a9b 
  bcdDevice = =3D 0x4340 
  iManufacturer =3D 0x0001&nb= sp; <ERFOS>
  iProduct =3D 0x0002  = <AVR-ISP2>
  iSerialNumber =3D 0x0003&nb= sp; <19331-49101-552>
  bNumConfigura= tions =3D 0x0001 

Would it help to create a section for programmer = diamex-isp-usb ?
<= div class=3D"">

If you run avrdude with = `-vvv` switch then you get increased
verbosity. It will = tell you what it found. You will notice that it
found a = device that matches VID:PID pair but not Serial NUMBER of the
device (not the port) ;-)

Details= here: https://github.com/avrdudes/avrdude/issues/920


All I got with -vvv:

avrdude: usbdev_open(): did not find any (matching) USB = device "usb:552" (0x03eb:0x2104)
avrdude: = usbdev_open(): did not find any (matching) USB device "usb:0552" = (0x03eb:0x2104)
avrdude: usbdev_open():= did not find any (matching) USB device "usb:0003" (0x03eb:0x2104)
<= div style=3D"margin: 0px; font-stretch: normal; font-size: 11px; = line-height: normal; font-family: Monaco; background-color: rgb(255, = 255, 255);" class=3D"">avrdude: usbdev_open(): did not find any (matching) = USB device "usb:1552" (0x03eb:0x2104)

I=E2=80=99m still not convinced that = this stick does real USB mode (instead of serial emulation via ftdi.=

I=E2=80=99m willing to buy a = quality programmer from ATmel to move on.
Any recommendations?<= /div>
Please advice.

All I = currently need, is burning/flashing/fusing ATtinys:

 avrdude -c stk500v2 -p t861 -P /dev/ttyU= 1 \
    -U hfuse:w:init.t861.elf \
  =   -U efuse:w:init.t861.elf \
    -U eeprom:w:ini= t.t861.elf \
    -U flash:w:init.t861.elf

But debugging support would = be helpful in the future.

Sorry, I'm = a newbie in the MCU business.

Thank = you so much for all the time you did spend to help me,
Axel


---=
---
PGP-Key: CDE74120  =E2=98=80 =  computing @ chaos claudius

--Apple-Mail=_7BBA6BB0-F921-4DEE-81A2-A127D725402A-- From nobody Fri Apr 8 16:04:25 2022 X-Original-To: hardware@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 B0AAB12B8D3D for ; Fri, 8 Apr 2022 16:04:40 +0000 (UTC) (envelope-from tomek@cedro.info) Received: from mail-oa1-x2e.google.com (mail-oa1-x2e.google.com [IPv6:2001:4860:4864:20::2e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KZjkH6tcbz4pKr for ; Fri, 8 Apr 2022 16:04:39 +0000 (UTC) (envelope-from tomek@cedro.info) Received: by mail-oa1-x2e.google.com with SMTP id 586e51a60fabf-e2a00f2cc8so730698fac.4 for ; Fri, 08 Apr 2022 09:04:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cedro.info; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=SoqJExMsJ/BgNcEeS58K0ODNBLTT1hRsEpm545Vj9G8=; b=b+y6InLRaqDFAT4H8hl8skXPgItCdbKkqnUPmtBq0QD/o4qfvKqUDby/j8dV6vyjFq wUCS2G7e6+ssoSFRLp9XLH1gQu1kBlqEcB9Yjst10LcPEXepBHCw8asIDs9NuSjf0wt7 NjnYy/QRvY7qh9X/Tc/HQQqjgYZid+AdVH8uDOEnpUdTUhrIwTqpl6Z7yxR/6QD9g/3j lENx35h4zlfhmCKuk8k2V27ahpY7j99ZSpMLK6g2vQqKLJ9GtrZTxjulkQLAtfZrfZf8 BYqKtLpDTGpz7Ih8muYBb7a7GNXAkH8TN/NOnngpqlwU0/ioh3PhVBu2V+UpjwtvmkRq cfvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=SoqJExMsJ/BgNcEeS58K0ODNBLTT1hRsEpm545Vj9G8=; b=CYDt6AVWVH4i/CJaGahABeGm40PPHm8sBQUwtpCN9bssI8lh1kQfZ7rS4HN9SGeaWk im076127kB2WrH1LcdSVkWhiX3MGRL8r3iHQcrK3AcS2QE6KoNVUwIzMRrjISsrOBIn3 aXuMlNqDRnqh+ijZADabnNgu3Tv3Pf++hCKtWt7+JhMZMIsfYsmmVzNg6Gaqnmsrk9z0 anc44jbCNtxy0htZ+tTxp8m9qKsHVLM/5BRp06LnZUEQKtHgnyF0qSC7mQ6qSIli7H24 ryNXVaHTzcT7tpPq97uPs0+98C9Wc3de0VJtBBjA1P5t46gnt+K5In7sBoh/+sy2Hl1Y vESA== X-Gm-Message-State: AOAM530uW77lHTGUK1WPZOEmR21jXmwAzSktiM1j9LbQQHV69bt/u6jM MEdtcxvXq0xhFfKy8+g0v0jhdor6PtgSODlN X-Google-Smtp-Source: ABdhPJxzxj6iHMLgMyVcXj/t/tU/GUud3SXR8kh1sRmbMOqnhgY8cRCyPP/91cNTtFcG/8c5gM3NaA== X-Received: by 2002:a05:6870:9590:b0:de:27ca:c60c with SMTP id k16-20020a056870959000b000de27cac60cmr9289608oao.108.1649433878623; Fri, 08 Apr 2022 09:04:38 -0700 (PDT) Received: from mail-oa1-f43.google.com (mail-oa1-f43.google.com. [209.85.160.43]) by smtp.gmail.com with ESMTPSA id bb35-20020a056820162300b00324b9a8121bsm9048279oob.27.2022.04.08.09.04.37 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 08 Apr 2022 09:04:37 -0700 (PDT) Received: by mail-oa1-f43.google.com with SMTP id 586e51a60fabf-df22f50e0cso10197481fac.3 for ; Fri, 08 Apr 2022 09:04:37 -0700 (PDT) X-Received: by 2002:a05:6870:248c:b0:d7:19f3:a52c with SMTP id s12-20020a056870248c00b000d719f3a52cmr8581116oaq.149.1649433877420; Fri, 08 Apr 2022 09:04:37 -0700 (PDT) List-Id: General discussion of FreeBSD hardware List-Archive: https://lists.freebsd.org/archives/freebsd-hardware List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hardware@freebsd.org MIME-Version: 1.0 References: <3A781DFA-1E2C-41A5-8053-C90A806244DC@Chaos1.DE> <34a747ea-2ee5-660f-71c6-dc00d5de337f@selasky.org> <9334c4f0-3ecf-c046-420f-516e39379981@selasky.org> <976BDBEB-8B57-4541-A0B7-3F2C89498DC6@Chaos1.DE> <7190bdde-22bc-79ee-06d0-d0114a3ffbad@selasky.org> <7CDFB049-241F-4C31-A7B1-A7D6BDE6A002@Chaos1.DE> In-Reply-To: <7CDFB049-241F-4C31-A7B1-A7D6BDE6A002@Chaos1.DE> From: Tomek CEDRO Date: Fri, 8 Apr 2022 18:04:25 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: timeouts on USB ISP programmer To: Axel Rau Cc: Hans Petter Selasky , hardware@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4KZjkH6tcbz4pKr X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cedro.info header.s=google header.b=b+y6InLR; dmarc=none; spf=none (mx1.freebsd.org: domain of tomek@cedro.info has no SPF policy when checking 2001:4860:4864:20::2e) smtp.mailfrom=tomek@cedro.info X-Spamd-Result: default: False [-3.30 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[cedro.info:s=google]; NEURAL_HAM_MEDIUM(-1.00)[-0.999]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[hardware@freebsd.org]; DMARC_NA(0.00)[cedro.info]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[cedro.info:+]; NEURAL_HAM_SHORT(-1.00)[-0.999]; RCVD_IN_DNSWL_NONE(0.00)[2001:4860:4864:20::2e:from,209.85.160.43:received]; MLMMJ_DEST(0.00)[hardware]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:15169, ipnet:2001:4860:4864::/48, country:US]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On Fri, Apr 8, 2022 at 11:08 AM Axel Rau wrote: > Am 08.04.2022 um 05:33 schrieb Tomek CEDRO : > Mystery solved ;-) > For avrdude `-P` parameter defines the the programmer port __BUT__ (as > obviously stated in man page) if you use `usb:` device then you need > to provide programmer SERIAL NUMBER last bytes not the OS serial port > device ;-) > I have no such serial number on the outside of my DIAMEX-ISP-USB. )-: > All I have is this: > > root@home2l:/ # usbconfig -d 0.4 dump_device_desc > ugen0.4: at usbus0, cfg=3D0 md=3DHOST spd=3DFULL (12Mbps= ) pwr=3DON (500mA) > > bLength =3D 0x0012 > bDescriptorType =3D 0x0001 > bcdUSB =3D 0x0200 > bDeviceClass =3D 0x0002 > bDeviceSubClass =3D 0x0000 > bDeviceProtocol =3D 0x0000 > bMaxPacketSize0 =3D 0x0040 > idVendor =3D 0x16c0 > idProduct =3D 0x2a9b > bcdDevice =3D 0x4340 > iManufacturer =3D 0x0001 > iProduct =3D 0x0002 > iSerialNumber =3D 0x0003 <19331-49101-552> > bNumConfigurations =3D 0x0001 Good news is that you can only provide `-P usb` if you have one Programmer Interface and it is defined in the configuration. In your case if you want to use specific serial number that would probably be `-P usb:552` parameter. > Would it help to create a section for programmer diamex-isp-usb ? Yes. As Diamex interface is not defined in the configuration files, where all hardware definition resides, avrdude will not detect it. You need to create a local user configuration file (`~/.avrduderc`) with the interface definitions. Try copy-paste from existing similar interface, change VID:PID pair, and step by step make it work :-) > All I got with -vvv: > > avrdude: usbdev_open(): did not find any (matching) USB device "usb:552" = (0x03eb:0x2104) > avrdude: usbdev_open(): did not find any (matching) USB device "usb:0552"= (0x03eb:0x2104) > avrdude: usbdev_open(): did not find any (matching) USB device "usb:0003"= (0x03eb:0x2104) > avrdude: usbdev_open(): did not find any (matching) USB device "usb:1552"= (0x03eb:0x2104) Okay, so at first you need to provide VID=3D0x16C0 and PID=3D0x2A9B in your local configuration file that will contain the interface definition. At the end of message I will try to deduce example configuration file for you :-) > I=E2=80=99m still not convinced that this stick does real USB mode (inste= ad of serial emulation via ftdi. This is not the problem. It uses "real USB mode" to transport commands between PC and FT2232 too. Most of those Programmer dongles uses Virtual-COM-Port-over-USB (aka VCP / USB CDC). No matter if you use dedicated IC like FT2232H that you can simply put in your design and control with a predefined command sequences using libraries like LibUSB+LibFTDI, or you use a microcontroller with embedded USB Device silicon that puts additional burden on you to create a base firmware for that in the first place just then to get the commands to control it like FT2232. Using FT2232H is cheaper when you consider firmware + software developer time cost and you need no extra functionalities beyond GPIO control. This is really powerful chip and I still keep my KT-LINK in my backpack every day :-) > I=E2=80=99m willing to buy a quality programmer from ATmel to move on. > Any recommendations? > Please advice. You will learn more when you bring your interface to life. Maybe contact Diamex and ask them to create such configuration for avrdude. Maybe you can create such configuration and ask them for some financing for better motivation. You can also send one programmer to me and I will try to help but I need that hardware at hand :-) I have one project in mind that will use ATtiny10. In order to program this chip I also bought these two ATtiny104XNANO and ATtiny416XNANO. These were cheap generic boards, one of them should work with existing Open-Source utilities, so I was sure I could convert them to programmer of my ATtiny10. Thanks to you I took some time and focus to research the area in practice :-) If you plan to work more with AVR and have some funding then ATMEL-ICE seems most popular interface and it is also supported in all possible configurations with avrdude: https://www.microchip.com/en-us/development-tool/ATATMEL-ICE > All I currently need, is burning/flashing/fusing ATtinys: > > avrdude -c stk500v2 -p t861 -P /dev/ttyU1 \ > -U hfuse:w:init.t861.elf \ > -U efuse:w:init.t861.elf \ > -U eeprom:w:init.t861.elf \ > -U flash:w:init.t861.elf t861 target seems to be already in place, we just need to create a configuration for Diamex interface :-) > But debugging support would be helpful in the future. It may be possible, looks like the code is there, but first things first, we need to create a base interface configuration for Flashing.. it may then allow Debug. I am not that familiar with avrdude. Did not even know that Debug is now possible with AVR. It seems that depends on how you connect the Interface to the Target MCU as there are several possible ways. Last time I played with AVR was around 2003 :-) :-) If you need to know the details DataSheets are always best place to look in the first place. I learned digital electronics from Atmel's datasheets (for At89C51 MCU) in the 1990's :-) https://www.microchip.com/en-us/product/ATTINY861 https://ww1.microchip.com/downloads/en/DeviceDoc/Atmel-2588-8-bit-AVR-Micro= controllers-tinyAVR-ATtiny261-ATtiny461-ATtiny861_Datasheet-Summary.pdf https://ww1.microchip.com/downloads/en/Appnotes/AN2519-AVR-Microcontroller-= Hardware-Design-Considerations-00002519B.pdf https://ww1.microchip.com/downloads/en/Appnotes/00002466B.pdf https://ww1.microchip.com/downloads/en/Appnotes/Production-Programming-of-M= icrochip-AVR-SAM-MCU-00002468D.pdf > Sorry, I'm a newbie in the MCU business. > > Thank you so much for all the time you did spend to help me, > Axel No worries. This is the most beautiful time of exploration. Also the hardest one as lots and lots of unexpected details jump out of the hat. But this is absolutely normal. We all learn all the time :-) Tomek =3D=3D=3D EXAMPLE DIAMEX-AVR-USB CONFIGURATION =3D=3D=3D Here is an example `~/.avrduderc` to try out. It should work out of the box as FT2232 has constant `reset`, `sck`, `mosi`, `miso` pins. `VID:PID` pair is defined. You y need to tune `usbvendor`, `usbproduct`, `usbdev`, `usbsn` fields. Default programmer is defined so there is no need to provide `-c` parameter. Maybe `-P usb` is necessary not sure. Please let us know how this works for you (with `-vvv` switch). # Possible entry formats are: # # programmer # parent # optional parent # id =3D [, [, ] ...] ; # are quoted st= rings # desc =3D ; # quoted string # type =3D ; # programmer type, quoted string # # supported programmer types can be listed by "-c ?type" # connection_type =3D parallel | serial | usb # baudrate =3D ; # baudrate for avr910-programmer # vcc =3D [, ... ] ; # pin number(s) # buff =3D [, ... ] ; # pin number(s) # reset =3D ; # pin number # sck =3D ; # pin number # mosi =3D ; # pin number # miso =3D ; # pin number # errled =3D ; # pin number # rdyled =3D ; # pin number # pgmled =3D ; # pin number # vfyled =3D ; # pin number # usbvid =3D ; # USB VID (Vendor ID) # usbpid =3D [, ...] # USB PID (Product ID= ) (1) # usbdev =3D ; # USB interface or other device info # usbvendor =3D ; # USB Vendor Name # usbproduct =3D ; # USB Product Name # usbsn =3D ; # USB Serial Number # # To invert a bit, use =3D ~ , the spaces are important. # For a pin list all pins must be inverted. # A single pin can be specified as usual =3D ~ , for lists # specify it as follows =3D ~ ( [, ... ] ) . # # (1) Not all programmer types can process a list of PIDs. # ; # set this to avoid providing `-c` all the time :-) default_programmer =3D "diamex-avr-usb"; # this will interface with the chips on these programmers: # # http://real.kiev.ua/old/avreal/en/adapters # http://www.amontec.com/jtagkey.shtml, jtagkey-tiny.shtml # http://www.olimex.com/dev/arm-usb-ocd.html, arm-usb-tiny.html # http://www.ethernut.de/en/hardware/turtelizer/index.html # http://elk.informatik.fh-augsburg.de/hhweb/doc/openocd/usbjtag/usbjtag.ht= ml # http://dangerousprototypes.com/docs/FT2232_breakout_board # http://www.ftdichip.com/Products/Modules/DLPModules.htm,DLP-2232*,DLP-USB= 1232H # http://flashrom.org/FT2232SPI_Programmer # # The drivers will look for a specific device and use the first one found. # If you have mulitple devices, then look for unique information (like SN) # And fill that in here. # # Note that the pin numbers for the main ISP signals (reset, sck, # mosi, miso) are fixed and cannot be changed, since they must match # the way the Multi-Protocol Synchronous Serial Engine (MPSSE) of # these FTDI ICs has been designed. programmer id =3D "diamex-avr-usb"; desc =3D "FT2232 based Diamex AVR USB programmer"; type =3D "avrftdi"; connection_type =3D usb; usbvid =3D 0x16C0; usbpid =3D 0x2A9B; usbvendor =3D ""; usbproduct =3D ""; usbdev =3D "A"; usbsn =3D ""; #ISP-signals - lower ADBUS-Nibble (default) reset =3D 3; sck =3D 0; mosi =3D 1; miso =3D 2; #LED SIGNALs - higher ADBUS-Nibble # errled =3D 4; # rdyled =3D 5; # pgmled =3D 6; # vfyled =3D 7; #Buffer Signal - ACBUS - Nibble # buff =3D 8; ; --=20 CeDeROM, SQ7MHZ, http://www.tomek.cedro.info From nobody Fri Apr 8 16:35:09 2022 X-Original-To: hardware@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 92EA7180A9DE for ; Fri, 8 Apr 2022 16:35:29 +0000 (UTC) (envelope-from tomek@cedro.info) Received: from mail-oa1-x2b.google.com (mail-oa1-x2b.google.com [IPv6:2001:4860:4864:20::2b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KZkPr1DpSz3BxD for ; Fri, 8 Apr 2022 16:35:27 +0000 (UTC) (envelope-from tomek@cedro.info) Received: by mail-oa1-x2b.google.com with SMTP id 586e51a60fabf-dacc470e03so10256857fac.5 for ; Fri, 08 Apr 2022 09:35:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cedro.info; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=9MI5FFuBww6tQJb3C0CWsdpr+5+/u6ZMO9f42oHuzQQ=; b=fF1WaaEo98F3huZKx4x6+mpZ6eELZNSMtzkjgbtZRDDiJAx+cmHAqGAhULobpsrtmL L8pcW5QYuIKCOfryz6rOstE6OaRBgNIP2XaiHrtPDIZIjbO1IXTkt5KJjMn1SiRDljQS KXJ9pS2MRzCmCt8+Vy8RzdNnfxGKOZbChM2tfs2jE3XcSSMpiCEmwOM3PTuzZm8fAcjn J633r/D6J2fGKbHxI5g0QzmFyn5wNWRz/4a21zGEp/0u97rxA+U1MlnsI+q93/Wdsofd aVq6J4n6sbMu55+K5784KT1vRmNeynfC6jgdxlqfk8dfRaQ/VNOh/txe33pdLnvU+z1K C9hQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=9MI5FFuBww6tQJb3C0CWsdpr+5+/u6ZMO9f42oHuzQQ=; b=7oqGqHa0V5rqowUdLVQhtii5iiNlDw5k+jOKTwMGx9ksPOUuIZVCx65VQwt4i1P0aI Q7QJAo0ZHMJbliSN2JtskxzS9D1Kqu7b6iOLTs47MmLoTwwizSECK7hI9vCkAFidzQ8t RmCU6uygQOt925z/WueqG2bXkag909MDgaKqtTnw2gl1uNN8ryfDPojKqAnXhNNgIn7a brSj+4kcxYudJDtq1yLwEJPWUYXJxuWYu9SOUfPI0YAhtuFnpCQ+0DVfUPBo8Hjd/Nsy NbShT/ua9LRcxrIyv1G3mV6lzwjVtuHaOJaWil3WWBD138DXx68PGjeiNVlA2fA/DQHb DZwQ== X-Gm-Message-State: AOAM530JuHGIUIyI5UfpaZVZ7o6BcjzZkRO7kapVwll5T9wjOQSGHuwd O6a/PomRMlNWtJlUymafBtcEy1rRmxc7efux X-Google-Smtp-Source: ABdhPJyZT8C0YQ1JLrPztLsYh3rl3Krrc3LRyrfwuwcJqSdovQdS937t0951grpjl4iS52NXIxtzFA== X-Received: by 2002:a05:6870:4205:b0:e1:e110:3ad2 with SMTP id u5-20020a056870420500b000e1e1103ad2mr9068153oac.27.1649435721532; Fri, 08 Apr 2022 09:35:21 -0700 (PDT) Received: from mail-oo1-f51.google.com (mail-oo1-f51.google.com. [209.85.161.51]) by smtp.gmail.com with ESMTPSA id r129-20020acac187000000b002ef358c6e0esm8732458oif.49.2022.04.08.09.35.21 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 08 Apr 2022 09:35:21 -0700 (PDT) Received: by mail-oo1-f51.google.com with SMTP id l24-20020a4a8558000000b00320d5a1f938so1564976ooh.8 for ; Fri, 08 Apr 2022 09:35:21 -0700 (PDT) X-Received: by 2002:a4a:dd15:0:b0:320:da3c:c342 with SMTP id m21-20020a4add15000000b00320da3cc342mr6435227oou.7.1649435720784; Fri, 08 Apr 2022 09:35:20 -0700 (PDT) List-Id: General discussion of FreeBSD hardware List-Archive: https://lists.freebsd.org/archives/freebsd-hardware List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hardware@freebsd.org MIME-Version: 1.0 References: <3A781DFA-1E2C-41A5-8053-C90A806244DC@Chaos1.DE> <34a747ea-2ee5-660f-71c6-dc00d5de337f@selasky.org> <9334c4f0-3ecf-c046-420f-516e39379981@selasky.org> <976BDBEB-8B57-4541-A0B7-3F2C89498DC6@Chaos1.DE> <7190bdde-22bc-79ee-06d0-d0114a3ffbad@selasky.org> <7CDFB049-241F-4C31-A7B1-A7D6BDE6A002@Chaos1.DE> In-Reply-To: From: Tomek CEDRO Date: Fri, 8 Apr 2022 18:35:09 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: timeouts on USB ISP programmer To: hardware@freebsd.org Cc: Axel Rau , Hans Petter Selasky Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4KZkPr1DpSz3BxD X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cedro.info header.s=google header.b=fF1WaaEo; dmarc=none; spf=none (mx1.freebsd.org: domain of tomek@cedro.info has no SPF policy when checking 2001:4860:4864:20::2b) smtp.mailfrom=tomek@cedro.info X-Spamd-Result: default: False [-3.30 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[cedro.info:s=google]; NEURAL_HAM_MEDIUM(-1.00)[-0.999]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[hardware@freebsd.org]; DMARC_NA(0.00)[cedro.info]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[cedro.info:+]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCVD_IN_DNSWL_NONE(0.00)[2001:4860:4864:20::2b:from,209.85.161.51:received]; MLMMJ_DEST(0.00)[hardware]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:15169, ipnet:2001:4860:4864::/48, country:US]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On Fri, Apr 8, 2022 at 6:04 PM Tomek CEDRO wrote: > This is not the problem. It uses "real USB mode" to transport commands > between PC and FT2232 too. Most of those Programmer dongles uses > Virtual-COM-Port-over-USB (aka VCP / USB CDC). No matter if you use > dedicated IC like FT2232H that you can simply put in your design and > control with a predefined command sequences using libraries like > LibUSB+LibFTDI, or you use a microcontroller with embedded USB Device > silicon that puts additional burden on you to create a base firmware > for that in the first place just then to get the commands to control > it like FT2232. > > Using FT2232H is cheaper when you consider firmware + software > developer time cost and you need no extra functionalities beyond GPIO > control. This is really powerful chip and I still keep my KT-LINK in > my backpack every day :-) Just a curiosity, if you wonder what is the difference between generic FT2232 and MCU+USB, then in practice you can construct almost any protocol on both, the difference is overall speed. However, you need to send single commands to FT2232 to control its GPIO, that goes over USB with a predefined latency, and that low level USB protocol latency is a killer bottleneck that limits the overall interface speed. It depends on the USB Transfer mode and with LibUSB 1.0 asynchronous operations showed up but still the USB latency is the limit here. Especially when you bitbang single GPIO pins, change input to output, send small chunks of data, etc, that results in kHz/Kbps speed. On the other hand with MCU+USB design you are limited only with the GPIO port speed (usually single MHz/Mbps). There may be even on-silicon peripherals like SPI with speeds far greater than GPIO itself (tens or hundreds of MHz/Mbps). But you need to create a firmware that will handle on-silicon USB Device peripheral and then some protocol between PC and the MCU. Then you send high-level command quickly to the MCU, the firmware handles the bit operations, and MCU returns single or packed data with higher USB utilization. If you go down below to the silicon, for instance in ARM-Cortex, you will notice that Debug Ports can access almost any peripheral inside MCU including RAM and Flash. However, handling on-chip Flash Memory from the DP is different and more complicated than handling it by the CPU itself. CPU has fast access to simply read/write Flash Memory. DP needs to perform dozens of operations at low level to drive Flash Controller in the first place. RAM is usually mapped to the main bus and can be written even faster than Flash. This is why in modern solutions like Open-Sourcee OpenSDA/DAPLink and commercial Interfaces so called Flash Algorithms are used. At first Interface detects the Target MCU, then it uploads chunk of binary (so called Flash Algorithm) to RAM, then FlashAlgo takes over the CPU and control the flashing process from within the MCU. This is the fastest possible way. PC with dedicated software called Debug Bridge like pyOCD or OpenOCD connects to Debug Probe over USB, that connects to MCU Debug Port over GPIO, that launches FlashAlgo binary from MCU's RAM, then Debug Bridge simply sends request and takes data to/from FlashAlgo (for instance using CMSIS-DAP protocol). Kind of interesting :-) -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info From nobody Fri Apr 8 17:00:54 2022 X-Original-To: hardware@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 2A5A91842FF4 for ; Fri, 8 Apr 2022 17:01:15 +0000 (UTC) (envelope-from tomek@cedro.info) Received: from mail-oi1-x236.google.com (mail-oi1-x236.google.com [IPv6:2607:f8b0:4864:20::236]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KZkzY5nMsz3Hcc for ; Fri, 8 Apr 2022 17:01:13 +0000 (UTC) (envelope-from tomek@cedro.info) Received: by mail-oi1-x236.google.com with SMTP id k10so9491421oia.0 for ; Fri, 08 Apr 2022 10:01:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cedro.info; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=xD+mrU2SDLUcMis6/LwVWv63Y3x34R5V6DC+w4hi4bY=; b=ICupKFw4h74eN0PRdoyWChpUdedEu1ED2G0G+/cBRgnyzcWpow8T6IXaZ4glC6u5v2 +QJCd+EPPgcMXTpdZEmd48IFo+KNwglAXQBc7mvKL3hIic/FkIB65CqG1pl/IleDir1E Kv9HY68QZEvzJYjTU9crLTFJ74zV0U6IyEbi/jfEJFmU2G38qUBOtmeThsUDgmTh8bHK JyfpPs5HlwcdrGOVLnWZxLALo8Th5rr/665Nllwu2p1pASZASicL+7JiCC0eEj19S+Dw 1YQjOzkeIiqldbjTkZRAn5qj8bKgvbIpzdUYqE83EThALI9jse9kyjPS99izGidGRMF/ Qebw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=xD+mrU2SDLUcMis6/LwVWv63Y3x34R5V6DC+w4hi4bY=; b=fBwwriNgpscFsfYAMcEmU0HuEA3ybvl4AP2tFZ2STgyzL8adZGtTIhS1FUX6SXZgYi W/eJT306dlaX1AaE+8LGdbNjKlwfhbkSERZnzY9c55K1lXBmimuUvWXp8+tN+BWR1gr4 JA2jLNYUydcfiKTMBXAvjftj+aFdQh9PxydY/KrWVWtHZUaF4kYRPyPfhbtU7xg+ViNE 5q94cH+/AshTPKKxjia0Vh2OkQGrjzcSEPb4p/OhVKfT9KOYz+BFZW3F+hbsRs36zNe4 fZWoW03emuU0dHo6nysiimNort4C4M4YZdoQlN4A6PyYPWANdawOFsCTYN9CEYVQf73N 7H8w== X-Gm-Message-State: AOAM532De+XApqDjssNzMN/5+lmUZPSTPYd+GrQjg0QblNlhR6FK6GgC XxKsEyonG61nAZ2EY+d7JOWgT/cXpTjzD4c+ X-Google-Smtp-Source: ABdhPJxSzuTZykg1PpJUHaWtsejF9Urz+Sw+rkNdI52i8TZv8j+7ZeXyF4aSJJAl+UvYEn0uEZ2VSA== X-Received: by 2002:a05:6808:210f:b0:2da:4e41:f4ce with SMTP id r15-20020a056808210f00b002da4e41f4cemr321081oiw.43.1649437266749; Fri, 08 Apr 2022 10:01:06 -0700 (PDT) Received: from mail-oi1-f173.google.com (mail-oi1-f173.google.com. [209.85.167.173]) by smtp.gmail.com with ESMTPSA id p11-20020acabf0b000000b002ef93581a46sm8729380oif.2.2022.04.08.10.01.06 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 08 Apr 2022 10:01:06 -0700 (PDT) Received: by mail-oi1-f173.google.com with SMTP id 12so9407544oix.12 for ; Fri, 08 Apr 2022 10:01:06 -0700 (PDT) X-Received: by 2002:aca:1e16:0:b0:2ef:4b94:2cda with SMTP id m22-20020aca1e16000000b002ef4b942cdamr302080oic.149.1649437266095; Fri, 08 Apr 2022 10:01:06 -0700 (PDT) List-Id: General discussion of FreeBSD hardware List-Archive: https://lists.freebsd.org/archives/freebsd-hardware List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hardware@freebsd.org MIME-Version: 1.0 References: <3A781DFA-1E2C-41A5-8053-C90A806244DC@Chaos1.DE> <34a747ea-2ee5-660f-71c6-dc00d5de337f@selasky.org> <9334c4f0-3ecf-c046-420f-516e39379981@selasky.org> <976BDBEB-8B57-4541-A0B7-3F2C89498DC6@Chaos1.DE> <7190bdde-22bc-79ee-06d0-d0114a3ffbad@selasky.org> <7CDFB049-241F-4C31-A7B1-A7D6BDE6A002@Chaos1.DE> In-Reply-To: From: Tomek CEDRO Date: Fri, 8 Apr 2022 19:00:54 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: timeouts on USB ISP programmer To: Axel Rau Cc: Hans Petter Selasky , hardware@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4KZkzY5nMsz3Hcc X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cedro.info header.s=google header.b=ICupKFw4; dmarc=none; spf=none (mx1.freebsd.org: domain of tomek@cedro.info has no SPF policy when checking 2607:f8b0:4864:20::236) smtp.mailfrom=tomek@cedro.info X-Spamd-Result: default: False [-3.30 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[cedro.info:s=google]; NEURAL_HAM_MEDIUM(-1.00)[-0.996]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[hardware@freebsd.org]; DMARC_NA(0.00)[cedro.info]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[cedro.info:+]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::236:from,209.85.167.173:received]; MLMMJ_DEST(0.00)[hardware]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On Fri, Apr 8, 2022 at 6:04 PM Tomek CEDRO wrote: > Good news is that you can only provide `-P usb` if you have one > Programmer Interface and it is defined in the configuration. In your > case if you want to use specific serial number that would probably be > `-P usb:552` parameter. Turns out when you have valid Programmer Interface configuration and it is provided with `-c` then no need to use `-P` at all if you only use one interface :-) -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info From nobody Fri Apr 8 18:02:27 2022 X-Original-To: hardware@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 5102D1A8E0EC for ; Fri, 8 Apr 2022 18:02:41 +0000 (UTC) (envelope-from Axel.Rau@Chaos1.DE) Received: from mailout4.lrau.net (mailout4.lrau.net [IPv6:2a05:bec0:26:2::73]) (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 "mailout4.lrau.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KZmLR4k2Kz3p5s for ; Fri, 8 Apr 2022 18:02:39 +0000 (UTC) (envelope-from Axel.Rau@Chaos1.DE) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=chaos1.de; s=email1; h=References:To:Cc:In-Reply-To:Date:Subject:Mime-Version: Content-Type:Message-Id:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=gKLrtMCI9SFYaRLNTg0aLsiP4UhPyGd+RF+MtEpMJW8=; b=bZ4xc8CMKF954/7+pYdWRILM2q 75GebKi1mS3O1+60tg1O5tGgzNafxH0aRxVN9uoJCBbPnKtRgUOByRvakhgye25zlCqV9r3eelQZ2 fknYtqXbduf1VYyc++9PhWNcSFxX/RRuYQ8jfzuLIIsuhGZzbm+zbYgCTeta4x0YLAlyBXWUU0Gpw PXeor9GAVYcOhi7dKMP8PO+rZtfYBneufFZvB22YDNhw3ZDbZVoTEHv6hg3xoDkV/hWvV1WTAQN84 HbKR7TyKi5IyteemCFSlFG36Q6TqkA1qxOIEa2o9/x1yDyseNNSX4lJGne9fp7AGl7ozN17Y7FwBM ZYmNn1/Q==; Received: from [2a05:bec0:26:2::74] (helo=imap4.lrau.net) by mailout4.lrau.net with esmtp (Exim 4.95 (FreeBSD)) (envelope-from ) id 1ncswI-0006Pa-57; Fri, 08 Apr 2022 18:02:30 +0000 Received: from Axel.Rau@Chaos1.DE by imap5.lrau.net (Archiveopteryx 3.2.0) with esmtpsa id 1649440948-28523-26670/7/18; Fri, 8 Apr 2022 18:02:28 +0000 From: Axel Rau Message-Id: <24AA646A-698B-4D41-9668-3F9F99732D02@Chaos1.DE> Content-Type: multipart/alternative; boundary="Apple-Mail=_7C276384-4B7A-4B14-85CB-0A9E30D007B6" List-Id: General discussion of FreeBSD hardware List-Archive: https://lists.freebsd.org/archives/freebsd-hardware List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hardware@freebsd.org Mime-Version: 1.0 Subject: Re: timeouts on USB ISP programmer Date: Fri, 8 Apr 2022 20:02:27 +0200 In-Reply-To: Cc: Hans Petter Selasky , hardware@freebsd.org To: Tomek CEDRO References: <3A781DFA-1E2C-41A5-8053-C90A806244DC@Chaos1.DE> <34a747ea-2ee5-660f-71c6-dc00d5de337f@selasky.org> <9334c4f0-3ecf-c046-420f-516e39379981@selasky.org> <976BDBEB-8B57-4541-A0B7-3F2C89498DC6@Chaos1.DE> <7190bdde-22bc-79ee-06d0-d0114a3ffbad@selasky.org> <7CDFB049-241F-4C31-A7B1-A7D6BDE6A002@Chaos1.DE> X-Mailer: Apple Mail (2.3608.120.23.2.7) X-Rspamd-Queue-Id: 4KZmLR4k2Kz3p5s X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=chaos1.de header.s=email1 header.b=bZ4xc8CM; dmarc=none; spf=none (mx1.freebsd.org: domain of Axel.Rau@Chaos1.DE has no SPF policy when checking 2a05:bec0:26:2::73) smtp.mailfrom=Axel.Rau@Chaos1.DE X-Spamd-Result: default: False [-0.90 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[chaos1.de:s=email1]; NEURAL_HAM_MEDIUM(-1.00)[-0.999]; 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)[multipart/alternative,text/plain]; DMARC_NA(0.00)[chaos1.de]; TO_DN_SOME(0.00)[]; NEURAL_SPAM_SHORT(0.99)[0.994]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[chaos1.de:+]; DWL_DNSWL_NONE(0.00)[chaos1.de:dkim]; MLMMJ_DEST(0.00)[hardware]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:197071, ipnet:2a05:bec0::/29, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[2a05:bec0:26:2::73:from] X-ThisMailContainsUnwantedMimeParts: N --Apple-Mail=_7C276384-4B7A-4B14-85CB-0A9E30D007B6 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi Tomek, > Am 08.04.2022 um 18:04 schrieb Tomek CEDRO : >=20 > Here is an example `~/.avrduderc` to try out. It should work out of Thanks a lot. My 1st trial gives this (more trials in 2 hours): root@home2l:/ # avrdude -p t85 -t -vvv avrdude: Version 6.4 Copyright (c) Brian Dean, http://www.bdmicro.com/ Copyright (c) Joerg Wunsch System wide configuration file is "/usr/local/etc/avrdude.conf" User configuration file is "/root/.avrduderc" Using Port : usb Using Programmer : diamex-avr-usb E avrftdi_open(706): Error -6 occurred: ftdi_usb_reset failed avrdude done. Thank you. root@home2l:/ # avrdude -p t85 -P usb -t -vvv avrdude: Version 6.4 Copyright (c) Brian Dean, http://www.bdmicro.com/ Copyright (c) Joerg Wunsch System wide configuration file is "/usr/local/etc/avrdude.conf" User configuration file is "/root/.avrduderc" Using Port : usb Using Programmer : diamex-avr-usb E avrftdi_open(706): Error -3 occurred: device not found avrdude done. Thank you. Axel =2D-- PGP-Key: CDE74120 =E2=98=80 computing @ chaos claudius --Apple-Mail=_7C276384-4B7A-4B14-85CB-0A9E30D007B6 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Hi Tomek,

Am 08.04.2022 um 18:04 schrieb Tomek CEDRO <tomek@cedro.info>:

Here is an example `~/.avrduderc` to try out. It should work = out of

Thanks a = lot.

My 1st trial gives = this (more trials in 2 hours):

=
root@home2l:/ # avrdude -p t85 -t -vvv

avrdude: Version 6.4
   =       Copyright (c) Brian Dean, http://www.bdmicro.com/
         Copyright (c) Joerg = Wunsch

         System wide = configuration file is "/usr/local/etc/avrdude.conf"
         User configuration file is = "/root/.avrduderc"
=
         = Using Port                  =   : usb
     =     Using Programmer            =   : diamex-avr-usb
E avrftdi_open(706): = Error -6 occurred: ftdi_usb_reset failed

avrdude done.&nbs= p; Thank you.
=
root@home2l:/ # avrdude -p t85 -P usb -t = -vvv

avrdude: Version 6.4
&nbs= p;        Copyright (c) Brian Dean, http://www.bdmicro.com/
         Copyright (c) Joerg = Wunsch

         System wide = configuration file is "/usr/local/etc/avrdude.conf"
         User configuration file is = "/root/.avrduderc"
=
         = Using Port                  =   : usb
     =     Using Programmer            =   : diamex-avr-usb
E avrftdi_open(706): = Error -3 occurred: device not found

avrdude done.&nbs= p; Thank you.

Axel
---
PGP-Key: CDE74120  =E2=98=80 =  computing @ chaos claudius

--Apple-Mail=_7C276384-4B7A-4B14-85CB-0A9E30D007B6-- From nobody Fri Apr 8 18:39:31 2022 X-Original-To: hardware@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 3384A1A96E6A for ; Fri, 8 Apr 2022 18:39:53 +0000 (UTC) (envelope-from tomek@cedro.info) Received: from mail-oi1-x234.google.com (mail-oi1-x234.google.com [IPv6:2607:f8b0:4864:20::234]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KZn9N0YyRz3tZh for ; Fri, 8 Apr 2022 18:39:51 +0000 (UTC) (envelope-from tomek@cedro.info) Received: by mail-oi1-x234.google.com with SMTP id k10so9764681oia.0 for ; Fri, 08 Apr 2022 11:39:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cedro.info; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=x+lnrpq2uEp6Qr7yB5BkbOZHepUF2jiG7TU5qgGpa8w=; b=iUkLNq7WTMk75N/ajYDOQkCZKlJcNCVrUvvmLP/OCIpUR4FvohvwagZcCKEzYsE8qZ k74WRZkzqP2ENYjpLIuXlhfoUcKXM1HT/mYDOLLLRzHbCjhG/bqOJW2cK4t7A1oEaOdl yQBikA4/VQkErRD2XGLi41J4no+FT3DS0Hwq/YXTgshHFdQZcwU8cleDIeS7/duloiiU RtZqBiU6jzcSg+5MMZQRoaDQHjPP+gylxUeBj0+kzQtO/DQWpfdY+cV5iZ9KEOqdyzb0 Z/TUFsTDXaXEEoxVUDnTNQTC7oespdHWRuoiGDchK1OE2pbZrT9sNtaWMxtglnNd9/BY XTJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=x+lnrpq2uEp6Qr7yB5BkbOZHepUF2jiG7TU5qgGpa8w=; b=KaQYeL8wbV2qnHIYKaMegjX9yf6qzirftx/TEGw1FyV7UZOPNx3bOtNqmZMKIykiVv dt+MsK9gSpxo6rRUvWlcNUiADMiyCBOy3sp0ng/vKJdfdabNWFem8bPBJE74/jEyalJg 1tEnOfCKSDU+LxoOcmC2cvtBtUYD6JSGvquPUfNU+s7aCI08C9PnSdze7zbuUXvUbhRE rVq53Nw5omrEtEPde226yW/IT3D9nOk3MWdG6x+XhZN5CcvyGvkMT29YcYL+aOC7BwNb rBLAIJWkt1WNINFMb+MO4kiuX+5U8oXIu3OfzenSIFBV4Q7qLWcKhT/+ft9ZC/8TB4fJ sDcw== X-Gm-Message-State: AOAM532h+pUM9xMWj0R5AuUG6n0t+IgmvpLbMA8CPdn/wVPTRAfmGxi9 64uBcVJL4pHChzRKAOGFPMfjgrKm2JVAja/B X-Google-Smtp-Source: ABdhPJzlHSBZlrKwhcdIxI+30ZqHQZdYRcAWdyVIR6hiEcoQuqR/8MfYHbSl/RBzIOaa6SZkxryrLA== X-Received: by 2002:a54:438e:0:b0:2ec:ddab:c219 with SMTP id u14-20020a54438e000000b002ecddabc219mr550469oiv.180.1649443184726; Fri, 08 Apr 2022 11:39:44 -0700 (PDT) Received: from mail-oa1-f43.google.com (mail-oa1-f43.google.com. [209.85.160.43]) by smtp.gmail.com with ESMTPSA id t14-20020a05683014ce00b005b23657f66esm9343948otq.31.2022.04.08.11.39.44 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 08 Apr 2022 11:39:44 -0700 (PDT) Received: by mail-oa1-f43.google.com with SMTP id 586e51a60fabf-df02f7e2c9so10587336fac.10 for ; Fri, 08 Apr 2022 11:39:44 -0700 (PDT) X-Received: by 2002:a05:6870:9589:b0:dc:4640:ef89 with SMTP id k9-20020a056870958900b000dc4640ef89mr9302333oao.175.1649443183770; Fri, 08 Apr 2022 11:39:43 -0700 (PDT) List-Id: General discussion of FreeBSD hardware List-Archive: https://lists.freebsd.org/archives/freebsd-hardware List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hardware@freebsd.org MIME-Version: 1.0 References: <3A781DFA-1E2C-41A5-8053-C90A806244DC@Chaos1.DE> <34a747ea-2ee5-660f-71c6-dc00d5de337f@selasky.org> <9334c4f0-3ecf-c046-420f-516e39379981@selasky.org> <976BDBEB-8B57-4541-A0B7-3F2C89498DC6@Chaos1.DE> <7190bdde-22bc-79ee-06d0-d0114a3ffbad@selasky.org> <7CDFB049-241F-4C31-A7B1-A7D6BDE6A002@Chaos1.DE> <24AA646A-698B-4D41-9668-3F9F99732D02@Chaos1.DE> In-Reply-To: <24AA646A-698B-4D41-9668-3F9F99732D02@Chaos1.DE> From: Tomek CEDRO Date: Fri, 8 Apr 2022 20:39:31 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: timeouts on USB ISP programmer To: Axel Rau Cc: Hans Petter Selasky , hardware@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4KZn9N0YyRz3tZh X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cedro.info header.s=google header.b=iUkLNq7W; dmarc=none; spf=none (mx1.freebsd.org: domain of tomek@cedro.info has no SPF policy when checking 2607:f8b0:4864:20::234) smtp.mailfrom=tomek@cedro.info X-Spamd-Result: default: False [-3.30 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[cedro.info:s=google]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[hardware@freebsd.org]; DMARC_NA(0.00)[cedro.info]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[cedro.info:+]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCVD_IN_DNSWL_NONE(0.00)[209.85.160.43:received,2607:f8b0:4864:20::234:from]; MLMMJ_DEST(0.00)[hardware]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On Fri, Apr 8, 2022 at 8:02 PM Axel Rau wrote: > Am 08.04.2022 um 18:04 schrieb Tomek CEDRO : > My 1st trial gives this (more trials in 2 hours): > > root@home2l:/ # avrdude -p t85 -t -vvv > > avrdude: Version 6.4 > Copyright (c) Brian Dean, http://www.bdmicro.com/ > Copyright (c) Joerg Wunsch > > System wide configuration file is "/usr/local/etc/avrdude.conf" > User configuration file is "/root/.avrduderc" > > Using Port : usb > Using Programmer : diamex-avr-usb > E avrftdi_open(706): Error -6 occurred: ftdi_usb_reset failed > > avrdude done. Thank you. Hmm now there is a problem with ftdi open / reset. You are running as root so it is not a permission problem. Is it possible to disassemble your interface and take photos of the electronics inside? We need to make sure what exact chip is inside :-) -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info From nobody Fri Apr 8 21:02:46 2022 X-Original-To: hardware@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 63A671A91E09 for ; Fri, 8 Apr 2022 21:02:58 +0000 (UTC) (envelope-from Axel.Rau@Chaos1.DE) Received: from mailout5.lrau.net (mailout5.lrau.net [IPv6:2a05:bec0:26:5::73]) (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 "mailout5.lrau.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KZrLT3Fstz4nQH for ; Fri, 8 Apr 2022 21:02:57 +0000 (UTC) (envelope-from Axel.Rau@Chaos1.DE) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=chaos1.de; s=email1; h=References:To:Cc:In-Reply-To:Date:Subject:Mime-Version: Content-Type:Message-Id:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=bUifNGyptvzaOhs3ZV6c5muZ/F2vRXUfIRd+vB38KpY=; b=dglXrL3bMN/X6QDasrF3WkzyKE 4dPLVmuFKUsL80S043eKOPHxa5lBhpF8ZbniN1gwWPTGp5mxoL4CcvGJO3c+y3jzA0CBC9MxGjEDE U1JhJt42XJ3uJwa3VCB0lzs3OHrE0UNTD5Iw45Amv0ZvwBYdNNGR3Os/eOE/fVcIytzdEJYjI7UUE pc6NyBP4nCWwH0GR8eD1q4oTwh8aR926XM2YNQJVYTnI0YVWQ5Ge/VLwkQlJaaEeF+hOuGfaiXqVU pCBTAbKjUAbLiTphLAw5/SXEswjJ1fsfYxjH53zRO5+JsIc/UauYYl0uOOnX4Hxhv8ZN/l3bJc0W6 mHaqLj5g==; Received: from [2a05:bec0:26:5::74] (helo=imap5.lrau.net) by mailout5.lrau.net with esmtp (Exim 4.95 (FreeBSD)) (envelope-from ) id 1ncvko-0008tI-8B; Fri, 08 Apr 2022 21:02:50 +0000 Received: from Axel.Rau@Chaos1.DE by imap5.lrau.net (Archiveopteryx 3.2.0) with esmtpsa id 1649451767-28869-26670/7/12; Fri, 8 Apr 2022 21:02:47 +0000 From: Axel Rau Message-Id: <1A94816D-E3C1-4488-A5A9-784BAC68AE74@Chaos1.DE> Content-Type: multipart/alternative; boundary="Apple-Mail=_95EE99BF-0E8D-418C-BC6A-939B3D3FD347" List-Id: General discussion of FreeBSD hardware List-Archive: https://lists.freebsd.org/archives/freebsd-hardware List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hardware@freebsd.org Mime-Version: 1.0 Subject: Re: timeouts on USB ISP programmer Date: Fri, 8 Apr 2022 23:02:46 +0200 In-Reply-To: Cc: Hans Petter Selasky , hardware@freebsd.org To: Tomek CEDRO References: <3A781DFA-1E2C-41A5-8053-C90A806244DC@Chaos1.DE> <34a747ea-2ee5-660f-71c6-dc00d5de337f@selasky.org> <9334c4f0-3ecf-c046-420f-516e39379981@selasky.org> <976BDBEB-8B57-4541-A0B7-3F2C89498DC6@Chaos1.DE> <7190bdde-22bc-79ee-06d0-d0114a3ffbad@selasky.org> <7CDFB049-241F-4C31-A7B1-A7D6BDE6A002@Chaos1.DE> <24AA646A-698B-4D41-9668-3F9F99732D02@Chaos1.DE> X-Mailer: Apple Mail (2.3608.120.23.2.7) X-Rspamd-Queue-Id: 4KZrLT3Fstz4nQH X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=chaos1.de header.s=email1 header.b=dglXrL3b; dmarc=none; spf=none (mx1.freebsd.org: domain of Axel.Rau@Chaos1.DE has no SPF policy when checking 2a05:bec0:26:5::73) smtp.mailfrom=Axel.Rau@Chaos1.DE X-Spamd-Result: default: False [-2.90 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[chaos1.de:s=email1]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; 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)[multipart/alternative,text/plain]; DMARC_NA(0.00)[Chaos1.DE]; TO_DN_SOME(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[chaos1.de:+]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DWL_DNSWL_NONE(0.00)[chaos1.de:dkim]; MLMMJ_DEST(0.00)[hardware]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:197071, ipnet:2a05:bec0::/29, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[2a05:bec0:26:5::73:from] X-ThisMailContainsUnwantedMimeParts: N --Apple-Mail=_95EE99BF-0E8D-418C-BC6A-939B3D3FD347 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > Am 08.04.2022 um 20:39 schrieb Tomek CEDRO : >=20 > Is it possible to disassemble your interface and take photos of the > electronics inside? We need to make sure what exact chip is inside :-) https://www.chaos1.de/downloads/diamex_photos.tar.gz Axel =2D-- PGP-Key: CDE74120 =E2=98=80 computing @ chaos claudius --Apple-Mail=_95EE99BF-0E8D-418C-BC6A-939B3D3FD347 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
=

= Am 08.04.2022 um 20:39 schrieb Tomek CEDRO <tomek@cedro.info>:

Is it = possible to disassemble your interface and take photos of the
electronics inside? We need to make sure what exact chip is = inside :-)
https://www.chaos1.de/downloads/diamex_photos.tar.gz=

Axel
---
PGP-Key: CDE74120  =E2=98=80 =  computing @ chaos claudius

--Apple-Mail=_95EE99BF-0E8D-418C-BC6A-939B3D3FD347-- From nobody Fri Apr 8 23:39:51 2022 X-Original-To: hardware@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 10CCE1A97836 for ; Fri, 8 Apr 2022 23:40:12 +0000 (UTC) (envelope-from tomek@cedro.info) Received: from mail-oi1-x22c.google.com (mail-oi1-x22c.google.com [IPv6:2607:f8b0:4864:20::22c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KZvqv272pz3QTS for ; Fri, 8 Apr 2022 23:40:11 +0000 (UTC) (envelope-from tomek@cedro.info) Received: by mail-oi1-x22c.google.com with SMTP id e4so10403491oif.2 for ; Fri, 08 Apr 2022 16:40:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cedro.info; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=sYgojwY5g3txC2HOqEu53Pf8kPQ+GFPxQk44oK87z5I=; b=LlOVXCdoxkKylO3bKAgYmMqXM0B8rY4dFW//BJ3oqX9F2q8h8jRcAWvx49rMxn0Egu g7s7x7UoODVleSkjhTBWZR/Rr9WzgDtJkPlmkqDP2TdC1+ZpxNPpwZx42Hgb64an9zCQ uPkAKlkv0vv1xDz0A8rJMLYg0PLgEn1lGCwIxusAvXHXZ6SSNdezq+YMSbawhztFCg5r o6HAJ0YNPoIkL4mHD+yQ9uC1K6N/v5cQ5xMRPsdmbbF0oiyKlBWuCAcpNRPLfyoGanUc bX0IxTkLR7ClW4LXhTFaMUXGsBeloS9Wei1CwjmsyJ54BcB0hjO9JxXg5XIRaYLelbUP V5qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=sYgojwY5g3txC2HOqEu53Pf8kPQ+GFPxQk44oK87z5I=; b=1APOQwsn9/YuWAf8zsZuo4Zvqr638zQThfLB10M9vL66wK8QSwN2kORgFp+YN7/o8L iKFxeAG5lJntvvgyliZhdy7vuCiouTldR4KJlMBSmDHHYdgK0XRTOzrab+Q5bThnWZx5 aCN99f8pow8HM5nAVYgbwSGqGM91p+yJp0o+o82+i+k9k5k9c1O1Ql3sVfZfuyK37q5q 8+OaO6nhaQ83FMDjx8ZdcDezjtK7MAdhOagifWsF6JqwF8PY8mJO5QuMxXq9rnBZfrTo Be6b0YaBGusr9H/1gBxUhvcSNreO4wpnhmC82b8TIulPr5u39qnpy/u2LQYAlTIWrOWs u4Mw== X-Gm-Message-State: AOAM531U88PMrNhFbW/TdeYeRFVAzmDndIyAIt1YEdwktxdRvywSbSN3 FUV/iJZ3EdgYCME3UeGaBWYaZnHYcd42S/aX X-Google-Smtp-Source: ABdhPJykxMK5JrtLy+ViaZYmS11Dd/HhLrynZycXKu8qGPlGDUyc1lANqzpdnydTZumQEy1jsohJJg== X-Received: by 2002:a05:6808:318:b0:2ec:b689:dceb with SMTP id i24-20020a056808031800b002ecb689dcebmr1013578oie.103.1649461204068; Fri, 08 Apr 2022 16:40:04 -0700 (PDT) Received: from mail-oa1-f41.google.com (mail-oa1-f41.google.com. [209.85.160.41]) by smtp.gmail.com with ESMTPSA id f50-20020a9d03b5000000b005c959dd643csm9720295otf.3.2022.04.08.16.40.03 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 08 Apr 2022 16:40:03 -0700 (PDT) Received: by mail-oa1-f41.google.com with SMTP id 586e51a60fabf-deb9295679so11329848fac.6 for ; Fri, 08 Apr 2022 16:40:03 -0700 (PDT) X-Received: by 2002:a05:6870:9589:b0:dc:4640:ef89 with SMTP id k9-20020a056870958900b000dc4640ef89mr9758377oao.175.1649461203430; Fri, 08 Apr 2022 16:40:03 -0700 (PDT) List-Id: General discussion of FreeBSD hardware List-Archive: https://lists.freebsd.org/archives/freebsd-hardware List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hardware@freebsd.org MIME-Version: 1.0 References: <3A781DFA-1E2C-41A5-8053-C90A806244DC@Chaos1.DE> <34a747ea-2ee5-660f-71c6-dc00d5de337f@selasky.org> <9334c4f0-3ecf-c046-420f-516e39379981@selasky.org> <976BDBEB-8B57-4541-A0B7-3F2C89498DC6@Chaos1.DE> <7190bdde-22bc-79ee-06d0-d0114a3ffbad@selasky.org> <7CDFB049-241F-4C31-A7B1-A7D6BDE6A002@Chaos1.DE> <24AA646A-698B-4D41-9668-3F9F99732D02@Chaos1.DE> <1A94816D-E3C1-4488-A5A9-784BAC68AE74@Chaos1.DE> In-Reply-To: <1A94816D-E3C1-4488-A5A9-784BAC68AE74@Chaos1.DE> From: Tomek CEDRO Date: Sat, 9 Apr 2022 01:39:51 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: timeouts on USB ISP programmer To: Axel Rau Cc: Hans Petter Selasky , hardware@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4KZvqv272pz3QTS X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cedro.info header.s=google header.b=LlOVXCdo; dmarc=none; spf=none (mx1.freebsd.org: domain of tomek@cedro.info has no SPF policy when checking 2607:f8b0:4864:20::22c) smtp.mailfrom=tomek@cedro.info X-Spamd-Result: default: False [-3.18 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[cedro.info:s=google]; NEURAL_HAM_MEDIUM(-1.00)[-0.998]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[hardware@freebsd.org]; DMARC_NA(0.00)[cedro.info]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[cedro.info:+]; NEURAL_HAM_SHORT(-0.88)[-0.881]; RCVD_IN_DNSWL_NONE(0.00)[209.85.160.41:received,2607:f8b0:4864:20::22c:from]; MLMMJ_DEST(0.00)[hardware]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On Fri, Apr 8, 2022 at 11:02 PM Axel Rau wrote: > Am 08.04.2022 um 20:39 schrieb Tomek CEDRO : > > Is it possible to disassemble your interface and take photos of the > electronics inside? We need to make sure what exact chip is inside :-) > https://www.chaos1.de/downloads/diamex_photos.tar.gz This is not an FT2232H based device this is why libftdi could not reset it = :-) What I can see is from the photo: 1. 74HC125 Quad Buffer Line Driver [1]. 2. STM32F042F6P6 ARM-Cortex-M0 MCU [2]. As stated on product website [3] this Diamex-Avr-USB supports STK500v2 and AVRISPV2 protocols. Details on internal dip switch configuration and available functions is provided in product documentation [4]. Documentation does not mention Debug, only Flashing. >From the default avrdude.conf we can read that AVRISPV2 programmer also uses STK500V2 protocol. There is no VID:PID provided in STK500V2 programmer definition so there may be some autodetection mechanism implemented. Just try `avrdude -c stk500v2 -p 85 -vvv -t` :-) It also matters on how you connect to the Target AVR - is it already powered on some working board or you are connecting to a "bare" AVR? Also what is the Target i85 or t861? >From the configuration of your dip switches it looks like you are providing 5V from the programmer to the Target, so you are connecting to a "bare" AVR..? Both ATtiny85 [5] and ATtiny861 [6] are up to 5.5V tolerant so it should not burn them "alone". But if you are connecting to some board with other components it is critical to first verify what is the acceptable maximum voltage that components can work with. Old electronics used 5V. New electronics use 1,8..3.3V. If you provide 5V from the programmer to the board working with 3.3V or 1.8V you can burn the board components. If you use some bigger board with its own power supply both dip-switches should be in position OFF. VCC connection from Programmer to AVR does not seem required. Here is an extract from Diamex-Avr-USB documentation [4]: Switch position for normal programming in user=E2=80=99s switching=3D both = switch OFF If voltage supply of the target is needed. For a single AVR controller only without own switching 5V are required (for example Diamex program adapter/pivot lever) 1=3Don 2=3Don General: 3.3V max. 120mA, 5V 150-500mA. Depending on which computer is used= . Switch 1 off=3D target voltage off/on, switch 2 off=3D 3.3V / on=3D5.0V. Th= e programmer doesn=E2=80=99t need a power supply from the target for the programming operation. Long story short: * Put both dip-switches to OFF if you use external board (no VCC connection required). They may stay ON if you program "bare" AVR (you need to connect VCC, SW1=3DON, SW2 OFF=3D3.3V ON=3D5V). * Try `avrdude -c stk500v2 -p 85 -vvv -t` and see of that connects to Programmer. * If programmer is connected but AVR communication problems you may slow down the STK500v2 bit clock with `-B` parameter or ISP clock with `-i` according to [4] (i.e. `-B 250` will result in 4kHz bit clock). Good luck and let us know if that works :-) Tomek [1] https://assets.nexperia.com/documents/data-sheet/74HC_HCT125.pdf [2] https://www.st.com/en/microcontrollers-microprocessors/stm32f042f6.html [3] https://www.diamex.de/dxshop/DIAMEX-USB-ISP-Programmer-Stick-fuer-AVR [4] https://www.diamex.de/dxshop/mediafiles/Sonstiges/ENG%20ISP%20Programme= r.pdf [5] https://ww1.microchip.com/downloads/en/DeviceDoc/Atmel-2586-AVR-8-bit-M= icrocontroller-ATtiny25-ATtiny45-ATtiny85_Datasheet-Summary.pdf [6] https://ww1.microchip.com/downloads/en/DeviceDoc/Atmel-2588-8-bit-AVR-M= icrocontrollers-tinyAVR-ATtiny261-ATtiny461-ATtiny861_Datasheet-Summary.pdf --=20 CeDeROM, SQ7MHZ, http://www.tomek.cedro.info From nobody Sat Apr 9 16:44:33 2022 X-Original-To: hardware@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 E69C61A9F71F for ; Sat, 9 Apr 2022 17:33:40 +0000 (UTC) (envelope-from tomek@cedro.info) Received: from mail-oa1-x29.google.com (mail-oa1-x29.google.com [IPv6:2001:4860:4864:20::29]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KbMfX17y1z3JRs for ; Sat, 9 Apr 2022 17:33:40 +0000 (UTC) (envelope-from tomek@cedro.info) Received: by mail-oa1-x29.google.com with SMTP id 586e51a60fabf-d6ca46da48so12894518fac.12 for ; Sat, 09 Apr 2022 10:33:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cedro.info; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=GktcNr0pYBSe2UlE+xjONvPOrycT6qRPHcV7qsDqiJ4=; b=GYPziQ8NhPSTWn7sQXVC9WDn6L6FOFUEjQ5I3rGNtawDGJuVOAkGrI7hLI0ahGwDqA XsA8hhZ5pLlQDN/WvBqvnAr5IKgfs3UYVK/KivmN8O51x1xKM9kvPKirxaOQxObFiXbj ersnoZbIsEOrEFkVDrLbe2GWrOFKSb+u1hHFaFTBZgW8+7gbrVJB5YjRld0i7yGkHP5B FbEX4TnjIh3WLAcs529n4WThaE/ylgxfQ1UGmOrhM8NcavkIv2UnAxe+bWazJLpzYy87 +PbM2Gxf2ba2uPlB9GMktwltEn4AIykO4ufX1MuH3ElssJQIENkdApTgKUaAx46yVQZd GVzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=GktcNr0pYBSe2UlE+xjONvPOrycT6qRPHcV7qsDqiJ4=; b=WVKVl7lL+75OEFpic62HnyDqddcYlvPCnshbIRG9FRIB7nLgeKdCbkwX3KgKrm8o66 hWmgki6DladPWfrEAsvZxaCttko/YeEI8hW9kE7fJ/CUJl+Y+j5e2ekFSMkoYWDce3Ig I8U0e4M5AdQYz6mRGwbcTiouKLsIdmCeIltHRMpV7Szq7XJ0UJgCvn9CZ16hOEvpGvNI d+xRt0ctMgOsBYt0CBh1Ml6EkUyJWtzibSLZS6Rl01dGbggbwAOmMEhHMhVVa8Nz0Yh+ jI41/VI4rhejd35tco11I1F0mUpuvMCTUWTRsA2YRUuu33S83k099Hbwqhv7vdeA9kzY O8Lg== X-Gm-Message-State: AOAM533E7gVPUGk3bHVa+beBwwyYEj5MXQEGYpVf0j/ytuedoy9nnRFi a/zMrBZVNxEvNmIPYKbHibvogBLKTyxM+JpR X-Google-Smtp-Source: ABdhPJzm24pnhlRl2nrYSvY156d6xTR4gXMJFHN08hieuwzuZmQhNBJZiG8PT8e1R/ZJk35XXl9PtA== X-Received: by 2002:a05:6870:b69b:b0:e2:a6e6:d16b with SMTP id cy27-20020a056870b69b00b000e2a6e6d16bmr1532807oab.287.1649525619369; Sat, 09 Apr 2022 10:33:39 -0700 (PDT) Received: from mail-oi1-f170.google.com (mail-oi1-f170.google.com. [209.85.167.170]) by smtp.gmail.com with ESMTPSA id o187-20020a4a2cc4000000b00324f07ed8basm9599833ooo.32.2022.04.09.10.33.28 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 09 Apr 2022 10:33:28 -0700 (PDT) Received: by mail-oi1-f170.google.com with SMTP id q189so11918036oia.9 for ; Sat, 09 Apr 2022 10:33:28 -0700 (PDT) X-Received: by 2002:aca:1e16:0:b0:2ef:4b94:2cda with SMTP id m22-20020aca1e16000000b002ef4b942cdamr2067213oic.149.1649525608318; Sat, 09 Apr 2022 10:33:28 -0700 (PDT) List-Id: General discussion of FreeBSD hardware List-Archive: https://lists.freebsd.org/archives/freebsd-hardware List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hardware@freebsd.org MIME-Version: 1.0 References: <3A781DFA-1E2C-41A5-8053-C90A806244DC@Chaos1.DE> <34a747ea-2ee5-660f-71c6-dc00d5de337f@selasky.org> <9334c4f0-3ecf-c046-420f-516e39379981@selasky.org> <976BDBEB-8B57-4541-A0B7-3F2C89498DC6@Chaos1.DE> <7190bdde-22bc-79ee-06d0-d0114a3ffbad@selasky.org> <7CDFB049-241F-4C31-A7B1-A7D6BDE6A002@Chaos1.DE> <24AA646A-698B-4D41-9668-3F9F99732D02@Chaos1.DE> <1A94816D-E3C1-4488-A5A9-784BAC68AE74@Chaos1.DE> In-Reply-To: From: Tomek CEDRO Date: Sat, 9 Apr 2022 18:44:33 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: timeouts on USB ISP programmer To: Axel Rau Cc: Hans Petter Selasky , hardware@freebsd.org Content-Type: multipart/alternative; boundary="000000000000ee8e3f05dc3c1b33" X-Rspamd-Queue-Id: 4KbMfX17y1z3JRs X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cedro.info header.s=google header.b=GYPziQ8N; dmarc=none; spf=none (mx1.freebsd.org: domain of tomek@cedro.info has no SPF policy when checking 2001:4860:4864:20::29) smtp.mailfrom=tomek@cedro.info X-Spamd-Result: default: False [-1.36 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[cedro.info:s=google]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[hardware@freebsd.org]; DMARC_NA(0.00)[cedro.info]; NEURAL_SPAM_SHORT(0.93)[0.935]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[cedro.info:+]; RCVD_IN_DNSWL_NONE(0.00)[209.85.167.170:received,2001:4860:4864:20::29:from]; MLMMJ_DEST(0.00)[hardware]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:15169, ipnet:2001:4860:4864::/48, country:US]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N --000000000000ee8e3f05dc3c1b33 Content-Type: text/plain; charset="UTF-8" Two importan things I have noted while reading AVR datasheets: 1. Programming voltage is 5V. Unless reset is disabled then 12V is required on reset line. This is important if we program bare chip or chip on the board surrounded by components (that may not be 5V tolerant). 2. There are various programming protocols and interfaces for various avr chips. For instance Xplained416XNANO uses DebugWIRE protocol and connection to target MCU. From ATTiny85 datasheet it also looks it uses DebugWIRE for flashing and debug. But Xplained104XNANO uses TWI connection and protocol (the same as ATTiny10). I am working on using Xplained104XNANO to program ATtiny10, I have connection to Programmer, but simple rewire does not work (yet) to communicate with ATtiny10. Looks like knowing datasheet details and schematics of the hardware should not be skipped :-) -- CeDeROM, SQ7MHZ, https://www.tomek.cedro.info --000000000000ee8e3f05dc3c1b33 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Two importan things I have noted while reading AVR datash= eets:

1. Programming voltage is 5V. = Unless reset is disabled then 12V is required on reset line. This is import= ant if we program bare chip or chip on the board surrounded by components (= that may not be 5V tolerant).

2. There are various programming protocols and interfaces for various= avr chips. For instance Xplained416XNANO uses DebugWIRE protocol and conne= ction to target MCU. From ATTiny85 datasheet it also looks it uses DebugWIR= E for flashing and debug. But Xplained104XNANO uses TWI connection and prot= ocol (the same as ATTiny10).

I am working on using Xplained104XNANO to program ATtiny10, I have con= nection to Programmer, but simple rewire does not work (yet) to communicate= with ATtiny10.

Looks li= ke knowing datasheet details and schematics of the hardware should not be s= kipped :-)

--
CeDeROM, SQ7MHZ, https://www.tomek.cedro.info
--000000000000ee8e3f05dc3c1b33-- From nobody Sun Apr 10 10:37:33 2022 X-Original-To: hardware@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 559241A8CC10 for ; Sun, 10 Apr 2022 10:37:47 +0000 (UTC) (envelope-from Axel.Rau@Chaos1.DE) Received: from mailout5.lrau.net (mailout5.lrau.net [IPv6:2a05:bec0:26:5::73]) (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 "mailout5.lrau.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KbpN955wpz4VYK for ; Sun, 10 Apr 2022 10:37:45 +0000 (UTC) (envelope-from Axel.Rau@Chaos1.DE) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=chaos1.de; s=email1; h=References:To:Cc:In-Reply-To:Date:Subject:Mime-Version: Content-Type:Message-Id:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=4YxyJ5vNMqXWh+gzYwLV0UCHhYEW64WqA2aqmREzgDI=; b=eioUKTUG4R8ofXHfTX6XYhGlVR ej30u1eilt6h11+xFJJFoPJOKHm0aHeMtGdiXOFNJhpxBPV4P9+aEILAxhO+lBPWLIUz/6w6VvSZj hdUO38vX+NwyTUilMd2MD2ZaMVxPDZk+ud8MhmNoAE+sK5J3atv6BCnIRbGB9SRVxGA27UT44Xyy4 wDz6r0ZtqQJP+HKahOPRTKF8iTUlu18aagLv+kvgI0UI9c7Y3Py9qej6E0SJGSMNqZyk82tDDW26B j4uMhSn4mKOiapptHsMSO1LzmYnxIU4yIgjIPgmFEleeyH1VXvSCs2u7OYhZruOd3qXn20Mh+rXvL K4XC56kQ==; Received: from [2a05:bec0:26:5::74] (helo=imap5.lrau.net) by mailout5.lrau.net with esmtp (Exim 4.95 (FreeBSD)) (envelope-from ) id 1ndUwr-0004T3-6h; Sun, 10 Apr 2022 10:37:37 +0000 Received: from Axel.Rau@Chaos1.DE by imap5.lrau.net (Archiveopteryx 3.2.0) with esmtpsa id 1649587053-45319-42070/7/5; Sun, 10 Apr 2022 10:37:33 +0000 From: Axel Rau Message-Id: Content-Type: multipart/alternative; boundary="Apple-Mail=_8D301401-0DBB-44A1-BBC7-948973466AC4" List-Id: General discussion of FreeBSD hardware List-Archive: https://lists.freebsd.org/archives/freebsd-hardware List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hardware@freebsd.org Mime-Version: 1.0 Subject: Re: timeouts on USB ISP programmer Date: Sun, 10 Apr 2022 12:37:33 +0200 In-Reply-To: Cc: Hans Petter Selasky , hardware@freebsd.org To: Tomek CEDRO References: <3A781DFA-1E2C-41A5-8053-C90A806244DC@Chaos1.DE> <34a747ea-2ee5-660f-71c6-dc00d5de337f@selasky.org> <9334c4f0-3ecf-c046-420f-516e39379981@selasky.org> <976BDBEB-8B57-4541-A0B7-3F2C89498DC6@Chaos1.DE> <7190bdde-22bc-79ee-06d0-d0114a3ffbad@selasky.org> <7CDFB049-241F-4C31-A7B1-A7D6BDE6A002@Chaos1.DE> <24AA646A-698B-4D41-9668-3F9F99732D02@Chaos1.DE> <1A94816D-E3C1-4488-A5A9-784BAC68AE74@Chaos1.DE> X-Mailer: Apple Mail (2.3608.120.23.2.7) X-Rspamd-Queue-Id: 4KbpN955wpz4VYK X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=chaos1.de header.s=email1 header.b=eioUKTUG; dmarc=none; spf=none (mx1.freebsd.org: domain of Axel.Rau@Chaos1.DE has no SPF policy when checking 2a05:bec0:26:5::73) smtp.mailfrom=Axel.Rau@Chaos1.DE X-Spamd-Result: default: False [-2.90 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[chaos1.de:s=email1]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; 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)[multipart/alternative,text/plain]; DMARC_NA(0.00)[chaos1.de]; TO_DN_SOME(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[chaos1.de:+]; NEURAL_HAM_SHORT(-1.00)[-0.999]; DWL_DNSWL_NONE(0.00)[chaos1.de:dkim]; MLMMJ_DEST(0.00)[hardware]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:197071, ipnet:2a05:bec0::/29, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[2a05:bec0:26:5::73:from] X-ThisMailContainsUnwantedMimeParts: N --Apple-Mail=_8D301401-0DBB-44A1-BBC7-948973466AC4 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > Am 09.04.2022 um 01:39 schrieb Tomek CEDRO : >=20 >=20 > Long story short: > * Put both dip-switches to OFF if you use external board (no VCC > connection required). They may stay ON if you program "bare" AVR (you > need to connect VCC, SW1=3DON, SW2 OFF=3D3.3V ON=3D5V). My switches are always on; my MCU is in the ZIFF socket. (-: > * Try `avrdude -c stk500v2 -p 85 -vvv -t` and see of that connects to > Programmer. That=E2=80=99s what I did. > * If programmer is connected but AVR communication problems you may > slow down the STK500v2 bit clock with `-B` parameter or ISP clock with > `-i` according to [4] (i.e. `-B 250` will result in 4kHz bit clock). >=20 > Good luck and let us know if that works :-) root@home2l:/ # avrdude -c stk500v2 -p t85 -P /dev/cuau1 -t -vvv -B 250 = -i 90 . . . avrdude: Version 6.4 Copyright (c) Brian Dean, http://www.bdmicro.com/ Copyright (c) Joerg Wunsch System wide configuration file is "/usr/local/etc/avrdude.conf" User configuration file is "/root/.avrduderc" User configuration file does not exist or is not a regular = file, skipping Using Port : /dev/cuau1 Using Programmer : stk500v2 Setting bit clk period : 250.0 Setting isp clock delay : 90 avrdude: ser_recv(): programmer is not responding avrdude: stk500v2_ReceiveMessage(): timeout avrdude: ser_recv(): programmer is not responding avrdude: stk500v2_ReceiveMessage(): timeout avrdude: ser_recv(): programmer is not responding avrdude: stk500v2_ReceiveMessage(): timeout I think, the DIAMEX is defective, I try to get another one. Perhaps the drivers are gone. How can I verify this? =2D-- PGP-Key: CDE74120 =E2=98=80 computing @ chaos claudius --Apple-Mail=_8D301401-0DBB-44A1-BBC7-948973466AC4 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
=

= Am 09.04.2022 um 01:39 schrieb Tomek CEDRO <tomek@cedro.info>:


Long story short:* Put both dip-switches to OFF if you use external board (no = VCC
connection required). They may stay ON if you = program "bare" AVR (you
need to connect VCC, = SW1=3DON, SW2 OFF=3D3.3V ON=3D5V).
My switches are = always on; my MCU is in the ZIFF socket. (-:
* Try `avrdude -c stk500v2 -p 85 -vvv -t` and see of that = connects to
Programmer.
That=E2=80=99s = what I did.

* If = programmer is connected but AVR communication problems you may
slow down the STK500v2 bit clock with `-B` parameter or ISP = clock with
`-i` according to [4] (i.e. `-B 250` will result = in 4kHz bit clock).

Good luck and let us know if that works :-)

root@home2l:/ = # avrdu= de -c stk500v2 -p t85 -P /dev/cuau1 -t -vvv -B 250 -i 90
. . .
avrdude: Version = 6.4
         = Copyright (c) Brian Dean, = http://www.bdmicro.com/
   =       Copyright (c) Joerg Wunsch

         System wide configuration = file is "/usr/local/etc/avrdude.conf"
&nbs= p;        User configuration file is "/root/.avrduder= c"
         User = configuration file does not exist or is not a regular file, skipping

         Using Port  =                   : = /dev/cuau1
         = Using Programmer              : = stk500v2
         = Setting bit clk period        : 250.0
         Setting isp clock delay = ;       :  90
avrdude: = ser_recv(): programmer is not responding
avrd= ude: stk500v2_ReceiveMessage(): timeout
avrd= ude: ser_recv(): programmer is not responding
avrd= ude: stk500v2_ReceiveMessage(): timeout
avrd= ude: ser_recv(): programmer is not responding
avrd= ude: stk500v2_ReceiveMessage(): timeout

I think, the DIAMEX is defective, = I try to get another one.
Perhaps the drivers = are gone.

How can I verify this?
---
PGP-Key: CDE74120  =E2=98=80 =  computing @ chaos claudius

--Apple-Mail=_8D301401-0DBB-44A1-BBC7-948973466AC4-- From nobody Sun Apr 10 10:44:20 2022 X-Original-To: hardware@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 E278F1A8E652 for ; Sun, 10 Apr 2022 10:44:22 +0000 (UTC) (envelope-from Axel.Rau@Chaos1.DE) Received: from mailout5.lrau.net (mailout5.lrau.net [IPv6:2a05:bec0:26:5::73]) (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 "mailout5.lrau.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KbpWp1tKVz4Wns for ; Sun, 10 Apr 2022 10:44:22 +0000 (UTC) (envelope-from Axel.Rau@Chaos1.DE) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=chaos1.de; s=email1; h=References:To:Cc:In-Reply-To:Date:Subject:Mime-Version: Content-Type:Message-Id:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=GdYGyEh6xOBMjSVCOfqiL4BJKwTDw1GlbWSES9b7PrQ=; b=svQn1ORoUsGl7Cnxgt00bEontB 9QED38p5Xvf72GghSsdYRVmEiM+U4o0tGkWvCEWS1xjovTIOe050O6uZEXpATOxfxEawR72gUYtt4 q6eK+LHDhNUplyLsEdzkvBbccdg/297e4shK5qv04a5w3inBD/+ThMLJrrZyPLg4KZjtm7Be7p5Aj +VMTCV4P0Kw74UTIjrtn8ak5B1nRXS2HlzJC5wWdf7kYlDKbw5Vjj3G3ZehiGrSMghufR4jYityiK 3cbZvwDk3G1hDGD8+vEae2wQ3FGRx5hCR7cDhdEOyOE9bDnWm6nOIdEUrK9W7Tw0pzv5CnO+pLLbc v8gaYkvQ==; Received: from [2a05:bec0:26:5::74] (helo=imap5.lrau.net) by mailout5.lrau.net with esmtp (Exim 4.95 (FreeBSD)) (envelope-from ) id 1ndV3N-000ArN-7o; Sun, 10 Apr 2022 10:44:21 +0000 Received: from Axel.Rau@Chaos1.DE by imap5.lrau.net (Archiveopteryx 3.2.0) with esmtpsa id 1649587460-45319-42070/7/6; Sun, 10 Apr 2022 10:44:20 +0000 From: Axel Rau Message-Id: <3284D692-A0F4-4704-8E7A-BCB5455D68FF@Chaos1.DE> Content-Type: multipart/alternative; boundary="Apple-Mail=_4CA44016-C408-4DC6-BAB1-07799C6E7171" List-Id: General discussion of FreeBSD hardware List-Archive: https://lists.freebsd.org/archives/freebsd-hardware List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hardware@freebsd.org Mime-Version: 1.0 Subject: Re: timeouts on USB ISP programmer Date: Sun, 10 Apr 2022 12:44:20 +0200 In-Reply-To: Cc: Hans Petter Selasky , hardware@freebsd.org To: Tomek CEDRO References: <3A781DFA-1E2C-41A5-8053-C90A806244DC@Chaos1.DE> <34a747ea-2ee5-660f-71c6-dc00d5de337f@selasky.org> <9334c4f0-3ecf-c046-420f-516e39379981@selasky.org> <976BDBEB-8B57-4541-A0B7-3F2C89498DC6@Chaos1.DE> <7190bdde-22bc-79ee-06d0-d0114a3ffbad@selasky.org> <7CDFB049-241F-4C31-A7B1-A7D6BDE6A002@Chaos1.DE> <24AA646A-698B-4D41-9668-3F9F99732D02@Chaos1.DE> <1A94816D-E3C1-4488-A5A9-784BAC68AE74@Chaos1.DE> X-Mailer: Apple Mail (2.3608.120.23.2.7) X-Rspamd-Queue-Id: 4KbpWp1tKVz4Wns X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=chaos1.de header.s=email1 header.b=svQn1ORo; dmarc=none; spf=none (mx1.freebsd.org: domain of Axel.Rau@Chaos1.DE has no SPF policy when checking 2a05:bec0:26:5::73) smtp.mailfrom=Axel.Rau@Chaos1.DE X-Spamd-Result: default: False [-2.90 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[chaos1.de:s=email1]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; 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)[multipart/alternative,text/plain]; DMARC_NA(0.00)[Chaos1.DE]; TO_DN_SOME(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[chaos1.de:+]; NEURAL_HAM_SHORT(-1.00)[-0.999]; DWL_DNSWL_NONE(0.00)[chaos1.de:dkim]; MLMMJ_DEST(0.00)[hardware]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:197071, ipnet:2a05:bec0::/29, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[2a05:bec0:26:5::73:from] X-ThisMailContainsUnwantedMimeParts: N --Apple-Mail=_4CA44016-C408-4DC6-BAB1-07799C6E7171 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 There are also reports of DIAMEX devices not working on linux (in = German): https://www.mikrocontroller.net/topic/508937 I should better try to get an original ATmel tool. Unfortunately they no longer produce simple programmers. A > Am 10.04.2022 um 12:37 schrieb Axel Rau : >=20 >=20 >=20 >> Am 09.04.2022 um 01:39 schrieb Tomek CEDRO >: >>=20 >>=20 >> Long story short: >> * Put both dip-switches to OFF if you use external board (no VCC >> connection required). They may stay ON if you program "bare" AVR (you >> need to connect VCC, SW1=3DON, SW2 OFF=3D3.3V ON=3D5V). > My switches are always on; my MCU is in the ZIFF socket. (-: >> * Try `avrdude -c stk500v2 -p 85 -vvv -t` and see of that connects to >> Programmer. > That=E2=80=99s what I did. >=20 >> * If programmer is connected but AVR communication problems you may >> slow down the STK500v2 bit clock with `-B` parameter or ISP clock with >> `-i` according to [4] (i.e. `-B 250` will result in 4kHz bit clock). >>=20 >> Good luck and let us know if that works :-) >=20 >=20 > root@home2l:/ # avrdude -c stk500v2 -p t85 -P /dev/cuau1 -t -vvv -B = 250 -i 90 > . . . > avrdude: Version 6.4 > Copyright (c) Brian Dean, http://www.bdmicro.com/ > Copyright (c) Joerg Wunsch >=20 > System wide configuration file is "/usr/local/etc/avrdude.conf= " > User configuration file is "/root/.avrduderc" > User configuration file does not exist or is not a regular = file, skipping >=20 > Using Port : /dev/cuau1 > Using Programmer : stk500v2 > Setting bit clk period : 250.0 > Setting isp clock delay : 90 > avrdude: ser_recv(): programmer is not responding > avrdude: stk500v2_ReceiveMessage(): timeout > avrdude: ser_recv(): programmer is not responding > avrdude: stk500v2_ReceiveMessage(): timeout > avrdude: ser_recv(): programmer is not responding > avrdude: stk500v2_ReceiveMessage(): timeout >=20 > I think, the DIAMEX is defective, I try to get another one. > Perhaps the drivers are gone. >=20 > How can I verify this? > --- > PGP-Key: CDE74120 =E2=98=80 computing @ chaos claudius >=20 =2D-- PGP-Key: CDE74120 =E2=98=80 computing @ chaos claudius --Apple-Mail=_4CA44016-C408-4DC6-BAB1-07799C6E7171 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 There are also = reports of DIAMEX devices not working on linux (in German):
https://= www.mikrocontroller.net/topic/508937
I = should better try to get an original ATmel tool.
Unf= ortunately they no longer produce simple programmers.

A

Am 10.04.2022 um = 12:37 schrieb Axel Rau <Axel.Rau@chaos1.de>:


Am 09.04.2022 um 01:39 schrieb Tomek CEDRO = <tomek@cedro.info&g= t;:


Long story short:
* Put both dip-switches to = OFF if you use external board (no VCC
connection = required). They may stay ON if you program "bare" AVR (you
need to connect VCC, SW1=3DON, SW2 OFF=3D3.3V ON=3D5V).
My switches are always on; my MCU is in the ZIFF socket. (-:
* Try `avrdude -c stk500v2 -p 85 -vvv -t` and = see of that connects to
Programmer.
That=E2=80=99s what I did.

* If programmer is connected but AVR communication problems = you may
slow down the STK500v2 bit clock with `-B` = parameter or ISP clock with
`-i` according to [4] = (i.e. `-B 250` will result in 4kHz bit clock).

Good luck = and let us know if that works :-)

root@home2l:/ # avrdude -c stk500v2 -p t85 -P = /dev/cuau1 -t -vvv -B 250 -i 90
. . .
avrdude: Version 6.4
&nbs= p;        Copyright (c) Brian Dean, http://www.bdmicro.com/
         Copyright (c) Joerg = Wunsch

         System wide = configuration file is "/usr/local/etc/avrdude.conf"
         User configuration file is = "/root/.avrduderc"
     =     User configuration file does not exist or is not a regular = file, skipping
=
         = Using Port                  =   : /dev/cuau1
     =     Using Programmer            =   : stk500v2
     =     Setting bit clk period        : = 250.0
         = Setting isp clock delay        :  90
avrdude: ser_recv(): programmer is not responding
avrdude: stk500v2_ReceiveMessage(): = timeout
avrdude: ser_recv(): programmer is not = responding
avrdude: stk500v2_ReceiveMessage(): = timeout
avrdude: ser_recv(): programmer is not = responding
avrdude: stk500v2_ReceiveMessage(): = timeout

I think, the DIAMEX is defective, I try to get another = one.
Perhaps the drivers are gone.

How can = I verify this?
---
PGP-Key: CDE74120  =E2=98=80  computing @ = chaos claudius


---
PGP-Key: CDE74120  =E2=98=80 =  computing @ chaos claudius

--Apple-Mail=_4CA44016-C408-4DC6-BAB1-07799C6E7171-- From nobody Sun Apr 10 15:01:20 2022 X-Original-To: hardware@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 D6ADD1AAC5BB for ; Sun, 10 Apr 2022 15:01:36 +0000 (UTC) (envelope-from tomek@cedro.info) Received: from mail-ot1-x32e.google.com (mail-ot1-x32e.google.com [IPv6:2607:f8b0:4864:20::32e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KbwDb3vltz3N3t for ; Sun, 10 Apr 2022 15:01:34 +0000 (UTC) (envelope-from tomek@cedro.info) Received: by mail-ot1-x32e.google.com with SMTP id n19-20020a9d7113000000b005cd9cff76c3so9641232otj.1 for ; Sun, 10 Apr 2022 08:01:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cedro.info; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=T2JmXuVatqhDQcq65BvQbaZuZwW5JSC7vV7RuqSJ94w=; b=hdY32z61IjxlIFaB3ic7uqIlDFiqx+ow8jyePwoPCPdSzStZZur+9ht/2NKBRU/faL Gc6URIH6aVRiVVqT2NED66u+yRpYlX+BhlCtP61M8KDWgOhEUqZj21Im8ITu5lGdCB/8 l+caGVBLCFXayHEUZTnLRLk2mBeH/OSXDhxvKKrfWdb/t5X5WMd5SQH/0WXb5Pz/l457 z96P6cHZDYdRcyLMUsFrG3AKrMgG5RYOwgnJbqTwSqAIqaKOnM7tAqvE2cJquD1YBcxd NYeGmKHd+Eg0mO/8IfLoNMdmmMEZaUdtohbOAXZ+X/HO3YFYg2OBgblQGO8Wxw3Ex9Um qTPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=T2JmXuVatqhDQcq65BvQbaZuZwW5JSC7vV7RuqSJ94w=; b=NGqd3bA5NUHtByws7yOGk8Dg1pOp2ytPynTkLB1k4+Hjj9HFXgpc7ui7lZJ/XE/Rjk hsdvPbXkcAsn3Z5/bfUsgzUUWWcOrWSh5yEtGWYRrvsfMVUsLnHIeICIojYb7ZQMlzDr pFl/WGY22Ff9klf6iPVUI0PfW4Y3pCz3FQd4V7B/s6zyDPBckDudrgFZG7is0nbHqOm1 UAbI9DxxB1nTB2TYIOx3Z0y/uc23gWppwAQHL4A2ybgHih7xeLiYp108mA/mC+dbv+Nt JFMyfcckYUtXMr3bPTCXosng+tiv5OJVJ/VpWttjGdE6vATfp8mXomXpnu6KY1/aEiqm fKAg== X-Gm-Message-State: AOAM5304AlLHxlbd8BidSlNl0/+4mZugMUSuboIZaC+IeXFJ1iYQ97gj GoDPBzXMjFIWbbzLGBmrJ/tVeWaNvfh4exf7 X-Google-Smtp-Source: ABdhPJyYKfmANaxNdOzmiZNjRUmPgs+aMpqc+3IwrjoPEVOWMXHnQJxVCBzFFzZgsZlz3SzuWqb0sg== X-Received: by 2002:a9d:3ad:0:b0:5c9:297f:b20b with SMTP id f42-20020a9d03ad000000b005c9297fb20bmr9737535otf.234.1649602894037; Sun, 10 Apr 2022 08:01:34 -0700 (PDT) Received: from mail-ot1-f48.google.com (mail-ot1-f48.google.com. [209.85.210.48]) by smtp.gmail.com with ESMTPSA id y17-20020a056870429100b000e2a837639fsm1578795oah.4.2022.04.10.08.01.33 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 10 Apr 2022 08:01:33 -0700 (PDT) Received: by mail-ot1-f48.google.com with SMTP id c18-20020a056830001200b005e6ed2a21c9so231178otp.8 for ; Sun, 10 Apr 2022 08:01:33 -0700 (PDT) X-Received: by 2002:a9d:2c42:0:b0:5cd:9e86:44c2 with SMTP id f60-20020a9d2c42000000b005cd9e8644c2mr10062269otb.250.1649602893122; Sun, 10 Apr 2022 08:01:33 -0700 (PDT) List-Id: General discussion of FreeBSD hardware List-Archive: https://lists.freebsd.org/archives/freebsd-hardware List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hardware@freebsd.org MIME-Version: 1.0 References: <3A781DFA-1E2C-41A5-8053-C90A806244DC@Chaos1.DE> <34a747ea-2ee5-660f-71c6-dc00d5de337f@selasky.org> <9334c4f0-3ecf-c046-420f-516e39379981@selasky.org> <976BDBEB-8B57-4541-A0B7-3F2C89498DC6@Chaos1.DE> <7190bdde-22bc-79ee-06d0-d0114a3ffbad@selasky.org> <7CDFB049-241F-4C31-A7B1-A7D6BDE6A002@Chaos1.DE> <24AA646A-698B-4D41-9668-3F9F99732D02@Chaos1.DE> <1A94816D-E3C1-4488-A5A9-784BAC68AE74@Chaos1.DE> In-Reply-To: From: Tomek CEDRO Date: Sun, 10 Apr 2022 17:01:20 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: timeouts on USB ISP programmer To: Axel Rau Cc: Hans Petter Selasky , hardware@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4KbwDb3vltz3N3t X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cedro.info header.s=google header.b=hdY32z61; dmarc=none; spf=none (mx1.freebsd.org: domain of tomek@cedro.info has no SPF policy when checking 2607:f8b0:4864:20::32e) smtp.mailfrom=tomek@cedro.info X-Spamd-Result: default: False [-3.30 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[cedro.info:s=google]; NEURAL_HAM_MEDIUM(-1.00)[-0.999]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[hardware@freebsd.org]; DMARC_NA(0.00)[cedro.info]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[cedro.info:+]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::32e:from,209.85.210.48:received]; MLMMJ_DEST(0.00)[hardware]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On Sun, Apr 10, 2022 at 12:37 PM Axel Rau wrote: > Am 09.04.2022 um 01:39 schrieb Tomek CEDRO : > > Long story short: > > * Put both dip-switches to OFF if you use external board (no VCC > > connection required). They may stay ON if you program "bare" AVR (you > > need to connect VCC, SW1=3DON, SW2 OFF=3D3.3V ON=3D5V). > > My switches are always on; my MCU is in the ZIFF socket. (-: Okay ZIF, good :-) 5V is required for programing from what I read from datasheet. > > * Try `avrdude -c stk500v2 -p 85 -vvv -t` and see of that connects to > > Programmer. > > That=E2=80=99s what I did. > > root@home2l:/ # avrdude -c stk500v2 -p t85 -P /dev/cuau1 -t -vvv -B 250 -= i 90 > . . . > avrdude: Version 6.4 > Copyright (c) Brian Dean, http://www.bdmicro.com/ > Copyright (c) Joerg Wunsch > > System wide configuration file is "/usr/local/etc/avrdude.conf" > User configuration file is "/root/.avrduderc" > User configuration file does not exist or is not a regular file,= skipping > > Using Port : /dev/cuau1 > Using Programmer : stk500v2 > Setting bit clk period : 250.0 > Setting isp clock delay : 90 > avrdude: ser_recv(): programmer is not responding > avrdude: stk500v2_ReceiveMessage(): timeout > avrdude: ser_recv(): programmer is not responding > avrdude: stk500v2_ReceiveMessage(): timeout > avrdude: ser_recv(): programmer is not responding > avrdude: stk500v2_ReceiveMessage(): timeout Not exactly what I wrote. You used again `-P /dev/cuau1` which is INVALID syntax. Use no `-P` at all. STEP 1: Get a connection to the programmer: avrdude -c stk500v2 -p 85 -vvv -t Nothing more. You should get a connection to the Programmer. STEP 2: Get Programmer talking with PC by setting serial port BAUDRATE (-b). For that you may need to set `-b` (baudrate, not SMALL b). You can attach serial terminal program like `minicom` and set various port baudrates to see when you get a readable response (i.e. 9600, 57600, 115200, etc). For instance with ATtiny104XNANO I had to use `-b 9600` parameter. avrdude -c stk500v2 -p 85 -vvv -t -b 9600 You must end this step with working Programmer talking fine to avrdude. STEP 3: Set talking to AVR speed (BITCLOCK -B parameter). If Diamex works fine with avrdude, but you cannot program AVR, you may need to tune bitclock with `-B` (note BIG B). You can use frequency suffix here (i.e. 40khz, 100khz). Try slower and faster speeds. Example: avrdude -c stk500v2 -p 85 -vvv -B 100khz That should make it. Assuming STK500V2 will use DebugWIRE ;-) > I think, the DIAMEX is defective, I try to get another one. > Perhaps the drivers are gone. > > How can I verify this? Well this avrdude is not that easy to use as it turns out at first steps even for me so do not worry just try until it works ;-) It turns out my ATtiny104XNANO does not support TPI protocol so I cannot program ATtiny10. I am writing now configuration for FT2232H based KT-LINK. Oscilloscope is mandatory here. I guess you can verify your Diamex with oscilloscope too. Here is the detailed deocumentation of avrdude: https://quantum-mirror.hu/mirrors/pub/gnusavannah/avrdude/avrdude-doc-6.4.p= df Here is the PR for fixing the build out-of-the-box on FreeBSD: https://github.com/avrdudes/avrdude/pull/925 --=20 CeDeROM, SQ7MHZ, http://www.tomek.cedro.info From nobody Sun Apr 10 16:31:50 2022 X-Original-To: hardware@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 9F25D1A93FDC for ; Sun, 10 Apr 2022 16:32:07 +0000 (UTC) (envelope-from tomek@cedro.info) Received: from mail-oi1-x234.google.com (mail-oi1-x234.google.com [IPv6:2607:f8b0:4864:20::234]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KbyF24F6nz3tg6 for ; Sun, 10 Apr 2022 16:32:06 +0000 (UTC) (envelope-from tomek@cedro.info) Received: by mail-oi1-x234.google.com with SMTP id 12so13691345oix.12 for ; Sun, 10 Apr 2022 09:32:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cedro.info; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Uzkx+itQIAG8paFbwxW+4nj0YqR7sqplRkfRKclNgMY=; b=aeiK3g+nTbT+QQH4UiqMashovzghaJH14HkwWkY/mOr3/u2qSnVcGlcGJWu+fBUdhu uqsEEUfEzQQxyjzMHEeSqsZ169mFIq/B5opX8xtqBspuLKmrpxaxql7e5e0yIihjLszs 9dVkmc5aalM55/FSZ7/7g8LkEUs53pFe2Z93KCuE6rl0uMfUMmbwX1gkQX9n3M/g+tR3 FDnXQpc9+5AzkicRjNvvnXVzh+qG0HeI7c0Pg9the+pq9eNbFWCXxhgWd01ozrn0fzaE 02TkvXKko+bf5jqgoImsa6xDY40LInvxykuXCf7G+KWMw7IrDzuUk74uwQ238WDA0NJR GEfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Uzkx+itQIAG8paFbwxW+4nj0YqR7sqplRkfRKclNgMY=; b=I75H3likG1Mhc/hV+kI/XxVgsJ+CTV2U4E3QJb+dMziUODtF1qgtVktijUPEf/3oJI koY9/z2vhXZmuM0wFLvu9HaG9p8gdK+4CvT1nbHtNblvQ6y7DnKn5EOGVm2mTd9HxBS/ yx/+Xy9iTPTOYRucRZV7LAo/DF8TxxyjNYXDy7muvgc6+aJ+brwLT5NOjT8uni1x0UX9 Hw4GXDN3esMRIIfSiI4D7npRpfyWwPPh+LnTbSDED7dHtt/hFdLtaFuIsQuAmHl4FgXO vIMDgnAzP8RLva9Z8ftVrHh2uY2CSZ52JPzv+minpWJUS08tBneT9yd8/ym/JjVKotku r8vg== X-Gm-Message-State: AOAM5321jd27csKMG9NvjT3Wfpduxl0znKnJw2M4r7oD0zKx1aQX/kY+ DaAnHnJ8E393P9YytEPti3WUf49xB5OCHG6n X-Google-Smtp-Source: ABdhPJxQhK66S8xWrMKoVefHH1VExnk1UwNeD/gfBRQdZRQhYzJ9fcFEcu7Oe2fSZL6YV5JuKmtLSA== X-Received: by 2002:a05:6808:f8f:b0:2f9:76b9:421f with SMTP id o15-20020a0568080f8f00b002f976b9421fmr3480249oiw.281.1649608325144; Sun, 10 Apr 2022 09:32:05 -0700 (PDT) Received: from mail-ot1-f54.google.com (mail-ot1-f54.google.com. [209.85.210.54]) by smtp.gmail.com with ESMTPSA id z26-20020a9d62da000000b005b23f5488cdsm11184799otk.52.2022.04.10.09.32.03 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 10 Apr 2022 09:32:04 -0700 (PDT) Received: by mail-ot1-f54.google.com with SMTP id c18-20020a056830001200b005e6ed2a21c9so331872otp.8 for ; Sun, 10 Apr 2022 09:32:03 -0700 (PDT) X-Received: by 2002:a9d:2c42:0:b0:5cd:9e86:44c2 with SMTP id f60-20020a9d2c42000000b005cd9e8644c2mr10180294otb.250.1649608323238; Sun, 10 Apr 2022 09:32:03 -0700 (PDT) List-Id: General discussion of FreeBSD hardware List-Archive: https://lists.freebsd.org/archives/freebsd-hardware List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hardware@freebsd.org MIME-Version: 1.0 References: <3A781DFA-1E2C-41A5-8053-C90A806244DC@Chaos1.DE> <34a747ea-2ee5-660f-71c6-dc00d5de337f@selasky.org> <9334c4f0-3ecf-c046-420f-516e39379981@selasky.org> <976BDBEB-8B57-4541-A0B7-3F2C89498DC6@Chaos1.DE> <7190bdde-22bc-79ee-06d0-d0114a3ffbad@selasky.org> <7CDFB049-241F-4C31-A7B1-A7D6BDE6A002@Chaos1.DE> <24AA646A-698B-4D41-9668-3F9F99732D02@Chaos1.DE> <1A94816D-E3C1-4488-A5A9-784BAC68AE74@Chaos1.DE> In-Reply-To: From: Tomek CEDRO Date: Sun, 10 Apr 2022 18:31:50 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: timeouts on USB ISP programmer To: Tomek CEDRO Cc: Axel Rau , Hans Petter Selasky , hardware@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4KbyF24F6nz3tg6 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cedro.info header.s=google header.b=aeiK3g+n; dmarc=none; spf=none (mx1.freebsd.org: domain of tomek@cedro.info has no SPF policy when checking 2607:f8b0:4864:20::234) smtp.mailfrom=tomek@cedro.info X-Spamd-Result: default: False [-3.29 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[cedro.info:s=google]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[hardware@freebsd.org]; DMARC_NA(0.00)[cedro.info]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[cedro.info:+]; NEURAL_HAM_SHORT(-0.99)[-0.995]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::234:from,209.85.210.54:received]; MLMMJ_DEST(0.00)[hardware]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N Okay so the KT-LINK (FT2232H based) interface is ready :-) avrdude did not forsee the buffer switch between read / write, that would allow only one pin connection to Tiny10, but connecting with external resistors works too ;-) TDO --[470R]-- TPIDATA --[470]-- TDI Example run below: hexagon% avrdude -c ktlink -p t10 -B 100khz avrdude: AVR device initialized and ready to accept instructions Reading | ################################################## | 100% 0.00s avrdude: Device signature = 0x1e9003 (probably t10) avrdude done. Thank you. hexagon% avrdude -c ktlink -p t10 -B 100khz -vvv avrdude: Version 6.4 Copyright (c) Brian Dean, http://www.bdmicro.com/ Copyright (c) Joerg Wunsch System wide configuration file is "/usr/local/etc/avrdude.conf" User configuration file is "/XXX/.avrduderc" Using Port : usb Using Programmer : ktlink Setting bit clk period : 10.0 I avrftdi_open(713): Using device VID:PID 0403:bbe2 and SN '(null)' on interface A. D write_flush(478): Setting pin direction (0x0000) and value (0x0000) I set_frequency(210): Using frequency: 100000 I set_frequency(211): Clock divisor: 0x003b D avrftdi_check_pins_mpsse(570): Using valid mask mpsse: 0x0000fff8 D avrftdi_check_pins_bb(534): Using valid mask bibanging: 0x0000ffff I avrftdi_pin_setup(644): Pin direction mask: e523 I avrftdi_pin_setup(645): Pin value mask: 6400 D set_pin(243): Setting pin 15 (ACBUS15) as PGMLED: high (high active) D write_flush(478): Setting pin direction (0xe523) and value (0xe400) AVR Part : ATtiny10 Chip Erase delay : 0 us PAGEL : P00 BS2 : P00 RESET disposition : dedicated RETRY pulse : SCK serial program mode : yes parallel program mode : yes Timeout : 0 StabDelay : 0 CmdexeDelay : 0 SyncLoops : 0 ByteDelay : 0 PollIndex : 0 PollValue : 0x00 Memory Detail : Block Poll Page Polled Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- --------- signature 0 0 0 0 no 3 16 0 0 0 0x00 0x00 Block Poll Page Polled Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- --------- fuse 0 0 4 0 no 1 16 0 0 0 0x00 0x00 Block Poll Page Polled Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- --------- calibration 0 0 0 0 no 1 16 0 0 0 0x00 0x00 Block Poll Page Polled Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- --------- lockbits 0 0 0 0 no 1 16 0 0 0 0x00 0x00 Block Poll Page Polled Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- --------- flash 0 0 128 0 no 1024 16 0 0 0 0x00 0x00 Programmer Type : avrftdi Description : KT-LINK FT2232H based interface. D set_pin(243): Setting pin 5,10,13-14 (ADBUS5, ACBUS10, ACBUS13, ACBUS14) as BUFF: high (low active) D write_flush(478): Setting pin direction (0xe523) and value (0x8020) D set_pin(243): Setting pin 15 (ACBUS15) as PGMLED: low (high active) D write_flush(478): Setting pin direction (0xe523) and value (0x0020) I avrftdi_tpi_initialize(73): Using TPI interface I avrftdi_tpi_initialize(83): Setting /Reset pin low D set_pin(243): Setting pin 8 (ACBUS8) as RESET: low (high active) D write_flush(478): Setting pin direction (0xe523) and value (0x0020) D set_pin(243): Setting pin 0 (ADBUS0) as SCK: low (high active) D write_flush(478): Setting pin direction (0xe523) and value (0x0020) D set_pin(243): Setting pin 1 (ADBUS1) as MOSI: high (high active) D write_flush(478): Setting pin direction (0xe523) and value (0x0022) D set_pin(243): Setting pin 8 (ACBUS8) as RESET: high (high active) D write_flush(478): Setting pin direction (0xe523) and value (0x0122) D set_pin(243): Setting pin 8 (ACBUS8) as RESET: low (high active) D write_flush(478): Setting pin direction (0xe523) and value (0x0022) I avrftdi_tpi_initialize(98): Sending 16 init clock cycles ... avrdude: AVR device initialized and ready to accept instructions Reading | ################################################## | 100% 0.00s avrdude: Device signature = 0x1e9003 (probably t10) I avrftdi_tpi_disable(250): Leaving Programming mode. D set_pin(243): Setting pin 8 (ACBUS8) as RESET: high (high active) D write_flush(478): Setting pin direction (0xe523) and value (0x0122) I avrftdi_close(798): LED Mask=0x8000 value =0x0122 &=0x0000 D write_flush(478): Setting pin direction (0x8000) and value (0x0000) avrdude done. Thank you. hexagon% avrdude -c ktlink -p t10 -B 100khz -e avrdude: AVR device initialized and ready to accept instructions Reading | ################################################## | 100% 0.00s avrdude: Device signature = 0x1e9003 (probably t10) avrdude: erasing chip avrdude done. Thank you. hexagon% avrdude -c ktlink -p t10 -B 100khz -t avrdude: AVR device initialized and ready to accept instructions Reading | ################################################## | 100% 0.00s avrdude: Device signature = 0x1e9003 (probably t10) avrdude> dump flash 0 1024 >>> dump flash 0 1024 0000 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0010 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0020 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0030 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0040 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0050 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0060 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0070 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0080 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0090 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 00a0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 00b0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 00c0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 00d0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 00e0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 00f0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0100 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0110 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0120 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0130 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0140 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0150 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0160 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0170 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0180 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0190 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 01a0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 01b0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 01c0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 01d0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 01e0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 01f0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0200 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0210 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0220 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0230 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0240 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0250 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0260 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0270 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0280 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0290 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 02a0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 02b0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 02c0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 02d0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 02e0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 02f0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0300 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0310 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0320 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0330 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0340 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0350 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0360 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0370 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0380 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0390 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 03a0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 03b0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 03c0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 03d0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 03e0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 03f0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| hexagon% avrdude -c ktlink -p t10 -B 100khz -U flash:w:hello.bin:r avrdude: AVR device initialized and ready to accept instructions Reading | ################################################## | 100% 0.00s avrdude: Device signature = 0x1e9003 (probably t10) avrdude: NOTE: "flash" memory has been specified, an erase cycle will be performed To disable this feature, specify the -D option. avrdude: erasing chip avrdude: reading input file "hello.bin" avrdude: writing flash (1024 bytes): Writing | ################################################## | 100% 2.98s avrdude: 1024 bytes of flash written avrdude: verifying flash memory against hello.bin: avrdude: load data flash data from input file hello.bin: avrdude: input file hello.bin contains 1024 bytes avrdude: reading on-chip flash data: Reading | ################################################## | 100% 0.49s avrdude: verifying ... avrdude: 1024 bytes of flash verified avrdude done. Thank you. hexagon% avrdude -c ktlink -p t10 -B 100khz -t avrdude: AVR device initialized and ready to accept instructions Reading | ################################################## | 100% 0.00s avrdude: Device signature = 0x1e9003 (probably t10) avrdude> dump flash 0 1024 >>> dump flash 0 1024 0000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 0010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 0020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 0030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 0040 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 0050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 0060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 0070 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 0080 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 0090 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00c0 48 45 4c 4c 4f 00 57 4f 52 4c 44 00 3a 2d 29 00 |HELLO.WORLD.:-).| 00d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 0100 43 65 44 65 52 4f 4d 00 57 55 5a 00 48 45 52 45 |CeDeROM.WUZ.HERE| 0110 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 0120 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 0130 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 0140 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 0150 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 0160 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 0170 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 0180 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 0190 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 01a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 01b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 01c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 01d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 01e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 01f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 0200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 0210 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 0220 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 0230 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 0240 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 0250 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 0260 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 0270 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 0280 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 0290 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 02a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 02b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 02c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 02d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 02e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 02f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 0300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 0310 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 0320 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 0330 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 0340 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 0350 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 0360 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 0370 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 0380 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 0390 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 03a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 03b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 03c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 03d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 03e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 03f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info From nobody Sun Apr 10 16:59:44 2022 X-Original-To: hardware@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 12B8F1A9B3FF for ; Sun, 10 Apr 2022 16:59:48 +0000 (UTC) (envelope-from Axel.Rau@Chaos1.DE) Received: from mailout5.lrau.net (mailout5.lrau.net [IPv6:2a05:bec0:26:5::73]) (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 "mailout5.lrau.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Kbyry3hPBz4SjP for ; Sun, 10 Apr 2022 16:59:46 +0000 (UTC) (envelope-from Axel.Rau@Chaos1.DE) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=chaos1.de; s=email1; h=References:To:Cc:In-Reply-To:Date:Subject:Mime-Version: Content-Type:Message-Id:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=FscVGFUQyEL3U6OXBF7IZIk74MCyupeQWEYIuhkQixA=; b=v2F1sSdmmWq/jdpoiJz52TIaJP zBnZmgQdS0KE1ejpSnaACucIi4dnoIlB0joAp3Ja9LHftYs85GAta6qeE/K7HjOaa36bjELoZ//TT khQ25qcxkgDGcIu5usZY2Fu3nMAF5jbJBJQhSex6NW3JRNrZK8qKBBNmZD2NEMcBiSGAhSLtfOxAO A+HffBVbjk3hJMijFR5j7lDi126wPh7X9l06Lo/61SHG/OPKRVragmZVd2SkdTRJ0xNQQKeexFW3U VIhN7Li+4lQpSB/Ehvw3x22L5+r50nGQSg2kqOIn1GO7SXHrw8MUfLDJdiaf5bm6Ul8syZZH8aoer QoRphxew==; Received: from [2a05:bec0:26:5::74] (helo=imap5.lrau.net) by mailout5.lrau.net with esmtp (Exim 4.95 (FreeBSD)) (envelope-from ) id 1ndauf-000JS3-82; Sun, 10 Apr 2022 16:59:45 +0000 Received: from Axel.Rau@Chaos1.DE by imap5.lrau.net (Archiveopteryx 3.2.0) with esmtpsa id 1649609984-44922-42070/7/5; Sun, 10 Apr 2022 16:59:44 +0000 From: Axel Rau Message-Id: Content-Type: multipart/alternative; boundary="Apple-Mail=_35761612-8F6B-4679-A814-BE1852208C94" List-Id: General discussion of FreeBSD hardware List-Archive: https://lists.freebsd.org/archives/freebsd-hardware List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hardware@freebsd.org Mime-Version: 1.0 Subject: Re: timeouts on USB ISP programmer Date: Sun, 10 Apr 2022 18:59:44 +0200 In-Reply-To: Cc: Hans Petter Selasky , hardware@freebsd.org To: Tomek CEDRO References: <3A781DFA-1E2C-41A5-8053-C90A806244DC@Chaos1.DE> <34a747ea-2ee5-660f-71c6-dc00d5de337f@selasky.org> <9334c4f0-3ecf-c046-420f-516e39379981@selasky.org> <976BDBEB-8B57-4541-A0B7-3F2C89498DC6@Chaos1.DE> <7190bdde-22bc-79ee-06d0-d0114a3ffbad@selasky.org> <7CDFB049-241F-4C31-A7B1-A7D6BDE6A002@Chaos1.DE> <24AA646A-698B-4D41-9668-3F9F99732D02@Chaos1.DE> <1A94816D-E3C1-4488-A5A9-784BAC68AE74@Chaos1.DE> X-Mailer: Apple Mail (2.3608.120.23.2.7) X-Rspamd-Queue-Id: 4Kbyry3hPBz4SjP X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=chaos1.de header.s=email1 header.b=v2F1sSdm; dmarc=none; spf=none (mx1.freebsd.org: domain of Axel.Rau@Chaos1.DE has no SPF policy when checking 2a05:bec0:26:5::73) smtp.mailfrom=Axel.Rau@Chaos1.DE X-Spamd-Result: default: False [-2.90 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[chaos1.de:s=email1]; RCVD_IN_DNSWL_LOW(-0.10)[2a05:bec0:26:5::73:from]; 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)[multipart/alternative,text/plain,multipart/mixed]; HAS_ATTACHMENT(0.00)[]; DMARC_NA(0.00)[chaos1.de]; TO_DN_SOME(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[chaos1.de:+]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-0.999]; MLMMJ_DEST(0.00)[hardware]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:+,3:~,4:~,5:~]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:197071, ipnet:2a05:bec0::/29, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[chaos1.de:dkim] X-ThisMailContainsUnwantedMimeParts: N --Apple-Mail=_35761612-8F6B-4679-A814-BE1852208C94 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > Am 10.04.2022 um 17:01 schrieb Tomek CEDRO : >=20 >> avrdude: stk500v2_ReceiveMessage(): timeout >=20 > Not exactly what I wrote. You used again `-P /dev/cuau1` which is > INVALID syntax. Use no `-P` at all. >=20 > STEP 1: >=20 > Get a connection to the programmer: >=20 > avrdude -c stk500v2 -p 85 -vvv -t This is with your version .avrduderc attached below): - - - root@home2l:~ # avrdude -c stk500v2 -p t85 -vvv -t avrdude: Version 6.4 Copyright (c) Brian Dean, http://www.bdmicro.com/ Copyright (c) Joerg Wunsch System wide configuration file is "/usr/local/etc/avrdude.conf" User configuration file is "/root/.avrduderc" Using Port : /dev/cuad0 Using Programmer : stk500v2 avrdude: ser_open(): can't open device "/dev/cuad0": No such file or = directory - - - Axel PS:=20 =2D-- PGP-Key: CDE74120 =E2=98=80 computing @ chaos claudius --Apple-Mail=_35761612-8F6B-4679-A814-BE1852208C94 Content-Type: multipart/mixed; boundary="Apple-Mail=_24410AF9-58DA-4DFA-8220-AFD64D60D4F7" --Apple-Mail=_24410AF9-58DA-4DFA-8220-AFD64D60D4F7 Content-Transfer-Encoding: quoted-printable Content-Type: text/html

Am 10.04.2022 um 17:01 schrieb Tomek CEDRO <tomek@cedro.info>:

avrdude: stk500v2_Rece= iveMessage(): timeout

Not = exactly what I wrote. You used again `-P /dev/cuau1` which is
INVALID syntax. Use no `-P` at all.

STEP = 1:

Get a connection to the programmer:

avrdude -c = stk500v2 -p 85 -vvv -t

This is with your version .avrduderc attached = below):
- - -
root@home2l:~ # avrdude -c = stk500v2 -p t85 -vvv -t
=
avrdude: Version 6.4
         Copyright (c) Brian Dean, = http://www.bdmicro.com/


--Apple-Mail=_24410AF9-58DA-4DFA-8220-AFD64D60D4F7 Content-Disposition: attachment; filename=.avrduderc Content-Type: application/octet-stream; x-unix-mode=0644; name=.avrduderc Content-Transfer-Encoding: base64 IyBQb3NzaWJsZSBlbnRyeSBmb3JtYXRzIGFyZToNCiMNCiMgICBwcm9ncmFtbWVyDQojICAg ICAgIHBhcmVudCA8aWQ+ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIyBvcHRp b25hbCBwYXJlbnQNCiMgICAgICAgaWQgICAgICAgPSA8aWQxPiBbLCA8aWQyPiBbLCA8aWQz Pl0gLi4uXSA7ICAjIDxpZE4+IGFyZSBxdW90ZWQgc3RyaW5ncw0KIyAgICAgICBkZXNjICAg ICA9IDxkZXNjcmlwdGlvbj4gOyAgICAgICAgICAgICAgICAgICMgcXVvdGVkIHN0cmluZw0K IyAgICAgICB0eXBlICAgICA9IDx0eXBlPjsgICAgICAgICAgICAgICAgICAgICAgICAgICMg cHJvZ3JhbW1lciB0eXBlLCBxdW90ZWQgc3RyaW5nDQojICAgICAgICAgICAgICAgICAgICAg ICAgICAjIHN1cHBvcnRlZCBwcm9ncmFtbWVyIHR5cGVzIGNhbiBiZSBsaXN0ZWQgYnkgIi1j ID90eXBlIg0KIyAgICAgICBjb25uZWN0aW9uX3R5cGUgPSBwYXJhbGxlbCB8IHNlcmlhbCB8 IHVzYg0KIyAgICAgICBiYXVkcmF0ZSA9IDxudW0+IDsgICAgICAgICAgICAgICAgICAgICAg ICAgICMgYmF1ZHJhdGUgZm9yIGF2cjkxMC1wcm9ncmFtbWVyDQojICAgICAgIHZjYyAgICAg ID0gPG51bTE+IFssIDxudW0yPiAuLi4gXSA7ICAgICAgICAgIyBwaW4gbnVtYmVyKHMpDQoj ICAgICAgIGJ1ZmYgICAgID0gPG51bTE+IFssIDxudW0yPiAuLi4gXSA7ICAgICAgICAgIyBw aW4gbnVtYmVyKHMpDQojICAgICAgIHJlc2V0ICAgID0gPG51bT4gOyAgICAgICAgICAgICAg ICAgICAgICAgICAgIyBwaW4gbnVtYmVyDQojICAgICAgIHNjayAgICAgID0gPG51bT4gOyAg ICAgICAgICAgICAgICAgICAgICAgICAgIyBwaW4gbnVtYmVyDQojICAgICAgIG1vc2kgICAg ID0gPG51bT4gOyAgICAgICAgICAgICAgICAgICAgICAgICAgIyBwaW4gbnVtYmVyDQojICAg ICAgIG1pc28gICAgID0gPG51bT4gOyAgICAgICAgICAgICAgICAgICAgICAgICAgIyBwaW4g bnVtYmVyDQojICAgICAgIGVycmxlZCAgID0gPG51bT4gOyAgICAgICAgICAgICAgICAgICAg ICAgICAgIyBwaW4gbnVtYmVyDQojICAgICAgIHJkeWxlZCAgID0gPG51bT4gOyAgICAgICAg ICAgICAgICAgICAgICAgICAgIyBwaW4gbnVtYmVyDQojICAgICAgIHBnbWxlZCAgID0gPG51 bT4gOyAgICAgICAgICAgICAgICAgICAgICAgICAgIyBwaW4gbnVtYmVyDQojICAgICAgIHZm eWxlZCAgID0gPG51bT4gOyAgICAgICAgICAgICAgICAgICAgICAgICAgIyBwaW4gbnVtYmVy DQojICAgICAgIHVzYnZpZCAgID0gPGhleG51bT47ICAgICAgICAgICAgICAgICAgICAgICAg IyBVU0IgVklEIChWZW5kb3IgSUQpDQojICAgICAgIHVzYnBpZCAgID0gPGhleG51bT4gWywg PGhleG51bT4gLi4uXSAgICAgICAgIyBVU0IgUElEIChQcm9kdWN0IElEKSAoMSkNCiMgICAg ICAgdXNiZGV2ICAgPSA8aW50ZXJmYWNlPjsgICAgICAgICAgICAgICAgICAgICAjIFVTQiBp bnRlcmZhY2Ugb3Igb3RoZXIgZGV2aWNlIGluZm8NCiMgICAgICAgdXNidmVuZG9yID0gPHZl bmRvcm5hbWU+OyAgICAgICAgICAgICAgICAgICAjIFVTQiBWZW5kb3IgTmFtZQ0KIyAgICAg ICB1c2Jwcm9kdWN0ID0gPHByb2R1Y3RuYW1lPjsgICAgICAgICAgICAgICAgICMgVVNCIFBy b2R1Y3QgTmFtZQ0KIyAgICAgICB1c2JzbiAgICA9IDxzZXJpYWxubz47ICAgICAgICAgICAg ICAgICAgICAgICMgVVNCIFNlcmlhbCBOdW1iZXINCiMNCiMgICAgICAgIFRvIGludmVydCBh IGJpdCwgdXNlID0gfiA8bnVtPiwgdGhlIHNwYWNlcyBhcmUgaW1wb3J0YW50Lg0KIyAgICAg ICAgRm9yIGEgcGluIGxpc3QgYWxsIHBpbnMgbXVzdCBiZSBpbnZlcnRlZC4NCiMgICAgICAg IEEgc2luZ2xlIHBpbiBjYW4gYmUgc3BlY2lmaWVkIGFzIHVzdWFsID0gfiA8bnVtPiwgZm9y IGxpc3RzDQojICAgICAgICBzcGVjaWZ5IGl0IGFzIGZvbGxvd3MgPSB+ICggPG51bT4gWywg PG51bTI+IC4uLiBdICkgLg0KIw0KIyAgICAgICAgKDEpIE5vdCBhbGwgcHJvZ3JhbW1lciB0 eXBlcyBjYW4gcHJvY2VzcyBhIGxpc3Qgb2YgUElEcy4NCiMgICAgIDsNCg0KIyBzZXQgdGhp cyB0byBhdm9pZCBwcm92aWRpbmcgYC1jYCBhbGwgdGhlIHRpbWUgOi0pDQpkZWZhdWx0X3By b2dyYW1tZXIgPSAiZGlhbWV4LWF2ci11c2IiOw0KDQojIHRoaXMgd2lsbCBpbnRlcmZhY2Ug d2l0aCB0aGUgY2hpcHMgb24gdGhlc2UgcHJvZ3JhbW1lcnM6DQojDQojIGh0dHA6Ly9yZWFs LmtpZXYudWEvb2xkL2F2cmVhbC9lbi9hZGFwdGVycw0KIyBodHRwOi8vd3d3LmFtb250ZWMu Y29tL2p0YWdrZXkuc2h0bWwsIGp0YWdrZXktdGlueS5zaHRtbA0KIyBodHRwOi8vd3d3Lm9s aW1leC5jb20vZGV2L2FybS11c2Itb2NkLmh0bWwsIGFybS11c2ItdGlueS5odG1sDQojIGh0 dHA6Ly93d3cuZXRoZXJudXQuZGUvZW4vaGFyZHdhcmUvdHVydGVsaXplci9pbmRleC5odG1s DQojIGh0dHA6Ly9lbGsuaW5mb3JtYXRpay5maC1hdWdzYnVyZy5kZS9oaHdlYi9kb2Mvb3Bl bm9jZC91c2JqdGFnL3VzYmp0YWcuaHRtbA0KIyBodHRwOi8vZGFuZ2Vyb3VzcHJvdG90eXBl cy5jb20vZG9jcy9GVDIyMzJfYnJlYWtvdXRfYm9hcmQNCiMgaHR0cDovL3d3dy5mdGRpY2hp cC5jb20vUHJvZHVjdHMvTW9kdWxlcy9ETFBNb2R1bGVzLmh0bSxETFAtMjIzMiosRExQLVVT QjEyMzJIDQojIGh0dHA6Ly9mbGFzaHJvbS5vcmcvRlQyMjMyU1BJX1Byb2dyYW1tZXINCiMN CiMgVGhlIGRyaXZlcnMgd2lsbCBsb29rIGZvciBhIHNwZWNpZmljIGRldmljZSBhbmQgdXNl IHRoZSBmaXJzdCBvbmUgZm91bmQuDQojIElmIHlvdSBoYXZlIG11bGl0cGxlIGRldmljZXMs IHRoZW4gbG9vayBmb3IgdW5pcXVlIGluZm9ybWF0aW9uIChsaWtlIFNOKQ0KIyBBbmQgZmls bCB0aGF0IGluIGhlcmUuDQojDQojIE5vdGUgdGhhdCB0aGUgcGluIG51bWJlcnMgZm9yIHRo ZSBtYWluIElTUCBzaWduYWxzIChyZXNldCwgc2NrLA0KIyBtb3NpLCBtaXNvKSBhcmUgZml4 ZWQgYW5kIGNhbm5vdCBiZSBjaGFuZ2VkLCBzaW5jZSB0aGV5IG11c3QgbWF0Y2gNCiMgdGhl IHdheSB0aGUgTXVsdGktUHJvdG9jb2wgU3luY2hyb25vdXMgU2VyaWFsIEVuZ2luZSAoTVBT U0UpIG9mDQojIHRoZXNlIEZUREkgSUNzIGhhcyBiZWVuIGRlc2lnbmVkLg0KDQpwcm9ncmFt bWVyDQogaWQgICAgICAgICA9ICJkaWFtZXgtYXZyLXVzYiI7DQogZGVzYyAgICAgICA9ICJG VDIyMzIgYmFzZWQgRGlhbWV4IEFWUiBVU0IgcHJvZ3JhbW1lciI7DQogdHlwZSAgICAgICA9 ICJhdnJmdGRpIjsNCiBjb25uZWN0aW9uX3R5cGUgPSB1c2I7DQogdXNidmlkICAgICA9IDB4 MTZDMDsNCiB1c2JwaWQgICAgID0gMHgyQTlCOw0KIHVzYnZlbmRvciAgPSAiRElBTUVYIjsN CiB1c2Jwcm9kdWN0ID0gIkRJQU1FWC1JU1AtVVNCIjsNCiB1c2JkZXYgICAgID0gIkEiOw0K IHVzYnNuICAgICAgPSAiIjsNCiNJU1Atc2lnbmFscyAtIGxvd2VyIEFEQlVTLU5pYmJsZSAo ZGVmYXVsdCkNCiByZXNldCAgPSAzOw0KIHNjayAgICA9IDA7DQogbW9zaSAgID0gMTsNCiBt aXNvICAgPSAyOw0KI0xFRCBTSUdOQUxzIC0gaGlnaGVyIEFEQlVTLU5pYmJsZQ0KIyAgZXJy bGVkID0gNDsNCiMgIHJkeWxlZCA9IDU7DQojICBwZ21sZWQgPSA2Ow0KIyAgdmZ5bGVkID0g NzsNCiNCdWZmZXIgU2lnbmFsIC0gQUNCVVMgLSBOaWJibGUNCiMgIGJ1ZmYgICA9IDg7DQo7 DQoNCg== --Apple-Mail=_24410AF9-58DA-4DFA-8220-AFD64D60D4F7 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
---
PGP-Key: CDE74120  =E2=98=80 =  computing @ chaos claudius

--Apple-Mail=_24410AF9-58DA-4DFA-8220-AFD64D60D4F7-- --Apple-Mail=_35761612-8F6B-4679-A814-BE1852208C94-- From nobody Sun Apr 10 20:07:55 2022 X-Original-To: hardware@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 332821A8490B for ; Sun, 10 Apr 2022 20:08:11 +0000 (UTC) (envelope-from tomek@cedro.info) Received: from mail-oi1-x22b.google.com (mail-oi1-x22b.google.com [IPv6:2607:f8b0:4864:20::22b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Kc32L1S7gz3GmZ for ; Sun, 10 Apr 2022 20:08:10 +0000 (UTC) (envelope-from tomek@cedro.info) Received: by mail-oi1-x22b.google.com with SMTP id v75so14041415oie.1 for ; Sun, 10 Apr 2022 13:08:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cedro.info; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=LLQEO9QrB2tI8mMXdnSx6oLZiTRaq+fpDBqSrMQL7ro=; b=hz8tTNQRhDu8O2raLnu6Ly1MJAaxLCcorzSGgi+uK7T/tgN/BU1RIt8ImKrj7yD0iU ySm4L/cxqE4rRAx4Vy7MWuAVHGg2aBbpBmqs6dr/NncG1X5LCrKSVw3FQdufPBA1i2px nY26vod4dlRHbRSuBCPedHT1GXnpkrVAP24s68708Beb22V8E6q4Pg/L+eehZByXmKaf 2wksP7t9aCDWTvLOhuCUPQA+LqzVWnecrxWOl2F5sEULmIMsDm50kBlLAROlH87z1Qmd 0hYID7HeAll48NjVeNVa7wyVyROXsMohR4kRHDN9MHM1ow4sdCqfZIvJlIpWlh7Z95fT QWBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=LLQEO9QrB2tI8mMXdnSx6oLZiTRaq+fpDBqSrMQL7ro=; b=m3hEZfY5Hp7PnIZntmb90t0BFB0wFa8outyfZnqV1KOKULDmpfK9eGF7vroGmpSznO rp7P/v/jI6uNvnbFr5O/ZAlF01FIdCwEeD+oRfq13CZjiNxEyfaFPC8Ow9nlrTxoM+wg MDQ56kRb08ueIX5GdSi+ewSDemw3qOKike/fhffF6//B4CLeVfueIySrOVFEDlMVQW5O Ndj0/vGKQIT6g5oph6etuiezjY+h6CL1PhQwEYKuRPvRojeBgGr0f0hznaujdHNlsT6q OlhCb4zMvDhIwR6dLri0PhgUsvbrdfk9sLs/a0yFBbIHpSBJ4T0/vQkHaWp/1itMmF5k g+sg== X-Gm-Message-State: AOAM531i2Ketp8ZAZ3uuq5cGSlFajafQMQQb7oF9QkD5o3psbriPz8Jm gMJXbPX1QUzLMIqmWUNwObcJm1V/zfCYhpLo X-Google-Smtp-Source: ABdhPJyk8Lf8DgDhKONrwmPbo1gIDG28fUEPlJWPBwDPSeIOu/m1P9+fa5rvVirhIXtCzgwueKPpjQ== X-Received: by 2002:a05:6808:189a:b0:2ec:c59c:71e9 with SMTP id bi26-20020a056808189a00b002ecc59c71e9mr3785622oib.153.1649621288912; Sun, 10 Apr 2022 13:08:08 -0700 (PDT) Received: from mail-oo1-f49.google.com (mail-oo1-f49.google.com. [209.85.161.49]) by smtp.gmail.com with ESMTPSA id f15-20020a9d5f0f000000b005e6b67945a3sm3972185oti.15.2022.04.10.13.08.08 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 10 Apr 2022 13:08:08 -0700 (PDT) Received: by mail-oo1-f49.google.com with SMTP id w20-20020a4ae9f4000000b003243aa2c71aso2447842ooc.0 for ; Sun, 10 Apr 2022 13:08:08 -0700 (PDT) X-Received: by 2002:a4a:dd15:0:b0:320:da3c:c342 with SMTP id m21-20020a4add15000000b00320da3cc342mr9167284oou.7.1649621288268; Sun, 10 Apr 2022 13:08:08 -0700 (PDT) List-Id: General discussion of FreeBSD hardware List-Archive: https://lists.freebsd.org/archives/freebsd-hardware List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hardware@freebsd.org MIME-Version: 1.0 References: <3A781DFA-1E2C-41A5-8053-C90A806244DC@Chaos1.DE> <34a747ea-2ee5-660f-71c6-dc00d5de337f@selasky.org> <9334c4f0-3ecf-c046-420f-516e39379981@selasky.org> <976BDBEB-8B57-4541-A0B7-3F2C89498DC6@Chaos1.DE> <7190bdde-22bc-79ee-06d0-d0114a3ffbad@selasky.org> <7CDFB049-241F-4C31-A7B1-A7D6BDE6A002@Chaos1.DE> <24AA646A-698B-4D41-9668-3F9F99732D02@Chaos1.DE> <1A94816D-E3C1-4488-A5A9-784BAC68AE74@Chaos1.DE> In-Reply-To: From: Tomek CEDRO Date: Sun, 10 Apr 2022 22:07:55 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: timeouts on USB ISP programmer To: Axel Rau Cc: Hans Petter Selasky , hardware@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4Kc32L1S7gz3GmZ X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cedro.info header.s=google header.b=hz8tTNQR; dmarc=none; spf=none (mx1.freebsd.org: domain of tomek@cedro.info has no SPF policy when checking 2607:f8b0:4864:20::22b) smtp.mailfrom=tomek@cedro.info X-Spamd-Result: default: False [-3.25 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[cedro.info:s=google]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[hardware@freebsd.org]; DMARC_NA(0.00)[cedro.info]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[cedro.info:+]; NEURAL_HAM_SHORT(-0.95)[-0.952]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::22b:from,209.85.161.49:received]; MLMMJ_DEST(0.00)[hardware]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On Sun, Apr 10, 2022 at 6:59 PM Axel Rau wrote: > root@home2l:~ # avrdude -c stk500v2 -p t85 -vvv -t > > avrdude: Version 6.4 > Copyright (c) Brian Dean, http://www.bdmicro.com/ > Copyright (c) Joerg Wunsch > > System wide configuration file is "/usr/local/etc/avrdude.conf" > User configuration file is "/root/.avrduderc" > > Using Port : /dev/cuad0 > Using Programmer : stk500v2 > avrdude: ser_open(): can't open device "/dev/cuad0": No such file or directory avrdude -c stk500v2 -p 85 -vvv -t -P usb -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info From nobody Sun Apr 10 20:46:31 2022 X-Original-To: hardware@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 853921A8E554 for ; Sun, 10 Apr 2022 20:46:34 +0000 (UTC) (envelope-from Axel.Rau@Chaos1.DE) Received: from mailout5.lrau.net (mailout5.lrau.net [IPv6:2a05:bec0:26:5::73]) (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 "mailout5.lrau.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Kc3td3jQXz3Nmh for ; Sun, 10 Apr 2022 20:46:33 +0000 (UTC) (envelope-from Axel.Rau@Chaos1.DE) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=chaos1.de; s=email1; h=References:To:Cc:In-Reply-To:Date:Subject:Mime-Version: Content-Type:Message-Id:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=lvWrT+giPe/nxKqNOv1jB82rWA6ZNJc7eI2tqy2S4qo=; b=RluRisdub4Ef5d2YunmiYyF+yN 6HcRrHC+XDTG9wV6RlgUz2NdJETpFE/+X92VTZZcnn1DyNUdN1OTRNaW5yincA0FRaoYAMH+918p1 XSsDwOQ5vlOTwsdSGewWaVfK06qQ5Xi3QnLSGIZsmCbkCVfDoucGkXYks8Li+uVjsf/gjYF2+Zz2f U7S73kgVeZ/GoCWnvTj0NtBY924LOwXojpPmVQ5DRbjc6UrX16tabyKB+AGkGxAat1Jhkix/D/NE0 vE8PhgI6sEYV7oyTstlhLPBXo/uS08VAA27hureYWoIRfcVJWghvctDQLMKj8Kf78aZsVHap4K6qJ I+zp2Whw==; Received: from [2a05:bec0:26:5::74] (helo=imap5.lrau.net) by mailout5.lrau.net with esmtp (Exim 4.95 (FreeBSD)) (envelope-from ) id 1ndeS8-000N3P-8K; Sun, 10 Apr 2022 20:46:32 +0000 Received: from Axel.Rau@Chaos1.DE by imap5.lrau.net (Archiveopteryx 3.2.0) with esmtpsa id 1649623591-44478-42070/7/10; Sun, 10 Apr 2022 20:46:31 +0000 From: Axel Rau Message-Id: <13D17C8D-D67B-47E8-BB64-A8E32267C669@Chaos1.DE> Content-Type: multipart/alternative; boundary="Apple-Mail=_59483380-4DFF-482C-AF8D-EC0F9712E2CA" List-Id: General discussion of FreeBSD hardware List-Archive: https://lists.freebsd.org/archives/freebsd-hardware List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hardware@freebsd.org Mime-Version: 1.0 Subject: Re: timeouts on USB ISP programmer Date: Sun, 10 Apr 2022 22:46:31 +0200 In-Reply-To: Cc: Hans Petter Selasky , hardware@freebsd.org To: Tomek CEDRO References: <3A781DFA-1E2C-41A5-8053-C90A806244DC@Chaos1.DE> <34a747ea-2ee5-660f-71c6-dc00d5de337f@selasky.org> <9334c4f0-3ecf-c046-420f-516e39379981@selasky.org> <976BDBEB-8B57-4541-A0B7-3F2C89498DC6@Chaos1.DE> <7190bdde-22bc-79ee-06d0-d0114a3ffbad@selasky.org> <7CDFB049-241F-4C31-A7B1-A7D6BDE6A002@Chaos1.DE> <24AA646A-698B-4D41-9668-3F9F99732D02@Chaos1.DE> <1A94816D-E3C1-4488-A5A9-784BAC68AE74@Chaos1.DE> X-Mailer: Apple Mail (2.3608.120.23.2.7) X-Rspamd-Queue-Id: 4Kc3td3jQXz3Nmh X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=chaos1.de header.s=email1 header.b=RluRisdu; dmarc=none; spf=none (mx1.freebsd.org: domain of Axel.Rau@Chaos1.DE has no SPF policy when checking 2a05:bec0:26:5::73) smtp.mailfrom=Axel.Rau@Chaos1.DE X-Spamd-Result: default: False [-2.80 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[chaos1.de:+]; NEURAL_HAM_SHORT(-0.90)[-0.898]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:197071, ipnet:2a05:bec0::/29, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[chaos1.de:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[chaos1.de:s=email1]; RCVD_IN_DNSWL_LOW(-0.10)[2a05:bec0:26:5::73:from]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; DMARC_NA(0.00)[chaos1.de]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MLMMJ_DEST(0.00)[hardware]; R_SPF_NA(0.00)[no SPF record] X-ThisMailContainsUnwantedMimeParts: N --Apple-Mail=_59483380-4DFF-482C-AF8D-EC0F9712E2CA Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > Am 10.04.2022 um 22:07 schrieb Tomek CEDRO : >=20 > On Sun, Apr 10, 2022 at 6:59 PM Axel Rau wrote: >> root@home2l:~ # avrdude -c stk500v2 -p t85 -vvv -t >>=20 >> avrdude: Version 6.4 >> Copyright (c) Brian Dean, http://www.bdmicro.com/ >> Copyright (c) Joerg Wunsch >>=20 >> System wide configuration file is "/usr/local/etc/avrdude.conf= " >> User configuration file is "/root/.avrduderc" >>=20 >> Using Port : /dev/cuad0 >> Using Programmer : stk500v2 >> avrdude: ser_open(): can't open device "/dev/cuad0": No such file or = directory >=20 > avrdude -c stk500v2 -p 85 -vvv -t -P usb root@home2l:~ # avrdude -c stk500v2 -p t85 -vvv -t -P usb avrdude: Version 6.4 Copyright (c) Brian Dean, http://www.bdmicro.com/ Copyright (c) Joerg Wunsch System wide configuration file is "/usr/local/etc/avrdude.conf" User configuration file is "/root/.avrduderc" User configuration file does not exist or is not a regular = file, skipping Using Port : usb Using Programmer : stk500v2 avrdude: usbdev_open(): did not find any USB device "usb" (0x03eb:0x2104) avrdude done. Thank you. =2D-- PGP-Key: CDE74120 =E2=98=80 computing @ chaos claudius --Apple-Mail=_59483380-4DFF-482C-AF8D-EC0F9712E2CA Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
=


On Sun, Apr 10, 2022 = at 6:59 PM Axel Rau <= Axel.Rau@chaos1.de> wrote:
root@home2l:~ # avrdude -c stk500v2 -p t85 -vvv -t

avrdude: Version 6.4
  = ;      Copyright (c) Brian Dean, http://www.bdmicro.com/         Copyright = (c) Joerg Wunsch

    &n= bsp;   System wide configuration file is "/usr/local/etc/a= vrdude.conf"
       &nb= sp;User configuration file is "/root/.avrduderc"

        Using Port =             &= nbsp;      : /dev/cuad0
=         Using Programmer =             &= nbsp;: stk500v2
avrdude: ser_open(): can't open device = "/dev/cuad0": No such file or directory

avrdude -c stk500v2 -p 85 -vvv -t -P usb
<= /div>

root@home2l:~ # avrdude -c stk500v2 -p t85 -vvv -t -P usb
<= div style=3D"margin: 0px; font-stretch: normal; font-size: 11px; = line-height: normal; font-family: Monaco; background-color: rgb(255, = 255, 255); min-height: 15px;" class=3D"">
avrdude: Version 6.4
   =       Copyright (c) Brian Dean, http://www.bdmicro.com/
         Copyright (c) Joerg = Wunsch

         System wide = configuration file is "/usr/local/etc/avrdude.conf"
         User configuration file is = "/root/.avrduderc"
     =     User configuration file does not exist or is not a regular = file, skipping
=
         = Using Port                  =   : usb
     =     Using Programmer            =   : stk500v2
avrdude: usbdev_open(): = did not find any USB device "usb" (0x03eb:0x2104)

avrdude done.  Thank you.

---
PGP-Key: CDE74120  =E2=98=80 =  computing @ chaos claudius

--Apple-Mail=_59483380-4DFF-482C-AF8D-EC0F9712E2CA-- From nobody Sun Apr 10 21:59:02 2022 X-Original-To: hardware@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 9D3F41AAD0FE for ; Sun, 10 Apr 2022 21:59:24 +0000 (UTC) (envelope-from tomek@cedro.info) Received: from mail-oa1-x36.google.com (mail-oa1-x36.google.com [IPv6:2001:4860:4864:20::36]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Kc5Vf6Q0qz4R5J for ; Sun, 10 Apr 2022 21:59:22 +0000 (UTC) (envelope-from tomek@cedro.info) Received: by mail-oa1-x36.google.com with SMTP id 586e51a60fabf-e2afb80550so3428835fac.1 for ; Sun, 10 Apr 2022 14:59:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cedro.info; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=5MopoFjEa2bb7elidQ6/hHy48zZK+h/ZJC+vl/V+gRQ=; b=St/kujZND+X+JG1zjnMKVF9gumHChoRcECq8LjHQRH1cniLZILNINxyo852wzIo+So hAiSnnsRpXoYB4BQY05uKkECap1+jOT3MsWcitbGj8gLBAvk7PvHUOlkhxzP5nAtVu89 7Ct2alyTp94M3xIg3s3ZiSpQWL6Yh0RzkdjVWCEQt2iWSKfmj1X+PMLj1NIth23AhFci dP06oJjH8ICmnin4OfF6cSZy9eNaZnIm98SoQMoLbgsGD1cYBlV7nLe04zEyJQ7ILXy8 F4KGJaph5UwE0vYmIWu6iWPLWApwi/9Tckcsa8Th4I5ld0lH6t1NxntkmqUHSE4ouehl fldQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=5MopoFjEa2bb7elidQ6/hHy48zZK+h/ZJC+vl/V+gRQ=; b=aO6fRR4YWO6FBCEfbs6rC0Q/wbTP+c4Q0jVZNCvcQsXuE0IXmOasJ28QS7hPewF8tb 58N//dNSbaQAy47/w4NqCYI/4d0T2476tla/+Gt0WLhnndAIGOGUl2dvz8SK1oFP6yWr GlDygP7w3XvvEQMJHjVDr7PoJjeX9JgCVABeoutWhAGGw4whD6VJS0BtT2QRPFJPzACq h+HXBnGn5ct/2uYdv36VbzhzdllBjyq/bXElCvUpPyocAyPOuwP2oOTY8gLWakOMwZ+G Jr4t74HqCeDQJbwcHcV9KbhsBiTps5//GVZeOzNdIxpZ+IuDovsJuP7YhwtT1/ysZcBP NRhA== X-Gm-Message-State: AOAM531LC25IRfAWu3rIihfJ1c7BtqZZNiRHFN5qgfV90jiOQHygqCMT c7fY4OUrrZZJAEZL8HDYFwtguwcf7eE6Qkp4 X-Google-Smtp-Source: ABdhPJylNqi3fTXAYCdstFCIzpqccy2J7fwMkO2gZvgVgAWqHprV4hPCGvLjPBEcjIXauWcEz/U7JQ== X-Received: by 2002:a05:6870:b211:b0:d6:defc:ff27 with SMTP id a17-20020a056870b21100b000d6defcff27mr12957337oam.100.1649627956062; Sun, 10 Apr 2022 14:59:16 -0700 (PDT) Received: from mail-ot1-f41.google.com (mail-ot1-f41.google.com. [209.85.210.41]) by smtp.gmail.com with ESMTPSA id q203-20020acad9d4000000b002f8ee3f69e2sm10846129oig.52.2022.04.10.14.59.15 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 10 Apr 2022 14:59:15 -0700 (PDT) Received: by mail-ot1-f41.google.com with SMTP id a17-20020a9d3e11000000b005cb483c500dso10105837otd.6 for ; Sun, 10 Apr 2022 14:59:15 -0700 (PDT) X-Received: by 2002:a05:6830:231c:b0:5b2:5e8a:14b5 with SMTP id u28-20020a056830231c00b005b25e8a14b5mr10241970ote.295.1649627955556; Sun, 10 Apr 2022 14:59:15 -0700 (PDT) List-Id: General discussion of FreeBSD hardware List-Archive: https://lists.freebsd.org/archives/freebsd-hardware List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hardware@freebsd.org MIME-Version: 1.0 References: <3A781DFA-1E2C-41A5-8053-C90A806244DC@Chaos1.DE> <34a747ea-2ee5-660f-71c6-dc00d5de337f@selasky.org> <9334c4f0-3ecf-c046-420f-516e39379981@selasky.org> <976BDBEB-8B57-4541-A0B7-3F2C89498DC6@Chaos1.DE> <7190bdde-22bc-79ee-06d0-d0114a3ffbad@selasky.org> <7CDFB049-241F-4C31-A7B1-A7D6BDE6A002@Chaos1.DE> <24AA646A-698B-4D41-9668-3F9F99732D02@Chaos1.DE> <1A94816D-E3C1-4488-A5A9-784BAC68AE74@Chaos1.DE> <13D17C8D-D67B-47E8-BB64-A8E32267C669@Chaos1.DE> In-Reply-To: <13D17C8D-D67B-47E8-BB64-A8E32267C669@Chaos1.DE> From: Tomek CEDRO Date: Sun, 10 Apr 2022 23:59:02 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: timeouts on USB ISP programmer To: Axel Rau Cc: Hans Petter Selasky , hardware@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4Kc5Vf6Q0qz4R5J X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cedro.info header.s=google header.b="St/kujZN"; dmarc=none; spf=none (mx1.freebsd.org: domain of tomek@cedro.info has no SPF policy when checking 2001:4860:4864:20::36) smtp.mailfrom=tomek@cedro.info X-Spamd-Result: default: False [-2.43 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[cedro.info:s=google]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[hardware@freebsd.org]; DMARC_NA(0.00)[cedro.info]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[cedro.info:+]; NEURAL_HAM_SHORT(-0.13)[-0.128]; RCVD_IN_DNSWL_NONE(0.00)[2001:4860:4864:20::36:from,209.85.210.41:received]; MLMMJ_DEST(0.00)[hardware]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:15169, ipnet:2001:4860:4864::/48, country:US]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On Sun, Apr 10, 2022 at 10:46 PM Axel Rau wrote: > root@home2l:~ # avrdude -c stk500v2 -p t85 -vvv -t -P usb > > avrdude: Version 6.4 > Copyright (c) Brian Dean, http://www.bdmicro.com/ > Copyright (c) Joerg Wunsch > > System wide configuration file is "/usr/local/etc/avrdude.conf" > User configuration file is "/root/.avrduderc" > User configuration file does not exist or is not a regular file, skipping > > Using Port : usb > Using Programmer : stk500v2 > avrdude: usbdev_open(): did not find any USB device "usb" (0x03eb:0x2104) Okay, your local `~/.avrduderc` configuration needs an update. Remove all from file and put only this: default_programmer = "diamex-avr-usb"; programmer id = "diamex-avr-usb"; desc = "Diamex AVR USB Programmer"; type = "stk500v2"; connection_type = usb; usbvid = 0x16c0; usbpid = 0x2a9b; ; Then run: avrdude -c diamex-avr-usb -p t85 -vvv -t Configuration will define a new Programmer, that is STK500v2 compatible (not FT2232), will provide VID:PID pair, and will tell to use USB connection as default :-) Because default_programmer is set to diamex-avr-usb it may not be even necessary to provide `-c diamex-avr-usb` just `avrdude -p t85 -t` :-) -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info From nobody Sun Apr 10 23:08:39 2022 X-Original-To: hardware@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 4B5DE1A8E881 for ; Sun, 10 Apr 2022 23:08:42 +0000 (UTC) (envelope-from Axel.Rau@Chaos1.DE) Received: from mailout5.lrau.net (mailout5.lrau.net [IPv6:2a05:bec0:26:5::73]) (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 "mailout5.lrau.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Kc72d2d4gz4ctt for ; Sun, 10 Apr 2022 23:08:41 +0000 (UTC) (envelope-from Axel.Rau@Chaos1.DE) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=chaos1.de; s=email1; h=References:To:Cc:In-Reply-To:Date:Subject:Mime-Version: Content-Type:Message-Id:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=urGnUH4LvcCoZS0s2qR5lOSwZq/TXPquFtvMlaHwBis=; b=qkt+H936AoK8e9AhhL6IyHOVE2 mjyhQkkO+p9cVjbcCnkNKrt61u9ZPp31o5k7e9o7150X+4UW6GjwlWcP3kvPdCW9wr1oX28Tsmdo4 7uxAYQ2aYctkCPH4oRJJRR0JAL/BrqhH+MIWEDESEZxgTMe+G6cJA50gJhitC1e9gHBztJ16/S5lE 2uAOMTCkBzwGOCabX6EOT/BeLMuiIFiKwEKkEqqOAweHEkxxnoIv3cgnFCpR0pKkG+4WCAnOO6+i8 +MMeEvyj0QFAQLUmVOuLx93saRL6/gYbMcaqqUgz1LemQ0wWaC4+GAnBefQClKaRJoXPzp/TuWgtt +LBIf9fQ==; Received: from [2a05:bec0:26:5::74] (helo=imap5.lrau.net) by mailout5.lrau.net with esmtp (Exim 4.95 (FreeBSD)) (envelope-from ) id 1ndgfg-000HYz-8E; Sun, 10 Apr 2022 23:08:40 +0000 Received: from Axel.Rau@Chaos1.DE by imap5.lrau.net (Archiveopteryx 3.2.0) with esmtpsa id 1649632119-44478-42070/7/15; Sun, 10 Apr 2022 23:08:39 +0000 From: Axel Rau Message-Id: Content-Type: multipart/alternative; boundary="Apple-Mail=_4A4EBA20-9180-4B6C-8ACC-1B2DAF4958A3" List-Id: General discussion of FreeBSD hardware List-Archive: https://lists.freebsd.org/archives/freebsd-hardware List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hardware@freebsd.org Mime-Version: 1.0 Subject: Re: timeouts on USB ISP programmer Date: Mon, 11 Apr 2022 01:08:39 +0200 In-Reply-To: Cc: Hans Petter Selasky , hardware@freebsd.org To: Tomek CEDRO References: <3A781DFA-1E2C-41A5-8053-C90A806244DC@Chaos1.DE> <34a747ea-2ee5-660f-71c6-dc00d5de337f@selasky.org> <9334c4f0-3ecf-c046-420f-516e39379981@selasky.org> <976BDBEB-8B57-4541-A0B7-3F2C89498DC6@Chaos1.DE> <7190bdde-22bc-79ee-06d0-d0114a3ffbad@selasky.org> <7CDFB049-241F-4C31-A7B1-A7D6BDE6A002@Chaos1.DE> <24AA646A-698B-4D41-9668-3F9F99732D02@Chaos1.DE> <1A94816D-E3C1-4488-A5A9-784BAC68AE74@Chaos1.DE> <13D17C8D-D67B-47E8-BB64-A8E32267C669@Chaos1.DE> X-Mailer: Apple Mail (2.3608.120.23.2.7) X-Rspamd-Queue-Id: 4Kc72d2d4gz4ctt X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=chaos1.de header.s=email1 header.b=qkt+H936; dmarc=none; spf=none (mx1.freebsd.org: domain of Axel.Rau@Chaos1.DE has no SPF policy when checking 2a05:bec0:26:5::73) smtp.mailfrom=Axel.Rau@Chaos1.DE X-Spamd-Result: default: False [-2.90 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[chaos1.de:s=email1]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; MV_CASE(0.50)[]; NEURAL_HAM_LONG(-1.00)[-0.999]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; DMARC_NA(0.00)[Chaos1.DE]; TO_DN_SOME(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[chaos1.de:+]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DWL_DNSWL_NONE(0.00)[chaos1.de:dkim]; MLMMJ_DEST(0.00)[hardware]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:197071, ipnet:2a05:bec0::/29, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[2a05:bec0:26:5::73:from] X-ThisMailContainsUnwantedMimeParts: N --Apple-Mail=_4A4EBA20-9180-4B6C-8ACC-1B2DAF4958A3 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > Am 10.04.2022 um 23:59 schrieb Tomek CEDRO : >=20 > On Sun, Apr 10, 2022 at 10:46 PM Axel Rau wrote: >> root@home2l:~ # avrdude -c stk500v2 -p t85 -vvv -t -P usb >>=20 >> avrdude: Version 6.4 >> Copyright (c) Brian Dean, http://www.bdmicro.com/ >> Copyright (c) Joerg Wunsch >>=20 >> System wide configuration file is "/usr/local/etc/avrdude.conf= " >> User configuration file is "/root/.avrduderc" >> User configuration file does not exist or is not a regular = file, skipping >>=20 >> Using Port : usb >> Using Programmer : stk500v2 >> avrdude: usbdev_open(): did not find any USB device "usb" (0x03eb:0x21= 04) >=20 > Okay, your local `~/.avrduderc` configuration needs an update. Remove > all from file and put only this: >=20 > default_programmer =3D "diamex-avr-usb"; > programmer > id =3D "diamex-avr-usb"; > desc =3D "Diamex AVR USB Programmer"; > type =3D "stk500v2"; > connection_type =3D usb; > usbvid =3D 0x16c0; > usbpid =3D 0x2a9b; > ; >=20 > Then run: >=20 > avrdude -c diamex-avr-usb -p t85 -vvv -t >=20 > Configuration will define a new Programmer, that is STK500v2 > compatible (not FT2232), will provide VID:PID pair, and will tell to > use USB connection as default :-) >=20 > Because default_programmer is set to diamex-avr-usb it may not be even > necessary to provide `-c diamex-avr-usb` just `avrdude -p t85 -t` :-) >=20 - - - root@home2l:~ # avrdude -c diamex-avr-usb -p t85 -vvv -t avrdude: Version 6.4 Copyright (c) Brian Dean, http://www.bdmicro.com/ Copyright (c) Joerg Wunsch System wide configuration file is "/usr/local/etc/avrdude.conf" User configuration file is "/root/.avrduderc" Using Port : usb Using Programmer : diamex-avr-usb avrdude: usbdev_open(): did not find any USB device "usb" (0x03eb:0x2104) avrdude done. Thank you. root@home2l:~ # avrdude -p t85 -vvv -t avrdude: Version 6.4 Copyright (c) Brian Dean, http://www.bdmicro.com/ Copyright (c) Joerg Wunsch System wide configuration file is "/usr/local/etc/avrdude.conf" User configuration file is "/root/.avrduderc" Using Port : usb Using Programmer : diamex-avr-usb avrdude: usbdev_open(): did not find any USB device "usb" (0x03eb:0x2104) avrdude done. Thank you. root@home2l:~ # avrdude -p t85 -vvv -t avrdude: Version 6.4 Copyright (c) Brian Dean, http://www.bdmicro.com/ Copyright (c) Joerg Wunsch System wide configuration file is "/usr/local/etc/avrdude.conf" User configuration file is "/root/.avrduderc" Using Port : usb Using Programmer : diamex-avr-usb avrdude: usbdev_open(): did not find any USB device "usb" (0x03eb:0x2104) avrdude done. Thank you. root@home2l:~ # root@home2l:~ # root@home2l:~ # cat ~/.avrduderc default_programmer =3D "diamex-avr-usb"; programmer id =3D "diamex-avr-usb"; desc =3D "Diamex AVR USB Programmer"; type =3D "stk500v2"; connection_type =3D usb; usbvid =3D 0x03eb; usbpid =3D 0x2104; ; - - - usbvid and usbpid are ignored: - - - root@home2l:~ # cat ~/.avrduderc default_programmer =3D "diamex-avr-usb"; programmer id =3D "diamex-avr-usb"; desc =3D "Diamex AVR USB Programmer"; type =3D "stk500v2"; connection_type =3D usb; ; root@home2l:~ # avrdude -p t85 -vvv -t avrdude: Version 6.4 Copyright (c) Brian Dean, http://www.bdmicro.com/ Copyright (c) Joerg Wunsch System wide configuration file is "/usr/local/etc/avrdude.conf" User configuration file is "/root/.avrduderc" Using Port : usb Using Programmer : diamex-avr-usb avrdude: usbdev_open(): did not find any USB device "usb" (0x03eb:0x2104) avrdude done. Thank you. - - - Axel ps: All this is inside a jail, but I see no difference on the host. devfs.rules are - - - [devfsrules_jail_home2l=3D100] add include $devfsrules_jail add path 'ugen*' unhide add path 'usb/*' unhide add path 'usbctl' unhide add path 'cuaU*' unhide add path 'cuau*' unhide - - - =2D-- PGP-Key: CDE74120 =E2=98=80 computing @ chaos claudius --Apple-Mail=_4A4EBA20-9180-4B6C-8ACC-1B2DAF4958A3 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
=

= Am 10.04.2022 um 23:59 schrieb Tomek CEDRO <tomek@cedro.info>:

On Sun, Apr 10, 2022 = at 10:46 PM Axel Rau <Axel.Rau@chaos1.de> wrote:
root@home2l:~ # avrdude -c stk500v2 -p t85 -vvv -t -P = usb

avrdude: Version 6.4
=         Copyright (c) Brian = Dean, http://www.bdmicro.c= om/
        Co= pyright (c) Joerg Wunsch

   =      System wide configuration file is "/usr/loc= al/etc/avrdude.conf"
      &= nbsp; User configuration file is "/root/.avrduderc"
=         User configuration file = does not exist or is not a regular file, skipping

        Using Port =             &= nbsp;      : usb
  = ;      Using Programmer    &= nbsp;         : stk500v2
avrdude: usbdev_open(): did not find any USB device "usb" = (0x03eb:0x2104)

Okay, your = local `~/.avrduderc` configuration needs an update. Remove
= all from file and put only this:

default_pro= grammer =3D "diamex-avr-usb";
programmer
=  id    =3D "diamex-avr-usb";
 des= c  =3D "Diamex AVR USB Programmer";
 type =  =3D  "stk500v2";
 connection_type =3D = usb;
 usbvid     =3D 0x16c0;
 usbpid     =3D 0x2a9b;
;

Then run:

a= vrdude -c diamex-avr-usb -p t85 -vvv -t

Conf= iguration will define a new Programmer, that is STK500v2
co= mpatible (not FT2232), will provide VID:PID pair, and will tell to
use USB connection as default :-)

Because default_programmer is set to diamex-avr-usb it may not be = even
necessary to provide `-c diamex-avr-usb` just = `avrdude -p t85 -t` :-)

- - -
root= @home2l:~ # avrdude -c diamex-avr-usb -p t85 -vvv -t

avrdude: Version = 6.4
         = Copyright (c) Brian Dean, = http://www.bdmicro.com/
   =       Copyright (c) Joerg Wunsch

         System wide configuration = file is "/usr/local/etc/avrdude.conf"
&nbs= p;        User configuration file is "/root/.avrduder= c"

         Using Port  =                   : = usb
         = Using Programmer              : = diamex-avr-usb
avrdude: usbdev_open(): = did not find any USB device "usb" (0x03eb:0x2104)

avrdude done.  Thank you.

root@home2l:~ = # avrdude=   -p t85 -vvv -t
=
avrdude: Version 6.4
         Copyright (c) Brian Dean, = http://www.bdmicro.com/


- - -
programmer
 id    =3D "diamex-avr-usb";
 desc  =3D "Diamex AVR USB Programmer";
=
 type  =3D  "stk500v2";
 connection_type =3D usb;
;=

root@home2l:~ # avrdude -p t85 -vvv -t

avrdude: Version = 6.4
     =     Copyright (c) Joerg Wunsch

     =     System wide configuration file is "/usr/local/etc/avrdude.c= onf"
         User = configuration file is "/root/.avrduderc"

     =     Using Port              =       : usb
     =     Using Programmer            =   : diamex-avr-usb
avrdude: usbdev_open(): did = not find any USB device "usb" (0x03eb:0x2104)

avrdude done.  = Thank you.
- - -

Axel
ps: = All this is inside a jail, but I see no difference on the host.
devfs.rules are
- - = -
[devfsrules_jail_home2l=3D= 100]
add include $devfsrules_jail
add path 'ugen*' unhide
add path 'usb/*' = unhide
add path 'usbctl' unhide
add path 'cuaU*' unhide
add path 'cuau*' unhide
- - -

=
---
PGP-Key: CDE74120  =E2=98=80 =  computing @ chaos claudius

--Apple-Mail=_4A4EBA20-9180-4B6C-8ACC-1B2DAF4958A3-- From nobody Sun Apr 10 23:28:46 2022 X-Original-To: hardware@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 270761A9366A for ; Sun, 10 Apr 2022 23:29:03 +0000 (UTC) (envelope-from tomek@cedro.info) Received: from mail-oi1-x232.google.com (mail-oi1-x232.google.com [IPv6:2607:f8b0:4864:20::232]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Kc7V6065Lz4gg9 for ; Sun, 10 Apr 2022 23:29:01 +0000 (UTC) (envelope-from tomek@cedro.info) Received: by mail-oi1-x232.google.com with SMTP id e4so14320093oif.2 for ; Sun, 10 Apr 2022 16:29:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cedro.info; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/73zFS4KbrSVnFdWS3r4zsDkYgu1b/pcpsfxPnPVygo=; b=jBaqKGaeQiB3ZysW2cnNmlNFI1tm2Jsq5QUb5XVl219CO/+eLYA7QAKvcnLFMW9iS2 6cm9BLbqFfHGvOZU+h489Tkntm6lnosENxYEewkhzIvSG0SViFKwbqMlNEfnP9Mq358O ZCJsocd8jXF7/91ZzfKV8MIQSNlL0vCNrJ0OS6dFx7hGyq/MWZEP4ULjx+Ry/Zi7Cp/n eUYGOY0YKJ31Xqfsag2zsul7OSNLTip+27RXncrFVz8sKZAP4WTXnNTniZbRr/XKnIs4 aVk0C3E9A/i1r5xJm6SNQZyJbvybEQnPfqG/+/8BaLEGY7XFKDmIX0Nu02IgT3CmdLKZ HZxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/73zFS4KbrSVnFdWS3r4zsDkYgu1b/pcpsfxPnPVygo=; b=1EQ5VM6oe0B6fKwq3NlOVbwwLZhEfxBB8tHzTBBY1TOJc1mn/Mj5b8RXMu/K3CAIKm c3GDK7gvMaOIBz24ItmF4l4kUA1LTaoMpk59FcGZfIO5RokCOfGAj4IMWD7Zcw62rKGJ 6hhioOo9Pkt1CiAiU3gHdI7CK1R0IGduNzwmNbfUlWCg/UPP/M1ZMg11jpFmZmiyNLEE jfNNivf/4sMlXuUwihM/roomu7ytttJ62D8slwyNYpX7SXmEAMlFybsjTwOtHmK2SPES guNoeXmoqPfuLVJYwLKxJz2eJmYKZgxLehaekyG9hFswrmqT5/MWFjnJ93pBa2P4w89l ReDw== X-Gm-Message-State: AOAM531DnFd7QCgucx3p+GBmX9s10AtyzzPuidBH2Gs8us6muA1DWPv5 Rl4kwA/+SD7G9mQsYg95pKHZNu/szYaXnLUt X-Google-Smtp-Source: ABdhPJx+S9564uWRd6mSoGC9f2cW1qM/u3BMvAPfLGnhrIpOi+F0pfjnq1CM0LOvt5C4AOSJnWDrpA== X-Received: by 2002:aca:a817:0:b0:2ef:9e75:c012 with SMTP id r23-20020acaa817000000b002ef9e75c012mr3830209oie.93.1649633340497; Sun, 10 Apr 2022 16:29:00 -0700 (PDT) Received: from mail-oa1-f53.google.com (mail-oa1-f53.google.com. [209.85.160.53]) by smtp.gmail.com with ESMTPSA id i28-20020a9d4a9c000000b005ce06a77de2sm12282568otf.48.2022.04.10.16.28.59 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 10 Apr 2022 16:28:59 -0700 (PDT) Received: by mail-oa1-f53.google.com with SMTP id 586e51a60fabf-d39f741ba0so15434444fac.13 for ; Sun, 10 Apr 2022 16:28:59 -0700 (PDT) X-Received: by 2002:a05:6870:248c:b0:d7:19f3:a52c with SMTP id s12-20020a056870248c00b000d719f3a52cmr12434935oaq.149.1649633339668; Sun, 10 Apr 2022 16:28:59 -0700 (PDT) List-Id: General discussion of FreeBSD hardware List-Archive: https://lists.freebsd.org/archives/freebsd-hardware List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hardware@freebsd.org MIME-Version: 1.0 References: <3A781DFA-1E2C-41A5-8053-C90A806244DC@Chaos1.DE> <34a747ea-2ee5-660f-71c6-dc00d5de337f@selasky.org> <9334c4f0-3ecf-c046-420f-516e39379981@selasky.org> <976BDBEB-8B57-4541-A0B7-3F2C89498DC6@Chaos1.DE> <7190bdde-22bc-79ee-06d0-d0114a3ffbad@selasky.org> <7CDFB049-241F-4C31-A7B1-A7D6BDE6A002@Chaos1.DE> <24AA646A-698B-4D41-9668-3F9F99732D02@Chaos1.DE> <1A94816D-E3C1-4488-A5A9-784BAC68AE74@Chaos1.DE> <13D17C8D-D67B-47E8-BB64-A8E32267C669@Chaos1.DE> In-Reply-To: From: Tomek CEDRO Date: Mon, 11 Apr 2022 01:28:46 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: timeouts on USB ISP programmer To: Axel Rau Cc: Hans Petter Selasky , hardware@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4Kc7V6065Lz4gg9 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cedro.info header.s=google header.b=jBaqKGae; dmarc=none; spf=none (mx1.freebsd.org: domain of tomek@cedro.info has no SPF policy when checking 2607:f8b0:4864:20::232) smtp.mailfrom=tomek@cedro.info X-Spamd-Result: default: False [-3.30 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[cedro.info:s=google]; NEURAL_HAM_MEDIUM(-1.00)[-0.998]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[hardware@freebsd.org]; DMARC_NA(0.00)[cedro.info]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[cedro.info:+]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::232:from,209.85.160.53:received]; MLMMJ_DEST(0.00)[hardware]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On Mon, Apr 11, 2022 at 1:08 AM Axel Rau wrote: > Am 10.04.2022 um 23:59 schrieb Tomek CEDRO : >> Okay, your local `~/.avrduderc` configuration needs an update. Remove >> all from file and put only this: >> >> default_programmer = "diamex-avr-usb"; >> programmer >> id = "diamex-avr-usb"; >> desc = "Diamex AVR USB Programmer"; >> type = "stk500v2"; >> connection_type = usb; >> usbvid = 0x16c0; >> usbpid = 0x2a9b; >> ; >> >> Then run: > avrdude -c diamex-avr-usb -p t85 -vvv -t > > root@home2l:~ # avrdude -c diamex-avr-usb -p t85 -vvv -t > > avrdude: Version 6.4 > Copyright (c) Brian Dean, http://www.bdmicro.com/ > Copyright (c) Joerg Wunsch > > System wide configuration file is "/usr/local/etc/avrdude.conf" > User configuration file is "/root/.avrduderc" > > Using Port : usb > Using Programmer : diamex-avr-usb > avrdude: usbdev_open(): did not find any USB device "usb" (0x03eb:0x2104) > > avrdude done. Thank you. > > root@home2l:~ # avrdude -p t85 -vvv -t > > avrdude: Version 6.4 > Copyright (c) Brian Dean, http://www.bdmicro.com/ > Copyright (c) Joerg Wunsch > > System wide configuration file is "/usr/local/etc/avrdude.conf" > User configuration file is "/root/.avrduderc" > > Using Port : usb > Using Programmer : diamex-avr-usb > avrdude: usbdev_open(): did not find any USB device "usb" (0x03eb:0x2104) > > avrdude done. Thank you. > > root@home2l:~ # cat ~/.avrduderc > default_programmer = "diamex-avr-usb"; > programmer > id = "diamex-avr-usb"; > desc = "Diamex AVR USB Programmer"; > type = "stk500v2"; > connection_type = usb; > usbvid = 0x03eb; > usbpid = 0x2104; > ; > - - - > usbvid and usbpid are ignored: > - - - Why do you think VID:PID is ignored? You have entered different VID:PID in the configuration than I have provided. default_programmer = "diamex-avr-usb"; programmer id = "diamex-avr-usb"; desc = "Diamex AVR USB Programmer"; type = "stk500v2"; connection_type = usb; usbvid = 0x16c0; usbpid = 0x2a9b; ; You need to provide VID:PID of Your Diamex interface that is VID=0x16c0 PID=0x2a9b. Your configuration contains VID=0x03eb PID=0x2104 this is why interface cannot be found. Please copy-paste exactly as provided above. Where I know VID:PID of your interface? From previous message. root@home2l:/ # usbconfig -d 0.4 dump_device_desc ugen0.4: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (500mA) bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x0002 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0040 idVendor = 0x16c0 <-- THIS IS USB VID idProduct = 0x2a9b <-- THIS IS USB PID bcdDevice = 0x4340 iManufacturer = 0x0001 iProduct = 0x0002 iSerialNumber = 0x0003 <19331-49101-552> bNumConfigurations = 0x0001 -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info From nobody Mon Apr 11 05:34:56 2022 X-Original-To: hardware@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 29C9F1A8419D for ; Mon, 11 Apr 2022 05:35:01 +0000 (UTC) (envelope-from Axel.Rau@Chaos1.DE) Received: from mailout5.lrau.net (mailout5.lrau.net [IPv6:2a05:bec0:26:5::73]) (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 "mailout5.lrau.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KcHcN1fVcz4j9r for ; Mon, 11 Apr 2022 05:35:00 +0000 (UTC) (envelope-from Axel.Rau@Chaos1.DE) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=chaos1.de; s=email1; h=References:To:Cc:In-Reply-To:Date:Subject:Mime-Version: Content-Type:Message-Id:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=xlv9AzQFW49H/QjDfid5xPcdEMSHNbHTvzx0psc+qDA=; b=ttQCszYLHjISmZcpPmus2vvf6O tVYhTjnrk0EONCZrEa2FqdPR0oyITDStsRMM18JCO1AmKQVn/syV2bEqaiIPpm3Udg96xs78v/0Hb Ye93e6D9lY1K1J6Z8GOZUEEw6M0SiDAHrk3wJ0ies4qVNf/A/hfSNak+Y0D+RSJ7N+Y4/S1koPAlD DniU74jCiAldrt15bxE5W7OmFpj7SKSWqBbWta3LJYzsQL8/9+CHdaooe2sRyJWAsmhu0YZqMZhGD AsBQ5QhYtwzr3Avcc70XVA80XQGv7rqGlK1nLuVSgOBbuLwEFn2eYqd18SY1fU/pcN74HqM/+uiiq sLL84PwA==; Received: from [2a05:bec0:26:5::74] (helo=imap5.lrau.net) by mailout5.lrau.net with esmtp (Exim 4.95 (FreeBSD)) (envelope-from ) id 1ndmhX-0002Db-7S; Mon, 11 Apr 2022 05:34:59 +0000 Received: from Axel.Rau@Chaos1.DE by imap5.lrau.net (Archiveopteryx 3.2.0) with esmtpsa id 1649655297-45319-42070/7/10; Mon, 11 Apr 2022 05:34:57 +0000 From: Axel Rau Message-Id: <5E302425-D601-4C5D-B8B6-E6295B242B66@Chaos1.DE> Content-Type: multipart/alternative; boundary="Apple-Mail=_419A7FE8-6CBF-4370-A5BB-8B5582926971" List-Id: General discussion of FreeBSD hardware List-Archive: https://lists.freebsd.org/archives/freebsd-hardware List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hardware@freebsd.org Mime-Version: 1.0 Subject: Re: timeouts on USB ISP programmer Date: Mon, 11 Apr 2022 07:34:56 +0200 In-Reply-To: Cc: Hans Petter Selasky , hardware@freebsd.org To: Tomek CEDRO References: <3A781DFA-1E2C-41A5-8053-C90A806244DC@Chaos1.DE> <34a747ea-2ee5-660f-71c6-dc00d5de337f@selasky.org> <9334c4f0-3ecf-c046-420f-516e39379981@selasky.org> <976BDBEB-8B57-4541-A0B7-3F2C89498DC6@Chaos1.DE> <7190bdde-22bc-79ee-06d0-d0114a3ffbad@selasky.org> <7CDFB049-241F-4C31-A7B1-A7D6BDE6A002@Chaos1.DE> <24AA646A-698B-4D41-9668-3F9F99732D02@Chaos1.DE> <1A94816D-E3C1-4488-A5A9-784BAC68AE74@Chaos1.DE> <13D17C8D-D67B-47E8-BB64-A8E32267C669@Chaos1.DE> X-Mailer: Apple Mail (2.3608.120.23.2.7) X-Rspamd-Queue-Id: 4KcHcN1fVcz4j9r X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=chaos1.de header.s=email1 header.b=ttQCszYL; dmarc=none; spf=none (mx1.freebsd.org: domain of Axel.Rau@Chaos1.DE has no SPF policy when checking 2a05:bec0:26:5::73) smtp.mailfrom=Axel.Rau@Chaos1.DE X-Spamd-Result: default: False [-1.31 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[chaos1.de:s=email1]; NEURAL_HAM_MEDIUM(-0.60)[-0.596]; 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)[multipart/alternative,text/plain]; DMARC_NA(0.00)[Chaos1.DE]; TO_DN_SOME(0.00)[]; NEURAL_SPAM_SHORT(0.19)[0.190]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[chaos1.de:+]; DWL_DNSWL_NONE(0.00)[chaos1.de:dkim]; MLMMJ_DEST(0.00)[hardware]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:197071, ipnet:2a05:bec0::/29, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[2a05:bec0:26:5::73:from] X-ThisMailContainsUnwantedMimeParts: N --Apple-Mail=_419A7FE8-6CBF-4370-A5BB-8B5582926971 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > Am 11.04.2022 um 01:28 schrieb Tomek CEDRO : >=20 > On Mon, Apr 11, 2022 at 1:08 AM Axel Rau wrote: >> Am 10.04.2022 um 23:59 schrieb Tomek CEDRO : >>> Okay, your local `~/.avrduderc` configuration needs an update. Remove >>> all from file and put only this: >>>=20 >>> default_programmer =3D "diamex-avr-usb"; >>> programmer >>> id =3D "diamex-avr-usb"; >>> desc =3D "Diamex AVR USB Programmer"; >>> type =3D "stk500v2"; >>> connection_type =3D usb; >>> usbvid =3D 0x16c0; >>> usbpid =3D 0x2a9b; >>> ; >>>=20 >>> Then run: >> avrdude -c diamex-avr-usb -p t85 -vvv -t >>=20 >> root@home2l:~ # avrdude -c diamex-avr-usb -p t85 -vvv -t >>=20 >> avrdude: Version 6.4 >> Copyright (c) Brian Dean, http://www.bdmicro.com/ >> Copyright (c) Joerg Wunsch >>=20 >> System wide configuration file is "/usr/local/etc/avrdude.conf= " >> User configuration file is "/root/.avrduderc" >>=20 >> Using Port : usb >> Using Programmer : diamex-avr-usb >> avrdude: usbdev_open(): did not find any USB device "usb" (0x03eb:0x21= 04) >>=20 >> avrdude done. Thank you. >>=20 >> root@home2l:~ # avrdude -p t85 -vvv -t >>=20 >> avrdude: Version 6.4 >> Copyright (c) Brian Dean, http://www.bdmicro.com/ >> Copyright (c) Joerg Wunsch >>=20 >> System wide configuration file is "/usr/local/etc/avrdude.conf= " >> User configuration file is "/root/.avrduderc" >>=20 >> Using Port : usb >> Using Programmer : diamex-avr-usb >> avrdude: usbdev_open(): did not find any USB device "usb" (0x03eb:0x21= 04) >>=20 >> avrdude done. Thank you. >>=20 >> root@home2l:~ # cat ~/.avrduderc >> default_programmer =3D "diamex-avr-usb"; >> programmer >> id =3D "diamex-avr-usb"; >> desc =3D "Diamex AVR USB Programmer"; >> type =3D "stk500v2"; >> connection_type =3D usb; >> usbvid =3D 0x03eb; >> usbpid =3D 0x2104; >> ; >> - - - >> usbvid and usbpid are ignored: >> - - - >=20 > Why do you think VID:PID is ignored? Because it does not matter, what I put into usbvid/usbpid, the resulting = error message is always: - - - avrdude: usbdev_open(): did not find any USB device "usb" (0x03eb:0x2104) - - - Why that 0x03eb:0x2104 in the error message? > You have entered different > VID:PID in the configuration than I have provided. I provided 3 results with different usbvid/usbpid, the 1st one was your = advice. Sorry, if I was unclear. Again this is the variant, you provided with the result: - - - root@home2l:~ # cat ~/.avrduderc default_programmer =3D "diamex-avr-usb"; programmer id =3D "diamex-avr-usb"; desc =3D "Diamex AVR USB Programmer"; type =3D "stk500v2"; connection_type =3D usb; usbvid =3D 0x16c0; usbpid =3D 0x2a9b; ; root@home2l:~ # avrdude -p t85 -vvv -t avrdude: Version 6.4 Copyright (c) Brian Dean, http://www.bdmicro.com/ Copyright (c) Joerg Wunsch System wide configuration file is "/usr/local/etc/avrdude.conf" User configuration file is "/root/.avrduderc" Using Port : usb Using Programmer : diamex-avr-usb avrdude: usbdev_open(): did not find any USB device "usb" (0x03eb:0x2104) avrdude done. Thank you. >=20 > default_programmer =3D "diamex-avr-usb"; > programmer > id =3D "diamex-avr-usb"; > desc =3D "Diamex AVR USB Programmer"; > type =3D "stk500v2"; > connection_type =3D usb; > usbvid =3D 0x16c0; > usbpid =3D 0x2a9b; > ; >=20 > You need to provide VID:PID of Your Diamex interface that is > VID=3D0x16c0 PID=3D0x2a9b. Your configuration contains VID=3D0x03eb > PID=3D0x2104 this is why interface cannot be found. Please copy-paste > exactly as provided above. >=20 > Where I know VID:PID of your interface? From previous message. >=20 > root@home2l:/ # usbconfig -d 0.4 dump_device_desc > ugen0.4: at usbus0, cfg=3D0 md=3DHOST spd=3DFULL = (12Mbps) > pwr=3DON (500mA) >=20 > bLength =3D 0x0012 > bDescriptorType =3D 0x0001 > bcdUSB =3D 0x0200 > bDeviceClass =3D 0x0002 > bDeviceSubClass =3D 0x0000 > bDeviceProtocol =3D 0x0000 > bMaxPacketSize0 =3D 0x0040 > idVendor =3D 0x16c0 <-- THIS IS USB VID > idProduct =3D 0x2a9b <-- THIS IS USB PID > bcdDevice =3D 0x4340 > iManufacturer =3D 0x0001 > iProduct =3D 0x0002 > iSerialNumber =3D 0x0003 <19331-49101-552> > bNumConfigurations =3D 0x0001 OK. Thanks for the explanation. Axel =2D-- PGP-Key: CDE74120 =E2=98=80 computing @ chaos claudius --Apple-Mail=_419A7FE8-6CBF-4370-A5BB-8B5582926971 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
=

= Am 11.04.2022 um 01:28 schrieb Tomek CEDRO <tomek@cedro.info>:

On Mon, Apr 11, 2022 = at 1:08 AM Axel Rau <= Axel.Rau@chaos1.de> wrote:
Am 10.04.2022 um 23:59 schrieb Tomek CEDRO <tomek@cedro.info>:
=
Okay, your local `~/.avrduderc` = configuration needs an update. Remove
all from file and = put only this:

default_programmer =3D = "diamex-avr-usb";
programmer
id   =  =3D "diamex-avr-usb";
desc  =3D "Diamex AVR = USB Programmer";
type  =3D  "stk500v2";
connection_type =3D usb;
usbvid   &n= bsp; =3D 0x16c0;
usbpid     =3D = 0x2a9b;
;

Then run:
avrdude -c diamex-avr-usb -p t85 -vvv -t

root@home2l:~ # avrdude -c diamex-avr-usb -p = t85 -vvv -t

avrdude: Version 6.4
        Copyright = (c) Brian Dean, http://www= .bdmicro.com/
      &nbs= p; Copyright (c) Joerg Wunsch

=         System wide configuration= file is "/usr/local/etc/avrdude.conf"
   &= nbsp;    User configuration file is "/root/.avrduderc= "

       = ; Using Port          &= nbsp;         : usb
        Using = Programmer           &n= bsp;  : diamex-avr-usb
avrdude: usbdev_open(): = did not find any USB device "usb" (0x03eb:0x2104)

avrdude done.  Thank you.

ro= ot@home2l:~ # avrdude  -p t85 -vvv -t

a= vrdude: Version 6.4
      &n= bsp; Copyright (c) Brian Dean, http://www.bdmicro.com/
   &= nbsp;    Copyright (c) Joerg Wunsch
        System wide = configuration file is "/usr/local/etc/avrdude.conf"
=         User configuration file = is "/root/.avrduderc"

   &nb= sp;    Using Port       = ;            =  : usb
       &nbs= p;Using Programmer          =     : diamex-avr-usb
avrdude: usbdev_op= en(): did not find any USB device "usb" (0x03eb:0x2104)
avrdude done.  Thank you.

r= oot@home2l:~ # cat ~/.avrduderc
default_programmer =3D = "diamex-avr-usb";
programmer
id   =  =3D "diamex-avr-usb";
desc  =3D "Diamex AVR = USB Programmer";
type  =3D  "stk500v2";
connection_type =3D usb;
usbvid   &nb= sp; =3D 0x03eb;
usbpid     =3D = 0x2104;
;
- - -
usbvid and = usbpid are ignored:
- - -

Why do you think VID:PID is ignored?
<= div>Because it does not matter, what I put into usbvid/usbpid, the = resulting error message is always:
- - -
avrdude: usbdev_open(): did not find any USB device = "usb" (0x03eb:0x2104)
- - -
Why that 0x03eb:0x2104 in the error message?

You have = entered different
VID:PID in the configuration than I have = provided.

I = provided 3 results with different usbvid/usbpid, the 1st one was your = advice. Sorry, if I was unclear.
Again this is the variant, = you provided with the result:
- - -
root= @home2l:~ # cat ~/.avrduderc
default_programmer =3D = "diamex-avr-usb";
programmer
 id    =3D "diamex-avr-usb";
 desc  =3D "Diamex AVR USB Programmer";
=
 type  =3D  "stk500v2";
<= div style=3D"margin: 0px; font-stretch: normal; font-size: 11px; = line-height: normal; font-family: Monaco; background-color: rgb(255, = 255, 255);" class=3D""> connection_type =3D usb;
 usbvid     =3D 0x16c0;
 usbpid     =3D 0x2a9b;
;
=



default_programmer =3D "diamex-avr-usb";
program= mer
 id    =3D "diamex-avr-usb";
 desc  =3D "Diamex AVR USB Programmer";
 type  =3D  "stk500v2";
=  connection_type =3D usb;
 usbvid   &n= bsp; =3D 0x16c0;
 usbpid     = ;=3D 0x2a9b;
;

You need to = provide VID:PID of Your Diamex interface that is
VID=3D0x16= c0 PID=3D0x2a9b. Your configuration contains VID=3D0x03eb
P= ID=3D0x2104 this is why interface cannot be found. Please copy-paste
exactly as provided above.

Where = I know VID:PID of your interface? From previous message.
root@home2l:/ # usbconfig -d 0.4 dump_device_desc
ugen0.4: <ERFOS AVR-ISP2> at usbus0, cfg=3D0 md=3DHOST = spd=3DFULL (12Mbps)
pwr=3DON (500mA)

 bLength =3D 0x0012
 bDescriptorType= =3D 0x0001
 bcdUSB =3D 0x0200
=  bDeviceClass =3D 0x0002  <Communication device>
 bDeviceSubClass =3D 0x0000
 bDevice= Protocol =3D 0x0000
 bMaxPacketSize0 =3D 0x0040
 idVendor =3D 0x16c0 <-- THIS IS USB VID
 idProduct =3D 0x2a9b  <-- THIS IS USB PID
=  bcdDevice =3D 0x4340
 iManufacturer =3D = 0x0001  <ERFOS>
 iProduct =3D 0x0002 =  <AVR-ISP2>
 iSerialNumber =3D 0x0003 =  <19331-49101-552>
 bNumConfigurations = =3D 0x0001
OK. Thanks for the explanation.

Axel
---
PGP-Key: CDE74120  =E2=98=80 =  computing @ chaos claudius

--Apple-Mail=_419A7FE8-6CBF-4370-A5BB-8B5582926971-- From nobody Mon Apr 11 15:51:02 2022 X-Original-To: hardware@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 231EE5D09E2 for ; Mon, 11 Apr 2022 15:51:18 +0000 (UTC) (envelope-from tomek@cedro.info) Received: from mail-oi1-x233.google.com (mail-oi1-x233.google.com [IPv6:2607:f8b0:4864:20::233]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KcYHT0fjLz3s1Y for ; Mon, 11 Apr 2022 15:51:16 +0000 (UTC) (envelope-from tomek@cedro.info) Received: by mail-oi1-x233.google.com with SMTP id a19so11791953oie.7 for ; Mon, 11 Apr 2022 08:51:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cedro.info; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=QbZuZiNwEQv6PmUyFLYAODbtxpDIoXhtkseSlMJPFlE=; b=M+T0gjhRRXNMx05RZxmV5wzb3xobnhljMa2vfkex/sk+oFuoK0hwbtwsYL94c43pTn tQy3xHGDGO/vGwHR3vKEOOVGxY1b7wwpuVW7qvWYfoTbSnLEtVOFPuhfiZj6+1gcBfwv jJTeyV/NZjoQ1cD9gfOHhPMU61rrp/6H00Z6fEXGTzB/Eh7+L04J4U9q+9GH4h5UkQa1 PibJHcN/9wl8kMFRNy5s4BoEQyHeuiSkKajB+5xLdz02GH6tGI7DAPINVHlzpwC4hCXK 0jhUNV28oz4aB+FxOvw+ASG9Jg3hnCh8vn2zBKwQ0Qb7swVrQO2+LTiwM0Egvx1uUX7w 41WQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=QbZuZiNwEQv6PmUyFLYAODbtxpDIoXhtkseSlMJPFlE=; b=rnEeSCZuyX8a6MehG7GBHQzCg6uDjV9iYChhJ4WcB9uxNLYWVOCObl3DGfDeTgg/Qc IOz698sKq4aRqNOQjqawr9+s4WQTqmbAwAyQ4QHVTt12mlq6qDC+Vvtzw7dJKRhRTQmC mCKiOlxtHtFGuJphmHecpCZvWQAUIT3zxZ7eB1T6zP8dDJSyCKzfrY2cE2WXAuTGdUIk Ml+0bK4ljyBb0ZAfRYB13xNa4vkPU22NaPxNIWb+ajqYIaxBeoeI/KcogWvXstjUAqDZ Li0N0/p5NYLr7fvmXNgibVRmuHRRBpTwzVaRQQ/5UUiRAoA86WLeG5L692O4wUvdGQSa L3VQ== X-Gm-Message-State: AOAM530226SIjpx8R//komSM929/imBRycTkf78ilfqLI43GOnyHAhAp JHZ3+9MqZ+96157FfO7Y5Idg2AlobT3PfG3b X-Google-Smtp-Source: ABdhPJw1FqF6EXvJ8Ap6UaLQQ8qPpwPBRx3B8+LOXNWlU49icueAp+uxJWoeCL2gHdNyzO+T4rkfjQ== X-Received: by 2002:a05:6808:156:b0:2f9:c696:1ac4 with SMTP id h22-20020a056808015600b002f9c6961ac4mr5469438oie.19.1649692275983; Mon, 11 Apr 2022 08:51:15 -0700 (PDT) Received: from mail-oa1-f52.google.com (mail-oa1-f52.google.com. [209.85.160.52]) by smtp.gmail.com with ESMTPSA id b188-20020aca34c5000000b002da579c994dsm11314793oia.31.2022.04.11.08.51.14 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 11 Apr 2022 08:51:15 -0700 (PDT) Received: by mail-oa1-f52.google.com with SMTP id 586e51a60fabf-de3eda6b5dso17736037fac.0 for ; Mon, 11 Apr 2022 08:51:14 -0700 (PDT) X-Received: by 2002:a05:6870:9589:b0:dc:4640:ef89 with SMTP id k9-20020a056870958900b000dc4640ef89mr14510710oao.175.1649692274214; Mon, 11 Apr 2022 08:51:14 -0700 (PDT) List-Id: General discussion of FreeBSD hardware List-Archive: https://lists.freebsd.org/archives/freebsd-hardware List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hardware@freebsd.org MIME-Version: 1.0 References: <3A781DFA-1E2C-41A5-8053-C90A806244DC@Chaos1.DE> <34a747ea-2ee5-660f-71c6-dc00d5de337f@selasky.org> <9334c4f0-3ecf-c046-420f-516e39379981@selasky.org> <976BDBEB-8B57-4541-A0B7-3F2C89498DC6@Chaos1.DE> <7190bdde-22bc-79ee-06d0-d0114a3ffbad@selasky.org> <7CDFB049-241F-4C31-A7B1-A7D6BDE6A002@Chaos1.DE> <24AA646A-698B-4D41-9668-3F9F99732D02@Chaos1.DE> <1A94816D-E3C1-4488-A5A9-784BAC68AE74@Chaos1.DE> <13D17C8D-D67B-47E8-BB64-A8E32267C669@Chaos1.DE> <5E302425-D601-4C5D-B8B6-E6295B242B66@Chaos1.DE> In-Reply-To: <5E302425-D601-4C5D-B8B6-E6295B242B66@Chaos1.DE> From: Tomek CEDRO Date: Mon, 11 Apr 2022 17:51:02 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: timeouts on USB ISP programmer To: Axel Rau Cc: Hans Petter Selasky , hardware@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4KcYHT0fjLz3s1Y X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cedro.info header.s=google header.b=M+T0gjhR; dmarc=none; spf=none (mx1.freebsd.org: domain of tomek@cedro.info has no SPF policy when checking 2607:f8b0:4864:20::233) smtp.mailfrom=tomek@cedro.info X-Spamd-Result: default: False [-1.33 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[cedro.info:s=google]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-0.996]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[hardware@freebsd.org]; DMARC_NA(0.00)[cedro.info]; NEURAL_SPAM_SHORT(0.97)[0.969]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[cedro.info:+]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::233:from,209.85.160.52:received]; MLMMJ_DEST(0.00)[hardware]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On Mon, Apr 11, 2022 at 7:35 AM Axel Rau wrote: > root@home2l:~ # cat ~/.avrduderc > default_programmer = "diamex-avr-usb"; > programmer > id = "diamex-avr-usb"; > desc = "Diamex AVR USB Programmer"; > type = "stk500v2"; > connection_type = usb; > usbvid = 0x16c0; > usbpid = 0x2a9b; > ; > > root@home2l:~ # avrdude -p t85 -vvv -t > > avrdude: Version 6.4 > Copyright (c) Brian Dean, http://www.bdmicro.com/ > Copyright (c) Joerg Wunsch > > System wide configuration file is "/usr/local/etc/avrdude.conf" > User configuration file is "/root/.avrduderc" > > Using Port : usb > Using Programmer : diamex-avr-usb > avrdude: usbdev_open(): did not find any USB device "usb" (0x03eb:0x2104) Wow, this is strange, the programmer is clearly defined with different VID:PID than avrdude expects :-( Maybe try full call: avrdude -c diamex-avr-usb -P usb:/dev/cuaU0 -p t85 -vvv -t or avrdude -c stk500v2 -P usb:/dev/cuaU0 -p t85 -vvv -t or avrdude -c avrispmkII -P usb:/dev/cuaU0 -p t85 -vvv -t If that does not work I am out of ideas, sorry, maybe opening an Issue on the project github repo could help? Are you sure that diamex-avr-usb is not defined anywhere else (for instance in /usr/local/etc/avrdude.conf)? We are missing some small important detail here :-P What I did at some point was building avrdude port WITH_DEBUG=1 flag to make, then it is possible to debug it, setting breakpoint at `usbdev_open` helped me understand -P handling.. maybe that would also help finding the issue here :-) -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info From nobody Tue Apr 12 10:25:00 2022 X-Original-To: hardware@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 1D7EC13A5758 for ; Tue, 12 Apr 2022 10:25:14 +0000 (UTC) (envelope-from Axel.Rau@Chaos1.DE) Received: from mailout5.lrau.net (mailout5.lrau.net [IPv6:2a05:bec0:26:5::73]) (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 "mailout5.lrau.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Kd20n1P94z3tnf for ; Tue, 12 Apr 2022 10:25:13 +0000 (UTC) (envelope-from Axel.Rau@Chaos1.DE) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=chaos1.de; s=email1; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:Cc:To:Subject:Mime-Version:Date:Message-Id:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=6PwiGVn2rjZ6RJYrn+ZHDNwHhrqKVqvDFRjicJakI5c=; b=LVeLuo7Mt2GlTZ46FOEHo0bHre dmWOwvIbokiq9tH2Om/z7QKBNDQULflo61+tm983KjAu38qzb/YLTlXn6j6Ro4fLlhNOekAoThvfW yEkYAFlim5c8nKkTstVcpeMJI2ZKsaJoHxmSJcjlx+sUkdpyT9J9iVbQC4p7cAv2WNV8iC/i0JLpU f7s8N0rlmkCMpC2TNXHZYa0MqLkBOW9f+aYCGo3SUGQfP4sOC+erZQucGJAq9T4Z1auvikQ2tZPKE DOmYl4VFoiSODLsh5em+cOQVfzl2qoMPfiJOnGoH1o/PZZKAdJuJLIno5N+aSYUtlEhAHGUI9rEor 8b+iBHlg==; Received: from [2a05:bec0:26:5::74] (helo=imap5.lrau.net) by mailout5.lrau.net with esmtp (Exim 4.95 (FreeBSD)) (envelope-from ) id 1neDho-0005gm-8l; Tue, 12 Apr 2022 10:25:04 +0000 Received: from Axel.Rau@Chaos1.DE by imap5.lrau.net (Archiveopteryx 3.2.0) with esmtpsa id 1649759101-45319-42070/7/20; Tue, 12 Apr 2022 10:25:01 +0000 Message-Id: Date: Tue, 12 Apr 2022 12:25:00 +0200 List-Id: General discussion of FreeBSD hardware List-Archive: https://lists.freebsd.org/archives/freebsd-hardware List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hardware@freebsd.org Mime-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: timeouts on USB ISP programmer Content-Language: de-DE To: Tomek CEDRO Cc: Hans Petter Selasky , hardware@freebsd.org References: <3A781DFA-1E2C-41A5-8053-C90A806244DC@Chaos1.DE> <24AA646A-698B-4D41-9668-3F9F99732D02@Chaos1.DE> <1A94816D-E3C1-4488-A5A9-784BAC68AE74@Chaos1.DE> <13D17C8D-D67B-47E8-BB64-A8E32267C669@Chaos1.DE> <5E302425-D601-4C5D-B8B6-E6295B242B66@Chaos1.DE> From: Axel Rau In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4Kd20n1P94z3tnf X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=chaos1.de header.s=email1 header.b=LVeLuo7M; dmarc=none; spf=none (mx1.freebsd.org: domain of Axel.Rau@Chaos1.DE has no SPF policy when checking 2a05:bec0:26:5::73) smtp.mailfrom=Axel.Rau@Chaos1.DE X-Spamd-Result: default: False [-2.90 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[chaos1.de:s=email1]; NEURAL_HAM_MEDIUM(-1.00)[-0.997]; 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]; DMARC_NA(0.00)[chaos1.de]; TO_DN_SOME(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[chaos1.de:+]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DWL_DNSWL_NONE(0.00)[chaos1.de:dkim]; MLMMJ_DEST(0.00)[hardware]; 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:197071, ipnet:2a05:bec0::/29, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[2a05:bec0:26:5::73:from] X-ThisMailContainsUnwantedMimeParts: N Am 11.04.22 um 17:51 schrieb Tomek CEDRO: > If that does not work I am out of ideas, sorry, maybe opening an Issue > on the project github repo could help? >=20 https://github.com/avrdudes/avrdude/issues/935 Axel =2D-=20 PGP-Key: CDE74120 =E2=98=80 computing @ chaos claudius From nobody Tue Apr 12 14:55:02 2022 X-Original-To: hardware@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 32C261A94333 for ; Tue, 12 Apr 2022 14:55:17 +0000 (UTC) (envelope-from tomek@cedro.info) Received: from mail-oi1-x22d.google.com (mail-oi1-x22d.google.com [IPv6:2607:f8b0:4864:20::22d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Kd80N27VLz3nBX for ; Tue, 12 Apr 2022 14:55:16 +0000 (UTC) (envelope-from tomek@cedro.info) Received: by mail-oi1-x22d.google.com with SMTP id r8so19267546oib.5 for ; Tue, 12 Apr 2022 07:55:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cedro.info; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=WMkYWE+KKAkt0LuR6mkBtNI0yrUUtWB3jnhqK8uS3Bs=; b=IgySWT6As6IedlSe83ZrV0E/lniGI9XpIwJHdErRYWBnL+4GKEpSsxJjoXjMxaNrRZ zPjLiG4IqzDHl7FRDPrnjFctayKNr9+6gotrR+hy+lxGCdrjBX+3vmsFAjqfWC5v9typ zvG8oxBzQ00r6qrSevT8BUTJMWispVFOZ8aN1ISnY9k9xWEATDkz4eapWaEu4LNIHvBH HSAbFnebx5ni/05XTroxW9o0qXgXalSEDypTwbFRzPKDyM1j57L9hgbvzjILvhgWh11j 6LHG2TqeJaDAG0rTNxYB0rOp85KnHGyM7XBDzwcSwCRkotbNCA9/SomZX7kTr21Mt7cL CEmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=WMkYWE+KKAkt0LuR6mkBtNI0yrUUtWB3jnhqK8uS3Bs=; b=jeX0eNYJrC6TWDJ+d2oyTD99hYETCHUOSjRH55yYrOlbyQC3/ulHZ3RKzRgfztMV7o 2BSxkZsiZPTGnq4KTLZGjVZv543NoCWa/2LggqX3qlH5FCyGvhj8zEg4aVtnpvBY02S4 GAOtlnme9uL+wgRJJ+kiquiUaT9NSfiUje8KvfHosCeEq9H+fIOP+eGLEY4bG2xN9M3/ YWp3KpsmOYWA10+hvxhANVwm6n0xKp+6DKvwwsNhW05ZngP0ckscBrzi8OGKgNIjKPKy ieomaqNjdt8srlbWDITrXdGIBi2Btzm+cFK8eAy6w9aCuqdhbbckB+TqOFWgQhzUQ+wE KZIA== X-Gm-Message-State: AOAM533YnXxKOKzixVxrjdrYXVutJV5MWpPW0vgna2MwuvGH4C5Q5G+N f+l1keFl43Ke4hbWB+Mm1yljS4y3sOqfZKc7 X-Google-Smtp-Source: ABdhPJy5ZBNTtuk5UV6MNQeb0XU/1TCVd65RVk0Sdk8/EnXxxqQZofBx+3B4wocgz2Jse8rjh9+okA== X-Received: by 2002:aca:a988:0:b0:2ef:8b4f:4549 with SMTP id s130-20020acaa988000000b002ef8b4f4549mr1865129oie.45.1649775315490; Tue, 12 Apr 2022 07:55:15 -0700 (PDT) Received: from mail-oi1-f173.google.com (mail-oi1-f173.google.com. [209.85.167.173]) by smtp.gmail.com with ESMTPSA id fu17-20020a0568705d9100b000e2b43e7fbasm3541016oab.16.2022.04.12.07.55.14 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 12 Apr 2022 07:55:15 -0700 (PDT) Received: by mail-oi1-f173.google.com with SMTP id j83so19277461oih.6 for ; Tue, 12 Apr 2022 07:55:14 -0700 (PDT) X-Received: by 2002:a05:6808:1526:b0:2ec:f5ea:39a7 with SMTP id u38-20020a056808152600b002ecf5ea39a7mr1962923oiw.175.1649775314435; Tue, 12 Apr 2022 07:55:14 -0700 (PDT) List-Id: General discussion of FreeBSD hardware List-Archive: https://lists.freebsd.org/archives/freebsd-hardware List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hardware@freebsd.org MIME-Version: 1.0 References: <3A781DFA-1E2C-41A5-8053-C90A806244DC@Chaos1.DE> <24AA646A-698B-4D41-9668-3F9F99732D02@Chaos1.DE> <1A94816D-E3C1-4488-A5A9-784BAC68AE74@Chaos1.DE> <13D17C8D-D67B-47E8-BB64-A8E32267C669@Chaos1.DE> <5E302425-D601-4C5D-B8B6-E6295B242B66@Chaos1.DE> In-Reply-To: From: Tomek CEDRO Date: Tue, 12 Apr 2022 16:55:02 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: timeouts on USB ISP programmer To: Axel Rau Cc: Hans Petter Selasky , hardware@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4Kd80N27VLz3nBX X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cedro.info header.s=google header.b=IgySWT6A; dmarc=none; spf=none (mx1.freebsd.org: domain of tomek@cedro.info has no SPF policy when checking 2607:f8b0:4864:20::22d) smtp.mailfrom=tomek@cedro.info X-Spamd-Result: default: False [-3.30 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[cedro.info:s=google]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[hardware@freebsd.org]; DMARC_NA(0.00)[cedro.info]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[cedro.info:+]; NEURAL_HAM_SHORT(-1.00)[-0.995]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::22d:from,209.85.167.173:received]; MLMMJ_DEST(0.00)[hardware]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On Tue, Apr 12, 2022 at 12:25 PM Axel Rau wrote: > Am 11.04.22 um 17:51 schrieb Tomek CEDRO: > > If that does not work I am out of ideas, sorry, maybe opening an Issue > > on the project github repo could help? > > > https://github.com/avrdudes/avrdude/issues/935 Perfect reporting :-) :-) Hope someone with greater knowledge will help :-) Without the actual hardware this is all I can do :-) Good luck :-) -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info From nobody Thu Apr 21 17:05:19 2022 X-Original-To: hardware@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 922221989DBA for ; Thu, 21 Apr 2022 17:05:30 +0000 (UTC) (envelope-from Axel.Rau@Chaos1.DE) Received: from mailout5.lrau.net (mailout5.lrau.net [IPv6:2a05:bec0:26:5::73]) (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 "mailout5.lrau.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KkkST4jcqz4RML for ; Thu, 21 Apr 2022 17:05:29 +0000 (UTC) (envelope-from Axel.Rau@Chaos1.DE) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=chaos1.de; s=email1; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:References:To: From:Subject:Mime-Version:Date:Message-Id:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=ZGvh4yy4zZXBm1xIFgzRk+ZWrUTX7rIUdZdZg2a8+Dk=; b=dGl6K+8rvcZo7FywoPBWy8MoSF WA8k6llZUXtaNQUQtAMlwtVPZiZfekfbEZ2BwiTx9S99XKiluLWqcfNLe1Wm31e8kXZUce5tW2KNP 7F6ye6sp8fG/LsoxVe5XLZLMR5uyd7shphrxqtx/PxcTuBix6HdVD62lyCtRZz/ibeBeRj/MlWHFX nqhxKJyrfgsyOhMml4JjB0f88xru6sC+QJGOtoaLpcLrYdmdj47R64wkIt9W3cVOB8zbtE4Ce8SAc yaxfwq7/hqDLcSd8YUQy8N8drjNkr/TtRACTw9d+KtA0T07wvF1dJqqardeuSZVVKbMCOeGVmCYTY Ema+j4LA==; Received: from [2a05:bec0:26:5::74] (helo=imap5.lrau.net) by mailout5.lrau.net with esmtp (Exim 4.95 (FreeBSD)) (envelope-from ) id 1nhaF6-000KFO-6j for hardware@freebsd.org; Thu, 21 Apr 2022 17:05:20 +0000 Received: from Axel.Rau@Chaos1.DE by imap5.lrau.net (Archiveopteryx 3.2.0) with esmtpsa id 1650560719-7097-6030/7/13; Thu, 21 Apr 2022 17:05:19 +0000 Message-Id: <77ae0110-0b36-8c00-c40e-efd110843f60@Chaos1.DE> Date: Thu, 21 Apr 2022 19:05:19 +0200 List-Id: General discussion of FreeBSD hardware List-Archive: https://lists.freebsd.org/archives/freebsd-hardware List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hardware@freebsd.org Mime-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: [RESOLVED] Re: timeouts on USB ISP programmer Content-Language: de-DE From: Axel Rau To: hardware@freebsd.org, "hps@selasky.org tomek"@cedro.info References: <3A781DFA-1E2C-41A5-8053-C90A806244DC@Chaos1.DE> In-Reply-To: <3A781DFA-1E2C-41A5-8053-C90A806244DC@Chaos1.DE> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4KkkST4jcqz4RML X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=chaos1.de header.s=email1 header.b=dGl6K+8r; dmarc=none; spf=none (mx1.freebsd.org: domain of Axel.Rau@Chaos1.DE has no SPF policy when checking 2a05:bec0:26:5::73) smtp.mailfrom=Axel.Rau@Chaos1.DE X-Spamd-Result: default: False [-2.90 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[chaos1.de:s=email1]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[Chaos1.DE]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[chaos1.de:+]; RCPT_COUNT_TWO(0.00)[2]; DWL_DNSWL_NONE(0.00)[chaos1.de:dkim]; MLMMJ_DEST(0.00)[hardware]; 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:197071, ipnet:2a05:bec0::/29, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[2a05:bec0:26:5::73:from] X-ThisMailContainsUnwantedMimeParts: N Hi Hans, Tomek, all Am 07.04.22 um 13:33 schrieb Axel Rau: > my DIAMEX-AVR-USB gets timeouts while talking to the target: > - - - With the trace, recorded by Joerg Wunsch (author of avrdude), Hans found the implementation bug in the device. He wrote to Joerg: =3D=3D=3D=3D I see from the Ellisys .png's what is wrong. The device doesn't support resetting the data-toogle (CLEAR ENDPOINT HALT) which is a mandatory USB control endpoint command. So the USB stack tries a couple of times and = then gives up and resets the device! The device is not USB.org class compliant! :-( Probably setting: sysctl hw.usb.no_cs_fail=3D1 may help. =3D=3D=3D=3D Indeed with this setting the device works perfectly: - - - root@home2l:/usr/local/home2l/share/brownies # avrdude -c stk500v2 \ -p t85 -P /dev/cuaU0 \ -U hfuse:w:init.t85.elf \ -U efuse:w:init.t85.elf \ -U eeprom:w:init.t85.elf \ -U flash:w:init.t85.elf avrdude: AVR device initialized and ready to accept instructions Reading | ################################################## | 100% 0.00s avrdude: Device signature =3D 0x1e930b (probably t85) avrdude: NOTE: "flash" memory has been specified, an erase cycle will be=20 performed To disable this feature, specify the -D option. avrdude: erasing chip avrdude: reading input file "init.t85.elf" avrdude: input file init.t85.elf auto detected as ELF avrdude: writing hfuse (1 bytes): Writing | ################################################## | 100% 0.01s avrdude: 1 bytes of hfuse written avrdude: verifying hfuse memory against init.t85.elf: avrdude: load data hfuse data from input file init.t85.elf: avrdude: input file init.t85.elf auto detected as ELF avrdude: input file init.t85.elf contains 1 bytes avrdude: reading on-chip hfuse data: Reading | ################################################## | 100% 0.00s avrdude: verifying ... avrdude: 1 bytes of hfuse verified avrdude: reading input file "init.t85.elf" avrdude: input file init.t85.elf auto detected as ELF avrdude: writing efuse (1 bytes): Writing | ################################################## | 100% 0.01s avrdude: 1 bytes of efuse written avrdude: verifying efuse memory against init.t85.elf: avrdude: load data efuse data from input file init.t85.elf: avrdude: input file init.t85.elf auto detected as ELF avrdude: input file init.t85.elf contains 1 bytes avrdude: reading on-chip efuse data: Reading | ################################################## | 100% 0.00s avrdude: verifying ... avrdude: 1 bytes of efuse verified avrdude: reading input file "init.t85.elf" avrdude: input file init.t85.elf auto detected as ELF avrdude: writing eeprom (50 bytes): Writing | ################################################## | 100% 0.07s avrdude: 50 bytes of eeprom written avrdude: verifying eeprom memory against init.t85.elf: avrdude: load data eeprom data from input file init.t85.elf: avrdude: input file init.t85.elf auto detected as ELF avrdude: input file init.t85.elf contains 50 bytes avrdude: reading on-chip eeprom data: Reading | ################################################## | 100% 0.02s avrdude: verifying ... avrdude: 50 bytes of eeprom verified avrdude: reading input file "init.t85.elf" avrdude: input file init.t85.elf auto detected as ELF avrdude: writing flash (1976 bytes): Writing | ################################################## | 100% 0.86s avrdude: 1976 bytes of flash written avrdude: verifying flash memory against init.t85.elf: avrdude: load data flash data from input file init.t85.elf: avrdude: input file init.t85.elf auto detected as ELF avrdude: input file init.t85.elf contains 1976 bytes avrdude: reading on-chip flash data: Reading | ################################################## | 100% 0.71s avrdude: verifying ... avrdude: 1976 bytes of flash verified avrdude: safemode: Fuses OK (E:FE, H:D7, L:62) avrdude done. Thank you. - - - diamex.de has been notified about the bug. Man thanks to all, who responded, especially Hans and Tomek, Axel =2D-=20 PGP-Key: CDE74120 =E2=98=80 computing @ chaos claudius From nobody Thu Apr 21 18:34:13 2022 X-Original-To: hardware@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 03A3C198CE0E for ; Thu, 21 Apr 2022 18:34:35 +0000 (UTC) (envelope-from tomek@cedro.info) Received: from mail-oa1-x2d.google.com (mail-oa1-x2d.google.com [IPv6:2001:4860:4864:20::2d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KkmRG03lpz4rgS for ; Thu, 21 Apr 2022 18:34:33 +0000 (UTC) (envelope-from tomek@cedro.info) Received: by mail-oa1-x2d.google.com with SMTP id 586e51a60fabf-e2fa360f6dso6242636fac.2 for ; Thu, 21 Apr 2022 11:34:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cedro.info; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=JlWd1on1PMIqeOqsZOn6ZQ7fRu4HlPRf/QpN7H3g1FQ=; b=FmqlzukSyMB4CSCtwU0M5a0hKb/AZkYlptdkGQNCDl/itHvj8mQfhG5VQJQ/dTnh/z 6g3Hjebe8Ui4E+PJyrInKnIzBXWYJrxGVU8rSWEIqTqqZLST+YVzLxl7c7cQC/q4U3R4 tvDxaQGKaqGhn5/4qVV16RDzy5iIHphKBivtM+p1veF4Ln2kpat524vkf1/Dcg3noAgU mTa5XNk8lofcTVDsl/6B0e82UxlxCftN1k2ofLZ4K5wSc9mRLkkmUQ45PSizEDPG9zBo gpTMVmMzDLEJRYLZqkKF5q08X2scczpHbWeYKQspWre/aiAqueNiQU7+kUXKxaD9B/6u wFeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=JlWd1on1PMIqeOqsZOn6ZQ7fRu4HlPRf/QpN7H3g1FQ=; b=1QKSv4n7qNiLC8Q5eGsJw7W0yYzRTC27L9ZD7hgDX78KmcPGTt7jrnY1BUkj7y5Pcp FVZL5AjHlUZofPqicgEoeq2D4Vmw0+Vj60Yg/f1s0F0uSTU47Q45cCEsG1wo/DFsI7TO k/obdj5Yd+cr10bsRl5xxfojG07BkrbuWMgdGGdI4i4T3/AvE+e+4VjBQnKaMMuNZ9zx DccyBS6dIY5tC2SVBjn7d+THiYH2AKkCyKW5eJ2iUD92ex+IstvVqnEFlb9uJKSyL+GF 2Oeu+YRAx5vG3tawaSPTd1i5YSfwLFVEfX16ykHX4A1oResfAaT8fqtxnLHukUIYL/Nx BFnA== X-Gm-Message-State: AOAM532QkAltvhbpmh9ZelvMRoW4zv0RSYSBTyTNxIYumUAnykNcf/vf df1KKI4jBbxPwNZ3YgQmxlyxR6UViN4f8mFDf7U= X-Google-Smtp-Source: ABdhPJzN5x+ubWxTCC1Mk/GB2QAhaoWSJJxOKamXiGIGs0QaNVduXAVz1tKv32vXC4GPKIt82GOh1g== X-Received: by 2002:a05:6870:891f:b0:e1:ec98:3c59 with SMTP id i31-20020a056870891f00b000e1ec983c59mr366667oao.295.1650566067193; Thu, 21 Apr 2022 11:34:27 -0700 (PDT) Received: from mail-oa1-f41.google.com (mail-oa1-f41.google.com. [209.85.160.41]) by smtp.gmail.com with ESMTPSA id q11-20020a056830018b00b0060470f9f5e3sm7014762ota.51.2022.04.21.11.34.25 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 21 Apr 2022 11:34:25 -0700 (PDT) Received: by mail-oa1-f41.google.com with SMTP id 586e51a60fabf-e2442907a1so6213734fac.8 for ; Thu, 21 Apr 2022 11:34:25 -0700 (PDT) X-Received: by 2002:a05:6870:9589:b0:dc:4640:ef89 with SMTP id k9-20020a056870958900b000dc4640ef89mr4397171oao.175.1650566065610; Thu, 21 Apr 2022 11:34:25 -0700 (PDT) List-Id: General discussion of FreeBSD hardware List-Archive: https://lists.freebsd.org/archives/freebsd-hardware List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hardware@freebsd.org MIME-Version: 1.0 References: <3A781DFA-1E2C-41A5-8053-C90A806244DC@Chaos1.DE> <77ae0110-0b36-8c00-c40e-efd110843f60@Chaos1.DE> In-Reply-To: <77ae0110-0b36-8c00-c40e-efd110843f60@Chaos1.DE> From: Tomek CEDRO Date: Thu, 21 Apr 2022 20:34:13 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RESOLVED] Re: timeouts on USB ISP programmer To: Axel Rau Cc: hardware@freebsd.org, Hans Peter Petter Selasky Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4KkmRG03lpz4rgS X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cedro.info header.s=google header.b=FmqlzukS; dmarc=none; spf=none (mx1.freebsd.org: domain of tomek@cedro.info has no SPF policy when checking 2001:4860:4864:20::2d) smtp.mailfrom=tomek@cedro.info X-Spamd-Result: default: False [-3.27 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[cedro.info:s=google]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-0.98)[-0.984]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[hardware@freebsd.org]; DMARC_NA(0.00)[cedro.info]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[cedro.info:+]; NEURAL_HAM_SHORT(-0.98)[-0.983]; RCVD_IN_DNSWL_NONE(0.00)[2001:4860:4864:20::2d:from,209.85.160.41:received]; MLMMJ_DEST(0.00)[hardware]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:15169, ipnet:2001:4860:4864::/48, country:US]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On Thu, Apr 21, 2022 at 7:05 PM Axel Rau wrote: > With the trace, recorded by Joerg Wunsch (author of avrdude), > Hans found the implementation bug in the device. > He wrote to Joerg: > ==== > I see from the Ellisys .png's what is wrong. The device doesn't support > resetting the data-toogle (CLEAR ENDPOINT HALT) which is a mandatory USB > control endpoint command. So the USB stack tries a couple of times and then > gives up and resets the device! > > The device is not USB.org class compliant! :-( > > Probably setting: > > sysctl hw.usb.no_cs_fail=1 > > may help. > ==== > Indeed with this setting the device works perfectly: > (..) > diamex.de has been notified about the bug. > > Man thanks to all, who responded, especially Hans and Tomek, > Axel WOW! That was quite a journey! Thanks for the sysctl hint this may come handy! :-) I just wonder if this is the Diamex-only problem or all STK500v2 interfaces.. maybe they are just using public firmware on their own hardware.. in that case all STK500v2 devices could be affected :-) Hans is also my hero, I am rooting for the battle against some XHCI controller on ARM hardware on the freebsd-usb list, man, patches are already in the kernel :-) :-) Have fun and take care! :-) Tomek -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info From nobody Wed Apr 27 21:08:11 2022 X-Original-To: hardware@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 160A81AB67F5 for ; Wed, 27 Apr 2022 21:08:21 +0000 (UTC) (envelope-from Axel.Rau@Chaos1.DE) Received: from mailout5.lrau.net (mailout5.lrau.net [IPv6:2a05:bec0:26:5::73]) (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 "mailout5.lrau.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KpWYw1xF0z3n2b for ; Wed, 27 Apr 2022 21:08:20 +0000 (UTC) (envelope-from Axel.Rau@Chaos1.DE) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=chaos1.de; s=email1; h=Content-Transfer-Encoding:Content-Type:Subject:From:To: Mime-Version:Date:Message-Id:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=I0yBHkmirjmZ9B7bZTQ2OSLW6XC8DScFL8m3Tdn3Ge4=; b=wTmNWmDv6xnY49AfuCM/v7aOYs YWl070TcJNC5hkZ9VcumkwGVs7ukj2hGHdHjo+S72L1S93zllwyPP9X13av0hzrRnk1DEwAbuJv/q BJ2zKvH9HL+jqtMPMBUN8MAyQYiwyUmJtU3snD28QBL6+7BjJwpGF/5x2oEzENgNHO23Ipvbzf1DG EwWjsjl/aZzDGvVIoDVLY8HkGKXkNYYqO6zFbYUU2RBQ9/bgpGiGRUYPs8+xQHqzH6tYPZw6N1eoH 0Xw+7cTBNCuayn8ZSI6fQTqCn6d2w+9kdh7jJ5QMtKk1WNVpJGYEFmC35omoieX+nj0kSOsKILf0/ BeOLbMRQ==; Received: from [2a05:bec0:26:5::74] (helo=imap5.lrau.net) by mailout5.lrau.net with esmtp (Exim 4.95 (FreeBSD)) (envelope-from ) id 1njotQ-0007iM-7Y for hardware@freebsd.org; Wed, 27 Apr 2022 21:08:12 +0000 Received: from Axel.Rau@Chaos1.DE by imap5.lrau.net (Archiveopteryx 3.2.0) with esmtpsa id 1651093691-77982-77189/7/9; Wed, 27 Apr 2022 21:08:11 +0000 Message-Id: <996df5c0-ffa7-f1bf-a9e2-6dd47d7b49e6@Chaos1.DE> Date: Wed, 27 Apr 2022 23:08:11 +0200 List-Id: General discussion of FreeBSD hardware List-Archive: https://lists.freebsd.org/archives/freebsd-hardware List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hardware@freebsd.org Mime-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Content-Language: de-DE To: hardware@freebsd.org From: Axel Rau Subject: Accessing I2C-Bus via ELV USB-I2C Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4KpWYw1xF0z3n2b X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=chaos1.de header.s=email1 header.b=wTmNWmDv; dmarc=none; spf=none (mx1.freebsd.org: domain of Axel.Rau@Chaos1.DE has no SPF policy when checking 2a05:bec0:26:5::73) smtp.mailfrom=Axel.Rau@Chaos1.DE X-Spamd-Result: default: False [-2.89 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[chaos1.de:s=email1]; NEURAL_HAM_MEDIUM(-0.99)[-0.989]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[chaos1.de:dkim]; MV_CASE(0.50)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[chaos1.de]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[chaos1.de:+]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MLMMJ_DEST(0.00)[hardware]; 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:197071, ipnet:2a05:bec0::/29, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[2a05:bec0:26:5::73:from] X-ThisMailContainsUnwantedMimeParts: N Next journey starts: For the home2l project, I need a supported I2C interface via USB. I got this one: https://de.elv.com/elv-usb-ic-interface-usb-i2c-092255?fs=3D1805459039 Unfortunately it shows up as a serial device on FreeBSD: ugen0.2: at usbus0, cfg=3D0 = md=3DHOST=20 spd=3DFULL (12Mbps) pwr=3DON (500mA) bLength =3D 0x0012 bDescriptorType =3D 0x0001 bcdUSB =3D 0x0110 bDeviceClass =3D 0x0000 bDeviceSubClass =3D 0x0000 bDeviceProtocol =3D 0x0000 bMaxPacketSize0 =3D 0x0040 idVendor =3D 0x10c4 idProduct =3D 0xea60 bcdDevice =3D 0x0100 iManufacturer =3D 0x0001 iProduct =3D 0x0002 iSerialNumber =3D 0x0003 bNumConfigurations =3D 0x0001 In loader.conf, I have: uslcom_load=3D"YES" iic_load=3D"YES" iicbus_loa But the i2c utility does not show a new bus. From dmesg: root@axels-bsdbox:~ # dmesg | grep iic ig4iic0: mem=20 0xdf230000-0xdf230fff irq 16 at device 21.0 on pci0 ig4iic0: Using MSI iicbus0: on ig4iic0 iic0: on iicbus0 ig4iic1: mem=20 0xdf22f000-0xdf22ffff irq 17 at device 21.1 on pci0 ig4iic1: Using MSI iicbus1: on ig4iic1 iic1: on iicbus1 root@axels-bsdbox:~ # dmesg | grep I2C ig4iic0: mem=20 0xdf230000-0xdf230fff irq 16 at device 21.0 on pci0 iicbus0: on ig4iic0 iic0: on iicbus0 ig4iic1: mem=20 0xdf22f000-0xdf22ffff irq 17 at device 21.1 on pci0 iicbus1: on ig4iic1 iic1: on iicbus1 ugen0.2: at usbus0 uslcom0: on usbus0 They provide a (linux) driver ("Treiber") which seems to implement the=20 I2C protocoll on top of the serial interface. Do we have such a driver on FreeBSD, or exist other supported I2C=20 devices to be plugged into USB? Any help appreciated, Axel =2D-=20 PGP-Key: CDE74120 =E2=98=80 computing @ chaos claudius From nobody Wed Apr 27 22:47:06 2022 X-Original-To: hardware@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 5891A1999CDC for ; Wed, 27 Apr 2022 22:47:09 +0000 (UTC) (envelope-from Axel.Rau@Chaos1.DE) Received: from mailout5.lrau.net (mailout5.lrau.net [IPv6:2a05:bec0:26:5::73]) (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 "mailout5.lrau.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KpYlw14zTz4Tmt for ; Wed, 27 Apr 2022 22:47:08 +0000 (UTC) (envelope-from Axel.Rau@Chaos1.DE) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=chaos1.de; s=email1; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:References:To: From:Subject:Mime-Version:Date:Message-Id:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=C5F5qGFd82x72fo/oPJ52+YUL2UEAPb+xVuvxECz1v4=; b=oBSaKuJQe83fRJK5UFwmawytCr 4cuc4InzrUxy0KI6PcbYJIEspv+ha4Zx6Nqnxv01KQkkxbdSaf690Iylk0a/60WrPc6k+gwoSzcUD 5YrtGXQwi0u8vqAinOYgA0JlaQMYk+/vanuNVIaQ6/MnLXye8dunhrwbnzrVBMlyR7stMY9MW3iR6 HfzyZCAVktGl4CgbdVUnFPniDUHHGxU2g6zfpB7Xild9kSIaPtVwi5o1K6STMMtzDl1wWUETKKgS0 qZZgxoc4F9Pi6Ry9IsQMdT/6a5PjXCR+BMiHuIgSmGW4YoT8pxcLRnAM3ywsZIa8IODoAcMRbA+tQ VLHQKadA==; Received: from [2a05:bec0:26:5::74] (helo=imap5.lrau.net) by mailout5.lrau.net with esmtp (Exim 4.95 (FreeBSD)) (envelope-from ) id 1njqR9-0005Wz-71 for hardware@freebsd.org; Wed, 27 Apr 2022 22:47:07 +0000 Received: from Axel.Rau@Chaos1.DE by imap5.lrau.net (Archiveopteryx 3.2.0) with esmtpsa id 1651099626-77821-77189/7/12; Wed, 27 Apr 2022 22:47:06 +0000 Message-Id: <0d980857-704a-6edd-07c3-aa31548ee03c@Chaos1.DE> Date: Thu, 28 Apr 2022 00:47:06 +0200 List-Id: General discussion of FreeBSD hardware List-Archive: https://lists.freebsd.org/archives/freebsd-hardware List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hardware@freebsd.org Mime-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: [RESOLVED] Re: Accessing I2C-Bus via ELV USB-I2C Content-Language: de-DE From: Axel Rau To: hardware@freebsd.org References: <996df5c0-ffa7-f1bf-a9e2-6dd47d7b49e6@Chaos1.DE> In-Reply-To: <996df5c0-ffa7-f1bf-a9e2-6dd47d7b49e6@Chaos1.DE> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4KpYlw14zTz4Tmt X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=chaos1.de header.s=email1 header.b=oBSaKuJQ; dmarc=none; spf=none (mx1.freebsd.org: domain of Axel.Rau@Chaos1.DE has no SPF policy when checking 2a05:bec0:26:5::73) smtp.mailfrom=Axel.Rau@Chaos1.DE X-Spamd-Result: default: False [-2.72 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[chaos1.de:s=email1]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[chaos1.de:dkim]; MV_CASE(0.50)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[chaos1.de]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.99)[-0.985]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[chaos1.de:+]; NEURAL_HAM_SHORT(-0.83)[-0.834]; MLMMJ_DEST(0.00)[hardware]; 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:197071, ipnet:2a05:bec0::/29, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[2a05:bec0:26:5::73:from] X-ThisMailContainsUnwantedMimeParts: N The application daemon speaks twi over the serial line (/dev/cuaU0) Everything works perfectly. Thanks, Axel Am 27.04.22 um 23:08 schrieb Axel Rau: > Next journey starts: >=20 > For the home2l project, I need a supported I2C interface via USB. > I got this one: > https://de.elv.com/elv-usb-ic-interface-usb-i2c-092255?fs=3D1805459039 > Unfortunately it shows up as a serial device on FreeBSD: >=20 > ugen0.2: at usbus0, cfg=3D0 = md=3DHOST=20 > spd=3DFULL (12Mbps) pwr=3DON (500mA) >=20 > =C2=A0 bLength =3D 0x0012 > =C2=A0 bDescriptorType =3D 0x0001 > =C2=A0 bcdUSB =3D 0x0110 > =C2=A0 bDeviceClass =3D 0x0000=C2=A0 > =C2=A0 bDeviceSubClass =3D 0x0000 > =C2=A0 bDeviceProtocol =3D 0x0000 > =C2=A0 bMaxPacketSize0 =3D 0x0040 > =C2=A0 idVendor =3D 0x10c4 > =C2=A0 idProduct =3D 0xea60 > =C2=A0 bcdDevice =3D 0x0100 > =C2=A0 iManufacturer =3D 0x0001=C2=A0 > =C2=A0 iProduct =3D 0x0002=C2=A0 > =C2=A0 iSerialNumber =3D 0x0003=C2=A0 > =C2=A0 bNumConfigurations =3D 0x0001 >=20 > In loader.conf, I have: > uslcom_load=3D"YES" > iic_load=3D"YES" > iicbus_loa >=20 > But the i2c utility does not show a new bus. >=20 > From dmesg: > root@axels-bsdbox:~ # dmesg | grep iic > ig4iic0: mem=20 > 0xdf230000-0xdf230fff irq 16 at device 21.0 on pci0 > ig4iic0: Using MSI > iicbus0: on ig4iic0 > iic0: on iicbus0 > ig4iic1: mem=20 > 0xdf22f000-0xdf22ffff irq 17 at device 21.1 on pci0 > ig4iic1: Using MSI > iicbus1: on ig4iic1 > iic1: on iicbus1 > root@axels-bsdbox:~ # dmesg | grep I2C > ig4iic0: mem=20 > 0xdf230000-0xdf230fff irq 16 at device 21.0 on pci0 > iicbus0: on ig4iic0 > iic0: on iicbus0 > ig4iic1: mem=20 > 0xdf22f000-0xdf22ffff irq 17 at device 21.1 on pci0 > iicbus1: on ig4iic1 > iic1: on iicbus1 > ugen0.2: at usbus0 > uslcom0: on usbus0 >=20 > They provide a (linux) driver ("Treiber") which seems to implement the=20 > I2C protocoll on top of the serial interface. > Do we have such a driver on FreeBSD, or exist other supported I2C=20 > devices to be plugged into USB? >=20 > Any help appreciated, > Axel =2D-=20 PGP-Key: CDE74120 =E2=98=80 computing @ chaos claudius From nobody Wed Jul 6 08:21:05 2022 X-Original-To: freebsd-hardware@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 56F521D008D1 for ; Wed, 6 Jul 2022 08:21:18 +0000 (UTC) (envelope-from tdtemccna@gmail.com) Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LdCDY56C0z4lNc for ; Wed, 6 Jul 2022 08:21:17 +0000 (UTC) (envelope-from tdtemccna@gmail.com) Received: by mail-lj1-x230.google.com with SMTP id y18so6623954ljj.6 for ; Wed, 06 Jul 2022 01:21:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to:cc; bh=qNJS8bXJjIJEOjJk4e4xeTOXLNTgbklFiRogoFnIe/0=; b=CCXw2NTWwMndfhuKlfeoq2/0ZZuXdFopovEUmt1R+Qn3YanPRSdM3ycwhL+qJwKm+b abtodMznDe/H75owb2edzcZhtC2HSyVBc2euOo9m9gQjE9z+L0cCr4+IWqteFzjD0EuE /R4HfIESBzDelHmwf07slCek7u0sxjLvHLmx+VmlSEGOTIJ3xclqa8vHhkoabpPteRlA KuK31z9QfHqmtpvBCEGxgGzxdudjn+1kBhYK5WUii9bIa6q+L7Cba1cpjgIBoZk/hlx8 oS4aasftbGDrV5jsRnYdd+Bx/ZR1eIPTqiNJi8JyL21889Gf1Yrfbdyf0+j1AN/KRn5J pWew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=qNJS8bXJjIJEOjJk4e4xeTOXLNTgbklFiRogoFnIe/0=; b=Vc2dAC7GS8FS0zB+gyXURM+6d9C4N2oVPSmVI1rgQSA3YWhOdA2ilk3EgQb9NwiCxA Poih7Yvq0+wVDDG/9HnEQIAWJYxD4nr6Hh/+mZfMCHYE5CI0Bf8xAmG4JhIjSCGu+tN1 h67qnqT+Al/1Q/CcYlV0y9U/jPc92zP9c1NN8vfUD/Teo5RuFTrfot6m8BhYnp7RwTsE OjMYO/7PUka2xMuiANL11HXH1zQCmb8cLlLN7X0moDfJqmQZXAXWK+tLi62hXkl8PO3R c96zDG3zKX5mYcdDgjpb7oIsDwQdBXC2RxkQ3evzc+UtVoHvH9PVjahEdF3iYMHAZabM a/1Q== X-Gm-Message-State: AJIora9+qn77epxs1iYFAZIUBlC9r7LAZyzo+c9sO42omPC73FRvEUU1 x28uDQKOuBVwweGaMJFO4uA2eKD8deeJHpdmeeKXWgzmIAqcJQ== X-Google-Smtp-Source: AGRyM1s3Cwx7XXPnS3yj4B5lSZGx0wc/Da997637+ETmM6f1ZBdXgy4juTLXgNia4WRWXq2bjTyNjDCGAaUK7oJDSeE= X-Received: by 2002:a2e:83d7:0:b0:25a:6d6c:72d2 with SMTP id s23-20020a2e83d7000000b0025a6d6c72d2mr22829337ljh.119.1657095676217; Wed, 06 Jul 2022 01:21:16 -0700 (PDT) List-Id: General discussion of FreeBSD hardware List-Archive: https://lists.freebsd.org/archives/freebsd-hardware List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hardware@freebsd.org MIME-Version: 1.0 From: Turritopsis Dohrnii Teo En Ming Date: Wed, 6 Jul 2022 16:21:05 +0800 Message-ID: Subject: FreeBSD is a great operating system! To: freebsd-hardware@freebsd.org Cc: ceo@teo-en-ming-corp.com Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4LdCDY56C0z4lNc X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=CCXw2NTW; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of tdtemccna@gmail.com designates 2a00:1450:4864:20::230 as permitted sender) smtp.mailfrom=tdtemccna@gmail.com X-Spamd-Result: default: False [-4.00 / 15.00]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_NONE(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; SUBJECT_ENDS_EXCLAIM(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hardware@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::230:from]; MLMMJ_DEST(0.00)[freebsd-hardware]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N Subject: FreeBSD is a great operating system! Good day from Singapore, I think FreeBSD is a great operating system! I support FreeBSD because the most popular pfSense firewall, the extremely popular OPNsense firewall and the BSD Router Project are all powered by FreeBSD! macOS is also based on FreeBSD! I use pfSense community edition firewall in my home. I am planning to try out OPNsense firewall next. I will continue to support FreeBSD! It is a great operating system! FreeBSD is a very good network operating system. Regards, Mr. Turritopsis Dohrnii Teo En Ming Targeted Individual in Singapore 6 July 2022 Wed Blogs: https://tdtemcerts.blogspot.com https://tdtemcerts.wordpress.com From nobody Sun Jul 31 18:40:21 2022 X-Original-To: freebsd-hardware@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 4LwqnY3dYpz4Y1Lr; Sun, 31 Jul 2022 18:40:33 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LwqnY39g6z3DrF; Sun, 31 Jul 2022 18:40:33 +0000 (UTC) (envelope-from eduardo@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659292833; 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; bh=JVWTotYcuXkn2l0bEKE1E7b5YOz7BSWOxieqJppAMb8=; b=Lb6yaAhlTJxsVs/ZVXatPcU+x7N9xH6GG+UlTUY0wViYZIv99eXBriKhjXCkOxT64Kw05M qpJj9DjKfwlaUtj1sPhVIvjdBK/Gfj2HZ7ZgG2N9OdFyMVI9MZj66qiH8qb55Tv4+qhd74 YUXasCqj8rYE8pSA1+W3aXufRvbFIGOb6RVaILv1v+Q/Sz2ThR2iPr8kDtEc5bchePbcrf QIn58jrHwQk1GQLa9oPMBLA3Rl1Vic29Tp1/GzSByJMP9wFreKq39A2nk+Jgl0tKct+jj2 V/miYhmbUoky6/T6SXjkNcSN6WutwggbcGTiRG5OI3f8ibKXlaRQWvuJ8qsmzA== Received: from mail-vk1-f176.google.com (mail-vk1-f176.google.com [209.85.221.176]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) (Authenticated sender: eduardo) by smtp.freebsd.org (Postfix) with ESMTPSA id 4LwqnY25g7zhM8; Sun, 31 Jul 2022 18:40:33 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: by mail-vk1-f176.google.com with SMTP id e3so2496681vkg.4; Sun, 31 Jul 2022 11:40:33 -0700 (PDT) X-Gm-Message-State: ACgBeo0KqvCpoeWGx6+BiZKTrt7+ZX+y0phvC5RMYwld/NpUOAQIOudp gjE3+DIAV1Uml6omXm84MWNde80PgJ401fJB4N0= X-Google-Smtp-Source: AA6agR7ZdEAg8KmCIzLwSeNTX3EkFaXJcLpGM7ZmQPYK5TjmBbDR6ZvG+9I2DUiUPyDf/Ae4DDKEC/P6ckLoqvJ+mSQ= X-Received: by 2002:a05:6122:ce:b0:377:4e0f:a037 with SMTP id h14-20020a05612200ce00b003774e0fa037mr1565660vkc.5.1659292832816; Sun, 31 Jul 2022 11:40:32 -0700 (PDT) List-Id: General discussion of FreeBSD hardware List-Archive: https://lists.freebsd.org/archives/freebsd-hardware List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hardware@freebsd.org MIME-Version: 1.0 From: Nuno Teixeira Date: Sun, 31 Jul 2022 19:40:21 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Lenovo Legion 5i speakers support To: freebsd-hardware@freebsd.org Cc: FreeBSD CURRENT Content-Type: multipart/alternative; boundary="000000000000e0e30d05e51e3775" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659292833; 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; bh=JVWTotYcuXkn2l0bEKE1E7b5YOz7BSWOxieqJppAMb8=; b=gwIqW2FVWJLNirViUOMUMsDA3kn0tu9+cvusPd8mp0vLmCuqWUR+g4coxPshjUOeQ0XNrf zlb6BaVmRJpD2kP+7tTSqdwsVU2ZX/7d9hixLw9Gf/Qvx4ZuP3ZNEySF8ELYdiK9405Bbz sa8t+iRtIFMHqshTF/CyFDBS5e5rljI+SDKh7G+ubiERPUBSg3VmG+5NFT+sYCcNgXfT8I T4McCZ0xyKCkOGeowNgEcCG5ATJ6zlVUFdc92WcWTNVpiuhJkao2P+MdUS6Bec+PAsvMDt nZtfcnMx+Dy9gZqLEzvQJ5OZLR16IrEiI7rP9wyWzNEbTHaIvgVjCJEKn1aXJA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659292833; a=rsa-sha256; cv=none; b=J/taWOthOetjpF3dfHM4N0R3gDhZdYsoqtuX61hlKQprvWfQaYSu5Bl6C2FIcXXWR5DddL AUdKcfZv4J3DxZiXBrz/2za7brrlYwhmE18zNyfP2g/atntd4uslBGftqso4qd4X/tVvzQ MkI3/cI07QgkdBsoVrVdVckNF+rhLfnTJDuHSWjv75w6HAylEOjRU3c9K1+bO+ZWkHGOgK htEl7PraQ0N/jl8iR4sqxAPDLdT/8p5jXR6IfPhiz2YWYwubmVerCCVQCMMYq4BN6kPRDd 6+aoVJ+5TwF4h8+iTabxq55dKe+GB82OTcSVxnQCYJ+9s1QL6cehqTCEi/0iCQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N --000000000000e0e30d05e51e3775 Content-Type: text/plain; charset="UTF-8" Hello, Review D30333 added support for Lenovo Legion 5 AMD speakers. I'm trying to add/test support for same laptop INTEL version that could be share same hardware setup. Any tips to hack sys/dev/sound/pci/hda/hdaa_patches.c so I can test it? Legion 5i system logs this is part of code included for ENOVO_L5AMD --- else if (id == HDA_CODEC_ALC257 && (subid == LENOVO_L5AMD_SUBVENDOR)) { switch (nid) { case 20: patch_str = "as=1 seq=0"; break; case 33: patch_str = "as=1 seq=15"; break; } --- Cheers, Nuno Teixeira --000000000000e0e30d05e51e3775 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

Review D30333 added support for Lenovo Legion = 5 AMD speakers.

I'm trying to add/test support for same laptop INTEL version that co= uld be share same hardware setup.

Any tips to hack sys/dev/sound/pci/hda/hdaa_patches.c so I can test it?<= br>
Legion 5i system logs

this is = part of code included for ENOVO_L5AMD
---
else if (id = =3D=3D HDA_CODEC_ALC257 &&
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 (subid =3D=3D LENOVO_L5AMD_SUBVENDOR)) {
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 switch (nid) {
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 case 20:
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 patch_str =3D "as= =3D1 seq=3D0";
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 break;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 case 33:
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 patch_str =3D "as=3D1 se= q=3D15";
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 break;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 }
---

Cheers,
=

Nuno Teixeira
--000000000000e0e30d05e51e3775-- From nobody Sat Aug 6 14:47:22 2022 X-Original-To: freebsd-hardware@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 4M0QLh2W2gz4Xyvw for ; Sat, 6 Aug 2022 14:48:12 +0000 (UTC) (envelope-from budijanto@studiokaraoke.co.id) Received: from mx1-ncdc.idweb.host (mx1-ncdc.idweb.host [203.161.184.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4M0QLc2GVRz3Hl5 for ; Sat, 6 Aug 2022 14:48:07 +0000 (UTC) (envelope-from budijanto@studiokaraoke.co.id) X-Spam-Status: No X-JogjaCamp-MailScanner-eFa-Watermark: 1660402051.11916@ixwwdxdIKtrNUb8rWz0gSA X-JogjaCamp-MailScanner-eFa-From: budijanto@studiokaraoke.co.id X-JogjaCamp-MailScanner-eFa: Found to be clean X-JogjaCamp-MailScanner-eFa-ID: 4M0QKt0zx6z2xbJ X-JogjaCamp-MailScanner-eFa-Information: Please contact hosting@jogjacamp.co.id for more information Received: from plesk-5.idweb.host (plesk-5.idweb.host [203.161.184.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (no client certificate requested) by mx1-ncdc.idweb.host (MailScanner Milter) with SMTP id 4M0QKt0zx6z2xbJ; Sat, 6 Aug 2022 21:47:30 +0700 (WIB) Received: from [10.20.30.2] (unknown [202.138.247.170]) by plesk-5.idweb.host (Postfix) with ESMTPSA id 38836B07E2; Sat, 6 Aug 2022 21:47:28 +0700 (WIB) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=studiokaraoke.co.id; s=default; t=1659797248; bh=ns6nyMcxLIuw4eBruGxj6lI+SYqNW01FXww2WimUprg=; h=To:From:Subject; b=El5LoelZNq+FkoQk5RwE2knt9arAWVy3+WLSjQtDymgRZZDs7ctbsuT7kcveo+lY7 plB0P/XjrWvaeC7NYHtz8hFiIZJwwIh54pO4CwlgpYPu5NE8ZS3mn5B6d4P8TB9Z+V mtPVpauKxfQC4ZGrRiGZZJ/cvcJkDVKLkgjlnXk4= Received-SPF: pass (plesk-5.idweb.host: connection is authenticated) Message-ID: <95593a2e-1bcc-42f9-af92-444f369d6dd0@studiokaraoke.co.id> Date: Sat, 6 Aug 2022 21:47:22 +0700 List-Id: General discussion of FreeBSD hardware List-Archive: https://lists.freebsd.org/archives/freebsd-hardware List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hardware@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Content-Language: en-US To: freebsd-questions@freebsd.org From: Budi Janto Organization: Studio Family Karaoke Cc: freebsd-hardware@freebsd.org Subject: Conflict if_re driver Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------14ImayGEUiifzv1LfHXsDVtq" X-Rspamd-Queue-Id: 4M0QLc2GVRz3Hl5 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=studiokaraoke.co.id header.s=default header.b=El5LoelZ; dmarc=pass (policy=none) header.from=studiokaraoke.co.id; spf=pass (mx1.freebsd.org: domain of budijanto@studiokaraoke.co.id designates 203.161.184.51 as permitted sender) smtp.mailfrom=budijanto@studiokaraoke.co.id X-Spamd-Result: default: False [-3.95 / 15.00]; SIGNED_PGP(-2.00)[]; MIME_BASE64_TEXT_BOGUS(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[studiokaraoke.co.id,none]; R_DKIM_ALLOW(-0.20)[studiokaraoke.co.id:s=default]; MIME_GOOD(-0.20)[multipart/signed,multipart/mixed,text/plain]; R_SPF_ALLOW(-0.20)[+a:mx1-ncdc.idweb.host]; MIME_BASE64_TEXT(0.10)[]; NEURAL_SPAM_MEDIUM(0.05)[0.052]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; ASN(0.00)[asn:46050, ipnet:203.161.184.0/24, country:ID]; ARC_NA(0.00)[]; RCVD_TLS_LAST(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; HAS_ORG_HEADER(0.00)[]; TO_DN_NONE(0.00)[]; HAS_ATTACHMENT(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:+,3:~]; RCVD_COUNT_THREE(0.00)[3]; RCPT_COUNT_TWO(0.00)[2]; DKIM_TRACE(0.00)[studiokaraoke.co.id:+]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MLMMJ_DEST(0.00)[freebsd-hardware@freebsd.org] X-ThisMailContainsUnwantedMimeParts: N This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------14ImayGEUiifzv1LfHXsDVtq Content-Type: multipart/mixed; boundary="------------IIl1lEJ07SJ1i4SGzXJNoVH8"; protected-headers="v1" From: Budi Janto To: freebsd-questions@freebsd.org Cc: freebsd-hardware@freebsd.org Message-ID: <95593a2e-1bcc-42f9-af92-444f369d6dd0@studiokaraoke.co.id> Subject: Conflict if_re driver --------------IIl1lEJ07SJ1i4SGzXJNoVH8 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: base64 SGksDQoNCg0KSSd2ZSBydW5uaW5nIEZyZWVCU0QgMTMuMSBSRUxFQVNFLg0KDQojIHBjaWNv bmYgLWx2DQpbLi4uXQ0KcmUwQHBjaTA6MzowOjA6CWNsYXNzPTB4MDIwMDAwIHJldj0weDA2 IGhkcj0weDAwIHZlbmRvcj0weDExODYgDQpkZXZpY2U9MHg0MzAwIHN1YnZlbmRvcj0weDEx ODYgc3ViZGV2aWNlPTB4NGIxMA0KICAgICB2ZW5kb3IgICAgID0gJ0QtTGluayBTeXN0ZW0g SW5jJw0KICAgICBkZXZpY2UgICAgID0gJ0RHRS01MjhUIEdpZ2FiaXQgRXRoZXJuZXQgQWRh cHRlcicNCiAgICAgY2xhc3MgICAgICA9IG5ldHdvcmsNCiAgICAgc3ViY2xhc3MgICA9IGV0 aGVybmV0DQpyZTFAcGNpMDo0OjA6MDoJY2xhc3M9MHgwMjAwMDAgcmV2PTB4MDUgaGRyPTB4 MDAgdmVuZG9yPTB4MTBlYyANCmRldmljZT0weDgxMjUgc3VidmVuZG9yPTB4MTQ1OCBzdWJk ZXZpY2U9MHhlMDAwDQogICAgIHZlbmRvciAgICAgPSAnUmVhbHRlayBTZW1pY29uZHVjdG9y IENvLiwgTHRkLicNCiAgICAgZGV2aWNlICAgICA9ICdSVEw4MTI1IDIuNUdiRSBDb250cm9s bGVyJw0KICAgICBjbGFzcyAgICAgID0gbmV0d29yaw0KICAgICBzdWJjbGFzcyAgID0gZXRo ZXJuZXQNCg0KIyBpZmNvbmZpZw0KcmUwOiBmbGFncz04ODQzPFVQLEJST0FEQ0FTVCxSVU5O SU5HLFNJTVBMRVgsTVVMVElDQVNUPiBtZXRyaWMgMCBtdHUgMTUwMA0KCW9wdGlvbnM9MjAx YjxSWENTVU0sVFhDU1VNLFZMQU5fTVRVLFZMQU5fSFdUQUdHSU5HLFdPTF9NQUdJQz4NCgll dGhlciAwODo1YToxMTozMjplNjo1Mw0KCWluZXQgMTkyLjE2OC4xMDAuMjAwIG5ldG1hc2sg MHhmZmZmZmYwMCBicm9hZGNhc3QgMTkyLjE2OC4xMDAuMjU1DQoJbWVkaWE6IEV0aGVybmV0 IGF1dG9zZWxlY3QgKDEwMGJhc2VUWCA8ZnVsbC1kdXBsZXg+KQ0KCXN0YXR1czogYWN0aXZl DQoJbmQ2IG9wdGlvbnM9Mjk8UEVSRk9STU5VRCxJRkRJU0FCTEVELEFVVE9fTElOS0xPQ0FM Pg0KcmUxOiBmbGFncz04ODQzPFVQLEJST0FEQ0FTVCxSVU5OSU5HLFNJTVBMRVgsTVVMVElD QVNUPiBtZXRyaWMgMCBtdHUgMTUwMA0KCW9wdGlvbnM9MjAxYjxSWENTVU0sVFhDU1VNLFZM QU5fTVRVLFZMQU5fSFdUQUdHSU5HLFdPTF9NQUdJQz4NCglldGhlciBkODo1ZTpkMzo5ODox YTo5MA0KCWluZXQgMTkyLjE2OC4wLjIwMCBuZXRtYXNrIDB4ZmZmZmZmMDAgYnJvYWRjYXN0 IDE5Mi4xNjguMC4yNTUNCgltZWRpYTogRXRoZXJuZXQgYXV0b3NlbGVjdCAoMTAwMGJhc2VU IDxmdWxsLWR1cGxleD4pDQoJc3RhdHVzOiBhY3RpdmUNCgluZDYgb3B0aW9ucz0yOTxQRVJG T1JNTlVELElGRElTQUJMRUQsQVVUT19MSU5LTE9DQUw+DQoNCldpdGhvdXQgaW5zdGFsbGlu ZyByZWFsdGVrLXJlLWttb2QtMTk2LjA0IGZyb20gcGFja2FnZXMsIHJlMSB1bmRldGVjdGVk LiANCkJ1dCBpZiBJIGluc3RhbGxpbmcgYW5kIGFjdGl2YXRlZCB0aHJvdWdoIC9ib290L2xv YWRlci5jb25mOg0KDQppZl9yZV9sb2FkPSJZRVMiDQppZl9yZV9uYW1lPSIvYm9vdC9tb2R1 bGVzL2lmX3JlLmtvIg0KaHcucmUubWF4X3J4X21idWZfc3o9IjIwNDgiDQoNCnJlMCBhbHdh eXMgcnVucyAxMDBiYXNlVFgsIGlmIEkgZGlzYWJsZSB2aWEgL2Jvb3QvbG9hZGVyLmNvbmYu IHJlMSBnb25lIA0KYW5kIHJlMCBiYWNrIHJ1bnMgMTAwMGJhc2VULiBBbnkgc3VnZ2VzdGlv biBmb3IgdGhpcyBwcm9ibGVtPyBUaGFua3MuDQoNCg0KDQotLSANClJlZ2FyZHMsDQpCdWRp IEphbnRvDQo= --------------IIl1lEJ07SJ1i4SGzXJNoVH8-- --------------14ImayGEUiifzv1LfHXsDVtq Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wsF5BAABCAAjFiEEngW8NbB6AIO1gGgN6gUGvghTH24FAmLufvoFAwAAAAAACgkQ6gUGvghTH25b cg/8CrCTNEnXTy7GNGECD1/WQCfp5DzB0XTqSTcGa4+WZDvkQ2S3Ky+qF6GrlBXORhOejK1dpbD/ sa1vYGhuhUpMMrTqMJd17rfv4S/Y1a6YIKLRhdG+FGUosEeaQct19ULKEwUkXjKRKRceEGLjMpHV Aup3tgyCrVtAK83orOSCIlj6n8jPUcay7udMJ9aCwMa8HWygvGhY7PFz73jtfpI6bxI4Eu95bE6u Dp7HnbjrScKf13QQ2Z6gWEW9s7qyQkM2ZB7WPOMewHQsnin37TAwBisy5vZCqfyoy9UO1iGHGBMH EtvNQi+b1xqdc2ImCN0oKn+M+nIUYTrFZJaXQn5TKv7XymIoW3f8g1WVeuq0Jdr04S3mS26BKybL RKkjeW88MoodPHVvWIchVXjoXZ8GD+diKG+EVZAUtkBscXOuppvr8vUB2z2rZAC1HuTHF1saSF6I Qn+qB5yBlvonEMmT3REMxcoFieZjxBJ0z/XqlBNLGUEdeRSXy+bV/+jNQZmYIHMl6aGlWr/yirbh 2FyT9TpXRgg4T4qSG2Sx4ApUWT3hIjNIHqNQmk2edQKBYh+9Xf/XBxaQgKSg/dhBbj2UpAZAl8Om fYIPGaKRPHMoRzJGfkQl93utbClWV+iRg5aeWkimQoapwSszW/ji05oPSAy+gft+Jfwh5kCWWQJO cNo= =v/tp -----END PGP SIGNATURE----- --------------14ImayGEUiifzv1LfHXsDVtq-- From nobody Mon Aug 8 23:27:33 2022 X-Original-To: freebsd-hardware@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 4M1sn458bMz4YXYS for ; Mon, 8 Aug 2022 23:27:36 +0000 (UTC) (envelope-from klaus.troffob@caliopea.com) Received: from nvme-2020.calyopea.fr (nvme-2020.calyopea.fr [51.255.75.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) client-signature ECDSA (P-384)) (Client CN "nvme-2020.calyopea.fr", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4M1sn35dssz3L8H for ; Mon, 8 Aug 2022 23:27:35 +0000 (UTC) (envelope-from klaus.troffob@caliopea.com) Received: from submission.calyopea.com (lcs07-lyo-176-188-196-53.sfr.lns.abo.bbox.fr [176.188.196.53]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "imaps.calyopea.com", Issuer "R3" (verified OK)) by nvme-2020.calyopea.fr (Postfix) with ESMTPS id 82C8118150 for ; Tue, 9 Aug 2022 01:27:34 +0200 (CEST) Received: from local-area-network (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) by submission.calyopea.com (Postfix) with ESMTPSA id 32E5E282EA for ; Tue, 9 Aug 2022 01:27:34 +0200 (CEST) Message-ID: <9e9f672e-5568-78b4-4c42-dace8b7174a1@calyopea.com> Date: Tue, 9 Aug 2022 01:27:33 +0200 List-Id: General discussion of FreeBSD hardware List-Archive: https://lists.freebsd.org/archives/freebsd-hardware List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hardware@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.1.1 Content-Language: fr To: freebsd-hardware@FreeBSD.org From: klaus.troffob@caliopea.com Subject: puc driver (Oxford Semiconductor Ltd OX16PCI954) not recognized Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4M1sn35dssz3L8H X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=pass (policy=reject) header.from=caliopea.com; spf=pass (mx1.freebsd.org: domain of klaus.troffob@caliopea.com designates 51.255.75.201 as permitted sender) smtp.mailfrom=klaus.troffob@caliopea.com X-Spamd-Result: default: False [-3.80 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[caliopea.com,reject]; R_SPF_ALLOW(-0.20)[+ip4:51.255.75.201/32:c]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; R_DKIM_NA(0.00)[]; FROM_NO_DN(0.00)[]; MLMMJ_DEST(0.00)[freebsd-hardware@FreeBSD.org]; FROM_EQ_ENVFROM(0.00)[]; ARC_NA(0.00)[]; ASN(0.00)[asn:16276, ipnet:51.254.0.0/15, country:FR]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hardware@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; TO_DN_NONE(0.00)[]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N Hello I have an old PCI GPS card with an Oxford Semiconductor UART chip on It. This chip should be recognized by the "puc" driver. But the device number is not in the list of recognized chips. from pciconfig: none0@pci0:9:1:0:       class=0x070006 rev=0x00 hdr=0x00 vendor=0x1415 device=0x950c subvendor=0x0000 subdevice=0x0000     vendor     = 'Oxford Semiconductor Ltd'     class      = simple comms     subclass   = UART none1@pci0:9:1:1:       class=0x068000 rev=0x00 hdr=0x00 vendor=0x1415 device=0x9510 subvendor=0x0000 subdevice=0x0000     vendor     = 'Oxford Semiconductor Ltd'     device     = 'OX16PCI954 (Quad 16950 UART) function 1 (Disabled)'     class      = bridge I remember a few years ago having patched /usr/src/sys/dev/puc/pucdata.c and recompiled the kernel to make it works. It was in freebsd 7 ; now, with freebsd 13, I'm sure there must be a more modern way to make this card match the driver . Perhaps "hint" (but devices.hints is mostly for old "isa" things), or recompiling only this kernel driver (but "puc" is already embeded in the kernel: it's seem not possible to unload it to reload a new one). I try to avoid recompiling a patched kernel since it's likely to be changed at next freebsd-update..... Any advice would be appreciated ;-) Thanks. From nobody Tue Aug 23 00:31:41 2022 X-Original-To: freebsd-hardware@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 4MBVXZ61zsz4b4b0 for ; Tue, 23 Aug 2022 00:31:42 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MBVXZ5Tb0z44sg; Tue, 23 Aug 2022 00:31:42 +0000 (UTC) (envelope-from jhb@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661214702; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=F1162wuepV8P1Nkufw3ejnthv5Jfre+6ZiXBM9y3Kwk=; b=E1LJNaKu1DABT8/nqGzVt3vXbDnHFA6/Y+Z5qxz51UOt7bgDh6vzcbZsr4IPrtY5qk45Wa ph7cVUz2UxJp1vKizL7jApH+KZj0dmTUil2enfEwGQG5YLaHYxns0FnRgahBL6UHSfStdE +bKGPvaBI0d7Fg8s9gJKDMIzPjUk7fbj1fWAIWN8zteaqRGk3D8fQ+fcYaU5oajk6WmcCM ro1acJDFqqXNLIwMVNoo1FCCTquoD7UJ2VGp0qJBz2n87mazQ2FxsaeYqTeo5UBk4UWmKB ckrRc35juL6/thPmBoZq/rnis1fOmqY/Bk5DdqKUTx1B0merYNZGaLoxDnATGw== Received: from [10.0.1.4] (ralph.baldwin.cx [66.234.199.215]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: jhb) by smtp.freebsd.org (Postfix) with ESMTPSA id 4MBVXZ2bwwzfRl; Tue, 23 Aug 2022 00:31:42 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Message-ID: <833c5f40-317e-fee1-ec2a-828eba794b19@FreeBSD.org> Date: Mon, 22 Aug 2022 17:31:41 -0700 List-Id: General discussion of FreeBSD hardware List-Archive: https://lists.freebsd.org/archives/freebsd-hardware List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hardware@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: puc driver (Oxford Semiconductor Ltd OX16PCI954) not recognized Content-Language: en-US To: klaus.troffob@caliopea.com, freebsd-hardware@FreeBSD.org References: <9e9f672e-5568-78b4-4c42-dace8b7174a1@calyopea.com> From: John Baldwin In-Reply-To: <9e9f672e-5568-78b4-4c42-dace8b7174a1@calyopea.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661214702; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=F1162wuepV8P1Nkufw3ejnthv5Jfre+6ZiXBM9y3Kwk=; b=jYUR9sEb8Vva62QOeTqurWyR+3yYu319ZaWpHLAaIKef7aqILCKG59OhemLS3N2EqiGe7Y hdD0UkeMhbex7Ngc9uc/ilHcRNcsfVk0mAXnFqVgPS2UpHAxphmK27ysliSoTFA+XzwUxx fVZwQOufKGlV/QraDN1wdUZQuMPuoSHBelojVkXkHrfS5bAHLz2Jv3O4XxxZK1Jpth5imb sMFibhcl1QADfvFqW1rAH30dpzpULSZ/Jui73VYLO7RF9hKAjgmaZ4Q/GDUMdCgstDo74k r/KT4IW2hq5rH9cHxdYy61AQzhPX61GgAQ6CAgUF3QpHrb53fDyF9KIP9Ui+tg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1661214702; a=rsa-sha256; cv=none; b=aRs46tmtIBJTLDZmtnhWqpOH+Uj6J4gcHfOLhk15HxJwv0248d/RoKrr+lQeaeHxHNBt9C jLagQctQVk8VBTbffas/dOYqcewq8aGAP/gua1hpPlSRK1wCEGbcXulkQvCHkVmubcy0nw sk7PiIKH4GUH+kNhflJ/hRO+I+pA3xTDzHwwAMa3NaCJJOGN3CvODUQ85iNpbCInBOaIk6 a6oaNPm2hbKtfw4aGFydQ7xRsNf8EtKVWmUgmmIZEPmynZEqHSGx3VFyFOeB6dO26+Bmxp X/KuRTqkWOskQnNuW8aeDda90q6qaP+i7nowJxL5EGQ7sKdW08FKHXnSWcuYig== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N On 8/8/22 4:27 PM, klaus.troffob@caliopea.com wrote: > Hello > > I have an old PCI GPS card with an Oxford Semiconductor UART chip on It. > This chip should be recognized by the "puc" driver. But the device > number is not in the list of recognized chips. > > from pciconfig: > none0@pci0:9:1:0:       class=0x070006 rev=0x00 hdr=0x00 vendor=0x1415 > device=0x950c subvendor=0x0000 subdevice=0x0000 >     vendor     = 'Oxford Semiconductor Ltd' >     class      = simple comms >     subclass   = UART > none1@pci0:9:1:1:       class=0x068000 rev=0x00 hdr=0x00 vendor=0x1415 > device=0x9510 subvendor=0x0000 subdevice=0x0000 >     vendor     = 'Oxford Semiconductor Ltd' >     device     = 'OX16PCI954 (Quad 16950 UART) function 1 (Disabled)' >     class      = bridge > > > I remember a few years ago having patched /usr/src/sys/dev/puc/pucdata.c > and recompiled the kernel to make it works. > It was in freebsd 7 ; now, with freebsd 13, I'm sure there must be a > more modern way to make this card match the driver . > > Perhaps "hint" (but devices.hints is mostly for old "isa" things), or > recompiling only this kernel driver (but "puc" is already embeded in the > kernel: it's seem not possible to unload it to reload a new one). I try > to avoid recompiling a patched kernel since it's likely to be changed at > next freebsd-update..... > > Any advice would be appreciated ;-) It's still a matter of patching pucdata.c. -- John Baldwin From nobody Mon Oct 3 15:26:07 2022 X-Original-To: hardware@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 4Mh4Rr2PCDz4d0W9; Mon, 3 Oct 2022 15:26:16 +0000 (UTC) (envelope-from Axel.Rau@Chaos1.DE) Received: from mailout4.lrau.net (mailout4.lrau.net [IPv6:2a05:bec0:26:2::73]) (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 "mailout4.lrau.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Mh4Rp2fZnz47W1; Mon, 3 Oct 2022 15:26:14 +0000 (UTC) (envelope-from Axel.Rau@Chaos1.DE) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=chaos1.de; s=2022; h=References:To:In-Reply-To:Subject:Date:Mime-Version:Content-Type: Message-Id:From:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=ZF30VY8mkoTGfDc+FuzR2D7l7orTPEivtvXR+D0J6WQ=; b=G2eGC1WQH6dE14id0L4rDRiqb2 QWl5v/Wj3MjBUYbHlU2VXtftP0eYTDmRmcISJwunWFXNkKExK2G3dvd+rrWmi3ogFh4iDA4oMKCik IqENNh3hugwUee7+lmVcm+FACFctuxweIT82TRW19CrMt26hSVFUvmNqnbEqvPSMv7o2U7U4zl3yD g4prGOS3xV9qD66E4LAOoqQKCzni8EBg4kWvZ8VJO2WJ2QZMamx59XsDvIMlGAL98UBnF2Z763Z2p ZiX/RiisUYoSJoHaleqVVuy24xY3AsJ+FvETnKTg0yEXhcn7EiIto7jOm7b5+nNMkG0jlxA+G6QVH 7ZALGmdQ==; Received: from [2a05:bec0:26:2::74] (helo=imap4.lrau.net) by mailout4.lrau.net with esmtp (Exim 4.95 (FreeBSD)) (envelope-from ) id 1ofNKb-000Ntl-4t; Mon, 03 Oct 2022 15:26:09 +0000 Received: from Axel.Rau@Chaos1.DE by imap5.lrau.net (Archiveopteryx 3.2.0) with esmtpsa id 1664810768-11078-8168/7/136; Mon, 3 Oct 2022 15:26:08 +0000 From: Axel Rau Message-Id: <35D556D7-56EC-4295-93D6-80A4CFE6DCE9@Chaos1.DE> Content-Type: multipart/alternative; boundary="Apple-Mail=_B4FAB519-BB9C-4D16-82A3-B8D44681F591" List-Id: General discussion of FreeBSD hardware List-Archive: https://lists.freebsd.org/archives/freebsd-hardware List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hardware@freebsd.org Mime-Version: 1.0 Date: Mon, 3 Oct 2022 17:26:07 +0200 Subject: Re: Accessing I2C-Bus via ELV USB-I2C In-Reply-To: <996df5c0-ffa7-f1bf-a9e2-6dd47d7b49e6@Chaos1.DE> To: hardware@freebsd.org, freebsd-hackers@freebsd.org References: <996df5c0-ffa7-f1bf-a9e2-6dd47d7b49e6@Chaos1.DE> X-Mailer: Apple Mail (2.3608.120.23.2.7) X-Rspamd-Queue-Id: 4Mh4Rp2fZnz47W1 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=chaos1.de header.s=2022 header.b=G2eGC1WQ; dmarc=none; spf=none (mx1.freebsd.org: domain of Axel.Rau@Chaos1.DE has no SPF policy when checking 2a05:bec0:26:2::73) smtp.mailfrom=Axel.Rau@Chaos1.DE X-Spamd-Result: default: False [-3.90 / 15.00]; DWL_DNSWL_LOW(-1.00)[chaos1.de:dkim]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MV_CASE(0.50)[]; R_DKIM_ALLOW(-0.20)[chaos1.de:s=2022]; RCVD_IN_DNSWL_LOW(-0.10)[2a05:bec0:26:2::73:from]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:197071, ipnet:2a05:bec0::/29, country:DE]; MIME_TRACE(0.00)[0:+,1:+,2:~]; MLMMJ_DEST(0.00)[hardware@freebsd.org,freebsd-hackers@freebsd.org]; R_SPF_NA(0.00)[no SPF record]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; RCVD_COUNT_THREE(0.00)[3]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; DKIM_TRACE(0.00)[chaos1.de:+]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DMARC_NA(0.00)[chaos1.de]; TO_DN_NONE(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[] X-ThisMailContainsUnwantedMimeParts: N --Apple-Mail=_B4FAB519-BB9C-4D16-82A3-B8D44681F591 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 =46rom time to time the I2C layer on top of the uart locks up and can=E2=80=99t be recovered via its built in reset command. Initialialization at [1]:2564 is missing the greeting message. looking at the traffic with usbdump -d ugen1.3 -v -v -v -s 1024 > usb.txt I=E2=80=99m missing some response data from the I2C controller. Questions: 1. On usbdump, why is the hexdump mssing on some lines like frame[0] WRITE bytes ? 2. Do we have a tool to dump traffic directly on the uart layer? Any help appreciated, Axel [1]: https://github.com/mc3/home2l/blob/master/brownies/brownies.C > Am 27.04.2022 um 23:08 schrieb Axel Rau : >=20 > Next journey starts: >=20 > For the home2l project, I need a supported I2C interface via USB. > I got this one: > https://de.elv.com/elv-usb-ic-interface-usb-i2c-092255?fs=3D1805459039 > Unfortunately it shows up as a serial device on FreeBSD: >=20 > ugen0.2: at usbus0, cfg=3D0 = md=3DHOST spd=3DFULL (12Mbps) pwr=3DON (500mA) >=20 > bLength =3D 0x0012 > bDescriptorType =3D 0x0001 > bcdUSB =3D 0x0110 > bDeviceClass =3D 0x0000 > bDeviceSubClass =3D 0x0000 > bDeviceProtocol =3D 0x0000 > bMaxPacketSize0 =3D 0x0040 > idVendor =3D 0x10c4 > idProduct =3D 0xea60 > bcdDevice =3D 0x0100 > iManufacturer =3D 0x0001 > iProduct =3D 0x0002 > iSerialNumber =3D 0x0003 > bNumConfigurations =3D 0x0001 >=20 > In loader.conf, I have: > uslcom_load=3D"YES" > iic_load=3D"YES" > iicbus_loa >=20 > But the i2c utility does not show a new bus. >=20 > From dmesg: > root@axels-bsdbox:~ # dmesg | grep iic > ig4iic0: mem 0xdf230000-0xdf23= 0fff irq 16 at device 21.0 on pci0 > ig4iic0: Using MSI > iicbus0: on ig4iic0 > iic0: on iicbus0 > ig4iic1: mem 0xdf22f000-0xdf22= ffff irq 17 at device 21.1 on pci0 > ig4iic1: Using MSI > iicbus1: on ig4iic1 > iic1: on iicbus1 > root@axels-bsdbox:~ # dmesg | grep I2C > ig4iic0: mem 0xdf230000-0xdf23= 0fff irq 16 at device 21.0 on pci0 > iicbus0: on ig4iic0 > iic0: on iicbus0 > ig4iic1: mem 0xdf22f000-0xdf22= ffff irq 17 at device 21.1 on pci0 > iicbus1: on ig4iic1 > iic1: on iicbus1 > ugen0.2: at usbus0 > uslcom0: on usbus0 >=20 > They provide a (linux) driver ("Treiber") which seems to implement the = I2C protocoll on top of the serial interface. > Do we have such a driver on FreeBSD, or exist other supported I2C = devices to be plugged into USB? >=20 > Any help appreciated, > Axel =2D-- PGP-Key: CDE74120 =E2=98=80 computing @ chaos claudius --Apple-Mail=_B4FAB519-BB9C-4D16-82A3-B8D44681F591 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 From time to = time the I2C layer on top of the uart locks up
and can=E2=80= =99t be recovered via its built in reset command.
In= itialialization at [1]:2564 is missing the greeting message.

looking at the traffic with
usbdump -d ugen1.3 -v -v -v -s 1024 > = usb.txt
I=E2=80=99m missing some response = data from the I2C controller.

<= div class=3D"">Questions:
1. On usbdump, why is the = hexdump mssing on some lines like
frame[0] WRITE <n> bytes  ?

2. Do we have a = tool to dump traffic directly on the uart layer?

Any help appreciated, Axel


=
Am 27.04.2022 um 23:08 schrieb Axel Rau <Axel.Rau@chaos1.de>:

Next = journey starts:

For the home2l project, I = need a supported I2C interface via USB.
I got this one:
https://de.elv.com/elv-usb-ic-interface-u= sb-i2c-092255?fs=3D1805459039
Unfortunately it shows = up as a serial device on FreeBSD:

ugen0.2: = <Silicon Labs ELV USB-I2C-Interface> at usbus0, cfg=3D0 md=3DHOST = spd=3DFULL (12Mbps) pwr=3DON (500mA)

=  bLength =3D 0x0012
 bDescriptorType =3D = 0x0001
 bcdUSB =3D 0x0110
 bDevic= eClass =3D 0x0000  <Probed by interface class>
=  bDeviceSubClass =3D 0x0000
 bDeviceProtocol = =3D 0x0000
 bMaxPacketSize0 =3D 0x0040
=  idVendor =3D 0x10c4
 idProduct =3D 0xea60
 bcdDevice =3D 0x0100
 iManufacturer= =3D 0x0001  <Silicon Labs>
 iProduct =3D = 0x0002  <ELV USB-I2C-Interface>
 iSerialNu= mber =3D 0x0003  <B5AAP0EEUK6A3CIZ>
 bNumC= onfigurations =3D 0x0001

In loader.conf, I = have:
uslcom_load=3D"YES"
iic_load=3D"YES"iicbus_loa

But the i2c utility = does not show a new bus.

From dmesg:
root@axels-bsdbox:~ # dmesg | grep iic
ig4iic0: = <Intel Sunrise Point-H I2C Controller-0> mem 0xdf230000-0xdf230fff = irq 16 at device 21.0 on pci0
ig4iic0: Using MSI
iicbus0: <Philips I2C bus (ACPI-hinted)> on ig4iic0
iic0: <I2C generic I/O> on iicbus0
ig4iic1= : <Intel Sunrise Point-H I2C Controller-1> mem 0xdf22f000-0xdf22fff= f irq 17 at device 21.1 on pci0
ig4iic1: Using MSI
iicbus1: <Philips I2C bus (ACPI-hinted)> on ig4iic1
iic1: <I2C generic I/O> on iicbus1
root@ax= els-bsdbox:~ # dmesg | grep I2C
ig4iic0: <Intel Sunrise = Point-H I2C Controller-0> mem 0xdf230000-0xdf230fff irq 16 at device = 21.0 on pci0
iicbus0: <Philips I2C bus (ACPI-hinted)>= on ig4iic0
iic0: <I2C generic I/O> on iicbus0
ig4iic1: <Intel Sunrise Point-H I2C Controller-1> mem = 0xdf22f000-0xdf22ffff irq 17 at device 21.1 on pci0
iicbus1= : <Philips I2C bus (ACPI-hinted)> on ig4iic1
iic1: = <I2C generic I/O> on iicbus1
ugen0.2: <Silicon = Labs ELV USB-I2C-Interface> at usbus0
uslcom0: <ELV = USB-I2C-Interface> on usbus0

They = provide a (linux) driver ("Treiber") which seems to implement the I2C = protocoll on top of the serial interface.
Do we have such = a driver on FreeBSD, or exist other supported I2C devices to be plugged = into USB?

Any help appreciated,
Axel


---
PGP-Key: CDE74120  =E2=98=80 =  computing @ chaos claudius

--Apple-Mail=_B4FAB519-BB9C-4D16-82A3-B8D44681F591-- From nobody Mon Oct 3 15:38:55 2022 X-Original-To: hardware@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 4Mh4kZ1v7Dz4d2CP; Mon, 3 Oct 2022 15:39:02 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [88.99.82.50]) (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 4Mh4kY1XKxz3CX3; Mon, 3 Oct 2022 15:39:01 +0000 (UTC) (envelope-from hps@selasky.org) Received: from [10.36.2.155] (unknown [178.232.223.95]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 9682C26015B; Mon, 3 Oct 2022 17:38:58 +0200 (CEST) Message-ID: <37c55124-5cd5-6fd1-ca46-9265ebe47b18@selasky.org> Date: Mon, 3 Oct 2022 17:38:55 +0200 List-Id: General discussion of FreeBSD hardware List-Archive: https://lists.freebsd.org/archives/freebsd-hardware List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hardware@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 Subject: Re: Accessing I2C-Bus via ELV USB-I2C Content-Language: en-US To: Axel Rau , hardware@freebsd.org, freebsd-hackers@freebsd.org References: <996df5c0-ffa7-f1bf-a9e2-6dd47d7b49e6@Chaos1.DE> <35D556D7-56EC-4295-93D6-80A4CFE6DCE9@Chaos1.DE> From: Hans Petter Selasky In-Reply-To: <35D556D7-56EC-4295-93D6-80A4CFE6DCE9@Chaos1.DE> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4Mh4kY1XKxz3CX3 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of hps@selasky.org designates 88.99.82.50 as permitted sender) smtp.mailfrom=hps@selasky.org X-Spamd-Result: default: False [-3.29 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-0.999]; NEURAL_HAM_SHORT(-1.00)[-0.999]; NEURAL_HAM_LONG(-0.99)[-0.995]; R_SPF_ALLOW(-0.20)[+a:mail.turbocat.net:c]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org,hardware@freebsd.org]; R_DKIM_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:88.99.0.0/16, country:DE]; TO_MATCH_ENVRCPT_SOME(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; FROM_HAS_DN(0.00)[]; DMARC_NA(0.00)[selasky.org]; RCPT_COUNT_THREE(0.00)[3]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On 10/3/22 17:26, Axel Rau wrote: > Questions: > 1. On usbdump, why is the hexdump mssing on some lines like > frame[0] WRITE bytes ? The -s arguments tells to only grab the first 1024 bytes. Maybe it is truncated. Try setting -s to 65536 --HPS From nobody Mon Oct 3 15:50:57 2022 X-Original-To: hardware@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 4Mh50V1bRqz4d3hk; Mon, 3 Oct 2022 15:51:06 +0000 (UTC) (envelope-from Axel.Rau@Chaos1.DE) Received: from mailout5.lrau.net (mailout5.lrau.net [IPv6:2a05:bec0:26:5::73]) (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 "mailout5.lrau.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Mh50T1md7z3F5X; Mon, 3 Oct 2022 15:51:05 +0000 (UTC) (envelope-from Axel.Rau@Chaos1.DE) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=chaos1.de; s=2022; h=References:To:Cc:In-Reply-To:Date:Subject:Mime-Version:Content-Type :Message-Id:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=GBJyq8az/8h8VTJsaBla4Q2OrzebC57bjK741XfT38M=; b=cLw+57Lp8CCRT4H7vG2bjPotCS xLNpT1Rtgfq4zwKoRpwVjmydBjAgjaR053DFC3+Cug05mZgErwX6UqXqyn9ODTDYvSGjOw2h3R5/v V2iiBdgRv58uo4AhqYHjP+2ZyKciigNrQFg1/LSHphe/FmZTeFBRYWJOky5i9mD0v5bI3xLseOLpU e2hehA/krrf4RgJzPLDwZ3AR/GDyZinwqSDsBeP15hjuzI3N85IbUpojcBZST+ghNTmdtmm0j/dVv GwQCMMfOcarHUQo52683N/+dPZKFIETdaYtxKKW3oKO/TBgHma/3DNdsUEox1VFewdOL3HpIp8k3b DnyN33ow==; Received: from [2a05:bec0:26:5::74] (helo=imap5.lrau.net) by mailout5.lrau.net with esmtp (Exim 4.95 (FreeBSD)) (envelope-from ) id 1ofNig-000KqL-7W; Mon, 03 Oct 2022 15:51:02 +0000 Received: from Axel.Rau@Chaos1.DE by imap5.lrau.net (Archiveopteryx 3.2.0) with esmtpsa id 1664812257-12388-8168/7/137; Mon, 3 Oct 2022 15:50:57 +0000 From: Axel Rau Message-Id: <602324D8-515B-4061-8689-5638E9A82759@Chaos1.DE> Content-Type: multipart/alternative; boundary="Apple-Mail=_9287BA0D-147A-4061-AAD0-D00C73E2A288" List-Id: General discussion of FreeBSD hardware List-Archive: https://lists.freebsd.org/archives/freebsd-hardware List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hardware@freebsd.org Mime-Version: 1.0 Subject: Re: Accessing I2C-Bus via ELV USB-I2C Date: Mon, 3 Oct 2022 17:50:57 +0200 In-Reply-To: <37c55124-5cd5-6fd1-ca46-9265ebe47b18@selasky.org> Cc: hardware@freebsd.org, freebsd-hackers@freebsd.org To: Hans Petter Selasky References: <996df5c0-ffa7-f1bf-a9e2-6dd47d7b49e6@Chaos1.DE> <35D556D7-56EC-4295-93D6-80A4CFE6DCE9@Chaos1.DE> <37c55124-5cd5-6fd1-ca46-9265ebe47b18@selasky.org> X-Mailer: Apple Mail (2.3608.120.23.2.7) X-Rspamd-Queue-Id: 4Mh50T1md7z3F5X X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=chaos1.de header.s=2022 header.b=cLw+57Lp; dmarc=none; spf=none (mx1.freebsd.org: domain of Axel.Rau@Chaos1.DE has no SPF policy when checking 2a05:bec0:26:5::73) smtp.mailfrom=Axel.Rau@Chaos1.DE X-Spamd-Result: default: False [-4.00 / 15.00]; DWL_DNSWL_LOW(-1.00)[chaos1.de:dkim]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MV_CASE(0.50)[]; RCVD_IN_DNSWL_LOW(-0.20)[2a05:bec0:26:5::73:from,2a05:bec0:26:5::74:received]; R_DKIM_ALLOW(-0.20)[chaos1.de:s=2022]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; R_SPF_NA(0.00)[no SPF record]; FROM_HAS_DN(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:197071, ipnet:2a05:bec0::/29, country:DE]; MLMMJ_DEST(0.00)[hardware@freebsd.org,freebsd-hackers@freebsd.org]; ARC_NA(0.00)[]; DKIM_TRACE(0.00)[chaos1.de:+]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DMARC_NA(0.00)[chaos1.de]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[] X-ThisMailContainsUnwantedMimeParts: N --Apple-Mail=_9287BA0D-147A-4061-AAD0-D00C73E2A288 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > Am 03.10.2022 um 17:38 schrieb Hans Petter Selasky : >=20 > On 10/3/22 17:26, Axel Rau wrote: >> Questions: >> 1. On usbdump, why is the hexdump mssing on some lines like >> frame[0] WRITE bytes ? >=20 > The -s arguments tells to only grab the first 1024 bytes. Maybe it is = truncated. >=20 > Try setting -s to 65536 >=20 That does not help: - - -=20 usbdump -d ugen1.3 -v -v -v -s 65536 > usb.txt - - - 15:46:38.539679 usbus1.3 DONE-CTRL-EP=3D00000000,SPD=3DFULL,NFR=3D1,SLEN=3D= 0,IVAL=3D0,ERR=3D0 frame[0] WRITE 8 bytes flags 0 <0> status 0xca1a1 - - - Axel =2D-- PGP-Key: CDE74120 =E2=98=80 computing @ chaos claudius --Apple-Mail=_9287BA0D-147A-4061-AAD0-D00C73E2A288 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
=

= Am 03.10.2022 um 17:38 schrieb Hans Petter Selasky <hps@selasky.org>:

On 10/3/22 = 17:26, Axel Rau wrote:
Questions:
1. On usbdump, why is the hexdump mssing on = some lines like
frame[0] WRITE <n> bytes  ?

The -s arguments tells to only grab the = first 1024 bytes. Maybe it is truncated.

Try= setting -s to 65536


That does not help:
- - - 
usbdump -d ugen1.3 -v = -v -v -s 65536 > usb.txt
- - -
15:46:38.539= 679 usbus1.3 DONE-CTRL-EP=3D00000000,SPD=3DFULL,NFR=3D1,SLEN=3D0,IVAL=3D0= ,ERR=3D0
 frame[0] WRITE 8 bytes
 flags 0 = <0>
 status 0xca1a1 <OPEN|STARTED|CONTROL_XFR|CON= TROL_HDR|BDMA_ENABLE|BDMA_SETUP|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
- - -

A= xel
---
PGP-Key: CDE74120  =E2=98=80 =  computing @ chaos claudius

--Apple-Mail=_9287BA0D-147A-4061-AAD0-D00C73E2A288-- From nobody Mon Oct 3 15:57:29 2022 X-Original-To: hardware@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 4Mh57x4x7xz4d4LT; Mon, 3 Oct 2022 15:57:33 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [88.99.82.50]) (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 4Mh57w5fYDz3HwQ; Mon, 3 Oct 2022 15:57:32 +0000 (UTC) (envelope-from hps@selasky.org) Received: from [10.36.2.155] (unknown [178.232.223.95]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 5BA0226015B; Mon, 3 Oct 2022 17:57:31 +0200 (CEST) Message-ID: <2cb6203f-03da-9a05-24a5-c851f1424503@selasky.org> Date: Mon, 3 Oct 2022 17:57:29 +0200 List-Id: General discussion of FreeBSD hardware List-Archive: https://lists.freebsd.org/archives/freebsd-hardware List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hardware@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 Subject: Re: Accessing I2C-Bus via ELV USB-I2C Content-Language: en-US To: Axel Rau Cc: hardware@freebsd.org, freebsd-hackers@freebsd.org References: <996df5c0-ffa7-f1bf-a9e2-6dd47d7b49e6@Chaos1.DE> <35D556D7-56EC-4295-93D6-80A4CFE6DCE9@Chaos1.DE> <37c55124-5cd5-6fd1-ca46-9265ebe47b18@selasky.org> <602324D8-515B-4061-8689-5638E9A82759@Chaos1.DE> From: Hans Petter Selasky In-Reply-To: <602324D8-515B-4061-8689-5638E9A82759@Chaos1.DE> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4Mh57w5fYDz3HwQ X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of hps@selasky.org designates 88.99.82.50 as permitted sender) smtp.mailfrom=hps@selasky.org X-Spamd-Result: default: False [-3.30 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; NEURAL_HAM_LONG(-1.00)[-0.998]; R_SPF_ALLOW(-0.20)[+a:mail.turbocat.net:c]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org,hardware@freebsd.org]; R_DKIM_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:88.99.0.0/16, country:DE]; TO_MATCH_ENVRCPT_SOME(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; FROM_HAS_DN(0.00)[]; DMARC_NA(0.00)[selasky.org]; RCPT_COUNT_THREE(0.00)[3]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On 10/3/22 17:50, Axel Rau wrote: > 15:46:38.539679 usbus1.3 DONE-CTRL-EP=00000000,SPD=FULL,NFR=1,SLEN=0,IVAL=0,ERR=0 > frame[0] WRITE 8 bytes Hi, For USB control transfers frame[0] contains a copy of the SETUP packet. Maybe the total length exceeds the internal buffer, so that the USB control transfer gets split into multiple parts. Can you show the full sequence from the SUBM-CTRL-EP ? FYI: The frame[0] never contains any data payload for USB control transfers. --HPS From nobody Mon Oct 3 23:35:47 2022 X-Original-To: hardware@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 4MhHJk5Dw0z4V46S; Mon, 3 Oct 2022 23:35:50 +0000 (UTC) (envelope-from Axel.Rau@Chaos1.DE) Received: from mailout5.lrau.net (mailout5.lrau.net [IPv6:2a05:bec0:26:5::73]) (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 "mailout5.lrau.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MhHJj3gL6z3Y8W; Mon, 3 Oct 2022 23:35:49 +0000 (UTC) (envelope-from Axel.Rau@Chaos1.DE) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=chaos1.de; s=2022; h=References:To:Cc:In-Reply-To:Date:Subject:Mime-Version:Content-Type :Message-Id:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=BV7zLkLIfPvLGwJBSbY45l/hG6g3N1kSi+nW+wS/aX4=; b=lZwtJWIVEQtpZBg0Qg1wfrFQAT Y4VPtedwH/MLDBLOVBKgvD7MTUruZC7+Hq+1sKYheRn4dO5PEGwAPSbFciQe2NCITMWgHKTQ3VWUw kviQ0+tH6ASrZcTAXs8aSMruhtKhTDHEobtfK628HgtGqC+HcMvvOvh6G+E7+UXY6sVWBzai0RlQr LK8xiNodzDUb6kbMDpkjsb06ID+/i8pqgialFU9tUjZidAsf40pOE0zH61ORo8K9kRn75diylSSUj AGgaCQe34Z8kVBfNjDUBUBhEtbDqjLWZEw6bkYKEEnCX7drSiRrXRMHBG7/u58/TJXKSwxPzXXOtW jeH0HANg==; Received: from [2a05:bec0:26:5::74] (helo=imap5.lrau.net) by mailout5.lrau.net with esmtp (Exim 4.95 (FreeBSD)) (envelope-from ) id 1ofUyS-0004v4-7T; Mon, 03 Oct 2022 23:35:48 +0000 Received: from Axel.Rau@Chaos1.DE by imap5.lrau.net (Archiveopteryx 3.2.0) with esmtpsa id 1664840147-10753-8168/7/134; Mon, 3 Oct 2022 23:35:47 +0000 From: Axel Rau Message-Id: Content-Type: multipart/alternative; boundary="Apple-Mail=_1FC94436-7C1D-49C5-8D20-E39F94CC131C" List-Id: General discussion of FreeBSD hardware List-Archive: https://lists.freebsd.org/archives/freebsd-hardware List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hardware@freebsd.org Mime-Version: 1.0 Subject: Re: Accessing I2C-Bus via ELV USB-I2C Date: Tue, 4 Oct 2022 01:35:47 +0200 In-Reply-To: <2cb6203f-03da-9a05-24a5-c851f1424503@selasky.org> Cc: hardware@freebsd.org, freebsd-hackers@freebsd.org To: Hans Petter Selasky References: <996df5c0-ffa7-f1bf-a9e2-6dd47d7b49e6@Chaos1.DE> <35D556D7-56EC-4295-93D6-80A4CFE6DCE9@Chaos1.DE> <37c55124-5cd5-6fd1-ca46-9265ebe47b18@selasky.org> <602324D8-515B-4061-8689-5638E9A82759@Chaos1.DE> <2cb6203f-03da-9a05-24a5-c851f1424503@selasky.org> X-Mailer: Apple Mail (2.3608.120.23.2.7) X-Rspamd-Queue-Id: 4MhHJj3gL6z3Y8W X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=chaos1.de header.s=2022 header.b=lZwtJWIV; dmarc=none; spf=none (mx1.freebsd.org: domain of Axel.Rau@Chaos1.DE has no SPF policy when checking 2a05:bec0:26:5::73) smtp.mailfrom=Axel.Rau@Chaos1.DE X-Spamd-Result: default: False [-4.00 / 15.00]; DWL_DNSWL_LOW(-1.00)[chaos1.de:dkim]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; MV_CASE(0.50)[]; RCVD_IN_DNSWL_LOW(-0.20)[2a05:bec0:26:5::73:from,2a05:bec0:26:5::74:received]; R_DKIM_ALLOW(-0.20)[chaos1.de:s=2022]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; R_SPF_NA(0.00)[no SPF record]; FROM_HAS_DN(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:197071, ipnet:2a05:bec0::/29, country:DE]; MLMMJ_DEST(0.00)[hardware@freebsd.org,freebsd-hackers@freebsd.org]; ARC_NA(0.00)[]; DKIM_TRACE(0.00)[chaos1.de:+]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DMARC_NA(0.00)[chaos1.de]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[] X-ThisMailContainsUnwantedMimeParts: N --Apple-Mail=_1FC94436-7C1D-49C5-8D20-E39F94CC131C Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > Am 03.10.2022 um 17:57 schrieb Hans Petter Selasky : >=20 > Can you show the full sequence from the SUBM-CTRL-EP ? - - - 15:46:38.538480 usbus1.3 SUBM-CTRL-EP=3D00000000,SPD=3DFULL,NFR=3D1,SLEN=3D= 8,IVAL=3D0 frame[0] WRITE 8 bytes 0000 41 07 01 01 00 00 00 00 -- -- -- -- -- -- -- -- |A....... = | flags 0 <0> status 0xca1a3 15:46:38.539679 usbus1.3 DONE-CTRL-EP=3D00000000,SPD=3DFULL,NFR=3D1,SLEN=3D= 0,IVAL=3D0,ERR=3D0 frame[0] WRITE 8 bytes flags 0 <0> status 0xca1a1 15:46:38.539719 usbus1.3 SUBM-CTRL-EP=3D00000000,SPD=3DFULL,NFR=3D1,SLEN=3D= 8,IVAL=3D0 frame[0] WRITE 8 bytes 0000 41 07 02 02 00 00 00 00 -- -- -- -- -- -- -- -- |A....... = | flags 0 <0> status 0xea1a3 15:46:38.540291 usbus1.3 DONE-CTRL-EP=3D00000000,SPD=3DFULL,NFR=3D1,SLEN=3D= 0,IVAL=3D0,ERR=3D0 frame[0] WRITE 8 bytes flags 0 <0> status 0xea1a1 - - - Axel =2D-- PGP-Key: CDE74120 =E2=98=80 computing @ chaos claudius --Apple-Mail=_1FC94436-7C1D-49C5-8D20-E39F94CC131C Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
=

= Am 03.10.2022 um 17:57 schrieb Hans Petter Selasky <hps@selasky.org>:

Can you show the full sequence from the SUBM-CTRL-EP ?<= br style=3D"caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; = font-size: 12px; font-style: normal; font-variant-caps: normal; font-weig= ht: normal; letter-spacing: normal; text-align: start; text-indent: 0px; = text-transform: none; white-space: normal; word-spacing: 0px; -webkit-tex= t-stroke-width: 0px; text-decoration: none;" class=3D"">
- - -
15:46:38.538480 usbus1.3 = SUBM-CTRL-EP=3D00000000,SPD=3DFULL,NFR=3D1,SLEN=3D8,IVAL=3D0
 frame[0] WRITE 8 bytes
 0000 =  41 07 01 01 00 00 00 00  -- -- -- -- -- -- -- --  |A.....= ..        |
 flags 0 = <0>
 status 0xca1a3 <OPEN|TRANSFERRING= |STARTED|CONTROL_XFR|CONTROL_HDR|BDMA_ENABLE|BDMA_SETUP|CAN_CANCEL_IMMED|= DOING_CALLBACK|0>
15:46:38.539679 usbus1.3 = DONE-CTRL-EP=3D00000000,SPD=3DFULL,NFR=3D1,SLEN=3D0,IVAL=3D0,ERR=3D0
 frame[0] WRITE 8 bytes
 = flags 0 <0>
 status 0xca1a1 <OPEN|STAR= TED|CONTROL_XFR|CONTROL_HDR|BDMA_ENABLE|BDMA_SETUP|CAN_CANCEL_IMMED|DOING= _CALLBACK|0>
15:46:38.539719 usbus1.3 SUBM-CTRL-E= P=3D00000000,SPD=3DFULL,NFR=3D1,SLEN=3D8,IVAL=3D0
&n= bsp;frame[0] WRITE 8 bytes
 0000  41 07 = 02 02 00 00 00 00  -- -- -- -- -- -- -- --  |A.......   =      |
 flags 0 <0>
<= div class=3D""> status 0xea1a3 <OPEN|TRANSFERRING|STARTED|CONTROL= _XFR|CONTROL_HDR|BDMA_ENABLE|BDMA_SETUP|CURR_DMA_SET|CAN_CANCEL_IMMED|DOI= NG_CALLBACK|0>
15:46:38.540291 usbus1.3 DONE-CTRL= -EP=3D00000000,SPD=3DFULL,NFR=3D1,SLEN=3D0,IVAL=3D0,ERR=3D0
 frame[0] WRITE 8 bytes
 flags = 0 <0>
 status 0xea1a1 <OPEN|STARTED|CO= NTROL_XFR|CONTROL_HDR|BDMA_ENABLE|BDMA_SETUP|CURR_DMA_SET|CAN_CANCEL_IMME= D|DOING_CALLBACK|0>
- - -
Axel
---
PGP-Key: CDE74120  =E2=98=80 =  computing @ chaos claudius

--Apple-Mail=_1FC94436-7C1D-49C5-8D20-E39F94CC131C-- From nobody Tue Oct 4 08:39:35 2022 X-Original-To: hardware@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 4MhWNF1qjhz4V6k6; Tue, 4 Oct 2022 08:39:41 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [88.99.82.50]) (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 4MhWNC4wVDz3DYY; Tue, 4 Oct 2022 08:39:39 +0000 (UTC) (envelope-from hps@selasky.org) Received: from [10.36.2.155] (unknown [178.232.223.95]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 14C3E260222; Tue, 4 Oct 2022 10:39:38 +0200 (CEST) Message-ID: Date: Tue, 4 Oct 2022 10:39:35 +0200 List-Id: General discussion of FreeBSD hardware List-Archive: https://lists.freebsd.org/archives/freebsd-hardware List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hardware@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 Subject: Re: Accessing I2C-Bus via ELV USB-I2C To: Axel Rau Cc: hardware@freebsd.org, freebsd-hackers@freebsd.org References: <996df5c0-ffa7-f1bf-a9e2-6dd47d7b49e6@Chaos1.DE> <35D556D7-56EC-4295-93D6-80A4CFE6DCE9@Chaos1.DE> <37c55124-5cd5-6fd1-ca46-9265ebe47b18@selasky.org> <602324D8-515B-4061-8689-5638E9A82759@Chaos1.DE> <2cb6203f-03da-9a05-24a5-c851f1424503@selasky.org> Content-Language: en-US From: Hans Petter Selasky In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4MhWNC4wVDz3DYY X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of hps@selasky.org designates 88.99.82.50 as permitted sender) smtp.mailfrom=hps@selasky.org X-Spamd-Result: default: False [-3.30 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; R_SPF_ALLOW(-0.20)[+a:mail.turbocat.net:c]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org,hardware@freebsd.org]; R_DKIM_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:88.99.0.0/16, country:DE]; TO_MATCH_ENVRCPT_SOME(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; FROM_HAS_DN(0.00)[]; DMARC_NA(0.00)[selasky.org]; RCPT_COUNT_THREE(0.00)[3]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On 10/4/22 01:35, Axel Rau wrote: > > >> Am 03.10.2022 um 17:57 schrieb Hans Petter Selasky : >> >> Can you show the full sequence from the SUBM-CTRL-EP ? > - - - > 15:46:38.538480 usbus1.3 SUBM-CTRL-EP=00000000,SPD=FULL,NFR=1,SLEN=8,IVAL=0 > frame[0] WRITE 8 bytes > 0000 41 07 01 01 00 00 00 00 -- -- -- -- -- -- -- -- |A....... | > flags 0 <0> > status 0xca1a3 > 15:46:38.539679 usbus1.3 DONE-CTRL-EP=00000000,SPD=FULL,NFR=1,SLEN=0,IVAL=0,ERR=0 > frame[0] WRITE 8 bytes > flags 0 <0> > status 0xca1a1 > 15:46:38.539719 usbus1.3 SUBM-CTRL-EP=00000000,SPD=FULL,NFR=1,SLEN=8,IVAL=0 > frame[0] WRITE 8 bytes > 0000 41 07 02 02 00 00 00 00 -- -- -- -- -- -- -- -- |A....... | > flags 0 <0> > status 0xea1a3 > 15:46:38.540291 usbus1.3 DONE-CTRL-EP=00000000,SPD=FULL,NFR=1,SLEN=0,IVAL=0,ERR=0 > frame[0] WRITE 8 bytes > flags 0 <0> > status 0xea1a1 > - - - That looks normal. The DONE transaction transferred the SETUP packet, but still lists frame [0], but is not dumping the data, because it has already been sent. frame [0] is always the SETUP packet for control endpoints. --HPS From nobody Tue Oct 4 09:01:13 2022 X-Original-To: hardware@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 4MhWs82SXCz4V9j4; Tue, 4 Oct 2022 09:01:16 +0000 (UTC) (envelope-from Axel.Rau@Chaos1.DE) Received: from mailout5.lrau.net (mailout5.lrau.net [IPv6:2a05:bec0:26:5::73]) (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 "mailout5.lrau.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MhWs736xjz3H5v; Tue, 4 Oct 2022 09:01:15 +0000 (UTC) (envelope-from Axel.Rau@Chaos1.DE) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=chaos1.de; s=2022; h=References:To:Cc:In-Reply-To:Date:Subject:Mime-Version:Content-Type :Message-Id:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=RE/qeqy/0G8KcAytlUzhgLIaXhJ8W+oCtqKtAuQqvao=; b=UmIrd363gK+Q9yhfa/qFRAHuA1 FzEkOyLlUzTYj5Nb7bWHo+4Rwgn69aNTT9HvCRGKmSr9QetO1xcWAAs3J14QLpoXvNWwkmz76aTDI B2yWHxCuW7VPtrfCmpNEO40l+9OgfAoLHvHIhdJtpnvwaypA9jU+6SjTtHH+4NvXPf4muLhvJ7QrV Q02KV/3Wdf8tYBOn1WdVgeECP9vPgiyba8TH+kLqFbkfVqJ3W6Ec0lfFfcTQYDlshs6BY1vN/rvS+ rIBn6vRkYpI9fMWJquqhJBFfrmQvW6hP2yBwFzLMLWXbAuMwMQ18hEhvgubSoPEwi2IynwhOWrHNP il3VsLlQ==; Received: from [2a05:bec0:26:5::74] (helo=imap5.lrau.net) by mailout5.lrau.net with esmtp (Exim 4.95 (FreeBSD)) (envelope-from ) id 1ofdne-0009pb-6f; Tue, 04 Oct 2022 09:01:14 +0000 Received: from Axel.Rau@Chaos1.DE by imap5.lrau.net (Archiveopteryx 3.2.0) with esmtpsa id 1664874073-11466-8168/7/183; Tue, 4 Oct 2022 09:01:13 +0000 From: Axel Rau Message-Id: <490EBA38-E103-4DC1-8A42-E16A8279980D@Chaos1.DE> Content-Type: multipart/alternative; boundary="Apple-Mail=_FEFA34C4-536B-4B59-9C0A-7C95E2B9AC49" List-Id: General discussion of FreeBSD hardware List-Archive: https://lists.freebsd.org/archives/freebsd-hardware List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hardware@freebsd.org Mime-Version: 1.0 Subject: Re: Accessing I2C-Bus via ELV USB-I2C Date: Tue, 4 Oct 2022 11:01:13 +0200 In-Reply-To: Cc: hardware@freebsd.org, freebsd-hackers@freebsd.org To: Hans Petter Selasky References: <996df5c0-ffa7-f1bf-a9e2-6dd47d7b49e6@Chaos1.DE> <35D556D7-56EC-4295-93D6-80A4CFE6DCE9@Chaos1.DE> <37c55124-5cd5-6fd1-ca46-9265ebe47b18@selasky.org> <602324D8-515B-4061-8689-5638E9A82759@Chaos1.DE> <2cb6203f-03da-9a05-24a5-c851f1424503@selasky.org> X-Mailer: Apple Mail (2.3608.120.23.2.7) X-Rspamd-Queue-Id: 4MhWs736xjz3H5v X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=chaos1.de header.s=2022 header.b=UmIrd363; dmarc=none; spf=none (mx1.freebsd.org: domain of Axel.Rau@Chaos1.DE has no SPF policy when checking 2a05:bec0:26:5::73) smtp.mailfrom=Axel.Rau@Chaos1.DE X-Spamd-Result: default: False [-4.00 / 15.00]; DWL_DNSWL_LOW(-1.00)[chaos1.de:dkim]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MV_CASE(0.50)[]; RCVD_IN_DNSWL_LOW(-0.20)[2a05:bec0:26:5::73:from,2a05:bec0:26:5::74:received]; R_DKIM_ALLOW(-0.20)[chaos1.de:s=2022]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; R_SPF_NA(0.00)[no SPF record]; FROM_HAS_DN(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:197071, ipnet:2a05:bec0::/29, country:DE]; MLMMJ_DEST(0.00)[hardware@freebsd.org,freebsd-hackers@freebsd.org]; ARC_NA(0.00)[]; DKIM_TRACE(0.00)[chaos1.de:+]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DMARC_NA(0.00)[chaos1.de]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[] X-ThisMailContainsUnwantedMimeParts: N --Apple-Mail=_FEFA34C4-536B-4B59-9C0A-7C95E2B9AC49 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > Am 04.10.2022 um 10:39 schrieb Hans Petter Selasky : >=20 >=20 > That looks normal. >=20 > The DONE transaction transferred the SETUP packet, but still lists = frame [0], but is not dumping the data, because it has already been = sent. frame [0] is always the SETUP packet for control endpoints. >=20 > --HPS Thanks for your analysis. Axel =2D-- PGP-Key: CDE74120 =E2=98=80 computing @ chaos claudius --Apple-Mail=_FEFA34C4-536B-4B59-9C0A-7C95E2B9AC49 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8


=
Am 04.10.2022 um 10:39 schrieb Hans Petter Selasky = <hps@selasky.org>= :


That looks normal.

The DONE transaction transferred the SETUP = packet, but still lists frame [0], but is not dumping the data, because = it has already been sent. frame [0] is always the SETUP packet for = control endpoints.

--HPS

Thanks for your analysis.
Axel
---
PGP-Key: CDE74120  =E2=98=80 =  computing @ chaos claudius

--Apple-Mail=_FEFA34C4-536B-4B59-9C0A-7C95E2B9AC49-- From nobody Tue Oct 4 10:03:19 2022 X-Original-To: hardware@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 4MhYDn75nHz4cyX1; Tue, 4 Oct 2022 10:03:21 +0000 (UTC) (envelope-from Axel.Rau@Chaos1.DE) Received: from mailout5.lrau.net (mailout5.lrau.net [IPv6:2a05:bec0:26:5::73]) (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 "mailout5.lrau.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MhYDn3wKGz3M0V; Tue, 4 Oct 2022 10:03:21 +0000 (UTC) (envelope-from Axel.Rau@Chaos1.DE) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=chaos1.de; s=2022; h=To:References:Message-Id:Content-Transfer-Encoding:Cc:Date: In-Reply-To:From:Subject:Mime-Version:Content-Type:Sender:Reply-To:Content-ID :Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To: Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe :List-Post:List-Owner:List-Archive; bh=iAbUprfAPsrEUM2xMvC3UQ3rKkkHCHRmoZy9mn5hgsQ=; b=XLlkkG6orFG6kcE7VjYrVHMgS6 s+DltDtXLCjdcQt5SKwly36c6IuuHWPLR7g8jmyvW/th0EUQr0PUCZEl38jtuT5slOGV0Ym/nbRpK 1AmbwxE5/Tl/QjMeUWDjV3HsLDuryUAaAvjQrxXHuWJwtFWbV1CX4GK9N/uVTTO4OYF9Tt2UdFClM XR5/a+CzegZbuhvRc02gNSBRohs0DO7sAJJbASeQlPxqkroibTJ6KQ2ENhkAPavcV+oSDf8WH+l/8 cD8poku3504IPboVpo2bAgH0f4iIxkByVe0W6P1D03HWqvuec1T/i8Qi8bmTL22R22iREKDrP++Rn G9YGWVgQ==; Received: from [2a05:bec0:26:5::74] (helo=imap5.lrau.net) by mailout5.lrau.net with esmtp (Exim 4.95 (FreeBSD)) (envelope-from ) id 1ofelk-000FAe-7F; Tue, 04 Oct 2022 10:03:20 +0000 Received: from Axel.Rau@Chaos1.DE by imap5.lrau.net (Archiveopteryx 3.2.0) with esmtpsa id 1664877799-11078-8168/7/140; Tue, 4 Oct 2022 10:03:19 +0000 Content-Type: text/plain; charset=utf-8 List-Id: General discussion of FreeBSD hardware List-Archive: https://lists.freebsd.org/archives/freebsd-hardware List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hardware@freebsd.org Mime-Version: 1.0 Subject: Re: Accessing I2C-Bus via ELV USB-I2C From: Axel Rau In-Reply-To: <490EBA38-E103-4DC1-8A42-E16A8279980D@Chaos1.DE> Date: Tue, 4 Oct 2022 12:03:19 +0200 Cc: hardware@freebsd.org, freebsd-hackers@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <017C6EBE-910E-43E7-AAF7-A3D9ECE85EFF@Chaos1.DE> References: <996df5c0-ffa7-f1bf-a9e2-6dd47d7b49e6@Chaos1.DE> <35D556D7-56EC-4295-93D6-80A4CFE6DCE9@Chaos1.DE> <37c55124-5cd5-6fd1-ca46-9265ebe47b18@selasky.org> <602324D8-515B-4061-8689-5638E9A82759@Chaos1.DE> <2cb6203f-03da-9a05-24a5-c851f1424503@selasky.org> <490EBA38-E103-4DC1-8A42-E16A8279980D@Chaos1.DE> To: Hans Petter Selasky X-Mailer: Apple Mail (2.3608.120.23.2.7) X-Rspamd-Queue-Id: 4MhYDn3wKGz3M0V X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=chaos1.de header.s=2022 header.b=XLlkkG6o; dmarc=none; spf=none (mx1.freebsd.org: domain of Axel.Rau@Chaos1.DE has no SPF policy when checking 2a05:bec0:26:5::73) smtp.mailfrom=Axel.Rau@Chaos1.DE X-Spamd-Result: default: False [-4.00 / 15.00]; DWL_DNSWL_LOW(-1.00)[chaos1.de:dkim]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MV_CASE(0.50)[]; RCVD_IN_DNSWL_LOW(-0.20)[2a05:bec0:26:5::73:from,2a05:bec0:26:5::74:received]; R_DKIM_ALLOW(-0.20)[chaos1.de:s=2022]; MIME_GOOD(-0.10)[text/plain]; R_SPF_NA(0.00)[no SPF record]; FROM_HAS_DN(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:197071, ipnet:2a05:bec0::/29, country:DE]; MLMMJ_DEST(0.00)[hardware@freebsd.org,freebsd-hackers@freebsd.org]; ARC_NA(0.00)[]; DKIM_TRACE(0.00)[chaos1.de:+]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DMARC_NA(0.00)[chaos1.de]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[] X-ThisMailContainsUnwantedMimeParts: N Am 04.10.2022 um 10:39 schrieb Hans Petter Selasky : >=20 > That looks normal. >=20 > The DONE transaction transferred the SETUP packet, but still lists = frame [0], but is not dumping the data, because it has already been = sent. frame [0] is always the SETUP packet for control endpoints. >=20 So where should I dig further to find out why the read at 09:28:44.885162= shows only 'e:' from the string, shown completely at 09:28:47.463632 (2nd block) ? 09:28:44.878743 usbus1.3 SUBM-BULK-EP=3D00000001,SPD=3DFULL,NFR=3D1,SLEN=3D= 4,IVAL=3D0 frame[0] WRITE 1 bytes 0000 3F -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- |? = | flags 0x8 status 0xca023 09:28:44.878816 usbus1.3 DONE-BULK-EP=3D00000001,SPD=3DFULL,NFR=3D1,SLEN=3D= 0,IVAL=3D0,ERR=3D0 frame[0] WRITE 1 bytes flags 0x8 status 0xca021 09:28:44.885162 usbus1.3 DONE-BULK-EP=3D00000081,SPD=3DFULL,NFR=3D1,SLEN=3D= 4,IVAL=3D0,ERR=3D0 frame[0] READ 2 bytes 0000 65 3A -- -- -- -- -- -- -- -- -- -- -- -- -- -- |e: = | flags 0xa status 0xcb021 09:28:44.885176 usbus1.3 SUBM-BULK-EP=3D00000081,SPD=3DFULL,NFR=3D1,SLEN=3D= 0,IVAL=3D0 frame[0] READ 1024 bytes flags 0xa status 0xeb023 09:28:44.888153 usbus1.3 DONE-BULK-EP=3D00000081,SPD=3DFULL,NFR=3D1,SLEN=3D= 24,IVAL=3D0,ERR=3D0 frame[0] READ 24 bytes 0000 31 31 35 32 30 30 20 62 69 74 2F 73 0D 0A 49 32 |115200 = bit/s..I2| 0010 43 2D 43 6C 6F 63 6B 3A -- -- -- -- -- -- -- -- |C-Clock: = | flags 0xa =20 Here I get the right response: 09:28:47.457426 usbus1.3 SUBM-BULK-EP=3D00000001,SPD=3DFULL,NFR=3D1,SLEN=3D= 4,IVAL=3D0 frame[0] WRITE 1 bytes 0000 3F -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- |? = | flags 0x8 status 0xca023 09:28:47.457462 usbus1.3 DONE-BULK-EP=3D00000001,SPD=3DFULL,NFR=3D1,SLEN=3D= 0,IVAL=3D0,ERR=3D0 frame[0] WRITE 1 bytes flags 0x8 status 0xca021 09:28:47.463632 usbus1.3 DONE-BULK-EP=3D00000081,SPD=3DFULL,NFR=3D1,SLEN=3D= 68,IVAL=3D0,ERR=3D0 frame[0] READ 66 bytes 0000 0D 0A 45 4C 56 20 55 53 42 2D 49 32 43 2D 49 6E |..ELV USB-I2C-I= n| 0010 74 65 72 66 61 63 65 20 76 31 2E 38 20 28 43 61 |terface v1.8 = (Ca| 0020 6C 3A 35 43 29 0D 0A 4C 61 73 74 20 41 64 72 65 |l:5C)..Last = Adre| 0030 73 73 3A 30 78 30 30 0D 0A 42 61 75 64 72 61 74 |ss:0x00..Baudra= t| 0040 65 3A -- -- -- -- -- -- -- -- -- -- -- -- -- -- |e: = | flags 0xa status 0xeb021 09:28:47.463644 usbus1.3 SUBM-BULK-EP=3D00000081,SPD=3DFULL,NFR=3D1,SLEN=3D= 0,IVAL=3D0 frame[0] READ 1024 bytes flags 0xa status 0xcb023 Axel =2D-- PGP-Key: CDE74120 =E2=98=80 computing @ chaos claudius >=20 =2D-- PGP-Key: CDE74120 =E2=98=80 computing @ chaos claudius From nobody Tue Oct 4 11:43:57 2022 X-Original-To: hardware@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 4MhbT00TNwz4dg2W; Tue, 4 Oct 2022 11:44:04 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [IPv6:2a01:4f8:c17:6c4b::2]) (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 4MhbSz265pz3Svj; Tue, 4 Oct 2022 11:44:03 +0000 (UTC) (envelope-from hps@selasky.org) Received: from [10.36.2.155] (unknown [178.232.223.95]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 73B612604CD; Tue, 4 Oct 2022 13:43:59 +0200 (CEST) Message-ID: <84c5bc0b-1c72-d50d-6289-ac91a0878bd1@selasky.org> Date: Tue, 4 Oct 2022 13:43:57 +0200 List-Id: General discussion of FreeBSD hardware List-Archive: https://lists.freebsd.org/archives/freebsd-hardware List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hardware@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 Subject: Re: Accessing I2C-Bus via ELV USB-I2C Content-Language: en-US To: Axel Rau Cc: hardware@freebsd.org, freebsd-hackers@freebsd.org References: <996df5c0-ffa7-f1bf-a9e2-6dd47d7b49e6@Chaos1.DE> <35D556D7-56EC-4295-93D6-80A4CFE6DCE9@Chaos1.DE> <37c55124-5cd5-6fd1-ca46-9265ebe47b18@selasky.org> <602324D8-515B-4061-8689-5638E9A82759@Chaos1.DE> <2cb6203f-03da-9a05-24a5-c851f1424503@selasky.org> <490EBA38-E103-4DC1-8A42-E16A8279980D@Chaos1.DE> <017C6EBE-910E-43E7-AAF7-A3D9ECE85EFF@Chaos1.DE> From: Hans Petter Selasky In-Reply-To: <017C6EBE-910E-43E7-AAF7-A3D9ECE85EFF@Chaos1.DE> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4MhbSz265pz3Svj X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of hps@selasky.org designates 2a01:4f8:c17:6c4b::2 as permitted sender) smtp.mailfrom=hps@selasky.org X-Spamd-Result: default: False [-3.30 / 15.00]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-0.999]; R_SPF_ALLOW(-0.20)[+a:mail.turbocat.net:c]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org,hardware@freebsd.org]; R_DKIM_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:2a01:4f8::/32, country:DE]; TO_MATCH_ENVRCPT_SOME(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; FROM_HAS_DN(0.00)[]; DMARC_NA(0.00)[selasky.org]; RCPT_COUNT_THREE(0.00)[3]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On 10/4/22 12:03, Axel Rau wrote: > > > Am 04.10.2022 um 10:39 schrieb Hans Petter Selasky : >> >> That looks normal. >> >> The DONE transaction transferred the SETUP packet, but still lists frame [0], but is not dumping the data, because it has already been sent. frame [0] is always the SETUP packet for control endpoints. >> > > So where should I dig further to find out why the read at 09:28:44.885162 shows only > 'e:' from the string, shown completely at 09:28:47.463632 (2nd block) ? > > 09:28:44.878743 usbus1.3 SUBM-BULK-EP=00000001,SPD=FULL,NFR=1,SLEN=4,IVAL=0 > frame[0] WRITE 1 bytes > 0000 3F -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- |? | > flags 0x8 > status 0xca023 > 09:28:44.878816 usbus1.3 DONE-BULK-EP=00000001,SPD=FULL,NFR=1,SLEN=0,IVAL=0,ERR=0 > frame[0] WRITE 1 bytes > flags 0x8 > status 0xca021 > 09:28:44.885162 usbus1.3 DONE-BULK-EP=00000081,SPD=FULL,NFR=1,SLEN=4,IVAL=0,ERR=0 > frame[0] READ 2 bytes > 0000 65 3A -- -- -- -- -- -- -- -- -- -- -- -- -- -- |e: | > flags 0xa > status 0xcb021 > 09:28:44.885176 usbus1.3 SUBM-BULK-EP=00000081,SPD=FULL,NFR=1,SLEN=0,IVAL=0 > frame[0] READ 1024 bytes > flags 0xa > status 0xeb023 > 09:28:44.888153 usbus1.3 DONE-BULK-EP=00000081,SPD=FULL,NFR=1,SLEN=24,IVAL=0,ERR=0 > frame[0] READ 24 bytes > 0000 31 31 35 32 30 30 20 62 69 74 2F 73 0D 0A 49 32 |115200 bit/s..I2| > 0010 43 2D 43 6C 6F 63 6B 3A -- -- -- -- -- -- -- -- |C-Clock: | > flags 0xa > > Here I get the right response: > > 09:28:47.457426 usbus1.3 SUBM-BULK-EP=00000001,SPD=FULL,NFR=1,SLEN=4,IVAL=0 > frame[0] WRITE 1 bytes > 0000 3F -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- |? | > flags 0x8 > status 0xca023 > 09:28:47.457462 usbus1.3 DONE-BULK-EP=00000001,SPD=FULL,NFR=1,SLEN=0,IVAL=0,ERR=0 > frame[0] WRITE 1 bytes > flags 0x8 > status 0xca021 > 09:28:47.463632 usbus1.3 DONE-BULK-EP=00000081,SPD=FULL,NFR=1,SLEN=68,IVAL=0,ERR=0 > frame[0] READ 66 bytes > 0000 0D 0A 45 4C 56 20 55 53 42 2D 49 32 43 2D 49 6E |..ELV USB-I2C-In| > 0010 74 65 72 66 61 63 65 20 76 31 2E 38 20 28 43 61 |terface v1.8 (Ca| > 0020 6C 3A 35 43 29 0D 0A 4C 61 73 74 20 41 64 72 65 |l:5C)..Last Adre| > 0030 73 73 3A 30 78 30 30 0D 0A 42 61 75 64 72 61 74 |ss:0x00..Baudrat| > 0040 65 3A -- -- -- -- -- -- -- -- -- -- -- -- -- -- |e: | > flags 0xa > status 0xeb021 > 09:28:47.463644 usbus1.3 SUBM-BULK-EP=00000081,SPD=FULL,NFR=1,SLEN=0,IVAL=0 > frame[0] READ 1024 bytes > flags 0xa > status 0xcb023 > > Axel > --- > PGP-Key: CDE74120 ☀ computing @ chaos claudius >> > > > --- > PGP-Key: CDE74120 ☀ computing @ chaos claudius > Did you clear the endpoint halt condition (for RX BULK endpoint and TX BULK endpoint), to reset the so-called USB data-toggle, before starting to communicate with the device? Else you risk loosing a USB packet? --HPS From nobody Wed Oct 5 11:55:22 2022 X-Original-To: hardware@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 4MjCgh4bqsz4f4Yb; Wed, 5 Oct 2022 11:55:28 +0000 (UTC) (envelope-from Axel.Rau@Chaos1.DE) Received: from mailout4.lrau.net (mailout4.lrau.net [IPv6:2a05:bec0:26:2::73]) (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 "mailout4.lrau.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MjCgg51vVz3MDX; Wed, 5 Oct 2022 11:55:27 +0000 (UTC) (envelope-from Axel.Rau@Chaos1.DE) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=chaos1.de; s=2022; h=References:To:Cc:In-Reply-To:Date:Subject:Mime-Version:Content-Type :Message-Id:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=IiQznazTxYvHtU6hRE3sYFO9MKnQgNu0+SbE254V0go=; b=C0U/5FVDm/Zcl0V577Zp8/fFKw VC6PGVI3inaIBsx0b9YaKuJwRjRxinXlfPHd53mVc8N2TEnAYF7Cr92V1x6Kxl5CBbXGIIUKCrN9C +S1+whPrj2wnkBFS2+cKGs70Y6UHk/nF6uOi8C4KN4FzHS97lSnoNqjBfzN6VfSFHiK10FdvaTfX/ 7aws6eFl843b4+a8HvBD8OcirFikcwrMlNJsp4VPPyM8sAeXlPey25c7iXRWBEU3lpfAgmHLAIsLa 3WaV4ZluC9qoy+PiMijG0XwlysdtUKW1N09skQMJSxjdingby+fgDxGVANXqk1Jgj9vlg+lKtGmwH 8NGhTUog==; Received: from [2a05:bec0:26:2::74] (helo=imap4.lrau.net) by mailout4.lrau.net with esmtp (Exim 4.95 (FreeBSD)) (envelope-from ) id 1og2zj-0003uv-4H; Wed, 05 Oct 2022 11:55:23 +0000 Received: from Axel.Rau@Chaos1.DE by imap5.lrau.net (Archiveopteryx 3.2.0) with esmtpsa id 1664970922-10326-8168/7/156; Wed, 5 Oct 2022 11:55:22 +0000 From: Axel Rau Message-Id: <752FCC61-496D-40C5-8A99-143F15B1EE84@Chaos1.DE> Content-Type: multipart/alternative; boundary="Apple-Mail=_5E42947A-F854-4C69-8415-B0726CD1FFE1" List-Id: General discussion of FreeBSD hardware List-Archive: https://lists.freebsd.org/archives/freebsd-hardware List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hardware@freebsd.org Mime-Version: 1.0 Subject: Re: Accessing I2C-Bus via ELV USB-I2C Date: Wed, 5 Oct 2022 13:55:22 +0200 In-Reply-To: <84c5bc0b-1c72-d50d-6289-ac91a0878bd1@selasky.org> Cc: hardware@freebsd.org, freebsd-hackers@freebsd.org To: Hans Petter Selasky References: <996df5c0-ffa7-f1bf-a9e2-6dd47d7b49e6@Chaos1.DE> <35D556D7-56EC-4295-93D6-80A4CFE6DCE9@Chaos1.DE> <37c55124-5cd5-6fd1-ca46-9265ebe47b18@selasky.org> <602324D8-515B-4061-8689-5638E9A82759@Chaos1.DE> <2cb6203f-03da-9a05-24a5-c851f1424503@selasky.org> <490EBA38-E103-4DC1-8A42-E16A8279980D@Chaos1.DE> <017C6EBE-910E-43E7-AAF7-A3D9ECE85EFF@Chaos1.DE> <84c5bc0b-1c72-d50d-6289-ac91a0878bd1@selasky.org> X-Mailer: Apple Mail (2.3608.120.23.2.7) X-Rspamd-Queue-Id: 4MjCgg51vVz3MDX X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=chaos1.de header.s=2022 header.b="C0U/5FVD"; dmarc=none; spf=none (mx1.freebsd.org: domain of Axel.Rau@Chaos1.DE has no SPF policy when checking 2a05:bec0:26:2::73) smtp.mailfrom=Axel.Rau@Chaos1.DE X-Spamd-Result: default: False [-3.90 / 15.00]; DWL_DNSWL_LOW(-1.00)[chaos1.de:dkim]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MV_CASE(0.50)[]; R_DKIM_ALLOW(-0.20)[chaos1.de:s=2022]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCVD_IN_DNSWL_LOW(-0.10)[2a05:bec0:26:2::73:from]; FROM_HAS_DN(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_SPF_NA(0.00)[no SPF record]; MLMMJ_DEST(0.00)[hardware@freebsd.org,freebsd-hackers@freebsd.org]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:197071, ipnet:2a05:bec0::/29, country:DE]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; ARC_NA(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DMARC_NA(0.00)[chaos1.de]; DKIM_TRACE(0.00)[chaos1.de:+]; TO_DN_SOME(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[] X-ThisMailContainsUnwantedMimeParts: N --Apple-Mail=_5E42947A-F854-4C69-8415-B0726CD1FFE1 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > Am 04.10.2022 um 13:43 schrieb Hans Petter Selasky : >=20 > Did you clear the endpoint halt condition (for RX BULK endpoint and TX = BULK endpoint), to reset the so-called USB data-toggle, before starting = to communicate with the device? Else you risk loosing a USB packet? If I do not want to touch th USB stuff, can I get the same effect by = close/open of the serial device? Axel =2D-- PGP-Key: CDE74120 =E2=98=80 computing @ chaos claudius --Apple-Mail=_5E42947A-F854-4C69-8415-B0726CD1FFE1 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
=

= Am 04.10.2022 um 13:43 schrieb Hans Petter Selasky <hps@selasky.org>:

Did you clear the endpoint halt condition (for RX BULK = endpoint and TX BULK endpoint), to reset the so-called USB data-toggle, = before starting to communicate with the device? Else you risk loosing a = USB packet?

=
If I do not want to touch th USB stuff, can I get the same effect = by close/open of the serial device?

A= xel
---
P= GP-Key: CDE74120  =E2=98=80  computing @ chaos claudius

--Apple-Mail=_5E42947A-F854-4C69-8415-B0726CD1FFE1-- From nobody Wed Oct 5 14:46:21 2022 X-Original-To: hardware@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 4MjHSw5yFqz4TyD1; Wed, 5 Oct 2022 14:46:24 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [IPv6:2a01:4f8:c17:6c4b::2]) (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 4MjHSw22Ssz3bmX; Wed, 5 Oct 2022 14:46:24 +0000 (UTC) (envelope-from hps@selasky.org) Received: from [10.36.2.155] (unknown [178.232.223.95]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 0EE982605B1; Wed, 5 Oct 2022 16:46:22 +0200 (CEST) Content-Type: multipart/mixed; boundary="------------f033SwVB7obDFfWe0FB4PvxW" Message-ID: Date: Wed, 5 Oct 2022 16:46:21 +0200 List-Id: General discussion of FreeBSD hardware List-Archive: https://lists.freebsd.org/archives/freebsd-hardware List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hardware@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 Subject: Re: Accessing I2C-Bus via ELV USB-I2C Content-Language: en-US To: Axel Rau Cc: hardware@freebsd.org, freebsd-hackers@freebsd.org References: <996df5c0-ffa7-f1bf-a9e2-6dd47d7b49e6@Chaos1.DE> <35D556D7-56EC-4295-93D6-80A4CFE6DCE9@Chaos1.DE> <37c55124-5cd5-6fd1-ca46-9265ebe47b18@selasky.org> <602324D8-515B-4061-8689-5638E9A82759@Chaos1.DE> <2cb6203f-03da-9a05-24a5-c851f1424503@selasky.org> <490EBA38-E103-4DC1-8A42-E16A8279980D@Chaos1.DE> <017C6EBE-910E-43E7-AAF7-A3D9ECE85EFF@Chaos1.DE> <84c5bc0b-1c72-d50d-6289-ac91a0878bd1@selasky.org> <752FCC61-496D-40C5-8A99-143F15B1EE84@Chaos1.DE> From: Hans Petter Selasky In-Reply-To: <752FCC61-496D-40C5-8A99-143F15B1EE84@Chaos1.DE> X-Rspamd-Queue-Id: 4MjHSw22Ssz3bmX X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of hps@selasky.org designates 2a01:4f8:c17:6c4b::2 as permitted sender) smtp.mailfrom=hps@selasky.org X-Spamd-Result: default: False [-2.20 / 15.00]; MIME_BASE64_TEXT_BOGUS(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.997]; R_SPF_ALLOW(-0.20)[+a:mail.turbocat.net:c]; MIME_BASE64_TEXT(0.10)[]; MIME_GOOD(-0.10)[multipart/mixed,text/plain,text/x-patch]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:24940, ipnet:2a01:4f8::/32, country:DE]; MIME_TRACE(0.00)[0:+,1:+,2:+]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org,hardware@freebsd.org]; R_DKIM_NA(0.00)[]; ARC_NA(0.00)[]; TO_DN_SOME(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_HAS_DN(0.00)[]; HAS_ATTACHMENT(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; DMARC_NA(0.00)[selasky.org]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N This is a multi-part message in MIME format. --------------f033SwVB7obDFfWe0FB4PvxW Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 10/5/22 13:55, Axel Rau wrote: > If I do not want to touch th USB stuff, can I get the same effect by close/open of the serial device? The uslcom driver only does this right after attach, in 13-stable and 14-main. Does the attached patch make any difference for you? --HPS --------------f033SwVB7obDFfWe0FB4PvxW Content-Type: text/x-patch; charset=UTF-8; name="0001-uslcom-4-Clear-stall-at-every-open.patch" Content-Disposition: attachment; filename="0001-uslcom-4-Clear-stall-at-every-open.patch" Content-Transfer-Encoding: base64 RnJvbSBjNTllY2M2YzM2MWY0OGYwOGI3MGQ0ZmVkOTA1NjY3YjYyZTIxZWQ2IE1vbiBTZXAg MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBIYW5zIFBldHRlciBTZWxhc2t5IDxoc2VsYXNreUBG cmVlQlNELm9yZz4KRGF0ZTogV2VkLCA1IE9jdCAyMDIyIDE2OjQ1OjIxICswMjAwClN1Ympl Y3Q6IFtQQVRDSF0gdXNsY29tKDQpOiBDbGVhciBzdGFsbCBhdCBldmVyeSBvcGVuLgoKVG8g YXZvaWQgZGF0YSBsb3NzLCBtYWtlIHN1cmUgYm90aCB0aGUgcmVjZWl2ZSBhbmQgdHJhbnNt aXQgZGF0YSB0b2dnbGVzCmdldCByZXNldCwgYmVmb3JlIHRyeWluZyB0byByZWFkIG9yIHdy aXRlIGFueSBkYXRhLgoKTUZDIGFmdGVyOgkxIHdlZWsKU3BvbnNvcmVkIGJ5OglOVklESUEg TmV0d29ya2luZwotLS0KIHN5cy9kZXYvdXNiL3NlcmlhbC91c2xjb20uYyB8IDEwICsrKyst LS0tLS0KIDEgZmlsZSBjaGFuZ2VkLCA0IGluc2VydGlvbnMoKyksIDYgZGVsZXRpb25zKC0p CgpkaWZmIC0tZ2l0IGEvc3lzL2Rldi91c2Ivc2VyaWFsL3VzbGNvbS5jIGIvc3lzL2Rldi91 c2Ivc2VyaWFsL3VzbGNvbS5jCmluZGV4IGU0MzY3ZDY3ODFhNy4uODY4NzExYWZlZjAxIDEw MDY0NAotLS0gYS9zeXMvZGV2L3VzYi9zZXJpYWwvdXNsY29tLmMKKysrIGIvc3lzL2Rldi91 c2Ivc2VyaWFsL3VzbGNvbS5jCkBAIC00MzksMTIgKzQzOSw2IEBAIHVzbGNvbV9hdHRhY2go ZGV2aWNlX3QgZGV2KQogCQkgICAgImVycm9yPSVzXG4iLCB1c2JkX2VycnN0cihlcnJvcikp OwogCQlnb3RvIGRldGFjaDsKIAl9Ci0JLyogY2xlYXIgc3RhbGwgYXQgZmlyc3QgcnVuICov Ci0JbXR4X2xvY2soJnNjLT5zY19tdHgpOwotCXVzYmRfeGZlcl9zZXRfc3RhbGwoc2MtPnNj X3hmZXJbVVNMQ09NX0JVTEtfRFRfV1JdKTsKLQl1c2JkX3hmZXJfc2V0X3N0YWxsKHNjLT5z Y194ZmVyW1VTTENPTV9CVUxLX0RUX1JEXSk7Ci0JbXR4X3VubG9jaygmc2MtPnNjX210eCk7 Ci0KIAlzYy0+c2NfcGFydG51bSA9IHVzbGNvbV9nZXRfcGFydG51bShzYyk7CiAKIAllcnJv ciA9IHVjb21fYXR0YWNoKCZzYy0+c2Nfc3VwZXJfdWNvbSwgJnNjLT5zY191Y29tLCAxLCBz YywKQEAgLTUxNCw2ICs1MDgsMTAgQEAgdXNsY29tX2NmZ19vcGVuKHN0cnVjdCB1Y29tX3Nv ZnRjICp1Y29tKQogCQlEUFJJTlRGKCJVQVJUIGVuYWJsZSBmYWlsZWQgKGlnbm9yZWQpXG4i KTsKIAl9CiAKKwkvKiBjbGVhciBzdGFsbCAqLworCXVzYmRfeGZlcl9zZXRfc3RhbGwoc2Mt PnNjX3hmZXJbVVNMQ09NX0JVTEtfRFRfV1JdKTsKKwl1c2JkX3hmZXJfc2V0X3N0YWxsKHNj LT5zY194ZmVyW1VTTENPTV9CVUxLX0RUX1JEXSk7CisKIAkvKiBzdGFydCBwb2xsaW5nIHN0 YXR1cyAqLwogCXVzbGNvbV93YXRjaGRvZyhzYyk7CiB9Ci0tIAoyLjM3LjMKCg== --------------f033SwVB7obDFfWe0FB4PvxW-- From nobody Wed Oct 5 16:31:26 2022 X-Original-To: hardware@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 4MjKpJ0NC9z4V8WC; Wed, 5 Oct 2022 16:31:36 +0000 (UTC) (envelope-from Axel.Rau@Chaos1.DE) Received: from mailout5.lrau.net (mailout5.lrau.net [IPv6:2a05:bec0:26:5::73]) (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 "mailout5.lrau.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MjKpH33jBz3pQ8; Wed, 5 Oct 2022 16:31:35 +0000 (UTC) (envelope-from Axel.Rau@Chaos1.DE) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=chaos1.de; s=2022; h=References:To:Cc:In-Reply-To:Date:Subject:Mime-Version:Content-Type :Message-Id:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=h00AoV1Exprvu501pO7bCen2LyI1QGRFf2xFSgcrh+o=; b=DqDEFfdgEb8tsZdt+9boeby0ex seoFRK41cNsfD2E0ArfmmbYGVCCzbpOwI6PHU7p6g7GiXH4KnaLZWkHgTLwZK2G6998+P4c/P7o4W prwoVX7KALnqDuSrNujYeN3xN4ZkHTaoFJ++i8ajgpOuMhIYGSw/fPKy2h4BJ8CWwd4KmD5akVvw1 vEXldhMg3pmQrlfPsRW4DFwoA2OpbJ9mMjHw/Sqpb+lurEKvnQJPlObwXRb6eg9zI05OjYe24ofQJ UYFt6bh5fD/lNUakaUtepKWy15DbbVRWOzaC3FVXYzPbfHbvQdH8VU8eTXCRuqAdlYAf/WcXEePB/ nPF+vHDg==; Received: from [2a05:bec0:26:5::74] (helo=imap5.lrau.net) by mailout5.lrau.net with esmtp (Exim 4.95 (FreeBSD)) (envelope-from ) id 1og7Iy-000N98-7L; Wed, 05 Oct 2022 16:31:32 +0000 Received: from Axel.Rau@Chaos1.DE by imap5.lrau.net (Archiveopteryx 3.2.0) with esmtpsa id 1664987487-11466-8168/7/189; Wed, 5 Oct 2022 16:31:27 +0000 From: Axel Rau Message-Id: <23E6D546-DAEF-468D-AE40-752EEB279C8A@Chaos1.DE> Content-Type: multipart/alternative; boundary="Apple-Mail=_31A3D805-29A8-41CD-AB61-E08C5B1687EF" List-Id: General discussion of FreeBSD hardware List-Archive: https://lists.freebsd.org/archives/freebsd-hardware List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hardware@freebsd.org Mime-Version: 1.0 Subject: Re: Accessing I2C-Bus via ELV USB-I2C Date: Wed, 5 Oct 2022 18:31:26 +0200 In-Reply-To: Cc: hardware@freebsd.org, freebsd-hackers@freebsd.org To: Hans Petter Selasky References: <996df5c0-ffa7-f1bf-a9e2-6dd47d7b49e6@Chaos1.DE> <35D556D7-56EC-4295-93D6-80A4CFE6DCE9@Chaos1.DE> <37c55124-5cd5-6fd1-ca46-9265ebe47b18@selasky.org> <602324D8-515B-4061-8689-5638E9A82759@Chaos1.DE> <2cb6203f-03da-9a05-24a5-c851f1424503@selasky.org> <490EBA38-E103-4DC1-8A42-E16A8279980D@Chaos1.DE> <017C6EBE-910E-43E7-AAF7-A3D9ECE85EFF@Chaos1.DE> <84c5bc0b-1c72-d50d-6289-ac91a0878bd1@selasky.org> <752FCC61-496D-40C5-8A99-143F15B1EE84@Chaos1.DE> X-Mailer: Apple Mail (2.3608.120.23.2.7) X-Rspamd-Queue-Id: 4MjKpH33jBz3pQ8 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=chaos1.de header.s=2022 header.b=DqDEFfdg; dmarc=none; spf=none (mx1.freebsd.org: domain of Axel.Rau@Chaos1.DE has no SPF policy when checking 2a05:bec0:26:5::73) smtp.mailfrom=Axel.Rau@Chaos1.DE X-Spamd-Result: default: False [-3.99 / 15.00]; DWL_DNSWL_LOW(-1.00)[chaos1.de:dkim]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-0.999]; NEURAL_HAM_SHORT(-0.99)[-0.994]; MV_CASE(0.50)[]; RCVD_IN_DNSWL_LOW(-0.20)[2a05:bec0:26:5::73:from,2a05:bec0:26:5::74:received]; R_DKIM_ALLOW(-0.20)[chaos1.de:s=2022]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; R_SPF_NA(0.00)[no SPF record]; FROM_HAS_DN(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:197071, ipnet:2a05:bec0::/29, country:DE]; MLMMJ_DEST(0.00)[hardware@freebsd.org,freebsd-hackers@freebsd.org]; ARC_NA(0.00)[]; DKIM_TRACE(0.00)[chaos1.de:+]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DMARC_NA(0.00)[chaos1.de]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[] X-ThisMailContainsUnwantedMimeParts: N --Apple-Mail=_31A3D805-29A8-41CD-AB61-E08C5B1687EF Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > Am 05.10.2022 um 16:46 schrieb Hans Petter Selasky : >=20 > On 10/5/22 13:55, Axel Rau wrote: >> If I do not want to touch th USB stuff, can I get the same effect by = close/open of the serial device? >=20 > The uslcom driver only does this right after attach, in 13-stable and = 14-main. >=20 > Does the attached patch make any difference for you? >=20 > --HPS > <0001-uslcom-4-Clear-stall-at-every-open.patch> As this is a production server, I try to avoid reboots. Meanwhile, I have inserted a read loop which eats the fragments and allows the following status query to get a clean response. With this patch, recovery seems to work. Additionally I have eliminated a hub and connected the device directly = to a port. Hopefully this will stop the frequent `/dev/cuaU0: Bus connection = lost`events. Thanks for your time, Axel =2D-- PGP-Key: CDE74120 =E2=98=80 computing @ chaos claudius --Apple-Mail=_31A3D805-29A8-41CD-AB61-E08C5B1687EF Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
=

= Am 05.10.2022 um 16:46 schrieb Hans Petter Selasky <hps@selasky.org>:

On 10/5/22 = 13:55, Axel Rau wrote:
If I do not want to touch th USB stuff, can I get the same effect by = close/open of the serial device?

The uslcom driver only does this right after attach, in 13-stable and = 14-main.

Does the attached patch make any = difference for you?

--HPS
<0001-u= slcom-4-Clear-stall-at-every-open.patch>
As this is a production server, I try to avoid reboots.

Meanwhile, I have = inserted a read loop which eats the fragments
and = allows the following status query to get a clean response.
With this patch, recovery seems to work.
=
Additionally I have eliminated a = hub and connected the device directly to a port.
Hop= efully this will stop the frequent `/dev/cuaU0: Bus connection lost`event= s.

Thanks for = your time,
Axel
---
PGP-Key: CDE74120  =E2=98=80 =  computing @ chaos claudius

--Apple-Mail=_31A3D805-29A8-41CD-AB61-E08C5B1687EF-- From nobody Thu Oct 6 11:56:06 2022 X-Original-To: hardware@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 4MjqfC5s5qz4V2Nv; Thu, 6 Oct 2022 11:56:19 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [88.99.82.50]) (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 4MjqfB0xn9z46ZV; Thu, 6 Oct 2022 11:56:18 +0000 (UTC) (envelope-from hps@selasky.org) Received: from [10.36.2.155] (unknown [178.232.223.95]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 5FA91260754; Thu, 6 Oct 2022 13:56:10 +0200 (CEST) Message-ID: <16b3de9c-7ee5-4c8e-e010-8fc5d9cfc3c4@selasky.org> Date: Thu, 6 Oct 2022 13:56:06 +0200 List-Id: General discussion of FreeBSD hardware List-Archive: https://lists.freebsd.org/archives/freebsd-hardware List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hardware@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 Subject: Re: Accessing I2C-Bus via ELV USB-I2C Content-Language: en-US To: Axel Rau Cc: hardware@freebsd.org, freebsd-hackers@freebsd.org References: <996df5c0-ffa7-f1bf-a9e2-6dd47d7b49e6@Chaos1.DE> <35D556D7-56EC-4295-93D6-80A4CFE6DCE9@Chaos1.DE> <37c55124-5cd5-6fd1-ca46-9265ebe47b18@selasky.org> <602324D8-515B-4061-8689-5638E9A82759@Chaos1.DE> <2cb6203f-03da-9a05-24a5-c851f1424503@selasky.org> <490EBA38-E103-4DC1-8A42-E16A8279980D@Chaos1.DE> <017C6EBE-910E-43E7-AAF7-A3D9ECE85EFF@Chaos1.DE> <84c5bc0b-1c72-d50d-6289-ac91a0878bd1@selasky.org> <752FCC61-496D-40C5-8A99-143F15B1EE84@Chaos1.DE> <23E6D546-DAEF-468D-AE40-752EEB279C8A@Chaos1.DE> From: Hans Petter Selasky In-Reply-To: <23E6D546-DAEF-468D-AE40-752EEB279C8A@Chaos1.DE> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4MjqfB0xn9z46ZV X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of hps@selasky.org designates 88.99.82.50 as permitted sender) smtp.mailfrom=hps@selasky.org X-Spamd-Result: default: False [-3.30 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.998]; R_SPF_ALLOW(-0.20)[+a:mail.turbocat.net]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org,hardware@freebsd.org]; R_DKIM_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:24940, ipnet:88.99.0.0/16, country:DE]; MIME_TRACE(0.00)[0:+]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; DMARC_NA(0.00)[selasky.org]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On 10/5/22 18:31, Axel Rau wrote: > > >> Am 05.10.2022 um 16:46 schrieb Hans Petter Selasky : >> >> On 10/5/22 13:55, Axel Rau wrote: >>> If I do not want to touch th USB stuff, can I get the same effect by close/open of the serial device? >> >> The uslcom driver only does this right after attach, in 13-stable and 14-main. >> >> Does the attached patch make any difference for you? >> >> --HPS >> <0001-uslcom-4-Clear-stall-at-every-open.patch> > As this is a production server, I try to avoid reboots. > > Meanwhile, I have inserted a read loop which eats the fragments > and allows the following status query to get a clean response. > With this patch, recovery seems to work. > > Additionally I have eliminated a hub and connected the device directly to a port. > Hopefully this will stop the frequent `/dev/cuaU0: Bus connection lost`events. > > Thanks for your time, > Axel > --- > PGP-Key: CDE74120 ☀ computing @ chaos claudius > > Hi, You just need to rebuild the uslcom.ko and kldunload it. make -C /usr/src/sys/modules/usb/uslcom all install KMODDIR=/boot/kernel Anyway, here you go: https://cgit.freebsd.org/src/commit/?id=9e0edafe92ad9fc6745ee4c4c58e45a49b9e7ed1 --HPS