Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Sep 2020 11:25:00 -0700
From:      Mark Millard <marklmi@yahoo.com>
To:        Robert Clausecker <fuz@fuz.su>
Cc:        freebsd-arm@freebsd.org
Subject:   Re: Attempting to install on RPi4B w/ UEFI, having some problems
Message-ID:  <9E14D44F-2F16-486E-ACFB-EC189A345D5B@yahoo.com>
In-Reply-To: <20200911114214.GA56507@fuz.su>
References:  <20200910201146.GA99827@fuz.su> <0E3AD53C-AA47-491B-B1C3-931C559CDC10@yahoo.com> <20200911114214.GA56507@fuz.su>

next in thread | previous in thread | raw e-mail | index | archive | help


> On 2020-Sep-11, at 04:42, Robert Clausecker <fuz at fuz.su> wrote:
>=20
> Hi Mark,
>=20
> On Thu, Sep 10, 2020 at 04:25:34PM -0700, Mark Millard wrote:
>>=20
>>=20
>> On 2020-Sep-10, at 13:11, Robert Clausecker <fuz at fuz.su> wrote:
>>=20
>>> Greetings!
>>>=20
>>> I'm trying to install FreeBSD on a Raspberry Pi 4B w/ UEFI.
>>>=20
>>> I've done the following:
>>>=20
>>> * update the RPi4 firmware to support USb boot
>>>=20
>>> * format a USB drive as follows
>>>=20
>>> $ gpart show
>>> =3D>       63  468862065  da0  MBR  (224G)
>>>        63      32768    1  efi  (16M)
>>>     32831  468829297    2  freebsd  (224G)
>>>=20
>>> =3D>        0  468829297  da0s2  BSD  (224G)
>>>         0   16777216      2  freebsd-swap  (8.0G)
>>>  16777216  452052081      1  freebsd-zfs  (216G)
>>=20
>> FYI: I use GPT partitioning. (No claim that you need to.)
>=20
> Ah, good to know that that works.  I was afraid the UEFI code
> required an MBR scheme as the documentation indicated such.

The constraint was Raspberry pi firmware stages before uefi is
involved. Modern enough Raspberry pi firmware supports GPT at
those early stages.

# gpart show -p
=3D>       40  468862048    da0  GPT  (224G)
         40       2008         - free -  (1.0M)
       2048  413138944  da0p1  freebsd-ufs  (197G)
  413140992    9437184  da0p2  freebsd-swap  (4.5G)
  422578176     204800  da0p3  ms-basic-data  (100M)
  422782976   46079112         - free -  (22G)

>>> . . .
>>>=20
>>> * boot into uefi config menu, set console to serial, choose boot =
device,
>>> set up ACPI+DTB mode, disable memory limit
>>=20
>> To my knowledge FreeBSD makes no claim to be trying to
>> support ACPI+DTB. I use ACPI for UEFI based booting (no DTB).
>=20
> The Wiki page (arm/Raspberry Pi) does say explicitly:
>=20
>> RPI4-UEFI, allows us to triple-boot FreeBSD on the RPi4 from either
>> Device Tree or ACPI or ACPI&Device-tree(both).=20

Ahh. I do not expect that the Wiki is being maintained by
someone involved in implementing such things. So somewhat
more guess work is involved in the WIki's production.=20

> But it appears that loading the DTB from the UEFI boot loader is not
> supported at all.  In fact, when I configure UEFI to generate a DTB
> only (ACPI off), the kernel hangs during boot.

I'm not sure anyone has examined the content of the DTB produced
by the UEFI software. If not, then no one knows what would
be required to support it vs. the u-boot port's DTB and what
the u-boot port initializes before FreeBSD is involved.

>>> . . .
>>>=20
>>> * a genet ethernet device does not seem to exist and =
consequentially,
>>> no network connection can be established.
>>=20
>> FreeBSD does not yet support the built-in Ethernet via ACPI booting.
>> I use a USB3 Ethernet device instead.
>=20
> Thanks, will use a USB ethernet dongle as a stop gap solution.

I get Gbit-ballpark speeds from:

ugen0.3: <Realtek USB 10/100/1000 LAN> at usbus0
ure0: <Realtek USB 10/100/1000 LAN, class 0/0, rev 3.00/30.00, addr 2> =
on usbus0

But that is based on a patch from a review. I'm unsure if a
more modern FreeBSD has the patch applied already.



=3D=3D=3D
Mark Millard
marklmi at yahoo.com
( dsl-only.net went
away in early 2018-Mar)




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9E14D44F-2F16-486E-ACFB-EC189A345D5B>