64-bit RPi4B u-boot hangup with modern rpi firmware: some information (but investigative-toolbox limited)

Mark Millard marklmi at yahoo.com
Fri Oct 16 04:11:44 UTC 2020



> On 2020-Oct-15, at 13:39, Klaus Cucinauomo <maciphone2 at googlemail.com> wrote:
> 
> 
>> Am 15.10.2020 um 22:30 schrieb Mark Millard via freebsd-arm <freebsd-arm at freebsd.org>:
> 
>> If I understand right, the serial console baud rate change
>> problem seen on, for example, RPi3*'s is still an issue.
>> 
> 
> No:
> 
> https://github.com/raspberrypi/firmware/issues/1445#issuecomment-709341782

Cool. Thanks for letting me know.

I've set up a modern-firmware RPI3B v1.2 to boot via a USB3 SDD
(no microsd card involved) with head -r365932 using either of:

A) u-boot 2020.10 ( armstub8.bin and u-boot.bin )
B) uefi/DeviceTree v1.20 ( RPI_EFI.fd )

The USB3 SSD is GPT partitioned:

# gpart show -p
=>       40  468862048    da0  GPT  (224G)
         40       2008         - free -  (1.0M)
       2048  413138944  da0p1  freebsd-ufs  (197G)
  413140992    6291456  da0p2  freebsd-swap  (3.0G)
  419432448    6291456  da0p4  freebsd-swap  (3.0G)
  425723904     524288  da0p3  efi  (256M)
  426248192   42613896         - free -  (20G)

# gpart show -pl
=>       40  468862048    da0  GPT  (224G)
         40       2008         - free -  (1.0M)
       2048  413138944  da0p1  PINE642Groot  (197G)
  413140992    6291456  da0p2  PINE642Gswap  (3.0G)
  419432448    6291456  da0p4  PINE642Gswp2  (3.0G)
  425723904     524288  da0p3  RPi3boot  (256M)
  426248192   42613896         - free -  (20G)

(Before the Pine64+ 2GB bit the dust, I also used this media
to boot it and have not bothered to rename everything.)

The USB3 SSD is on a powered hub, unlike my usual RPI4B
context.

Ethernet works.

Frequently "shutdown -r now" hangs up after the Uptime notice.
(When it works there is a fairly long pause first.)

Unfortunately, FreeBSD -r365932 with the RPi3B v1.2 ends up
with:

u-boot example:
# dmesg -a | grep -i mmc
mmc0: <MMC/SD bus> on sdhci_bcm0
mmc0: No compatible cards found on bus

uefi/DT example:
# dmesg -a | grep -i mmc
mmc0: <MMC/SD bus> on sdhost_bcm0
mmc1: <MMC/SD bus> on sdhci_bcm0
mmc0: No compatible cards found on bus
mmc1: No compatible cards found on bus

So, no /dev/mmc* in either context.

(FYI: u-boot at its prompt does deal with the microsd card slot
and having a card in it.)


Note: uefi/ACPI for the RPi3 does not yet have serial mode and
FreeBSD crashes similarly to using graphical mode on the RPi4's.

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



More information about the freebsd-arm mailing list