From nobody Sun Aug 13 04:25:54 2023 X-Original-To: freebsd-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 4RNkxH6Pbjz4mRZk for ; Sun, 13 Aug 2023 04:26:11 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic305-19.consmr.mail.gq1.yahoo.com (sonic305-19.consmr.mail.gq1.yahoo.com [98.137.64.82]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4RNkxH43P8z3XhG for ; Sun, 13 Aug 2023 04:26:11 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1691900769; bh=KFr+HWcOzgqCFxv/zA6q2xbiVcLwVEgZnOkV5yY18s0=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=LTk7I+VkQR4CT7d+X6fGslN4nKRsJDprZnAREpBI4UvxZCVebUxd0d5wmCT83/Qk8qZvEea+tjrQiQsIMHY1PlgwxzSU58wA8u+DCt5XYH10vLYslFjEoTh/nb4tmJpSRV+Lq59T32gQEjZLAwc3QlEadCpcVoGkq4ecY8oIzmSvtNzdhkup0eSHxdSeU7mFPZpa+qDkk9gE+6KlBwq502mxiJUtcTi9a9fqswrpK2sp6lInb/5va8DH5eMhbI8dMDzdBNNfzuz3oW+8QbuqUQ36HvX6kUwIlet63LgiGnVw/dICKqr9eB16bzBG6GpmB4MsBrYnlZDJrZbEIIqUgA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1691900769; bh=i05mgbBYH2h+tB6gih5LELUHiFCHSmqn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MbhSgj2DDNA AwWcX_zdCM1C75a0Ty9zGl5NC4kkw1bTyaOuerRi_GE650J6r6cGj9jQrli8G3g9GhuOMUfRIOJ2 zUTb_Vj4O3nvpP6a9eTGpSg.Uvzp53W0uMEGiBnbOs39PfwJUo2TLSkW6qdtUBKCmstKj9idRtRb pgwzX4pmT2KcCV7pIbyrT54nZwwurEsCAFblcuoEjIGE4BMpN6GMSUm9rXGrhELhvIQxPbB4aO7I pwbm0O_39btgi835iEhZfPoPo6.fmSt_HFK71n.25ElvLJHrEiOGItiqttTPKbr2SPV00uGxOJNc V9lrjqVBpG6UMNMtlMAUahZN6n_GJILyMd4jmLzYTxr8CXDU8FO9d7T5wOLJnhtV02SAyTY7QREU U_FLi3jo4GbSxyTgj5LE8JIWl1RNp0c.yMNHdghyTer6cuylwe4n6SlFrYDulRNspO_jbr.2Ju_s LvdxdlVRa.qZRdTt4f1WhyfwBy3he4Bz4dzpDMgMtjvI5hkja1zjyxwOIhPRT3KN3ICw4e8.McD3 JgVjZeGT36z8ZifaI92.sLLngobfePXQEglBmLnglWshZvrbV2_4LF7uNnv7t.uy4_yFIi2yYmE7 2 X-Sonic-MF: X-Sonic-ID: 87e4e991-a3db-4ced-8bae-0da39a46a178 Received: from sonic.gate.mail.ne1.yahoo.com by sonic305.consmr.mail.gq1.yahoo.com with HTTP; Sun, 13 Aug 2023 04:26:09 +0000 Received: by hermes--production-ne1-7b767b77cc-4t526 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID ef8e242645228a963a52142df8df9924; Sun, 13 Aug 2023 04:26:05 +0000 (UTC) Content-Type: text/plain; charset=us-ascii 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 16.0 \(3731.700.6\)) Subject: Re: ALPHA1 on Raspberry Pi 3B+ [added: and RPi4B] From: Mark Millard In-Reply-To: Date: Sat, 12 Aug 2023 21:25:54 -0700 Cc: freebsd-arm Content-Transfer-Encoding: 7bit Message-Id: References: To: Mike Karels X-Mailer: Apple Mail (2.3731.700.6) X-Rspamd-Queue-Id: 4RNkxH43P8z3XhG X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US] On Aug 12, 2023, at 17:42, Mike Karels wrote: > I booted 14.0-ALPHA1 on a Raspberry Pi 3B+. It boots and runs, but there > are some rough edges that probably indicate things that are broken. During > the boot, there are 56 occurrences of this sequence: > > clk_fixed2: disabled on ofwbus0 > clk_fixed2: Cannot FDT parameters. > device_attach: clk_fixed2 attach returned 6 The large count is from a small number of examples. Each internal scan repeats the messages for each example, unless eventually found. I learned this when I had something being looked for too early, before the definition was added to match up with. Everything worked because of the retries eventually finding things after they had been added, but it produced lots of messages first. But, in that case, there was material to find. The RPi4B's get clk_fixed4's instead, with a similar overall count. For the RPi4B the cause is the "fixed-clock" material below (from a diff of .dts files produced from the .dtb files): - cam1_reg { + cam0_clk { + #clock-cells = <0x0>; + compatible = "fixed-clock"; + status = "disabled"; + }; + cam0_regulator { + compatible = "regulator-fixed"; enable-active-high; - gpio = <0xa 0x5 0x0>; - regulator-name = "cam1-reg"; + regulator-name = "cam0-reg"; status = "disabled"; }; + cam1_clk { + + #clock-cells = <0x0>; + compatible = "fixed-clock"; + status = "disabled"; + }; + cam1_regulator { + + compatible = "regulator-fixed"; + enable-active-high; + gpio = <0xb 0x5 0x0>; + regulator-name = "cam1-reg"; + status = "okay"; + }; I doubt that cam0_clk and cam1_clk are ever added to later find, as stands, making every scan report the 2 fixed-clock references each time. This is something that I reported on on the lists back on 2022-Apr-30. But it was mixed with a crash report that turned out to be a separate issue (and was fixed some time ago). It would be possible to decompile the .dtb used for RPi3B+'s to see if cam?_clk fixed-clock's are present. > Two other failures: > > bcm2835_cpufreq0: on cpu0 > bcm2835_cpufreq0: Unable to find firmware device > device_attach: bcm2835_cpufreq0 attach returned 6 > gpioled0: on ofwbus0 > gpioled0: failed to map pin Those are more than noise messages. > The red LED that's on when the system is halted stays on after boot; not > sure if that's related to the last item. > > Looks like the kernel needs adjustments to correspond with the new DTB. > > I'll append the full dmesg.boot. . . . === Mark Millard marklmi at yahoo.com