From owner-freebsd-arm@freebsd.org Mon Jan 4 08:51: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 888574CF3A0 for ; Mon, 4 Jan 2021 08:51:07 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic310-20.consmr.mail.gq1.yahoo.com (sonic310-20.consmr.mail.gq1.yahoo.com [98.137.69.146]) (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 4D8Tqt327Rz4R3L for ; Mon, 4 Jan 2021 08:51:06 +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=1609750263; bh=F6xzlzLcA09dVVJWWrmMmJa+OE/6XjhmIAiKmAqL1Fo=; h=Subject:From:Date:To:From:Subject; b=DNx7rv6Osum/fVZAXeezTZd/l3macaqT1eeWrMmQuApyL0wQ4TL5HcW8NH3nnB0KH7d71B/RaW/Niap/4OgetLLVnYwglu8iYYILbNLKw7LvpUNc1NhRk+MMmIQHkvZenJ+GlqXE6nuljjiSPaImJONZ5u45hLGQPSY4pgYt/q5AgFI7zNG1L+Ca9sD6pSrwCFuloUPHNkrVV//tGIozd+Ubw1zR6/GMxSXyQR2qA3OKiJmQGvvRlRs8GZdMnxSkLGj15lV97Ocs0rgXjvtFQbk+hUuz6kfFSu/VGsryBQhZPWA/PKGr1SYOwbygztRDxehs1VyghcVaLcWs4AikVg== X-YMail-OSG: soOmIdMVM1n222GzJMrMuQUPLVfQXtKt8rXGRknppJ9NzQdDGptdLcBqo75tXNp 2NGjDSRtr9QtU9IPusi6MyjKSF3iIY.C4bR.MyLIIwpa.PfQ5kbVbhv9zibEclozkyYm8Y7OsGKe FLR61PN0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9_kYytDRbXXyeItMNIuWcP7nmQdv2fMF.iBKMGD5wSzAiTsCBG__biIlzu KzPN.wxNhPiSsdhyOplwMmTtpdUaV8I_sJERL7Fwle8omk.8X.6H0CbMHnjL3YIYpiDwRcwOKyse XS5MGzwM_bjGr6zhmyXDgDx8dE.VdZSF4ORdO7KwC_mR_U6GLA6Fn5xU6od9sfpCzTz5vocDic3. 4TWpsCAm5SmnHlkLgcrk4 Received: from sonic.gate.mail.ne1.yahoo.com by sonic310.consmr.mail.gq1.yahoo.com with HTTP; Mon, 4 Jan 2021 08:51:03 +0000 Received: by smtp409.mail.ne1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 42f9d4912fc7d6038845555e5ab48039; Mon, 04 Jan 2021 08:50:58 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.40.0.2.32\)) Subject: Re: RPi4b 8GB 13.0-Current, XHCI broken, wrong U-Boot ? From: Mark Millard In-Reply-To: <819ED63C-FB4C-41B6-BB06-3043C6F76D54@yahoo.com> Date: Mon, 4 Jan 2021 00:50:57 -0800 Cc: freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <007c8658-b7b6-6852-536c-9c36af64506b@ip-ether.net> <5B626DCC-6F7C-4554-803C-F488A1ED9BEB@googlemail.com> <56d10ea4-3284-3e4c-9521-8bf1008caa2b@ip-ether.net> <26D146B8-0362-4008-9A1F-A6CD6B1479BB@googlemail.com> <6610c9a3-1e61-b7e5-c537-3080dd7ee8ae@ip-ether.net> <44de05f0-0c41-b6c8-b3f6-a4374f20eca1@ip-ether.net> <86961F76-0B50-48C5-B584-BB9DA21CC588@yahoo.com> <819ED63C-FB4C-41B6-BB06-3043C6F76D54@yahoo.com> To: Andy McClements X-Mailer: Apple Mail (2.3654.40.0.2.32) X-Rspamd-Queue-Id: 4D8Tqt327Rz4R3L X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.50 / 15.00]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; DKIM_TRACE(0.00)[yahoo.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; NEURAL_HAM_SHORT(-1.00)[-1.000]; 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.69.146: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)[]; 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.69.146:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[98.137.69.146:from]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.69.146: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: Mon, 04 Jan 2021 08:51:07 -0000 On 2021-Jan-4, at 00:35, Mark Millard wrote: >=20 >=20 > On 2021-Jan-3, at 23:54, Mark Millard wrote: >=20 >> On 2021-Jan-3, at 11:33, Andy McClements wrote: >>=20 >>> On 03/01/2021 18:29, Andy McClements wrote: >>>=20 >>>> Further on this, I have just done another test by replacing only: >>>>=20 >>>> bcm2711-rpi-4-b.dtb >>>>=20 >>>> on the FreeBSD 13.0-CURRENT 20201224 img, with the one from the RPI >>>> firmware 20201227 release. >>>>=20 >>>> This **allows booting from USB**, which fails on the stock 20201224 = img. >>>>=20 >>>> So it seems to me that patch D26853 **is not required**, if the = upstream >>>> file is now working OK. >>>=20 >>> ************************* >>> * A P O L O G I E S ! * >>> ************************* >>>=20 >>> I have just noticed that with the 20201227 firmware version of = 'bcm2711-rpi-4-b.dtb', 'genet0' is missing. USB disk boot is fine, but = the onboard GE is not recognised. >>>=20 >>> The only way I can get everything working on my RPi4b 8G with = FreeBSD 20201224, is to use the D26853 patched version of = 'bcm2711-rpi-4-b.dtb'. >>>=20 >>> The firmware version I've been referring to as 20201227, has files = in it with that datestamp, and was obtained from: >>>=20 >>> https://github.com/raspberrypi/firmware/archive/master.zip >>=20 >> The Raspberry Pi folks warn against picking up firmware from >> Master unless requested to by them. Although this is indirect >> via referencing a tool that gets materials from master. See: >>=20 >> = https://www.raspberrypi.org/documentation/raspbian/applications/rpi-update= .md >>=20 >> There are also stable and next branches, next being the progression >> toward the next stable. There are also tagged officially-identified >> versions. (eeprom firmware is not handled the same as this and is >> not covered here.) Looks like I got the definition for "next" wrong. The notice about the future move to the 5.10 linux kernel is at: https://www.raspberrypi.org/forums/viewtopic.php?t=3D288234 It describes next vs. master via: QUOTE We will do this in a few stages. Starting now, we are updating the = "next" firmware branch to the 5.10 kernel. Assuming testing is positive, we'll update the master rpi-update = firmware branch. Eventually the 5.10 kernel will appear with "apt upgrade" and on new = RPiOS images in the future. . . . EDIT: The next upstream LTS (Long Term Support) kernel is 5.10, and we = have now switched to testing this. EDIT: master branch of rpi-update now gets 5.10 kerne. next branch is = now dormant END QUOTE >> It looks to me like the following are the firmware changes since >> stable and the most recent tag: >>=20 >>=20 >> 2020-Dec-01 (I'm unsure of the timing/status of this one vs. stable >> or the most recent tag: same day) >>=20 >> firmware: Switch DA9121 PMIC to PWM mode when ARM > 600 MHz >>=20 >>=20 >>=20 >> 2020-Dec-8 or 9 (9 being the Hexxeh copy): >>=20 >> firmware: arm_dt: Handle parent interrupt controllers when masking >>=20 >> firmware: config: Add cm4 and pi400 config section filters >>=20 >> firmware: MMAL/IL/ISP component: Set the ISP boost frequency once on = open >>=20 >> firmware: sdcard: Remove legacy NOOBS support to support booting from = primary partition 4 >>=20 >> firmware: arm_loader: Move 2711 RAM to PCIe address 16GB >>=20 >> firmware: video_decode: Add parameter to disable timestamp validation >>=20 >> firmware: Imx477 camera tuning fixes >>=20 >>=20 >> 2020-Dec-14 or 15: >>=20 >> firmware: Use DMA40 for PWM audio >>=20 >> firmware: imx477: Replace existing 720p120 mode with a new 1332x990 = 120fps mode >>=20 >> firmware: arm_loader: Allow max_framebuffers=3D0 to disable = framebuffers >>=20 >>=20 >>=20 >> 2020-Dec-15: >>=20 >> firmware: dmalib: Allow sdcard to borrow channel 6 >>=20 >>=20 >> (I omit the kernel-only update notes.) >>=20 >>=20 >> So: There are things like moving the 2711 RAM PCIe address >> and putting channel 6 to use for the sdcard and using DMA40 >> for PWM audio. But I do not claim to understand the >> implications. >>=20 >>=20 >> NOTE: The above are in branch next as well as master. >>=20 >>=20 >>=20 >> The most recent tag is at: >>=20 >> https://github.com/raspberrypi/firmware/commits/1.20201201 >>=20 >> This is likely what is officially distributed for general >> use. >>=20 >=20 > I found another aspect of the changes that affects dts files, > used to produce the .dtb files: the .dts files come from their > linux source code and . . . >=20 > The 2020-Dec-15 commit switched from linux 5.4.81 to 5.10.0 . > Recent sequencing of kernel versions in master: >=20 > 2020-Nov-23: 5.4.79 > 2020-Dec-08: 5.4.81 > 2020-Dec-14: 5.4.81 (Yep: again. Seems to have a fix.) > 2020-Dec-15: 5.10.0 > 2020-Dec-18: 5.10.1 > 2020-Dec-23: 5.10.2 > 2020-Dec-27: 5.10.3 >=20 > If I understand right, the 5.10.?? kernels are intended to > have more in common with their linux upstream than their > 5.4.?? kernels did, partially via contributing to upstream. >=20 =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)