From owner-freebsd-usb@freebsd.org Thu Jun 25 18:05:46 2020 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 3E26F340D82 for ; Thu, 25 Jun 2020 18:05:46 +0000 (UTC) (envelope-from jbe-mlist@magnetkern.de) Received: from sapphire.magnetkern.de (sapphire.magnetkern.de [185.228.139.199]) by mx1.freebsd.org (Postfix) with ESMTP id 49t7Gx3c1fz4P7n for ; Thu, 25 Jun 2020 18:05:45 +0000 (UTC) (envelope-from jbe-mlist@magnetkern.de) Received: from titanium (p5dd45c70.dip0.t-ipconnect.de [93.212.92.112]) by sapphire.magnetkern.de (Postfix) with ESMTPSA id C0965134F for ; Thu, 25 Jun 2020 18:05:44 +0000 (UTC) Date: Thu, 25 Jun 2020 20:04:46 +0200 From: Jan Behrens To: Hans Petter Selasky Message-Id: <20200625200446.6c7c412b1baffa40212e116f@magnetkern.de> In-Reply-To: References: <20200625121052.e9f7e7cbeb68fad264ec80a9@magnetkern.de> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd12.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Resent-Date: Thu, 25 Jun 2020 20:05:44 +0200 Resent-From: Jan Behrens Resent-To: freebsd-usb@FreeBSD.org Subject: Re: USB reset fails when using a LimeSDR Mini on FreeBSD Resent-Message-Id: <20200625200544.009ae51937f038a7210941e5@magnetkern.de> X-Rspamd-Queue-Id: 49t7Gx3c1fz4P7n X-Spamd-Bar: +++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of jbe-mlist@magnetkern.de designates 185.228.139.199 as permitted sender) smtp.mailfrom=jbe-mlist@magnetkern.de X-Spamd-Result: default: False [3.86 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[93.212.92.112:received]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx:c]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[magnetkern.de]; NEURAL_SPAM_MEDIUM(0.68)[0.680]; RCPT_COUNT_ONE(0.00)[1]; TO_DN_ALL(0.00)[]; NEURAL_SPAM_LONG(0.41)[0.409]; NEURAL_SPAM_SHORT(0.47)[0.467]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:197540, ipnet:185.228.136.0/22, country:DE]; RCVD_COUNT_TWO(0.00)[2]; MID_RHS_MATCH_FROM(0.00)[]; FORGED_RECIPIENTS(2.00)[hps@selasky.org,freebsd-usb@FreeBSD.org] X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Jun 2020 18:05:46 -0000 On Thu, 25 Jun 2020 12:23:37 +0200 Hans Petter Selasky wrote: > On 2020-06-25 12:10, Jan Behrens wrote: > > Any help on this would be appreciated. Is there any way to increase > > verbosity of libusb or figure out why the USB initialization fails? > > What is printed in dmesg? > > --HPS > % dmesg [...] ugen2.2: at usbus2 I also made sure I got proper access rights (like Tomek mentioned). Meanwhile I have tracked down the problem further. See my other e-mail. I got the LimeSDR Mini running on FreeBSD (successfully received a radio transmission), but I had to comment out the libusb_reset_device() call, see: https://discourse.myriadrf.org/t/limesdr-mini-with-freebsd/6230/7 This is just a quick-and-dirty hack, and no idea if there are any side-effects. It would be better to figure out what's causing the bug in the first place. Regards, Jan