From owner-freebsd-arm@freebsd.org Thu Apr 8 20:02:34 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 285205BDC66 for ; Thu, 8 Apr 2021 20:02:34 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic307-55.consmr.mail.gq1.yahoo.com (sonic307-55.consmr.mail.gq1.yahoo.com [98.137.64.31]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4FGXHD71lYz4Xcm for ; Thu, 8 Apr 2021 20:02:32 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1617912151; bh=A03yfZadNSmPH9vmRbU7ZWKJ0LWY2ty4H/2mgKEgU/d=; h=X-Sonic-MF:Subject:From:Date:To:From:Subject; b=dOG4ckneFSMWPRHxr7g4Au37SULMLmR+wTl8/ZeapEQvxv8pdJEMiPhKhZFmBj9zR6jtfBjiSVGf/sl1nMo7Oc5+Bu0aLZoaQuHfAEeGC3HAnRbrkCbrKonKTwSEaPCYuoQ2qxTZnyRRmM5B6ToHGwEx15g8QKWJQAUJKoi6hoEnq6iM1VdQttbUWY67ttALnyEsxSnu2O95W9BAuWIxsh+4LEk4czxl5PSzgRKYWoca6zf1OleDLjFmcLtrhGN5SOMj3mSpztFCg7vf8EDECp1q++j0Im3qxYufX3AughSo/g0XnWj8KBoTlbDRrVb2/xF7F7KYV5sUht+D3jCA3A== X-YMail-OSG: JhpU7IcVM1kSh9Gm2Q5linXPYdbseXdj0ViyvZsMtrQTTevZMSJWqI.CC_7XSFM yCNswalqDiN1fxb70C3PkoHO14Gml1V6rh9PJ8RBOh35GFqvbrcQImArRbAkNmV2.bsD5TjK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AP5.3JZZI4Vd7Xhwareyttjo7O9NQo3YDUUa4c2Xo2_uBDveeoRL.Wmtswc2xf 0T6KDbMjv3o43UNQ8Qgo2ZxIo6Cvkd6Q2WcgBL4OPm6HyEj41OKVU28IPZH6urGCzMY2HVsTVRBu D0OqYlHrejJNbfzs_M6Dcx4L0CwmcspNIB0UP0uWf4XdHvVUaYrJaMvy5IyJt1v_9NKgFNI9LqNT VOeX.l4048ViQAQq_x6GcAxCJW0DFnp8NKw4l4gj8U22VQEh_EXQSdHIyR03S21eVNoyke0Lg51C 59DGZfT7vX1S.Pb_OO9UN6zg.Z.QcHjUiXVjfwAcvOkAe2_8gVpOvqRaFLYXJ7Jp7MceHvSI88gp Z6wLOKDo0FNoMO2d_xEO0DAt_fjNdBhzse25Yeg-- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic307.consmr.mail.gq1.yahoo.com with HTTP; Thu, 8 Apr 2021 20:02:31 +0000 Received: by kubenode508.mail-prod1.omega.ne1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 663c7298f388b4ebba0b69c2e3c54b68; Thu, 08 Apr 2021 20:02:28 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.60.0.2.21\)) Subject: Re: JMicron jms561 umass on arm64? From: Mark Millard X-Priority: 3 In-Reply-To: Date: Thu, 8 Apr 2021 13:02:26 -0700 Cc: freebsd-arm@freebsd.org, bob prohaska Content-Transfer-Encoding: quoted-printable Message-Id: <5099D78C-6656-4E4A-9F20-23F31A4397FE@yahoo.com> References: <20210407153732.GA50562@www.zefox.net> <20210407211513.GA53438@www.zefox.net> <20210408150934.GA99223@www.zefox.net> <694B7C84-E627-4E17-9148-4C4BB54FAD17@yahoo.com> To: Peter Cornelius X-Mailer: Apple Mail (2.3654.60.0.2.21) X-Rspamd-Queue-Id: 4FGXHD71lYz4Xcm X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.49 / 15.00]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; FREEMAIL_FROM(0.00)[yahoo.com]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; DKIM_TRACE(0.00)[yahoo.com:+]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; HAS_X_PRIO_THREE(0.00)[3]; NEURAL_HAM_SHORT(-0.99)[-0.993]; FREEMAIL_TO(0.00)[gmx.net]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; RBL_DBL_DONT_QUERY_IPS(0.00)[98.137.64.31:from]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; SUBJECT_ENDS_QUESTION(1.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; SPAMHAUS_ZRD(0.00)[98.137.64.31:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[98.137.64.31:from]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.64.31:from]; 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 20:02:34 -0000 On 2021-Apr-8, at 11:18, Peter Cornelius wrote: > Thank you, Mark and Bob, >=20 >>>> I expect that until you have the above RPi firmware build >>>> in place on the firmware-boot-stage media, all other >>>> efforts are going to be messed up by the older firmware. >>>> (I've no clue if the RPi firmware is a sufficient fix by >>>> itself for your context even with a modern FreeBSD >>>> relateive to what was fixed, but the RPi firmware likely >>>> is a necessary part of the overall fix.) >>>>=20 >>>=20 >>> I forgot to mention that before initially booting FreeBSD on >>> my Pi4B I booted it with RasPiOS and ran sudo apt update/upgrade. >>> That likely fixed the firmware on the Pi without intelligent >>> intervention. >>=20 >> How would booting RasPiOS via RasPiOS media and running >> apt update/upgrade automatically update the firmware that >> is on the FreeBSD media, files like start4.elf on the >> msdos file system on FreeBSD boot media? >>=20 >> I was not writing of things like the eepprom update that >> enables USB booting on older RPi*'s that did not support >> such initially. I explicitly mentioned start4.elf and >> "firmware-boot-stage media". >>=20 >> Unless there were more steps than described, I doubt the >> activity updated what I was refering to. >=20 > I think we may have some confusion here. There was some sort of EEPROM = firmware upgrade [4] which I also did last round Raspbian was up (either = Jan 11 or Feb 16). I also had to do that last year (August?) in order to = make the RPI4 boot FreeBSD at all. I think the EEPROM upgrade tool is = too Linuxish and does not run under FreeBSD (at least I failed). I'll note that the official eeprom versions for USB are are: ( see = https://github.com/raspberrypi/rpi-eeprom/tree/master/firmware/critical = ) (The newer names "default" and "latest" were handled via adding symbolic links to the old directory names. But the RPi folks have been frequently using the newer terminology after getting tired of confusions from the old terminology.) default (historically a.k.a. critical): pieeprom-2020-09-03.bin with vl805-000138a1.bin and those work in the RPi4B's that I have access to: it is what I'm using in all of them. latest (historically a.k.a. stable): pieeprom-2020-09-03.bin with vl805-000138a1.bin (both matching the = above) pieeprom-2020-12-11.bin with vl805-000138a1.bin pieeprom-2021-01-11.bin with vl805-000138a1.bin pieeprom-2021-01-16.bin with vl805-000138a1.bin pieeprom-2021-02-16.bin with vl805-000138a1.bin pieeprom-2021-03-18.bin with vl805-000138a1.bin However, various of those have problems and none has reached a status of being classified as a recommended "default". More recent ones tend to, in part, fix parts of earlier ones from the list but may introduce other issues. Unless one has specific evidence to the contrary for their context, I'd recommend: pieeprom-2020-09-03.bin with vl805-000138a1.bin (i.e., the most recent default/critical files as things are now). >> Unless you go back far enough into last year, the >> RPi* firmware needs to that vintage that has: >>=20 >> # strings start4.elf | grep VC_BUILD_ID_ >> VC_BUILD_ID_USER: dom >> VC_BUILD_ID_TIME: 12:10:40 >> VC_BUILD_ID_VARIANT: start >> VC_BUILD_ID_TIME: Feb 25 2021 >> VC_BUILD_ID_BRANCH: bcm2711_2 >> VC_BUILD_ID_HOSTNAME: buildbot >> VC_BUILD_ID_PLATFORM: raspberrypi_linux >> VC_BUILD_ID_VERSION: 564e5f9b852b23a330b1764bcf0b2d022a20afd0 (clean) >=20 > I am aware of bug 252971 [5] and can confirm that I do have this = version. On the media that had a 2021-Feb-23 FreeBSD kernel build? (I'm not sure of the kernel's status back then.) > Actually built on March 3 this year. Before that, I had to go back to = some September? October? U-Boot I think that u-boot is being confused with other things here . . . The commit-hook notices in: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D252971 go like follows . . . comments #16 and #17 are not for any sysutils/u-boot-* but for sysutils/rpi-firmware . Comments #26 and #29 and #30 are for FreeBSD's kernel, not u-boot. Comments #31 and #32 and #33 are for sysutils/rpi-firmware again, not u-boot. There are no commit-hook notices relative to u-boot at all. I'll note that comments #31 and #32 and #33 are the ones for for update that switched sysutils/rpi-firmware to the RPi* firmware build with date: VC_BUILD_ID_TIME: Feb 25 2021 (This is not u-boot at all.) The RPi folks tagged that build as 20210303. (They do not tag based on the build-date but based on something like the date it was "approved as to-be-tagged".) > to get the box back up running with USB (such as to use my USB = keyboard & mouse, for instance). I see no evidence that u-boot changes were involved. If specific u-boot changes (vs. sysutils/u-boot-*) vintages being stable can be identified, I'd like to be able to identify them. (There is one known issue for u-boot, in that it does not correctly/fully handle a USB device that has multiple storage LUNs in the device. That is still true as far as I know. There was some investigation of this during the isolation of combination of things worked. That is how we discovered that it was a u-boot issue.) > I just connected a USB3 hub with a USB2 memstick and a USB3 disk to = the USB3 hub of the RPI4, and both storage devices are detected = immediately on either USB3 port of the RPI4. >=20 > Which gives me a sensation of looking in the wrong spot... >=20 > Thanks again, and >=20 > All the best, >=20 > Peter. >=20 > [4] = https://jamesachambers.com/raspberry-pi-4-bootloader-firmware-updating-rec= overy-guide/ > [5] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D252971 The RPi* situation was confusing enough, with multiple problems in multiple sets of firmware/kernels and combinations. I'm trying to not leave a fuzzy identification of what releases were at issue and what modern combinations are known to generally work. Folks have already spent enough time on bad combinations of materials in recent months. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)