Re: Firefox crashes all the time on the RaspBerry Pi Zero 2W

From: Mark Millard <marklmi_at_yahoo.com>
Date: Thu, 17 Apr 2025 07:04:02 UTC
Mario Marietto <marietto2008_at_gmail.com> wrote on
Date: Wed, 16 Apr 2025 17:13:24 UTC :

> . . .
> https://download.freebsd.org/releases/arm/armv7/ISO-IMAGES/14.2/FreeBSD-14.2-RELEASE-arm-armv7-GENERICSD.img.xz
> 
> 
> 
> Ronald Klop :
> 
> ->That version of FreeBSD should be able to work. But I never tried it.

I would  only agree if modification by adding the
RPi* firmware's actual bcm2710-rpi-zero-2-w.dtb
is also done --and using an appropriate U-boot
is allowed as well. (I've less context for the
U-Boot issue.)

Having that file is not something the FreeBSD
kernel or world is responsible for: it is from
the RPi* firmware instead, just not automatically
put in place by any  FreeBSD distribution.
(Possibly a similar status for U-Boot.)

> Marietto :
> 
> Well,I tried,but it didn't boot.

I'll remind of . . .

https://lists.freebsd.org/archives/freebsd-arm/2025-February/004553.html
reports:

QUOTE
From: Mario Marietto <marietto2008_at_gmail.com>
Date: Wed, 05 Feb 2025 09:31:42 UTC
--> Why not try sysutils/rpi-firmware and copy over the
/usr/local/share/rpi-firmware/bcm2710-rpi-zero-2-w.dtb
that is actually for the RPi* that you have? It is the
same vintage of materials as is on the official media.

Just tried. It works.
END QUOTE

(I've no access to do testing.)

I'll note that the bcm2710-rpi-3-b.dtb is used by
both the 32-bite Raspberry Pi OS and by the 64-bit
Raspberry Pi OS. The same sort of thing is likely
true of the bcm2710-rpi-zero-2-w.dtb .

(As I remember, FreeBSD used to supply all the files
to allow RPi3B booting as 32-bit but later stopped
including them in the 32-bit materials. The extra
file(s) are still available, just not put in place
by default, if I understand right.)

> I see the rainbow screen,so it needs a
> specific dtb file,but I don't know what it is.

The FreeBSD package/port sysutils/rpi-firmware
installs:

/usr/local/share/rpi-firmware/bcm2710-rpi-zero-2-w.dtb

that is a copy of an official RPi* file and that
you can copy to be with the others.

You might want to go to:

https://www.raspberrypi.com/software/operating-systems/

and download, say, a "Compatibile with: All Rapsberry
Pi models" that says "System: 32-bit" and test it.

If it works, then you know that the RPi* firmware
files (including *.dtb's) on that media are appropriate
for such booting, even if FreeBSD does not support
such yet (ever?).

That was just for information generation, even if you
do not want to use that instead of FreeBSD.

> This is the dtb file that it uses is bcm2709-rpi-2-b.dtb

I doubt that it what is used by the above proposed
experiments that have an official bcm2710-rpi-zero-2-w.dtb
file from the  RPi* folks --but I've no test context
available to confirm or deny my expectations.

> ; while the only
> dtb file that works is bcm2710-rpi-3-b-dtb (that's on arm64 version of
> FreeBSD)

Likely not true. The file from:

/usr/local/share/rpi-firmware/bcm2710-rpi-zero-2-w.dtb

is likely the correct file for both 32-bit use and
64-bit use. But the FreeBSD kernel might not support
everything in that *.dtb that is needed.

> but only if it is renamed to bcm2710-rpi-zero-2-w.dtb.

Such use of renamed *.dtb files is generally
inappropriate.

> They are very different. The 32 bit version (armv7) of FreeBSD will never
> boot on the Raspberry Pi zero 2w.

I've no clue if the FreeBSD kernel needs updates or
not.

===
Mark Millard
marklmi at yahoo.com