From nobody Mon Apr 25 08:21:04 2022 X-Original-To: freebsd-usb@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 41C991A9DBF3 for ; Mon, 25 Apr 2022 08:21:13 +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 4Kmydh0lh5z3N7b for ; Mon, 25 Apr 2022 08:21:11 +0000 (UTC) (envelope-from hps@selasky.org) Received: from [10.36.2.165] (unknown [176.74.213.87]) (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 113E1260189; Mon, 25 Apr 2022 10:21:07 +0200 (CEST) Message-ID: <9ca0e355-d780-f9c0-4d38-b99662f43edd@selasky.org> Date: Mon, 25 Apr 2022 10:21:04 +0200 List-Id: FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-usb List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@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: Trouble loading firmware to USB device Content-Language: en-US From: Hans Petter Selasky To: Farhan Khan , freebsd-usb@freebsd.org References: <9315bf6d-b9a9-89a2-9a32-aca9fd9cc015@farhan.codes> <007551144c601a21e2ec8133a8359323de29725f.camel@farhan.codes> <6fd2d680bf9edd969476f4544314235538c7fe41.camel@farhan.codes> <4f9a9bd7-28e4-99c7-6394-27368fafdbb1@selasky.org> <92f7b8ab463d057eea5490ff330e0ec955868efc.camel@farhan.codes> <7abdf40246e7f60d129b8e02451445d1f3a75883.camel@farhan.codes> <7fc346b1-b70d-8e29-860d-5ed0988a7838@selasky.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4Kmydh0lh5z3N7b 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 [-1.31 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(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]; NEURAL_HAM_LONG(-1.00)[-0.998]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[selasky.org]; NEURAL_SPAM_MEDIUM(0.99)[0.987]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCPT_COUNT_TWO(0.00)[2]; MLMMJ_DEST(0.00)[freebsd-usb]; 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/24/22 11:48, Hans Petter Selasky wrote: > On 4/22/22 18:50, Farhan Khan wrote: >> On Fri, 2022-04-22 at 08:43 +0200, Hans Petter Selasky wrote: >>> If your device is ugenX.Y, usbdump is: >>> >>> usbdump -i usbusX -f Y -s 256 -vvv >>> >>> --HPS >> >> Based on the FRAME[1] size, it seems that the length is 1024 bytes. >> That seems low, but it might not be for bulk transfers. >> >> The long-form output is here: https://bsd.to/9CVK Potentially there is >> a problem here that I am not seeing. >> >> The main problem still remains, that loading the firmware is not >> triggering the Rx Interrupt callback. Are these potentially related >> issues? >> Hi, > status 0xeb023 > 12:25:07.785438 usbus3.3 SUBM-INTR-EP=00000083,SPD=HIGH,NFR=1,SLEN=0,IVAL=1 > frame[0] READ 1024 bytes > flags 0xa You are asking for 1024 bytes. Try asking for only 64 bytes instead, same as one wMaxPacket, before submitting the job. --HPS