From nobody Sun Aug 13 16:10:39 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 4RP2ZV4Zthz4mKQD for ; Sun, 13 Aug 2023 16:10:58 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic303-24.consmr.mail.gq1.yahoo.com (sonic303-24.consmr.mail.gq1.yahoo.com [98.137.64.205]) (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 4RP2ZV1zS2z4LxP for ; Sun, 13 Aug 2023 16:10:57 +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=1691943055; bh=4FddNg+sAeWmmqNYBSnecRY+gCWmDVpHAXhBDNM5Soo=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=Zu1Zu0g5cOwQLlyXFUmTuXxpBvMaSEmKGft6n3mXJhEL1oWPuNk/9jPT2JNUAiQwjhnCFHgP1kNUgXYMFP3Ffr2tdbu+iUd4RsvmZLGGdMY85lHwlgT1kdoG6dUk2nqv+U1mMRafCWw/e19wUVrHw/dHvIoGgQmuD5M7WkhVdW56gFBP61raDNni6Gyjq/PRS00we3U+l6sY5RZ/b2HGOYEtvzzDqBTKTC6qZOyqfTqY6zejEtkxB2aOn0fIXiSKsAV0Lf/zPr6VJTWA2W0404oW2HJQMOlHblxrdjfIKJ2pENMSCfpMIkXr5KbwAWZG3j8xVTzwaDhMOyx+IpPYng== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1691943055; bh=R4W7CYpZICRE7y0OXy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Jt0K_jRZoxV1yoVMaFj6rkwy2lUvWgjlBV8D5GIPHXHFG5bG5ch5nkjlkWKJxbi4YwJ w66zf2hRVOz1iBZgu5vf6esN6upbvuxYs2TbRE40z3HY5nh_I282znPHMiTRaKTUu8f2lUv_5yLf 4DUvbA4P3dHQpJIys7mTPiLh_VcAdCrz1Dd2gQp3xhtKgSMuqShuC6wN._NO3fedi2_CuZYuvMMo 91nLH2VmMug1BY4hLiFoTgAqBVCpRJnL4yKi9RjE7XXyMWTnvgCflmw8vQfSwmPm77Lc.Sme4PWv W0i1UDoFjjYCey6FdhaEIHoaHP17C4cqOs3xOURj0HOB4I3QctDtyBUFfwWFDLwx5T_S_QA5U8yC lT4G6Fpvk_yPA6ARHM9QU1KQVZGU8WodzTTk6vw6JNV_lfyUkKtZLsd.RhyhC5b5PjSYEH7HDcM9 LZHP.tyffdxUPOpGLTBQHGdz9_zhOPUKFh2uysvCuQmbvAouJ0EMYiTD10lcaNu29KwUJIMuRZtR Uk5Y0.wCmH4BzUm09qWXkQkQRoHTMoZ7SSvsQIUSoBHpg4tqv.4brUdkiZN3iAurIM0DphfE3SMM k_TRh X-Sonic-MF: X-Sonic-ID: 642ce7ca-7f04-4cfa-8ffb-42c8337b7bbe Received: from sonic.gate.mail.ne1.yahoo.com by sonic303.consmr.mail.gq1.yahoo.com with HTTP; Sun, 13 Aug 2023 16:10:55 +0000 Received: by hermes--production-gq1-6b7c87dcf5-sv5pn (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 418567f718840511606834a6a5fc7c58; Sun, 13 Aug 2023 16:10:50 +0000 (UTC) Content-Type: text/plain; charset=utf-8 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: Sun, 13 Aug 2023 09:10:39 -0700 Cc: titus , Mike Karels , freebsd-arm Content-Transfer-Encoding: quoted-printable Message-Id: <4F7960AE-F607-4FEF-8A02-2013862A37E3@yahoo.com> References: <1C94FEAF-C616-498F-8562-2E99CF12417D@edc.ro> To: Warner Losh X-Mailer: Apple Mail (2.3731.700.6) X-Rspamd-Queue-Id: 4RP2ZV1zS2z4LxP 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 13, 2023, at 08:17, Warner Losh wrote: > Manu just updated Linux DTS in the tree. Maybe see if you revert that = if the problem persists.=20 git: 69f8cc60aa1e - main - ofw_firmware: Only match if there is no = compatible is the fix that Manu has committed: QUOTE ofw_firmware: Only match if there is no compatible =20 If there is a compatible string it likely means that the firmware = needs a dedicated driver (like on RPI*). =20 PR: 273087 Tested-by: Mark Millard Sponsored by: Beckhoff Automation GmbH & Co. KG Fixes: fdfd3a90b6ce ("ofw: Add a ofw_firmware driver") END QUOTE Also, FreeBSD does not use the linux DTS Files for RPi* 's. They do not produce matches to the *.dtb 's that FreeBSD does use: FreeBSD uses RPi* *.dtb files that are in the RPi* firmware releases. Those RPI* firmware releases (and *.dtb's) are gotten from: WWW=3D https://github.com/raspberrypi/firmware via the sysutils/rpi-firmware port. > Warner >=20 > On Sun, Aug 13, 2023, 12:12 AM titus wrote: > the failed devices are all linked to raspberrypi,bcm2835-firmware > (gpio, cpufreq_dt,=E2=80=A6) which does not see to be probed / = attached > check fdt ls at the loader prompt and ofwdump -a=20 > and boot -v > and nm /boot/kernel/kernel|grep bcm2835_firmware_get_revision > > On 13 Aug 2023, at 07:25, Mark Millard wrote: > >=20 > > On Aug 12, 2023, at 17:42, Mike Karels wrote: > >=20 > >> 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: > >>=20 > >> clk_fixed2: disabled on ofwbus0 > >> clk_fixed2: Cannot FDT parameters. > >> device_attach: clk_fixed2 attach returned 6 > >=20 > > 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. > >=20 > > 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): > >=20 > > - cam1_reg { > > + cam0_clk { > >=20 > > + #clock-cells =3D <0x0>; > > + compatible =3D "fixed-clock"; > > + status =3D "disabled"; > > + }; > > + cam0_regulator { > > + > > compatible =3D "regulator-fixed"; > > enable-active-high; > > - gpio =3D <0xa 0x5 0x0>; > > - regulator-name =3D "cam1-reg"; > > + regulator-name =3D "cam0-reg"; > > status =3D "disabled"; > > }; > > + cam1_clk { > > + > > + #clock-cells =3D <0x0>; > > + compatible =3D "fixed-clock"; > > + status =3D "disabled"; > > + }; > > + cam1_regulator { > > + > > + compatible =3D "regulator-fixed"; > > + enable-active-high; > > + gpio =3D <0xb 0x5 0x0>; > > + regulator-name =3D "cam1-reg"; > > + status =3D "okay"; > > + }; > >=20 > > 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. > >=20 > > 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). > >=20 > > It would be possible to decompile the .dtb used for RPi3B+'s > > to see if cam?_clk fixed-clock's are present. > >=20 > >> Two other failures: > >>=20 > >> 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 > >=20 > > Those are more than noise messages. > >=20 > >> 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. > >>=20 > >> Looks like the kernel needs adjustments to correspond with the new = DTB. > >>=20 > >> I'll append the full dmesg.boot. > > . . . > >=20 > > =3D=3D=3D > > Mark Millard > > marklmi at yahoo.com > >=20 > >=20 >=20 =3D=3D=3D Mark Millard marklmi at yahoo.com