>Synopsis: If I encrypt the system with a keydisk, the resulting
>installation is not bootable
>Category: arm
>Environment:
System : OpenBSD 7.4
Details : OpenBSD 7.4 (GENERIC.MP) #2: Fri Dec 8 15:42:08 MST 2023
[email protected]:/usr/src/sys/arch/arm64/compile/GENERIC.MP
Architecture: OpenBSD.arm64
Machine : arm64
>Description:
The installation doesn't fail, but it is unbootable. When powered on,
the green and red LEDs light up and stay that way, and it doesn't output
anything on the serial console. I suppose that is because it cannot find
anything bootable.
I do get some weird errors during the installation:
----------
What timezone are you in? ('?' for list) [Canada/Mountain] America/Sao_Paulo
Saving configuration files... done.
Making all device nodes... done.
mount_ffs: unknown option -- l
usage: mount_ffs [-o options] special node
mount_ffs: unknown option -- l
usage: mount_ffs [-o options] special node
umount: /mnt/mnt: not currently mounted
Multiprocessor machine; using bsd.mp instead of bsd.
fw_update: add none; update none
Relinking to create unique kernel... done.
CONGRATULATIONS! Your OpenBSD install has been successfully completed!
---------
This is a Raspberry Pi 4B.
>How-To-Repeat:
My RPi is set to boot from USB first. I'm not using the SD card reader.
sd0 is the installer disk, from which I boot to begin the installation.
The pi doesn't behave well with multiple disks connected during boot, so I only
plug in the installer at first, and later attach the other disks.
sd1 is the keydisk. I initialize it with "fdisk -iy sd1" and then edit
the disklabel, creating a 1MB RAID partition 'a'. That's all, right? The FAQ
doesn't mention any other requirement for a keydisk.
sd2 is the encrypted root. Here are the steps I followed to prepare it
for encryption:
1. fdisk -iy sd2
2. disklabel -E sd2 # add a RAID partition 'a' taking up all the space in the
device
3. bioctl -c C -k sd1a -l sd2a softraid0
sd3 is now the decrypted root. To prepare it, I run "fdisk -iy sd3"
Now I exit and start the installer, and when it asks which disk to install to,
I select sd3.
>Fix:
I don't know any workaround. I'm using a passphrase for now.
dmesg:
OpenBSD 7.4 (GENERIC.MP) #2: Fri Dec 8 15:42:08 MST 2023
[email protected]:/usr/src/sys/arch/arm64/compile/GENERIC.MP
real mem = 4123897856 (3932MB)
avail mem = 3960553472 (3777MB)
random: good seed from bootblocks
mainbus0 at root: Raspberry Pi 4 Model B Rev 1.2
efi0 at mainbus0: UEFI 2.8
efi0: Das U-Boot rev 0x20211000
smbios0 at efi0: SMBIOS 3.0
smbios0: vendor U-Boot version "2021.10" date 10/01/2021
smbios0: Unknown Unknown Product
cpu0 at mainbus0 mpidr 0: ARM Cortex-A72 r0p3
cpu0: 48KB 64b/line 3-way L1 PIPT I-cache, 32KB 64b/line 2-way L1 D-cache
cpu0: 1024KB 64b/line 16-way L2 cache
cpu0: CRC32,ASID16
cpu1 at mainbus0 mpidr 1: ARM Cortex-A72 r0p3
cpu1: 48KB 64b/line 3-way L1 PIPT I-cache, 32KB 64b/line 2-way L1 D-cache
cpu1: 1024KB 64b/line 16-way L2 cache
cpu1: CRC32,ASID16
cpu2 at mainbus0 mpidr 2: ARM Cortex-A72 r0p3
cpu2: 48KB 64b/line 3-way L1 PIPT I-cache, 32KB 64b/line 2-way L1 D-cache
cpu2: 1024KB 64b/line 16-way L2 cache
cpu2: CRC32,ASID16
cpu3 at mainbus0 mpidr 3: ARM Cortex-A72 r0p3
cpu3: 48KB 64b/line 3-way L1 PIPT I-cache, 32KB 64b/line 2-way L1 D-cache
cpu3: 1024KB 64b/line 16-way L2 cache
cpu3: CRC32,ASID16
"linux,cma" at mainbus0 not configured
"nvram" at mainbus0 not configured
apm0 at mainbus0
"system" at mainbus0 not configured
"axi" at mainbus0 not configured
simplebus0 at mainbus0: "soc"
bcmclock0 at simplebus0
bcmmbox0 at simplebus0
bcmgpio0 at simplebus0
bcmaux0 at simplebus0
ampintc0 at simplebus0 nirq 256, ncpu 4 ipi: 0, 1, 2: "interrupt-controller"
bcmtmon0 at simplebus0
bcmdmac0 at simplebus0: DMA0 DMA2 DMA4 DMA5 DMA6 DMA7 DMA8 DMA9 DMA10
"timer" at simplebus0 not configured
pluart0 at simplebus0: rev 2, 16 byte fifo
pluart0: console
"local_intc" at simplebus0 not configured
bcmdog0 at simplebus0
bcmirng0 at simplebus0
"firmware" at simplebus0 not configured
"power" at simplebus0 not configured
"mailbox" at simplebus0 not configured
sdhc0 at simplebus0
sdhc0: SDHC 3.00, 250 MHz base clock
sdmmc0 at sdhc0: 4-bit, sd high-speed, mmc high-speed
"gpiomem" at simplebus0 not configured
"fb" at simplebus0 not configured
"vcsm" at simplebus0 not configured
"clocks" at mainbus0 not configured
"phy" at mainbus0 not configured
"clk-27M" at mainbus0 not configured
"clk-108M" at mainbus0 not configured
simplebus1 at mainbus0: "emmc2bus"
sdhc1 at simplebus1
sdhc1: SDHC 3.00, 100 MHz base clock
sdmmc1 at sdhc1: 8-bit, sd high-speed, mmc high-speed, ddr52, dma
"arm-pmu" at mainbus0 not configured
agtimer0 at mainbus0: 54000 kHz
simplebus2 at mainbus0: "scb"
bcmpcie0 at simplebus2
pci0 at bcmpcie0
ppb0 at pci0 dev 0 function 0 "Broadcom BCM2711" rev 0x10
pci1 at ppb0 bus 1
xhci0 at pci1 dev 0 function 0 "VIA VL805 xHCI" rev 0x01: intx, xHCI 1.0
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 configuration 1 interface 0 "VIA xHCI root hub" rev 3.00/1.00
addr 1
bse0 at simplebus2: address dc:a6:32:9c:c7:ca
brgphy0 at bse0 phy 1: BCM54210E 10/100/1000baseT PHY, rev. 2
"dma" at simplebus2 not configured
"hevc-decoder" at simplebus2 not configured
"rpivid-local-intc" at simplebus2 not configured
"h264-decoder" at simplebus2 not configured
"vp9-decoder" at simplebus2 not configured
gpioleds0 at mainbus0: "led0", "led1"
"sd_io_1v8_reg" at mainbus0 not configured
"sd_vcc_reg" at mainbus0 not configured
"fixedregulator_3v3" at mainbus0 not configured
"fixedregulator_5v0" at mainbus0 not configured
simplebus3 at mainbus0: "v3dbus"
"bootloader" at mainbus0 not configured
sdhc_sdclk_frequency_select: command in progress
sdhc_sdclk_frequency_select: command in progress
sdmmc0: can't enable card
sdhc_sdclk_frequency_select: command in progress
sdmmc1: can't enable card
uhub1 at uhub0 port 1 configuration 1 interface 0 "VIA Labs USB2.0 Hub" rev
2.10/4.21 addr 2
umass0 at uhub0 port 3 configuration 1 interface 0 "Kingston DataTraveler 3.0"
rev 3.20/1.10 addr 3
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, initiator 0
sd0 at scsibus0 targ 1 lun 0: <Kingston, DataTraveler 3.0, 0000> removable
serial.0951166616B0A92F031C
sd0: 59120MB, 512 bytes/sector, 121077761 sectors
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
sd1 at scsibus2 targ 1 lun 0: <OPENBSD, SR CRYPTO, 006>
sd1: 59087MB, 512 bytes/sector, 121011697 sectors
root on sd1a (84ece615e5d1b2e2.a) swap on sd1b dump on sd1b
WARNING: CHECK AND RESET THE DATE!
gpio0 at bcmgpio0: 58 pins
usbdevs:
Controller /dev/usb0:
addr 01: 1106:0000 VIA, xHCI root hub
super speed, self powered, config 1, rev 1.00
driver: uhub0
addr 02: 2109:3431 VIA Labs, USB2.0 Hub
high speed, self powered, config 1, rev 4.21
driver: uhub1
addr 03: 0951:1666 Kingston, DataTraveler 3.0
super speed, power 36 mA, config 1, rev 1.10, iSerial
E0D55EA573DE16B0A92F031C
driver: umass0
pcidump:
Domain /dev/pci0:
0:0:0: Broadcom BCM2711
0x0000: Vendor ID: 14e4, Product ID: 2711
0x0004: Command: 0006, Status: 0010
0x0008: Class: 06 Bridge, Subclass: 04 PCI,
Interface: 00, Revision: 10
0x000c: BIST: 00, Header Type: 01, Latency Timer: 00,
Cache Line Size: 08
0x0010: BAR empty (00000000)
0x0014: BAR empty (00000000)
0x0018: Primary Bus: 0, Secondary Bus: 1, Subordinate Bus: 1,
Secondary Latency Timer: 00
0x001c: I/O Base: 00, I/O Limit: 00, Secondary Status: 0000
0x0020: Memory Base: c000, Memory Limit: c000
0x0024: Prefetch Memory Base: 1001, Prefetch Memory Limit: 0001
0x0028: Prefetch Memory Base Upper 32 Bits: 00000000
0x002c: Prefetch Memory Limit Upper 32 Bits: 00000000
0x0030: I/O Base Upper 16 Bits: 0000, I/O Limit Upper 16 Bits: 0000
0x0038: Expansion ROM Base Address: 00000000
0x003c: Interrupt Pin: 01, Line: 00, Bridge Control: 0000
0x0048: Capability 0x01: Power Management
State: D0
0x00ac: Capability 0x10: PCI Express
Max Payload Size: 128 / 512 bytes
Max Read Request Size: 512 bytes
Link Speed: 5.0 / 5.0 GT/s
Link Width: x1 / x1
0x0100: Enhanced Capability 0x01: Advanced Error Reporting
0x0180: Enhanced Capability 0x0b: Vendor-Specific
0x0240: Enhanced Capability 0x1e: L1 PM
0x0000: 271114e4 00100006 06040010 00010008
0x0010: 00000000 00000000 00010100 00000000
0x0020: c000c000 00011001 00000000 00000000
0x0030: 00000000 00000048 00000000 00000100
0x0040: 00000000 00000000 4813ac01 00002008
0x0050: 00000000 00000000 00000000 00000000
0x0060: 00000000 00000000 00000000 00000000
0x0070: 00000000 00000000 00000000 00000000
0x0080: 00000000 00000000 00000000 00000000
0x0090: 00000000 00000000 00000000 00000000
0x00a0: 00000000 00000000 00000000 00420010
0x00b0: 00008002 00002c10 00655c12 90120000
0x00c0: 00000000 00400000 00010000 00000000
0x00d0: 0008081f 00000000 80000006 00000002
0x00e0: 00000000 00000000 00000000 00000000
0x00f0: 00000000 00000000 00000000 00000000
1:0:0: VIA VL805 xHCI
0x0000: Vendor ID: 1106, Product ID: 3483
0x0004: Command: 0006, Status: 0010
0x0008: Class: 0c Serial Bus, Subclass: 03 USB,
Interface: 30, Revision: 01
0x000c: BIST: 00, Header Type: 00, Latency Timer: 00,
Cache Line Size: 08
0x0010: BAR mem 64bit addr: 0x00000000c0000000/0x00001000
0x0018: BAR empty (00000000)
0x001c: BAR empty (00000000)
0x0020: BAR empty (00000000)
0x0024: BAR empty (00000000)
0x0028: Cardbus CIS: 00000000
0x002c: Subsystem Vendor ID: 1106 Product ID: 3483
0x0030: Expansion ROM Base Address: 00000000
0x0038: 00000000
0x003c: Interrupt Pin: 01 Line: 00 Min Gnt: 00 Max Lat: 00
0x0080: Capability 0x01: Power Management
State: D0
0x0090: Capability 0x05: Message Signalled Interrupts (MSI)
Enabled: no
0x00c4: Capability 0x10: PCI Express
Max Payload Size: 128 / 256 bytes
Max Read Request Size: 512 bytes
Link Speed: 5.0 / 5.0 GT/s
Link Width: x1 / x1
0x0100: Enhanced Capability 0x01: Advanced Error Reporting
0x0000: 34831106 00100006 0c033001 00000008
0x0010: c0000004 00000000 00000000 00000000
0x0020: 00000000 00000000 00000000 34831106
0x0030: 00000000 00000080 00000000 00000100
0x0040: 00000000 00000100 39af5009 00000004
0x0050: 000138c0 00000000 00000000 34831106
0x0060: 00002030 00000000 00000000 00000000
0x0070: 00000000 00000000 00000000 00000000
0x0080: 89c39001 00000000 00000000 00000000
0x0090: 0084c405 00000000 00000000 00000000
0x00a0: 00000000 00000000 00000000 00000000
0x00b0: 00000000 00000000 00000000 00000000
0x00c0: 00002000 00020010 00008001 00192810
0x00d0: 00065c12 10120040 00000000 00000000
0x00e0: 00000000 00000000 00000012 00000000
0x00f0: 00000000 00010022 00000000 00000000
acpidump: