From nobody Wed Mar 02 08:59:05 2022 X-Original-To: freebsd-hackers@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 8B3C619FFAED for ; Wed, 2 Mar 2022 08:59:17 +0000 (UTC) (envelope-from wojtek@puchar.net) Received: from puchar.net (puchar.net [194.1.144.90]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4K7p2X2DPnz4ST2 for ; Wed, 2 Mar 2022 08:59:16 +0000 (UTC) (envelope-from wojtek@puchar.net) Received: Received: from 127.0.0.1 (localhost [127.0.0.1]) by puchar.net (8.15.2/8.16.1) with ESMTPS id 2228x6Qr072488 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 2 Mar 2022 09:59:07 +0100 (CET) (envelope-from wojtek@puchar.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=puchar.net; s=default; t=1646211547; bh=OPKCV9p7DtYc+ASiuCIAmg5CrGci1ky3ipvie41HqZ0=; h=Date:From:To:cc:Subject:In-Reply-To:References; b=jHfF9WsJNg8Eb0xfF3B0yFaHzRtfCiKTbwAqry5sorcnKRwak3t/yC1AnXvR+knM7 axVPKUSLcf3Z6Z4BPS63W/ujPTvFYH2FzxobQDRVB4gDmxtFzz6sXVhX5szigY+Bcq SNlp1pRBNkQ/wIySNmTrDGNKy6/rWA+/iNDJPhVE= Received: from wojtek.intra (localhost [127.0.0.1]) by wojtek.intra (8.16.1/8.16.1) with ESMTP id 2228x6Pu021051; Wed, 2 Mar 2022 09:59:06 +0100 (CET) (envelope-from wojtek@puchar.net) Received: from localhost (wojtek@localhost) by wojtek.intra (8.16.1/8.16.1/Submit) with ESMTP id 2228x5Y2021048; Wed, 2 Mar 2022 09:59:06 +0100 (CET) (envelope-from wojtek@puchar.net) X-Authentication-Warning: wojtek.intra: wojtek owned process doing -bs Date: Wed, 2 Mar 2022 09:59:05 +0100 (CET) From: Wojciech Puchar To: John-Mark Gurney cc: freebsd-hackers@freebsd.org Subject: Re: problem with USB-CD drive In-Reply-To: <20220302014925.GA88842@funkthat.com> Message-ID: <2de67fd5-40d9-55fc-18ea-671aa096bab5@puchar.net> References: <197d435-6c4b-a60-4e6f-ea4ee515b8f4@puchar.net> <20220302014925.GA88842@funkthat.com> List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Rspamd-Queue-Id: 4K7p2X2DPnz4ST2 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=puchar.net header.s=default header.b=jHfF9WsJ; dmarc=none; spf=pass (mx1.freebsd.org: domain of wojtek@puchar.net designates 194.1.144.90 as permitted sender) smtp.mailfrom=wojtek@puchar.net X-Spamd-Result: default: False [-3.50 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[puchar.net:s=default]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; HAS_XAW(0.00)[]; DMARC_NA(0.00)[puchar.net]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[puchar.net:+]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MLMMJ_DEST(0.00)[freebsd-hackers]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:43476, ipnet:194.1.144.0/24, country:PL]; MID_RHS_MATCH_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N > Wojciech Puchar wrote this message on Mon, Feb 21, 2022 at 11:44 +0100: >> I wrote software for microcontroller with USB device port that presents >> itself as USB CD and includes ISO9660 image. > > Is this an ST micro? I have a couple outstanding issues where ST hasn't No it's PIC32. Nevertheless it does not matter - i wrote everything myself from scratch using only PIC32MX and USB documentation. I am almost sure i didn't implement some of SCSI commands properly so FreeBSD doesn't properly behave, while windows/MacOS doesn't care. The question is how to debug it on host side - what exactly is wrong.