hi, trying to install -current on an edgerouter lite, fdisk fails when accessing the usb disk, dunno if its a dwctwo or an fdisk regression:
Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California.All rights reserved. Copyright (c) 1995-2021 OpenBSD. All rights reserved.https://www.OpenBSD.org OpenBSD 7.0 (RAMDISK) #750: Thu Sep 30 21:33:10 MDT 2021 dera...@octeon.openbsd.org:/usr/src/sys/arch/octeon/compile/RAMDISK real mem = 536870912 (512MB) avail mem = 520880128 (496MB) random: boothowto does not indicate good seed mainbus0 at root: board 20002 rev 2.18, model CN3xxx/CN5xxx cpu0 at mainbus0: CN50xx CPU rev 0.1 500 MHz, Software FP emulation cpu0: cache L1-I 32KB 4 way D 16KB 64 way, L2 128KB 8 way clock0 at mainbus0: int 5 iobus0 at mainbus0 simplebus0 at iobus0: "soc" octciu0 at simplebus0 octsmi0 at simplebus0 octpip0 at simplebus0 octgmx0 at octpip0 interface 0 cnmac0 at octgmx0: port 0 RGMII, address 80:2a:a8:f1:19:06 atphy0 at cnmac0 phy 7: AR8035 10/100/1000 PHY, rev. 2 cnmac1 at octgmx0: port 1 RGMII, address 80:2a:a8:f1:19:07 atphy1 at cnmac1 phy 6: AR8035 10/100/1000 PHY, rev. 2 cnmac2 at octgmx0: port 2 RGMII, address 80:2a:a8:f1:19:08 atphy2 at cnmac2 phy 5: AR8035 10/100/1000 PHY, rev. 2 com0 at simplebus0: ns16550a, 64 byte fifo com0: console dwctwo0 at iobus0 base 0x1180068000000 irq 56 usb0 at dwctwo0: USB revision 2.0 uhub0 at usb0 configuration 1 interface 0 "Octeon DWC2 root hub" rev 2.00/1.00 addr 1 umass0 at uhub0 port 1 configuration 1 interface 0 "JMicron USB to ATA/ATAPI bridge" rev 2.00/1.00 addr 2 umass0: using SCSI over Bulk-Only scsibus0 at umass0: 2 targets, initiator 0 sd0 at scsibus0 targ 1 lun 0: <KINGSTON, SA400S37120G, SBFK> serial.152d232950026B76829C sd0: 114473MB, 512 bytes/sector, 234441648 sectors root on rd0a swap on rd0b dump on rd0b ... Available disks are: sd0. Which disk is the root disk? ('?' for details) [sd0] MBR has invalid signature; not showing it. Use (W)hole disk or (E)dit the MBR? [whole] W Creating a FAT partition and an OpenBSD partition for rest of sd0...fdisk: DIOCGPDINFO: Input/output error done. disklabel: DIOCGPDINFO: Input/output error newfs_msdos: /dev/rsd0i: Input/output error The auto-allocated layout for sd0 is: disklabel: DIOCGPDINFO: Input/output error Use (A)uto layout, (E)dit auto layout, or create (C)ustom layout? [a] ! Type 'exit' to return to install. erl# dmesg|grep sd dera...@octeon.openbsd.org:/usr/src/sys/arch/octeon/compile/RAMDISK sd0 at scsibus0 targ 1 lun 0: <KINGSTON, SA400S37120G, SBFK> serial.152d232950026B76829C sd0: 114473MB, 512 bytes/sector, 234441648 sectors erl# fdisk sd0 fdisk: DIOCGPDINFO: Input/output error erl# disklabel sd0 disklabel: DIOCGDINFO: Input/output error with a miniroot69.img from 6.9, it seems better: OpenBSD 6.9 (RAMDISK) #606: Sun Apr 18 03:34:14 MDT 2021 dera...@octeon.openbsd.org:/usr/src/sys/arch/octeon/compile/RAMDISK real mem = 536870912 (512MB) avail mem = 520863744 (496MB) random: boothowto does not indicate good seed mainbus0 at root: board 20002 rev 2.18, model CN3xxx/CN5xxx cpu0 at mainbus0: CN50xx CPU rev 0.1 500 MHz, Software FP emulation cpu0: cache L1-I 32KB 4 way D 16KB 64 way, L2 128KB 8 way clock0 at mainbus0: int 5 iobus0 at mainbus0 simplebus0 at iobus0: "soc" octciu0 at simplebus0 octsmi0 at simplebus0 octpip0 at simplebus0 octgmx0 at octpip0 interface 0 cnmac0 at octgmx0: port 0 RGMII, address 80:2a:a8:f1:19:06 atphy0 at cnmac0 phy 7: AR8035 10/100/1000 PHY, rev. 2 cnmac1 at octgmx0: port 1 RGMII, address 80:2a:a8:f1:19:07 atphy1 at cnmac1 phy 6: AR8035 10/100/1000 PHY, rev. 2 cnmac2 at octgmx0: port 2 RGMII, address 80:2a:a8:f1:19:08 atphy2 at cnmac2 phy 5: AR8035 10/100/1000 PHY, rev. 2 com0 at simplebus0: ns16550a, 64 byte fifo com0: console dwctwo0 at iobus0 base 0x1180068000000 irq 56 usb0 at dwctwo0: USB revision 2.0 uhub0 at usb0 configuration 1 interface 0 "Octeon DWC2 root hub" rev 2.00/1.00 addr 1 umass0 at uhub0 port 1 configuration 1 interface 0 "JMicron USB to ATA/ATAPI bridge" rev 2.00/1.00 addr 2 umass0: using SCSI over Bulk-Only scsibus0 at umass0: 2 targets, initiator 0 sd0 at scsibus0 targ 1 lun 0: <KINGSTON, SA400S37120G, SBFK> serial.152d232950026B76829C sd0: 114473MB, 512 bytes/sector, 234441648 sectors root on rd0a swap on rd0b dump on rd0b ... Available disks are: sd0. Which disk is the root disk? ('?' for details) [sd0] Disk: sd0 geometry: 14593/255/63 [234441648 Sectors] Offset: 0 Signature: 0xAA55 Starting Ending LBA Info: #: idC H S -C H S [ start:size ] ------------------------------------------------------------------------------- *0: 0C0 1 2 -1 10338 [64: 22528 ] FAT32L 1: 000 0 0 -0 0 0 [ 0: 0 ] unused 2: 000 0 0 -0 0 0 [ 0: 0 ] unused 3: 000 0 0 -0 0 0 [ 0: 0 ] unused Use (W)hole disk or (E)dit the MBR? [whole] W Creating a FAT partition and an OpenBSD partition for rest of sd0...done. /dev/rsd0i: 65372 sectors in 16343 FAT16 clusters (2048 bytes/cluster) bps=512 spc=4 res=1 nft=2 rde=512 mid=0xf8 spf=64 spt=63 hds=255 hid=64 bsec=65536 (and i can perform the install fine then)