From nobody Fri Nov 12 10:54:24 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 EDAB017CB7E8 for ; Fri, 12 Nov 2021 10:54:34 +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 4HrFpL5t6sz3P0b for ; Fri, 12 Nov 2021 10:54:34 +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 0F802260483; Fri, 12 Nov 2021 11:54:25 +0100 (CET) Message-ID: <6a6850f5-8233-aae7-8e65-42594402fcb5@selasky.org> Date: Fri, 12 Nov 2021 11:54:24 +0100 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.2.0 Subject: Re: USBDMSC emulated device does not work on FreeBSD Content-Language: en-US To: Milan Obuch , freebsd-usb@freebsd.org References: <20211112095915.226af6be@zeta.dino.sk> From: Hans Petter Selasky In-Reply-To: <20211112095915.226af6be@zeta.dino.sk> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4HrFpL5t6sz3P0b X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N 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