From owner-freebsd-arm@freebsd.org Sun Apr 11 21:01:53 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 6F1C65DD510 for ; Sun, 11 Apr 2021 21:01:53 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic305-21.consmr.mail.gq1.yahoo.com (sonic305-21.consmr.mail.gq1.yahoo.com [98.137.64.84]) (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 4FJPSJ3hyQz4bVB for ; Sun, 11 Apr 2021 21:01:52 +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=1618174910; bh=s0uTCBiD+vUFoxHg4rq/VLqsooQH14towQaszzEEFs0=; h=X-Sonic-MF:Subject:From:Date:To:From:Subject; b=WFJHd9bLXJ4hbyhmERoApuU117wTM9DGv0/2H04RkL1zIHoagDWtPNhXhvqI9veXa0J/VnU+BAvMSdDDdQhIOWzKhPYX7tSO51bAJAe38yledspdhR0Gv9tZzpYg+YWNMyVuEqqNqM9nNbcvura5uH6Tvnx6EmnjMFrku4ZZmJWgdkrR8m+CFfYuYltHtNxi31HwPYFS5h6KEurX+Tev/QxTN/bs6PPc4/tAR7UqWmWCXN1CKVGM072aWlx/edRmXPoJtqEJVtkCAfC9823mrpZ1+2nE6J99UW0sNps1PwLHA2KVFUOvE+n9JP4+AwMMjaHBWk5uos3TCyO3Gr55Tg== X-YMail-OSG: 1jW.M28VM1k_LLroEKZ9LJ6pjuqok8VqSllI8fTJL8skZx4DckaYUjDztSEBlia m1DwD4o72DdNbEi43mD5xELz.jzLQbIf_mSfO9a7ggiOb2f2Co2i1LupopJvjBJl8z_Ll8wlgsKd JT8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MqXWL2KpUYcrTqozzXGF.cqHtL7VsWgw6hEv69Ewzq2MTFgxxDfX59X5CanHXo6pyCzPn xF5gIMFntESydBQpQn5Qr_IqKX0O9wTLHSC11cqx_.Vtfi_JKZkjeetQcNotY8qRgtteyvtUiyK4 DC_0D1dgjwYI5EA4rkkvER54dO6zvmqKq03LKH2.1sPuVTJ5R1Xe59FT7vXV_MJHOPDMEhfEhCiU ixbK6S0yyVjWS6HQlX91lYi7eX7q8B3Q.PkMLNBZe4Cgg.LiAk3nAhgZCJzmR9HL_QedC X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic305.consmr.mail.gq1.yahoo.com with HTTP; Sun, 11 Apr 2021 21:01:50 +0000 Received: by kubenode571.mail-prod1.omega.gq1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 80a1d83d394498cf2579dce1558a8aa6; Sun, 11 Apr 2021 21:01:47 +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: Raspberry Pi 4 CM Freebsd 13 From: Mark Millard In-Reply-To: Date: Sun, 11 Apr 2021 14:01:47 -0700 Cc: freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <628DFDA4-85B8-414F-9C06-2EFA9FA8220A@yahoo.com> References: To: Sebastian Schaack X-Mailer: Apple Mail (2.3654.60.0.2.21) X-Rspamd-Queue-Id: 4FJPSJ3hyQz4bVB X-Spamd-Bar: / X-Spamd-Result: default: False [-0.99 / 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(-0.99)[-0.989]; 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]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; ARC_NA(0.00)[]; SUBJECT_ENDS_SPACES(0.50)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[98.137.64.84:from]; MIME_GOOD(-0.10)[text/plain]; SPAMHAUS_ZRD(0.00)[98.137.64.84:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(1.00)[1.000]; RCVD_IN_DNSWL_NONE(0.00)[98.137.64.84:from]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.64.84: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: Sun, 11 Apr 2021 21:01:53 -0000 On 2021-Apr-11, at 03:35, Sebastian Schaack = wrote: > I tried to install Freebsd 13 RC5 on my raspberry pi 4 CM . I copied = the img to the emmc , but it does not boot instead I got a uboot promt. >=20 > Just to make sure that I did nothing wrong , I copied a raspbian to = the emmc and boot wents fine, but ok no surprise. =20 >=20 > Anyone got freebsd 13 to boot on the cm4 ? What do I have to to that = uboots know where my system is located ? I do not have access to a CM4 so my notes here are more generic than specific testing would produce. Unfortunately, you likely have to deal with finding a combination of materials that work together for the CM4: pieeprom-*.bin vl805-*.bin start4.elf and other RPi firmware files (including bcm2711-rpi-cm4.dtb ) u-boot FreeBSD's loader, kernel, world vintage(s), here 13.0-RC5 For example, https://github.com/u-boot/u-boot/commits/master/board/raspberrypi/rpi shows "rpi: Add identifier for the new CM4" is in a 2021-Feb-21 commit. (RPi400 too.) That is after the version of u-boot that was used to make FreeBSD-13.0-RC5-arm64-aarch64-RPI.img.xz ("2020.10"). So, unless, some extra patch was dealing with such things, the u-boot in that image might not well deal with the CM4. "sysutils/u-boot-*: Update to 2021.04" only happened recently: 2021-04-07 07:57:52 +0000 . Previously it was based on "sysutils/u-boot-*: Update to 2020.10" ( as of 2020-11-07 18:59:37 +0000 ). So u-boot is something that you might have to update on the boot media after putting the 13.0-RC5 image on that media. FreeBSD-13.0-RC5-arm64-aarch64-RPI.img.xz is based on sysutils/u-boot-rpi-arm64 but from before the CM4 identifier had been added. I do not know if a 2021.04 of it would well span the CM4 in addition to the RPi4 and RPi3 (in aarch64 mode). There might be more configuration necessary for all I know. At this stage, for the CM4, it is probably always important to report what version of the EEPROM is involved in problem and success reports. To ask what version is in use for any success reports. That is because: = https://github.com/raspberrypi/rpi-eeprom/blob/master/firmware/release-not= es.md shows a lot of CM4 related development activity after the last version promoted to be a default (a.k.a. critical), back in 2020-Sep: The 2020-Sep-03 release was promoted on 2020-Sep-14. As I understand the CM4 had not been around all that long when the latest default was initially released. You can see the pieeprom-*.bin releases in: https://github.com/raspberrypi/rpi-eeprom/tree/master/firmware/critical/ (now also known as default via a symbolic link) https://github.com/raspberrypi/rpi-eeprom/tree/master/firmware/stable/ (now also known as latest via a symbolic link) https://github.com/raspberrypi/rpi-eeprom/tree/master/firmware/beta/ FreeBSD does not provide was to deal with EEPROM updates from FreeBSD. Testing alternative versions requires use of another context to deal with changing the EEPROM content. More than the eeprom vintage and u-boot vintage likely should be indicated in problem and success reports for the CM4 (and, possibly, RPi400): pieeprom-*.bin vl805-*.bin strings start*.elf | grep VC_BUILD_ID_ # such as start4.elf bcm2711-rpi-cm4.dtb # version/vintage identification is not so easy (bcm2711-rpi-400.dtb) strings u-boot.bin | grep 'U-Boot 2' FreeBSD's loader, kernel, world vintage(s), here 13.0-RC5 Note that an unmodified 13.0-RC5 image has: # 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) While this start4.elf has been observed to be reasonably well behaved for RPi4B's, I'm not sure that much is known about its behavior for CM4's. It is not so easy to start with a bcm2711-rpi-cm4.dtb (or the like) and figure out it version/vintage if one is unsure of it matching the likes of the start4.elf that is present. For 13.0-RC5 start4.elf and bcm2711-rpi-cm4.dtb are from the same RPi firmware release. Note that an unmodified 13.0-RC5 image also has: # strings /mnt/u-boot.bin | grep 'U-Boot 2' U-Boot 2020.10 (Apr 02 2021 - 04:02:14 +0000) That "2020.10" may mean that it is too early of a vintage for u-boot to well support the CM4 (or RPi400). Once stable/13 starts having snapshots, there may be images that will have "2021.04" u-boot to try (if one does not build and substitute things oneself). An unfortunate problem is fairly likely if more recent start4.elf and the like are required: the BETA and LATEST versions frequently do not work well across all the products. Just updating sysutils/rpi-firmware and building it and substituting the new material may be problematical overall. Grabbing firmware from elsewhere may end up being preferred for a time until a vintage is known to be working for the range of RPi* devices. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)