From nobody Sat Apr 23 09:42:27 2022 X-Original-To: arm@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 3263819972D9 for ; Sat, 23 Apr 2022 09:42:43 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic317-22.consmr.mail.gq1.yahoo.com (sonic317-22.consmr.mail.gq1.yahoo.com [98.137.66.148]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4KlmXd3RVZz3slQ for ; Sat, 23 Apr 2022 09:42:41 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1650706954; bh=Fl0nQeNy+t6cLk3Nr5aVWGraSNZiN2DaeDZuGxjC6bs=; h=From:Subject:Date:To:References:From:Subject:Reply-To; b=hPwL6Zvcsdz2bF9K5SAzBwRM+Dptl6sqKYgYjA7Nz2u1uBGr4o3Ep47YoTlp/5MJxev+HopkejjooAy6hQURXCsR29e3lIcDUet3OhuarGYQaYbPyevCkLHGc735XfcWDyEWxYzQYPLcOLPy+vEyOmRiiOuagEcSQf5ZpZaj4wXTtDN/KmzPuHKdozGC0rIHDsZE9SGfs3NU+WTveENcNqmO5RL3+nzC9zFooSt0SiaacmDzxbDBi5RBtI0AE9GRwnStSwD/QulUxgu58xM78G8egGzcvFtUCGFe/1K3Epup1alXKwLCzRSXSFb8WPRlLGV89Fvs18C72evbmhV1eQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1650706954; bh=vCjZ4xQZURiwUigcHP4z8LcjO6j47FiPt6DhBzfYSmM=; h=X-Sonic-MF:From:Subject:Date:To:From:Sub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.P8o3V20jDXW VwlOIzzjySE9gl3bUQmkKTWjg__IM6vk_0wMDJKuhFM24ZFimBWoqXLKxVeSenGZa1vueGY65VZu Y5P64Kb.JP0Yvbc4N2CH3i1Kc8iSFk_wCGVdeEIv8Bt3EWD1g.1uw.wPaWQv6UkWGN9EjdxA2Mfb 80jvVLH1Q8XqPvpw9KzbNaplnX054VJtXRW1oLnaCHkhwoPgC7lKVGSHNOghS.CEbCG0xCvRosq_ chGqf8epnv4cu.eJWgXfIW7lKY386kelVw9exSvOVKpqcF.ke25b1H3VfIMLgQw6N23CkFnOdla7 SqFrtLB2g_BD_KitHXGpugRvus0BxLFApajVqY2KcYIMrosn3FEw48_izTjBY7R1M_fnp5JSt1ot CUjFk2zxf6i02sOmipJIEDKgFxEIh8dmFy2uD1auQML7ZIhUOXWIGVVizQIEoBwPHlsKwuMwtmwS Cl8cD.sg5rY356H1UXOpzkHu4cSn7GMukABJjIb0L909lxoQzS9Hawj6F6pLzjjIlmWzPjQL_p.N r7SI- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic317.consmr.mail.gq1.yahoo.com with HTTP; Sat, 23 Apr 2022 09:42:34 +0000 Received: by hermes--canary-production-bf1-7cfdddd556-pbjl5 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID b6139de870b34cbc0823fcf051557cc2; Sat, 23 Apr 2022 09:42:30 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Looks like U-Boot 2022.04 may be fairly useful Message-Id: Date: Sat, 23 Apr 2022 02:42:27 -0700 To: "freebsd-arm@freebsd.org" X-Mailer: Apple Mail (2.3654.120.0.1.13) References: X-Rspamd-Queue-Id: 4KlmXd3RVZz3slQ X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=hPwL6Zvc; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.66.148 as permitted sender) smtp.mailfrom=marklmi@yahoo.com X-Spamd-Result: default: False [-3.19 / 15.00]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; NEURAL_HAM_MEDIUM(-0.72)[-0.721]; FROM_HAS_DN(0.00)[]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-0.999]; RCPT_COUNT_ONE(0.00)[1]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; RCVD_IN_DNSWL_NONE(0.00)[98.137.66.148:from]; NEURAL_HAM_SHORT(-0.97)[-0.968]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; MLMMJ_DEST(0.00)[arm]; FROM_EQ_ENVFROM(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]; RCVD_COUNT_TWO(0.00)[2]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim] X-ThisMailContainsUnwantedMimeParts: N I did the following primarily as a learning exploration but I figured I'd report some on it. I have the following devices booting based on U-Boot 2022.04 built via poudriere-devel. I used testport and bulk and used portlint. I did not update RPi* firmware: this was just substituting the new U-Boot version into a working environment to see if it still works. Xunlong Orange Pi Plus 2E: U-Boot SPL 2022.04 (Apr 23 2022 - 03:19:10 +0000) DRAM: 2048 MiB Trying to boot from MMC1 U-Boot 2022.04 (Apr 23 2022 - 03:19:10 +0000) Allwinner Technology CPU: Allwinner H3 (SUN8I 1680) Model: Xunlong Orange Pi Plus 2E Pine64 Rock64: U-Boot TPL 2022.04 (Apr 23 2022 - 03:14:35) LPDDR3, 800MHz BW=32 Col=11 Bk=8 CS0 Row=15 CS1 Row=15 CS=2 Die BW=16 Size=4096MB Trying to boot from BOOTROM Returning to boot ROM... U-Boot SPL 2022.04 (Apr 23 2022 - 03:14:35 +0000) Trying to boot from MMC1 Card did not respond to voltage select! : -110 spl: mmc init failed with error: -95 Trying to boot from MMC2 NOTICE: BL31: v2.5(release): NOTICE: BL31: Built : 05:34:22, Dec 8 2021 NOTICE: BL31:Rockchip release version: v1.2 U-Boot 2022.04 (Apr 23 2022 - 03:15:10 +0000) Model: Pine64 Rock64 RPI 4 Model B (0xd03114): U-Boot 2022.04 (Apr 23 2022 - 03:14:35 +0000) DRAM: 7.9 GiB RPI 4 Model B (0xd03114) Most of that is based on various FreeBSD main [so: 14] vintages, some from late March and others going back into even late last year. (I've not synchronized the systems in a long time.) But RPi4B was also booted via 13.1-RC4 with the u-boot updated as well. A simplified sequencing of the exploration is . . . I started by updating: modified: devel/aarch64-none-elf-gcc/Makefile modified: devel/aarch64-none-elf-gcc/distinfo deleted: devel/aarch64-none-elf-gcc/files/patch-libcpp_lex.c modified: devel/aarch64-none-elf-gcc/pkg-plist modified: devel/arm-none-eabi-gcc/Makefile modified: devel/arm-none-eabi-gcc/distinfo modified: devel/arm-none-eabi-gcc/pkg-plist to be based on gcc 11.3.0 (the first non -devel gcc port to have a bug fix for how it interacts with modern binutils). Without the fix U-Boot 2022.04 would not build. I then updated: modified: sysutils/u-boot-tools/Makefile modified: sysutils/u-boot-tools/distinfo to be based on 2022.04 . (Turns out that this does not run into the toolchain bug that u-boot builds run into. So gcc 11.3.0 is more optional here. Originally I used 11.2.0 --which still has the toolchain bug, as I discovered later.) I then updated: modified: sysutils/u-boot-master/Makefile modified: sysutils/u-boot-master/distinfo deleted: sysutils/u-boot-master/files/patch-common__bootm.c as well. ( Actually, that last is now in a sysutils/u-boot-master/files/patch-boot_bootm.c .) This did run into the toolchain bug and, for now, 11.3.0 is the fix, at least until gcc9 or gcc10 gets an update that has the fix. The fix was produced after gcc8 went out of support so gcc8 will not be updated by the gcc folks to work correctly with modern binutils for the issue in the bug. For: modified: sysutils/u-boot-rpi-0-w/Makefile modified: sysutils/u-boot-rpi-arm64/Makefile modified: sysutils/u-boot-rpi/Makefile modified: sysutils/u-boot-rpi2/Makefile modified: sysutils/u-boot-rpi3/Makefile modified: sysutils/u-boot-rpi4/Makefile I removed U_BOOT_SLAVE_PORTREVISION_2021.07 and the 1547145/raw patchfile item that does not apply. (I have other RPi* patches that I've had for a long time.) I do not actually have access to a rpi-0-w but it fit the editing pattern. For rpi-0-w, the build is untested. The other u-boot slave ports ( u-boot-orangepi-plus-2e , u-boot-rock64 , u-boot-pine64 , u-boot-sinovoip-bpi-m3 ) did not need changes to build. I've not had access to a working pine64 or u-boot-sinovoip-bpi-m3 in years at this point. So: those builds are untested. Exploring adjusting things for portlint and how it handled various things means that I moved around more text than strictly necessary. I noticed an oddity here or there that I took a guess about the appropriate fix, not that I actually know. As for pkg-plist files, I mostly assumed that what was put in the staging area was correct and listed it. I do not have independent knowledge of what should be there. There are both files that no longer exist and files that are added. testport reported a type of example of something that I removed from what I originally generated. If I end up with access to a 8 GiByte RPi4B Rev 1.5 with the C0T stepping (no 3 Gibyte limitation, for example), I'll probably use these builds to explore booting it. That might have to involve RPi* firmware updates. My understanding is that there were dtb changes at some point that FreeBSD is not set up to handle --even for RPi4B's that now work with the firmware from the port. But I could be wrong about such. === Mark Millard marklmi at yahoo.com