From nobody Fri Nov 12 11:07:14 2021 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 9B597183AF02 for ; Fri, 12 Nov 2021 11:07:18 +0000 (UTC) (envelope-from freebsd-usb@dino.sk) Received: from mailhost.netlabit.sk (mailhost.netlabit.sk [84.245.65.72]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4HrG51371Bz3hvm for ; Fri, 12 Nov 2021 11:07:17 +0000 (UTC) (envelope-from freebsd-usb@dino.sk) Received: from zeta.dino.sk (fw3.dino.sk [84.245.95.254]) (AUTH: LOGIN milan, TLS: TLSv1/SSLv3,256bits,AES256-SHA) by mailhost.netlabit.sk with ESMTPSA; Fri, 12 Nov 2021 12:07:15 +0100 id 00DCA80D.618E4AE3.0000654B Date: Fri, 12 Nov 2021 12:07:14 +0100 From: Milan Obuch To: freebsd-usb@freebsd.org Subject: Re: USBDMSC emulated device does not work on FreeBSD Message-ID: <20211112120714.73f195a9@zeta.dino.sk> In-Reply-To: <6a6850f5-8233-aae7-8e65-42594402fcb5@selasky.org> References: <20211112095915.226af6be@zeta.dino.sk> <6a6850f5-8233-aae7-8e65-42594402fcb5@selasky.org> X-Mailer: Claws Mail 3.18.0git295 (GTK+ 2.24.33; i386-portbld-freebsd11.4) 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 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4HrG51371Bz3hvm X-Spamd-Bar: ++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of freebsd-usb@dino.sk designates 84.245.65.72 as permitted sender) smtp.mailfrom=freebsd-usb@dino.sk X-Spamd-Result: default: False [2.62 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[dino.sk]; NEURAL_SPAM_MEDIUM(1.00)[0.996]; RCPT_COUNT_ONE(0.00)[1]; MID_RHS_MATCH_FROMTLD(0.00)[]; NEURAL_SPAM_SHORT(1.00)[1.000]; NEURAL_SPAM_LONG(0.92)[0.922]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:5578, ipnet:84.245.64.0/18, country:SK]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On Fri, 12 Nov 2021 11:54:24 +0100 Hans Petter Selasky wrote: > On 11/12/21 09:59, Milan Obuch wrote: > > Hi, > > > > recently I got PolarFire SoC FPGA based board I am working on > > FreeBSD support for. As a non volatile storage, it has eNVM used > > for HSS and eMMC as disk device. > > > > After reset, first thing run is HSS, which loads U-Boot from eMMC > > and usual boot process continues. It is possible, however, break the > > process and issue 'usbdmsc' command on HSS prompt. eMMC is then > > presented as USB disk. > > > > This works on Windows, and one or more (depends on partition table > > used on eMMC) disk drives are presented to system. It is possible > > to use balenaEtcher software to put some image there and do > > something with it. > > > > This does not work on FreeBSD. I see device being attached after > > starting 'usbdmsc' command, but no USB drive is being created. Could > > someone help me to diagnose this? Which command output (maybe > > 'usbconfig ') could offer some hint? > > > > Regards, > > Milan > > > > Hi, > > Can you share what is printed in dmesg? > > This command may also be useful. It will show which kernel drivers > are attached to your device. > > usbconfig show_ifdrv > > --HPS > After issuing command 'usbdmsc' on HSS prompt, I see just kernel: ugen1.3: at usbus1 line in console (and later in dmesg). Relevant line in output of 'usbconfig show_ifdrv' command is ugen1.3: at usbus1, cfg=255 md=HOST spd=HIGH (480Mbps) pwr=ON (100mA) which does not tell much, I think. Anything else I can try to get something meaningfull? Note, my FreeBSD box is rather old, 11.4-STABLE, test done on 12.2-STABLE was basically the same. Regards, Milan