Attempting to install on RPi4B w/ UEFI, having some problems

Robert Clausecker <[email protected]>
Newsgroups gmane.os.freebsd.devel.arm
Message-ID <[email protected]>
Greetings!

I'm trying to install FreeBSD on a Raspberry Pi 4B w/ UEFI.

I've done the following:

 * update the RPi4 firmware to support USb boot

 * format a USB drive as follows

$ gpart show
=>       63  468862065  da0  MBR  (224G)
         63      32768    1  efi  (16M)
      32831  468829297    2  freebsd  (224G)

=>        0  468829297  da0s2  BSD  (224G)
          0   16777216      2  freebsd-swap  (8.0G)
   16777216  452052081      1  freebsd-zfs  (216G)

* make a dos file system for the efi partition and copy the uefi files (most
  recent version) in there

* make a ZFS pool and file systems as appropriate for a boot environment

* build CURRENT from source with D25201 manually applied (the other patches
  have apparently already been merged) and install it into the pool, apply
  basic configuration.  The fstab says:

/dev/da0s1 /boot/efi msdos rw 0 0
/dev/da0s2b none swap sw 0 0

  loader.conf says:

cryptodev_load="YES"
zfs_load="YES"

* copy loader.efi to /boot/efi/efi/boot/bootaa64.efi

* boot into uefi config menu, set console to serial, choose boot device,
  set up ACPI+DTB mode, disable memory limit

* kernel boots fine into login shell but reports no DTB found.

Some things don't seem to work correctly:

* if I plug the USB drive into a USB 3.0 port, everything works fine until
  root is mounted.  At that point, every further disk access fails with IO
  errors:

(da0:umass-sim0:0:0:0): READ(10). CDB: 28 00 01 80 a0 c1 00 00 07 00 
(da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error
(da0:umass-sim0:0:0:0): Retrying command, 3 more tries remain

  This can be worked around using

* a genet ethernet device does not seem to exist and consequentially,
  no network connection can be established.

* pciconf -l yields no PCI devices and dmesg suggests no pci bus was
  detected (grepping for pci yields no results)

* if I select DTB-only mode in the UEFI configuration, the kernel hangs
  during boot.  In any case it complains about not having received a DTB.

What can I do to fix these problems?  Is there anything I missed?

Yours,
Robert Clausecker

-- 
()  ascii ribbon campaign - for an 8-bit clean world 
/\  - against html email  - against proprietary attachments
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-arm
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.