Re: booting recent rpi current/14 snapshots

Mark Millard via freebsd-arm <[email protected]>
Newsgroups gmane.os.freebsd.devel.arm
Message-ID <[email protected]>
On 2021-Nov-30, at 09:50, tech-lists <[email protected]> wrote:

> Hello arm@
> 
> Has anyone tried booting the recent current snapshots?
> 
> I've tried these ones. all written to good microsd cards, and sha256 checked:
> 
> https://download.freebsd.org/ftp/snapshots/ISO-IMAGES/14.0/FreeBSD-14.0-CURRENT-arm64-aarch64-RPI-20211111-448bcd01dc5-250603.img.xz
> https://download.freebsd.org/ftp/snapshots/ISO-IMAGES/14.0/FreeBSD-14.0-CURRENT-arm64-aarch64-RPI-20211118-4082b189d2c-250820.img.xz
> https://download.freebsd.org/ftp/snapshots/ISO-IMAGES/14.0/FreeBSD-14.0-CURRENT-arm64-aarch64-RPI-20211125-3ede04c78c7-251054.img.xz
> 
> Get a rainbow screen and there it stops.
> 
> Anyone know of a working version?
> 
> What I'm trying to do is to run the installer and point it to a connected usb3
> disk in order to facilitate usb3 boot-to-zfs. But I'm not even getting as far as the installer.

Looks like that last (20211125-3ede04c78c7 put on a microsd card)
has:

# mount -onoatime -tmsdosfs /dev/mmcsd1s1 /media

# strings /media/start4.elf | grep VC_BUILD_ID_
VC_BUILD_ID_USER: dom
VC_BUILD_ID_TIME: 12:10:40
VC_BUILD_ID_VARIANT: start
VC_BUILD_ID_TIME: Feb 25 2021
VC_BUILD_ID_BRANCH: bcm2711_2
VC_BUILD_ID_HOSTNAME: buildbot
VC_BUILD_ID_PLATFORM: raspberrypi_linux
VC_BUILD_ID_VERSION: 564e5f9b852b23a330b1764bcf0b2d022a20afd0 (clean)

(I ignore armstub8-gic.bin here.)

# strings /media/u-boot.bin | grep "U-Boot 2"
U-Boot 2021.07 (Nov 25 2021 - 05:58:44 +0000)

# more /media/config.txt
[all]
arm_64bit=1
dtparam=audio=on,i2c_arm=on,spi=on
dtoverlay=mmc
dtoverlay=disable-bt
device_tree_address=0x4000
kernel=u-boot.bin

[pi4]
hdmi_safe=1
armstub=armstub8-gic.bin


But I'm modifying it to:

# more /media/config.txt
[all]
arm_64bit=1
dtparam=audio=on,i2c_arm=on,spi=on
dtoverlay=mmc
dtoverlay=disable-bt
device_tree_address=0x4000
kernel=u-boot.bin

[pi4]
#hdmi_safe=1
armstub=armstub8-gic.bin

# Local additions:

[all]
enable_uart=1
uart_2ndstage=1
dtdebug=1
disable_commandline_tags=1
disable_overscan=1
gpu_mem_1024=32

[pi4]
over_voltage=6
arm_freq=2000
sdram_freq_min=3200
force_turbo=1

[all]


Note the disabling of hdmi_safe=1 .

The 8 GiByte RPi4B's eeprom also has debugging enabled.


So with a monitor attached (unusual for me) and a
serial console as well, it boots to the login prompt
just fine, both on the serial console and the monitor.
I logged in to both.

# uname -apKU
FreeBSD generic 14.0-CURRENT FreeBSD 14.0-CURRENT #0 main-n251054-3ede04c78c7: Thu Nov 25 09:59:03 UTC 2021     [email protected]:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC  arm64 aarch64 1400042 1400042


For reference:

EFI framebuffer information:
addr, size     0x3e402000, 0x7e9000
dimensions     1920 x 1080
stride         1920
masks          0x00ff0000, 0x0000ff00, 0x000000ff, 0xff000000
. . .
VT(efifb): resolution 1920x1080
. . .
fb0: <BCM2835 VT framebuffer driver> on simplebus0
fb0: keeping existing fb bpp of 32
fbd0 on fb0
WARNING: Device "fb" is Giant locked and may be deleted before FreeBSD 14.0.
VT: Replacing driver "efifb" with new "fb".
fb0: 1920x1080(1920x1080@0,0) 32bpp
fb0: fbswap: 1, pitch 7680, base 0x3e402000, screen_size 8355840


===
Mark Millard
marklmi at yahoo.com
( dsl-only.net went
away in early 2018-Mar)
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.