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'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 <<a href=3D"mailto:js= m@freebsd.org">jsm@freebsd.org</a>> 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> > On Fri, Dec 29, 2023 at 06:05:25PM +0100, Jesper Schmitz Mouridsen wro= te:<br> >> On 29.12.2023 05.55, ykla wrote:<br> >>> Hi, When will FreeBSD support RPI5<br> >> <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> >=C2=A0 =C2=A0 Having ordered my RPI5 ~11/28, I think it has a shipping = guesstimate in late<br> > Jan/early Feb.=C2=A0 It looks like someone is working on uboot, which = FreeBSD seems<br> > to favor (I think the argument I retained was "it works for lots = of things,<br> > piggyback on those efforts rather than have some RPI-unique thing).=C2= =A0 Then once<br> > you start getting things properly enumerated to where you can load the= kernel,<br> > then you work on the kernel drivers.<br> ><br> >=C2=A0 =C2=A0 RPI seems to favor linux support first, and I suspect tha= t there is a fair<br> > amount of GPL issues that you might have to worry about creeping into = the BSD<br> > kernel.=C2=A0 So not as simple as reimplement from what you see in lin= ux.=C2=A0 I know<br> > there are a lot of strong opinions on video drivers, for example, but = for that<br> > to even ben an option it'd have to be something that could be a mo= dule that<br> > could be packaged outside of the BSD base.=C2=A0 I only bring that up = because I've<br> > had garbage luck trying to get serial consoles to work properly on RPI= s when<br> > they're competing for things like cooling fans and such, so graphi= cs console<br> > is nice, even if it is just very basic.<br> ><br> >=C2=A0 =C2=A0 How have people been chicken-n-egging the initial setup?= =C2=A0 I know there have<br> > been uboot issues in the past.=C2=A0 Seems like you basically have to = build memstick<br> > style images and see if they boot.=C2=A0 Is there a bhyve/QEMU setup t= hat is a<br> > 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>