Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Jan 2024 15:45:11 +0000
From:      Doug Rabson <dfr@rabson.org>
To:        Jesper Schmitz Mouridsen <jsm@freebsd.org>
Cc:        John Kennedy <warlock@phouka.net>, ykla <yklaxds@gmail.com>,  FreeBSD ARM List <freebsd-arm@freebsd.org>
Subject:   Re: When will FreeBSD support RPI5?
Message-ID:  <CACA0VUjoTTVje7tQe%2BVHXPco_xs4C8vSB3P3eDnhuYJYSqc7Sw@mail.gmail.com>
In-Reply-To: <5a39810c-5fd8-4969-a222-2561b050b035@FreeBSD.org>
References:  <CA%2BPGaYC6__AZUgHqfv3PO-o=7FnEzRzTPGPhMuahFNdcN0D69A@mail.gmail.com> <ddbf131c-1f2c-424b-9a3f-54ded16c5123@FreeBSD.org> <ZZHC_SjrPgs3DMKe@phouka1.phouka.net> <5a39810c-5fd8-4969-a222-2561b050b035@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--0000000000008e522c060e995121
Content-Type: text/plain; charset="UTF-8"

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..
>
>
>

--0000000000008e522c060e995121
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">I was able to boot FreeBSD-14.0 on an rpi5 using EDK2 from=
=C2=A0<a href=3D"https://github.com/worproject/rpi5-uefi">https://github.co=
m/worproject/rpi5-uefi</a>. I put the EDK2 firmware on an SD card and an aa=
rch64 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&#39;s=
 a really promising start.<div><br></div><div>Doug.</div><div><br></div></d=
iv><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On =
Wed, 3 Jan 2024 at 15:10, Jesper Schmitz Mouridsen &lt;<a href=3D"mailto:js=
m@freebsd.org">jsm@freebsd.org</a>&gt; wrote:<br></div><blockquote class=3D=
"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left-width:1px;borde=
r-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><br=
>
On 31.12.2023 20.37, John Kennedy wrote:<br>
&gt; On Fri, Dec 29, 2023 at 06:05:25PM +0100, Jesper Schmitz Mouridsen wro=
te:<br>
&gt;&gt; On 29.12.2023 05.55, ykla wrote:<br>
&gt;&gt;&gt; Hi, When will FreeBSD support RPI5<br>
&gt;&gt; <a href=3D"https://forums.freebsd.org/threads/raspberry-pi-5-statu=
s.91406/" rel=3D"noreferrer" target=3D"_blank">https://forums.freebsd.org/t=
hreads/raspberry-pi-5-status.91406/</a><br>
&gt;=C2=A0 =C2=A0 Having ordered my RPI5 ~11/28, I think it has a shipping =
guesstimate in late<br>
&gt; Jan/early Feb.=C2=A0 It looks like someone is working on uboot, which =
FreeBSD seems<br>
&gt; to favor (I think the argument I retained was &quot;it works for lots =
of things,<br>
&gt; piggyback on those efforts rather than have some RPI-unique thing).=C2=
=A0 Then once<br>
&gt; you start getting things properly enumerated to where you can load the=
 kernel,<br>
&gt; then you work on the kernel drivers.<br>
&gt;<br>
&gt;=C2=A0 =C2=A0 RPI seems to favor linux support first, and I suspect tha=
t there is a fair<br>
&gt; amount of GPL issues that you might have to worry about creeping into =
the BSD<br>
&gt; kernel.=C2=A0 So not as simple as reimplement from what you see in lin=
ux.=C2=A0 I know<br>
&gt; there are a lot of strong opinions on video drivers, for example, but =
for that<br>
&gt; to even ben an option it&#39;d have to be something that could be a mo=
dule that<br>
&gt; could be packaged outside of the BSD base.=C2=A0 I only bring that up =
because I&#39;ve<br>
&gt; had garbage luck trying to get serial consoles to work properly on RPI=
s when<br>
&gt; they&#39;re competing for things like cooling fans and such, so graphi=
cs console<br>
&gt; is nice, even if it is just very basic.<br>
&gt;<br>
&gt;=C2=A0 =C2=A0 How have people been chicken-n-egging the initial setup?=
=C2=A0 I know there have<br>
&gt; been uboot issues in the past.=C2=A0 Seems like you basically have to =
build memstick<br>
&gt; style images and see if they boot.=C2=A0 Is there a bhyve/QEMU setup t=
hat is a<br>
&gt; generic test setup that is used?<br>
<br>
I just built a patched u-boot and uses a stock rpi img snapshot, then <br>
cross build and move the kernel to the rpi sd card..<br>
<br>
no qemu emulates all the phys. hw in the rpi5..<br>
<br>
<br>
</blockquote></div>

--0000000000008e522c060e995121--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACA0VUjoTTVje7tQe%2BVHXPco_xs4C8vSB3P3eDnhuYJYSqc7Sw>