Hi,

I have trouble with installboot on a small embedded amd64 system.

I get the following error during sysupgrade and also when I run
installboot manually: installboot: no OpenBSD partition.

You can find the output of installboot, fdisk and disklabel below.
I also attached a full dmesg.


I initially installed with 7.2 and I just upgraded to 7.3. This should
be a GPT install but installboot seems to find an MBR, maybe this is the
source of the problem.

If possible, I would like to be able to fix this problem without
reinstalling the system.

Do you have some idea what's going on?

Best regards,

Jona


# installboot -v sd0 /usr/mdec/biosboot /usr/mdec/boot
Using / as root
installing bootstrap on /dev/rsd0c
using first-stage /usr/mdec/biosboot, second-stage /usr/mdec/boot
copying /usr/mdec/boot to //boot
looking for superblock at 65536
found valid ffs2 superblock
//boot is 6 blocks x 16384 bytes
fs block shift 2; part offset 1024; inode block 56, offset 2928
expecting 64-bit fs blocks (incr 4)
master boot record (MBR) at sector 0
        partition 0: type 0xEE offset 1 size 4294967295
installboot: no OpenBSD partition



# fdisk sd0

Disk: sd0       Usable LBA: 34 to 234441614 [234441648 Sectors]
   #: type                                 [       start: size ]
------------------------------------------------------------------------
   0: EFI Sys                              [          64: 960 ]
   1: OpenBSD                              [        1024: 234440591 ]


# disklabel sd0
# /dev/rsd0c:
type: SCSI
disk: SCSI disk
label: KINGSTON SA400S3
duid: 09a9344c23abff6c
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 14593
total sectors: 234441648
boundstart: 1024
boundend: 234441615

16 partitions:
#                size           offset  fstype [fsize bsize   cpg]
  a:        230692352             1024  4.2BSD   2048 16384 12960 # /
  b:          3748239        230693376    swap # none
  c:        234441648                0  unused
OpenBSD 7.3 (GENERIC) #1072: Sat Mar 25 10:26:08 MDT 2023
    dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC
real mem = 7933616128 (7566MB)
avail mem = 7673876480 (7318MB)
random: good seed from bootblocks
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 3.2 @ 0xcce1b000 (22 entries)
bios0: vendor American Megatrends Inc. version "P1.30" date 11/27/2020
bios0: ASRock 4X4 BOX
efi0 at bios0: UEFI 2.7
efi0: American Megatrends rev 0x50010
acpi0 at bios0: ACPI 6.0Undefined scope: \\_SB_.PCI0.SBRG.EC0_

acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SDEV SSDT FIDT MCFG AAFT IADT IAMT HPET SSDT VFCT TPM2 
SSDT CRAT CDIT SSDT SSDT SSDT SSDT WSMT APIC SSDT SSDT FPDT
acpi0: wakeup devices GPP0(S4) GPP2(S4) GPP3(S4) GPP4(S4) GPP5(S4) GP17(S4) 
XHC0(S4) XHC1(S4) GP18(S4) GP19(S4) SIO1(S3) GPP1(S4)
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimcfg0 at acpi0
acpimcfg0: addr 0xf0000000, bus 0-127
acpihpet0 at acpi0: 14318180 Hz
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD Ryzen 5 4500U with Radeon Graphics, 2375.00 MHz, 17-60-01
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,RDRAND,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TCE,TOPEXT,CPCTR,DBKP,PCTRL3,MWAITX,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,PQM,RDSEED,ADX,SMAP,CLFLUSHOPT,CLWB,SHA,UMIP,IBPB,IBRS,STIBP,SSBD,XSAVEOPT,XSAVEC,XGETBV1,XSAVES
cpu0: 32KB 64b/line 8-way D-cache, 32KB 64b/line 8-way I-cache, 512KB 64b/line 
8-way L2 cache, 4MB 64b/line 16-way L3 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 100MHz
cpu0: mwait min=64, max=64, C-substates=1.1, IBE
cpu at mainbus0: not configured
cpu at mainbus0: not configured
cpu at mainbus0: not configured
cpu at mainbus0: not configured
cpu at mainbus0: not configured
ioapic0 at mainbus0: apid 7 pa 0xfec00000, version 21, 24 pins
ioapic1 at mainbus0: apid 8 pa 0xfec01000, version 21, 32 pins
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (GPP0)
acpiprt2 at acpi0: bus 3 (GPP3)
acpiprt3 at acpi0: bus -1 (GPP4)
acpiprt4 at acpi0: bus 4 (GP17)
acpiprt5 at acpi0: bus 5 (GP18)
acpiprt6 at acpi0: bus -1 (GP19)
acpiprt7 at acpi0: bus 2 (GPP1)
acpipci0 at acpi0 PCI0: 0x00000010 0x00000011 0x00000000
acpicmos0 at acpi0
acpibtn0 at acpi0: PWRB
"ACPI0010" at acpi0 not configured
acpicpu0 at acpi0: C3(0@350 io@0x415), C2(0@400 io@0x414), C1(0@1 mwait), PSS
acpicpu1 at acpi0: no cpu matching ACPI ID 2
acpicpu2 at acpi0: no cpu matching ACPI ID 3
acpicpu3 at acpi0: no cpu matching ACPI ID 4
acpicpu4 at acpi0: no cpu matching ACPI ID 5
acpicpu5 at acpi0: no cpu matching ACPI ID 6
acpicpu6 at acpi0: no cpu matching ACPI ID 7
acpicpu7 at acpi0: no cpu matching ACPI ID 8
acpicpu8 at acpi0: no cpu matching ACPI ID 9
acpicpu9 at acpi0: no cpu matching ACPI ID 10
acpicpu10 at acpi0: no cpu matching ACPI ID 11
acpicpu11 at acpi0: no cpu matching ACPI ID 12
acpicpu12 at acpi0: no cpu matching ACPI ID 13
acpicpu13 at acpi0: no cpu matching ACPI ID 14
acpicpu14 at acpi0: no cpu matching ACPI ID 15
acpicpu15 at acpi0: no cpu matching ACPI ID 16
amdgpio0 at acpi0 GPIO uid 0 addr 0xfed81500/0x400 irq 7, 184 pins
tpm0 at acpi0 TPM_ 2.0 (TIS) addr 0xfed40000/0x5000, device 0x001b15d1 rev 0x16
acpipwrres0 at acpi0: P0S0, resource for SATA
acpipwrres1 at acpi0: P3S0, resource for SATA
acpipwrres2 at acpi0: P0S1, resource for SAT1
acpipwrres3 at acpi0: P3S1, resource for SAT1
acpivideo0 at acpi0: VGA_
acpivout0 at acpivideo0: LCD_
cpu0: 2375 MHz: speeds: 2375 1700 1400 MHz
pci0 at mainbus0 bus 0
ksmn0 at pci0 dev 0 function 0 "AMD 17h/6xh Root Complex" rev 0x00
pchb0 at pci0 dev 1 function 0 "AMD 17h/6xh Host" rev 0x00
ppb0 at pci0 dev 1 function 1 "AMD 17h/6xh PCIE" rev 0x00: msi
pci1 at ppb0 bus 1
rge0 at pci1 dev 0 function 0 "Realtek RTL8125" rev 0x05: msi, address 
a8:a1:59:a5:6e:41
ppb1 at pci0 dev 1 function 2 "AMD 17h/6xh PCIE" rev 0x00: msi
pci2 at ppb1 bus 2
re0 at pci2 dev 0 function 0 "Realtek 8168" rev 0x0e: RTL8168EP/8111EP 
(0x5000), msi, address a8:a1:59:a5:7e:79
rgephy0 at re0 phy 7: RTL8251 PHY, rev. 0
"Realtek RealManage Serial" rev 0x0e at pci2 dev 0 function 1 not configured
"Realtek RealManage Serial" rev 0x0e at pci2 dev 0 function 2 not configured
"Realtek RealManage IPMI" rev 0x0e at pci2 dev 0 function 3 not configured
ehci0 at pci2 dev 0 function 4 "Realtek RealManage USB" rev 0x0e: apic 8 int 7
ehci0: pre-2.0 USB rev
pchb1 at pci0 dev 2 function 0 "AMD 17h/6xh Host" rev 0x00
ppb2 at pci0 dev 2 function 1 "AMD 17h/6xh PCIE" rev 0x00: msi
pci3 at ppb2 bus 3
iwx0 at pci3 dev 0 function 0 "Intel Wi-Fi 6 AX200" rev 0x1a, msix
pchb2 at pci0 dev 8 function 0 "AMD 17h/6xh Host" rev 0x00
ppb3 at pci0 dev 8 function 1 "AMD 17h/6xh PCIE" rev 0x00
pci4 at ppb3 bus 4
amdgpu0 at pci4 dev 0 function 0 "ATI Renoir" rev 0xc3
drm0 at amdgpu0
amdgpu0: msi
ccp0 at pci4 dev 0 function 2 "AMD 17h/1xh Crypto" rev 0x00
xhci0 at pci4 dev 0 function 3 "AMD 17h/6xh xHCI" rev 0x00: msi, xHCI 1.10
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 configuration 1 interface 0 "AMD xHCI root hub" rev 3.00/1.00 
addr 1
xhci1 at pci4 dev 0 function 4 "AMD 17h/6xh xHCI" rev 0x00: msi, xHCI 1.10
usb1 at xhci1: USB revision 3.0
uhub1 at usb1 configuration 1 interface 0 "AMD xHCI root hub" rev 3.00/1.00 
addr 1
"AMD 17h/1xh I2S Audio" rev 0x01 at pci4 dev 0 function 5 not configured
ppb4 at pci0 dev 8 function 2 "AMD 17h/6xh PCIE" rev 0x00
pci5 at ppb4 bus 5
ahci0 at pci5 dev 0 function 0 "AMD FCH AHCI" rev 0x81: msi, AHCI 1.3.1
ahci0: port 0: 6.0Gb/s
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 0 lun 0: <ATA, KINGSTON SA400S3, 0315> naa.50026b7784d64898
sd0: 114473MB, 512 bytes/sector, 234441648 sectors, thin
piixpm0 at pci0 dev 20 function 0 "AMD FCH SMBus" rev 0x51: SMI
iic0 at piixpm0
spdmem0 at iic0 addr 0x54: 8GB DDR4 SDRAM PC4-21300 SO-DIMM
iic1 at piixpm0
pcib0 at pci0 dev 20 function 3 "AMD FCH LPC" rev 0x51
pchb3 at pci0 dev 24 function 0 "AMD 17h/6xh Data Fabric" rev 0x00
pchb4 at pci0 dev 24 function 1 "AMD 17h/6xh Data Fabric" rev 0x00
pchb5 at pci0 dev 24 function 2 "AMD 17h/6xh Data Fabric" rev 0x00
pchb6 at pci0 dev 24 function 3 "AMD 17h/6xh Data Fabric" rev 0x00
pchb7 at pci0 dev 24 function 4 "AMD 17h/6xh Data Fabric" rev 0x00
pchb8 at pci0 dev 24 function 5 "AMD 17h/6xh Data Fabric" rev 0x00
pchb9 at pci0 dev 24 function 6 "AMD 17h/6xh Data Fabric" rev 0x00
pchb10 at pci0 dev 24 function 7 "AMD 17h/6xh Data Fabric" rev 0x00
isa0 at pcib0
isadma0 at isa0
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
vmm0 at mainbus0: SVM/RVI
efifb at mainbus0 not configured
ugen0 at uhub1 port 3 "Intel Bluetooth" rev 2.01/0.01 addr 2
uhub2 at uhub1 port 4 configuration 1 interface 0 "Genesys Logic USB2.0 Hub" 
rev 2.00/60.52 addr 3
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
root on sd0a (09a9344c23abff6c.a) swap on sd0b dump on sd0b
iwx0: hw rev 0x340, fw 77.2dda880d.0, address e0:d4:64:82:27:5b
amdgpu0: RENOIR GC 9.3.0 6 CU rev 0x00
amdgpu0: 1920x1080, 32bpp
wsdisplay0 at amdgpu0 mux 1: console (std, vt100 emulation), using wskbd0
wsdisplay0: screen 1-5 added (std, vt100 emulation)

Reply via email to