Re: When will FreeBSD support RPI5?

From: Doug Rabson <dfr_at_rabson.org>
Date: Wed, 10 Jan 2024 15:45:11 UTC
I was able to boot FreeBSD-14.0 on an rpi5 using EDK2 from
https://github.com/worproject/rpi5-uefi. I put the EDK2 firmware on an SD
card and an aarch64 memstick image on a USB thumb drive and was able to
boot all the way into the installer. PCI express is missing as well as
ethernet but it's a really promising start.

Doug.


On Wed, 3 Jan 2024 at 15:10, Jesper Schmitz Mouridsen <jsm@freebsd.org>
wrote:

>
> On 31.12.2023 20.37, John Kennedy wrote:
> > On Fri, Dec 29, 2023 at 06:05:25PM +0100, Jesper Schmitz Mouridsen wrote:
> >> On 29.12.2023 05.55, ykla wrote:
> >>> Hi, When will FreeBSD support RPI5
> >> https://forums.freebsd.org/threads/raspberry-pi-5-status.91406/
> >    Having ordered my RPI5 ~11/28, I think it has a shipping guesstimate
> in late
> > Jan/early Feb.  It looks like someone is working on uboot, which FreeBSD
> seems
> > to favor (I think the argument I retained was "it works for lots of
> things,
> > piggyback on those efforts rather than have some RPI-unique thing).
> Then once
> > you start getting things properly enumerated to where you can load the
> kernel,
> > then you work on the kernel drivers.
> >
> >    RPI seems to favor linux support first, and I suspect that there is a
> fair
> > amount of GPL issues that you might have to worry about creeping into
> the BSD
> > kernel.  So not as simple as reimplement from what you see in linux.  I
> know
> > there are a lot of strong opinions on video drivers, for example, but
> for that
> > to even ben an option it'd have to be something that could be a module
> that
> > could be packaged outside of the BSD base.  I only bring that up because
> I've
> > had garbage luck trying to get serial consoles to work properly on RPIs
> when
> > they're competing for things like cooling fans and such, so graphics
> console
> > is nice, even if it is just very basic.
> >
> >    How have people been chicken-n-egging the initial setup?  I know
> there have
> > been uboot issues in the past.  Seems like you basically have to build
> memstick
> > style images and see if they boot.  Is there a bhyve/QEMU setup that is a
> > generic test setup that is used?
>
> I just built a patched u-boot and uses a stock rpi img snapshot, then
> cross build and move the kernel to the rpi sd card..
>
> no qemu emulates all the phys. hw in the rpi5..
>
>
>