From nobody Fri Nov 12 13:25:38 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 A67CB184615E for ; Fri, 12 Nov 2021 13:25:41 +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 4HrK8j3SWRz3GDh for ; Fri, 12 Nov 2021 13:25:41 +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 5031E260483; Fri, 12 Nov 2021 14:25:40 +0100 (CET) Message-ID: <3f2a86d6-6906-d5a3-45ad-3b1c7ce1a345@selasky.org> Date: Fri, 12 Nov 2021 14:25:38 +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> <6a6850f5-8233-aae7-8e65-42594402fcb5@selasky.org> <20211112120714.73f195a9@zeta.dino.sk> <972a650d-d490-1965-13a4-2fb984531f1d@selasky.org> <20211112121806.2db2a908@zeta.dino.sk> <85cdc03e-e8f1-871c-6e1d-66181e45dcb1@selasky.org> <20211112123438.6305fc56@zeta.dino.sk> <20211112140045.018ebf0c@zeta.dino.sk> <571bda62-b86c-a5b0-fcc6-f70102b85db7@selasky.org> <20211112142200.7947d6b2@zeta.dino.sk> From: Hans Petter Selasky In-Reply-To: <20211112142200.7947d6b2@zeta.dino.sk> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4HrK8j3SWRz3GDh 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 14:22, Milan Obuch wrote: > On Fri, 12 Nov 2021 14:13:08 +0100 > Hans Petter Selasky wrote: > > [ snip ] > >> It crashes on synchronize cache: >> >> Try adding this quirk: >> >> usbconfig -d ugen1.3 add_quirk UQ_MSC_NO_SYNC_CACHE >> >> Then re-plug the device. >> >> --HPS >> > > Could this be done before device attach? Trouble is, after synchronize > crashes, USB firmware crashes as well. This means there is basically no > ugen1.3 device anymore, so doing this command just tells (after some > delay) > > Adding quirk 'UQ_MSC_NO_SYNC_CACHE' failed, continuing. > > Next I must reset the board, but before I am able to do anything, it > crashes again. > > Regards, > Milan > Hi, man usb_quirk To install a quirk at boot time, place one or several lines like the following in loader.conf(5): hw.usb.quirk.0="0x1514 0x0001 0 0xffff UQ_MSC_NO_SYNC_CACHE" hw.usb.quirk.0="0x1514 0x0001 0 0xffff UQ_NO_STRINGS" --HPS