From owner-freebsd-arm@freebsd.org Thu Apr 8 07:47:07 2021 Return-Path: Delivered-To: freebsd-arm@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 E06515D30E3 for ; Thu, 8 Apr 2021 07:47:07 +0000 (UTC) (envelope-from pcc@gmx.net) Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FGCyg02lJz4XWJ for ; Thu, 8 Apr 2021 07:47:05 +0000 (UTC) (envelope-from pcc@gmx.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1617868015; bh=+Z/gi7uQg54f286E0/5ohrYKUJcVZKMpvQjRw/l0H80=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=HJzX8knv5/UJXs98Je86+d9V1TG5MOyi7qQpps/2hM7vFZqX++7pmQa+7tQKeO+fY am4CNP/e1ACa8CGVb3zhHcGX3x+cQXN6ojFx8xEbpAcOTPc6IDWucdGZtO3epMIGIV CIzpXgYLLUZidvWxAcsUFVu7Trmf5TfauGFh6gIA= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [77.185.156.154] ([77.185.156.154]) by web-mail.gmx.net (3c-app-gmx-bs02.server.lan [172.19.170.51]) (via HTTP); Thu, 8 Apr 2021 09:46:54 +0200 MIME-Version: 1.0 Message-ID: From: Peter Cornelius To: FreeBSD-arm@freebsd.org Subject: Re: JMicron jms561 umass on arm64? Content-Type: text/plain; charset=UTF-8 Date: Thu, 8 Apr 2021 09:46:54 +0200 Importance: normal Sensitivity: Normal In-Reply-To: <20210407211513.GA53438@www.zefox.net> References: <20210407153732.GA50562@www.zefox.net> <20210407211513.GA53438@www.zefox.net> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:OUxdW+3h12HRxLXHAGBV8BF6qb5/099nbaij0Iu85y7L7h8UoNKlV1R5CBSi9Fgbdztyr Za8GSesU4IFPgcCZ5xmhtf4M7Ou8fp2qfsr5FlpipF6OjALaKUHeLsgoRL9ckTiva38LBnJebGWS RnhfYjiI01fYLWcRceeB8BcLadNnBkKppYhMOnXmi5/Ug8EMv2mS2A994PNT4XpG10c93RaaYtwe SYRPtj1X83/yIPcfsH/+kyDyGa7fHoDjQM/pGDhLPaTVQxGCEXOYpjsUgSDX42BW0K0tfBd5Msgc Hg= X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:zGOltQUk0P0=:puGgnAvs7rwNGgTh/3o3u0 TrqDCpiKvVF69UhJJyLrccfEBBAa0nTxp6WagbSUa5Dm0ooBxHqwtX8Ity08s/BsGNxNmTRPh jz2kyeIRsy0/ay8lMSulf2HomATvZjjAv1sXi4E17JEKuWlRQG2GefEzGrSSc1qdoJsExxRxH dKRyA1DSgavnQdIsScmsOEly1eleh2dpaokNm1GCyJQSd+AJjjiq80zhnXRA82LmCV9bPgKYV 1KK/Fg8MLCVSG/15wKfFCrmRp69JgKPQbZ8lp/qhSlppkfATIyjMg6zsJGYWmM7sBKmVxtBVo 8OYLr4YKP3ZBFiKknDMh78Ql7A6iTGW/wLDRTD+g3NSbAz1aAZBicIp0YGY5bVCwyz3yMfJOR jjN4Fs9NGM2aTXjc3PdWapO/yL9orr6+FaJhZi05v9KqoqAFRDx0oPtbvmP5VnVjdDgDMYHgZ nGmF5AVVb+KNJpis3ZszEbxzoH9RzBnaHvDHeztX7eOxZt8jYQRdED44fAbKGMO6TTuBxjVrJ wM+3XbY7R7//d/7ZJn3alhBhZeLNLfpbmPPegQTHsoI0ymc0gviBmL/EUXrl97sY/FlhLpz2h UrdgrEho/WcIlrGnUG4e+dAfUA9l/UyTbBb7/2zrayharOCP+SLlaOhR7I6ZxCJ+dZmgJCl8l vXrpH0GjWItf4zVVurHbunP1W7YuWtuXK/iYg+w6oY3izBN7Irpywt28IENHvtpqaKVY4GCqd i6HSisu1vAOw0qh0biulZDTiEsS1Rkg7BABVFNvZJBZKtKY/FPr3clZIm8T/yI+I50gX8OJo3 dvIflRUulnYOglhHXEe0E+OtGrJoF6M9kIMwsKPCK4yFG5hfpgcl1YpLI25er3fRC33rbqtCn xxn3FIgnCC1EqxfM4uZbBoBGHxpxAKJIy1oghlJlStSben7MJ3e+j3cp8qMact Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4FGCyg02lJz4XWJ X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmx.net header.s=badeba3b8450 header.b=HJzX8knv; dmarc=pass (policy=none) header.from=gmx.net; spf=pass (mx1.freebsd.org: domain of pcc@gmx.net designates 212.227.15.19 as permitted sender) smtp.mailfrom=pcc@gmx.net X-Spamd-Result: default: False [-3.60 / 15.00]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[gmx.net]; R_SPF_ALLOW(-0.20)[+ip4:212.227.15.0/25]; DKIM_TRACE(0.00)[gmx.net:+]; RCPT_COUNT_TWO(0.00)[2]; HAS_X_PRIO_THREE(0.00)[3]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[gmx.net,none]; RCVD_IN_DNSWL_LOW(-0.10)[212.227.15.19:from]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmx.net]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE]; RBL_DBL_DONT_QUERY_IPS(0.00)[212.227.15.19:from]; FROM_EQ_ENVFROM(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[gmx.net:s=badeba3b8450]; RECEIVED_SPAMHAUS_PBL(0.00)[77.185.156.154:received]; FROM_HAS_DN(0.00)[]; RWL_MAILSPIKE_NEUTRAL(0.00)[212.227.15.19:from]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; DWL_DNSWL_LOW(-1.00)[gmx.net:dkim]; SPAMHAUS_ZRD(0.00)[212.227.15.19:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MID_RHS_NOT_FQDN(0.50)[]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[FreeBSD-arm] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Porting FreeBSD to ARM processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Apr 2021 07:47:07 -0000 Thanks, Bob, > I'll do a little top-posting to sidestep the HTML mess below.... > [...] > You'll likely get a wider readership of posts in plain text. Sorry about that. My main box just broke and is in repair and the bl**min'= web GUI set HTML on *every single* message I send. I hope to have found a= permanent knob now, though. The stupid Aw: in the subject line, and not r= educing to a single Re: also is really embarrasing but there seems to be n= o knob for that... sigh! Not used to consumer UIs any more. > usb reset That cuts the branch I currently sit on (USB, HDMI). And does not show any= thing ... but an error (gone now, rpi4 continues to boot when I pull the k= eyboard off to type this). I'd love to boot (e. g. bootcmd_usb0) from the = disks but to do that, I'd have to get them on-line first, I guess... I also noted earlier, that, in my current setup, upon the first boot after= power-up, I have no means to interfere with the boot process at all until= FreeBSD was up at least once. Subsequent 'warm' reboots do give me access= to the boot prompts (u-boot, FreeBSD loaders). I also was hoping that, once BSD's taking over, USB would be reset, all de= vices found, etc. ... but looks like life's not that easy. I'll dig furthe= r into U-Boot now as the root cause seems to live there... > Since moving to a Pi4 (also running -current) I've had less trouble, > so the Pi you're using seems to make a difference. I have an RPI48GB with the current indicated below [3]. Thanks again, and All the best, Peter. =2D-- [1] I believe, https://www.jmicron.com/file/download/1026/JMS561_Product+B= rief.pdf [2] https://wiki.radxa.com/Dual_Quad_SATA_HAT [3] Note: Later builds so far have not booted despite of current u-boot (M= arch 2021) FreeBSD rpi4 14.0-CURRENT FreeBSD 14.0-CURRENT #1: Tue Feb 23 02:30:31= UTC 2021 root@rpi4:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC arm64 > Gesendet: Mittwoch, 07. April 2021 um 23:15 Uhr > Von: "bob prohaska" > An: "Peter Cornelius" > Cc: "bob prohaska" > Betreff: Re: Re: JMicron jms561 umass on arm64? > > Hi Peter, > > I'll do a little top-posting to sidestep the HTML mess below.... > > Initially mine wasn't reliably detected on a Pi3B running -current, > but a kind soul on the list explained a couple of tricks that you > might find useful. > > Step 1 is to interrupt u-boot and poke around. There are two > very useful commands, > usb reset > > will probe the bus and report any mass storage devices it finds. > On a Pi3 this command would repeatedly come up empty, only to work > on a subsequent try. > > If you want to boot from a usb device try > run bootcmd_usb0 > after it's been found. > > Since moving to a Pi4 (also running -current) I've had less trouble, > so the Pi you're using seems to make a difference. > > I generally work through a serial console, but I believe u-boot knows > how to talk to a usb keyboard and hdmi display. > > You'll likely get a wider readership of posts in plain text. > > Good luck, > > bob prohaska > > On Wed, Apr 07, 2021 at 10:30:33PM +0200, Peter Cornelius wrote: > [Loads of HTML crap] G'day, folks, Is there, by chance, anyone out there who has a JMicron jms561-based USB3 = 'umass' kind of device up & running who can share experience or quirks, pl= ease? I'm trying to get mine [2] to work under FreeBSD [3] but it does not even = show up with usbconfig list. While, with Raspbian, I was able to make it w= ork easily. Thanks, Peter. =2D-- [1] I believe, https://www.jmicron.com/file/download/1026/JMS561_Product+B= rief.pdf [2] https://wiki.radxa.com/Dual_Quad_SATA_HAT [3] Note: Later builds so far have not booted despite of current u-boot (M= arch 2021) FreeBSD rpi4 14.0-CURRENT FreeBSD 14.0-CURRENT #1: Tue Feb 23 02:30:31 = UTC 2021 root@rpi4:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC arm64