Can't open /dev/bio on arm

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Can't open /dev/bio on arm

Kihaguru Gathura-2
Hi,

I am getting message:  bioctl: Can't open /dev/bio: Device not configured

No clue whatsoever on how to go about this. Please assist.

Instructions
--------------------------------------------------------------
almandine# fdisk -iy sd0
Writing MBR at offset 0.
almandine# fdisk -iy sd1
Writing MBR at offset 0.
almandine# disklabel -E sd0
Label editor (enter '?' for help at any prompt)
> a
partition: [a]
offset: [64]
size: [15727571] *
FS type: [4.2BSD] RAID
> w
> q
No label changes.
almandine# disklabel sd0 > layout
almandine# disklabel -R sd1 layout
almandine# rm layout
almandine# bioctl -c 1 -l sd0a,sd1a softraid0
bioctl: Can't open /dev/bio: Device not configured
------------------------------------------------------------------


dmesg
-------------------------------------------------------------------
almandine# dmesg
OpenBSD 6.3-current (RAMDISK) #377: Wed Aug  1 23:25:45 MDT 2018
    [hidden email]:/usr/src/sys/arch/arm64/compile/RAMDISK
real mem  = 958873600 (914MB)
avail mem = 895877120 (854MB)
mainbus0 at root: Raspberry Pi 3 Model B Rev 1.2
cpu0 at mainbus0 mpidr 0: ARM Cortex-A53 r0p4
efi0 at mainbus0: UEFI 2.7
efi0: Das U-Boot rev 0x0
simplefb0 at mainbus0: 656x416, 32bpp
wsdisplay0 at simplefb0
wsdisplay0: screen 0 added (std, vt100 emulation)
simplebus0 at mainbus0: "soc"
bcmintc0 at simplebus0
bcmdog0 at simplebus0
bcmrng0 at simplebus0
pluart0 at simplebus0
bcmaux0 at simplebus0
com0 at simplebus0: ns16550, no working fifo
com0: console
dwctwo0 at simplebus0
simplebus1 at mainbus0: "clocks"
agtimer0 at mainbus0: tick rate 19200 KHz
usb0 at dwctwo0: USB revision 2.0
uhub0 at usb0 configuration 1 interface 0 "Broadcom DWC2 root hub" rev
2.00/1.00 addr 1
uhub1 at uhub0 port 1 configuration 1 interface 0 "Standard Microsystems
product 0x9514" rev 2.00/2.00 addr 2
smsc0 at uhub1 port 1 configuration 1 interface 0 "Standard Microsystems
SMSC9512/14" rev 2.00/2.00 addr 3
smsc0: address b8:27:eb:fd:e2:73
ukphy0 at smsc0 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI
0x0001f0, model 0x000c
umass0 at uhub1 port 2 configuration 1 interface 0 "HP v222w" rev
2.00/11.00 addr 4
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, initiator 0
sd0 at scsibus0 targ 1 lun 0: <hp, v222w, 1100> SCSI2 0/direct removable
serial.03f03f40AA0000000444
sd0: 7680MB, 512 bytes/sector, 15728640 sectors
umass1 at uhub1 port 3 configuration 1 interface 0 "HP v222w" rev
2.00/11.00 addr 5
umass1: using SCSI over Bulk-Only
scsibus1 at umass1: 2 targets, initiator 0
sd1 at scsibus1 targ 1 lun 0: <hp, v222w, 1100> SCSI2 0/direct removable
serial.03f03f40AA0000000708
sd1: 7680MB, 512 bytes/sector, 15728640 sectors
bootfile: sd0a:/bsd
boot device: sd0
root on rd0a swap on rd0b dump on rd0b
WARNING: CHECK AND RESET THE DATE!
-------------------------------------------------------------------

Regards,

Kihaguru
Reply | Threaded
Open this post in threaded view
|

Re: Can't open /dev/bio on arm

Jonathan Gray-11
On Sat, Aug 04, 2018 at 09:33:45AM +0300, Kihaguru Gathura wrote:

> Hi,
>
> I am getting message:  bioctl: Can't open /dev/bio: Device not configured
>
> No clue whatsoever on how to go about this. Please assist.
>
> Instructions
> --------------------------------------------------------------
> almandine# fdisk -iy sd0
> Writing MBR at offset 0.
> almandine# fdisk -iy sd1
> Writing MBR at offset 0.
> almandine# disklabel -E sd0
> Label editor (enter '?' for help at any prompt)
> > a
> partition: [a]
> offset: [64]
> size: [15727571] *
> FS type: [4.2BSD] RAID
> > w
> > q
> No label changes.
> almandine# disklabel sd0 > layout
> almandine# disklabel -R sd1 layout
> almandine# rm layout
> almandine# bioctl -c 1 -l sd0a,sd1a softraid0
> bioctl: Can't open /dev/bio: Device not configured
> ------------------------------------------------------------------

softraid is not currently built as part of the ramdisk kernel on arm*
also the case for landisk, loongson, luna88k, octeon, sgi, socppc

Index: sys/arch/armv7/conf/RAMDISK
===================================================================
RCS file: /cvs/src/sys/arch/armv7/conf/RAMDISK,v
retrieving revision 1.103
diff -u -p -r1.103 RAMDISK
--- sys/arch/armv7/conf/RAMDISK 3 Aug 2018 13:37:08 -0000 1.103
+++ sys/arch/armv7/conf/RAMDISK 4 Aug 2018 07:30:38 -0000
@@ -30,6 +30,7 @@ config bsd root on rd0a swap on rd0b
 
 # The main bus device
 mainbus0 at root
+softraid0 at root
 simplebus* at fdt?
 cpu0 at mainbus?
 
Index: sys/arch/arm64/conf/RAMDISK
===================================================================
RCS file: /cvs/src/sys/arch/arm64/conf/RAMDISK,v
retrieving revision 1.66
diff -u -p -r1.66 RAMDISK
--- sys/arch/arm64/conf/RAMDISK 3 Aug 2018 13:37:08 -0000 1.66
+++ sys/arch/arm64/conf/RAMDISK 4 Aug 2018 07:30:38 -0000
@@ -46,6 +46,7 @@ config bsd root on rd0a swap on rd0b
 
 # The main bus device
 mainbus0 at root
+softraid0 at root
 cpu0 at mainbus?
 efi0 at mainbus?
 acpi0 at mainbus?

Reply | Threaded
Open this post in threaded view
|

Re: Can't open /dev/bio on arm

Jonathan Gray-11
On Sat, Aug 04, 2018 at 05:37:11PM +1000, Jonathan Gray wrote:

> On Sat, Aug 04, 2018 at 09:33:45AM +0300, Kihaguru Gathura wrote:
> > Hi,
> >
> > I am getting message:  bioctl: Can't open /dev/bio: Device not configured
> >
> > No clue whatsoever on how to go about this. Please assist.
> >
> > Instructions
> > --------------------------------------------------------------
> > almandine# fdisk -iy sd0
> > Writing MBR at offset 0.
> > almandine# fdisk -iy sd1
> > Writing MBR at offset 0.
> > almandine# disklabel -E sd0
> > Label editor (enter '?' for help at any prompt)
> > > a
> > partition: [a]
> > offset: [64]
> > size: [15727571] *
> > FS type: [4.2BSD] RAID
> > > w
> > > q
> > No label changes.
> > almandine# disklabel sd0 > layout
> > almandine# disklabel -R sd1 layout
> > almandine# rm layout
> > almandine# bioctl -c 1 -l sd0a,sd1a softraid0
> > bioctl: Can't open /dev/bio: Device not configured
> > ------------------------------------------------------------------
>
> softraid is not currently built as part of the ramdisk kernel on arm*
> also the case for landisk, loongson, luna88k, octeon, sgi, socppc

bio as well

Index: sys/arch/armv7/conf/RAMDISK
===================================================================
RCS file: /cvs/src/sys/arch/armv7/conf/RAMDISK,v
retrieving revision 1.103
diff -u -p -r1.103 RAMDISK
--- sys/arch/armv7/conf/RAMDISK 3 Aug 2018 13:37:08 -0000 1.103
+++ sys/arch/armv7/conf/RAMDISK 4 Aug 2018 08:36:08 -0000
@@ -30,6 +30,7 @@ config bsd root on rd0a swap on rd0b
 
 # The main bus device
 mainbus0 at root
+softraid0 at root
 simplebus* at fdt?
 cpu0 at mainbus?
 
@@ -266,3 +268,4 @@ pseudo-device openprom
 pseudo-device loop 1
 pseudo-device bpfilter 1
 pseudo-device rd 1
+pseudo-device bio 1
Index: sys/arch/arm64/conf/RAMDISK
===================================================================
RCS file: /cvs/src/sys/arch/arm64/conf/RAMDISK,v
retrieving revision 1.66
diff -u -p -r1.66 RAMDISK
--- sys/arch/arm64/conf/RAMDISK 3 Aug 2018 13:37:08 -0000 1.66
+++ sys/arch/arm64/conf/RAMDISK 4 Aug 2018 08:36:08 -0000
@@ -46,6 +46,7 @@ config bsd root on rd0a swap on rd0b
 
 # The main bus device
 mainbus0 at root
+softraid0 at root
 cpu0 at mainbus?
 efi0 at mainbus?
 acpi0 at mainbus?
@@ -244,3 +245,4 @@ rkpmic* at iic? # RK808 PMIC
 pseudo-device loop 1
 pseudo-device bpfilter 1
 pseudo-device rd 1
+pseudo-device bio 1

Reply | Threaded
Open this post in threaded view
|

Re: Can't open /dev/bio on arm

Jonathan Gray-11
On Sat, Aug 04, 2018 at 06:38:20PM +1000, Jonathan Gray wrote:

> On Sat, Aug 04, 2018 at 05:37:11PM +1000, Jonathan Gray wrote:
> > On Sat, Aug 04, 2018 at 09:33:45AM +0300, Kihaguru Gathura wrote:
> > > Hi,
> > >
> > > I am getting message:  bioctl: Can't open /dev/bio: Device not configured
> > >
> > > No clue whatsoever on how to go about this. Please assist.
> > >
> > > Instructions
> > > --------------------------------------------------------------
> > > almandine# fdisk -iy sd0
> > > Writing MBR at offset 0.
> > > almandine# fdisk -iy sd1
> > > Writing MBR at offset 0.
> > > almandine# disklabel -E sd0
> > > Label editor (enter '?' for help at any prompt)
> > > > a
> > > partition: [a]
> > > offset: [64]
> > > size: [15727571] *
> > > FS type: [4.2BSD] RAID
> > > > w
> > > > q
> > > No label changes.
> > > almandine# disklabel sd0 > layout
> > > almandine# disklabel -R sd1 layout
> > > almandine# rm layout
> > > almandine# bioctl -c 1 -l sd0a,sd1a softraid0
> > > bioctl: Can't open /dev/bio: Device not configured
> > > ------------------------------------------------------------------
> >
> > softraid is not currently built as part of the ramdisk kernel on arm*
> > also the case for landisk, loongson, luna88k, octeon, sgi, socppc
>
> bio as well

And then someone needs to add support to armv7/arm64 efiboot to be able
to boot from it like amd64, i386 and sparc64 can.

Reply | Threaded
Open this post in threaded view
|

Re: Can't open /dev/bio on arm

Janne Johansson-3
Is there MAKEDEV things to add also?

Den sön 5 aug. 2018 09:15Jonathan Gray <[hidden email]> skrev:

> On Sat, Aug 04, 2018 at 06:38:20PM +1000, Jonathan Gray wrote:
> > On Sat, Aug 04, 2018 at 05:37:11PM +1000, Jonathan Gray wrote:
> > > On Sat, Aug 04, 2018 at 09:33:45AM +0300, Kihaguru Gathura wrote:
> > > > Hi,
> > > >
> > > > I am getting message:  bioctl: Can't open /dev/bio: Device not
> configured
> > > >
> > > > No clue whatsoever on how to go about this. Please assist.
> > > >
> > > > Instructions
> > > > --------------------------------------------------------------
> > > > almandine# fdisk -iy sd0
> > > > Writing MBR at offset 0.
> > > > almandine# fdisk -iy sd1
> > > > Writing MBR at offset 0.
> > > > almandine# disklabel -E sd0
> > > > Label editor (enter '?' for help at any prompt)
> > > > > a
> > > > partition: [a]
> > > > offset: [64]
> > > > size: [15727571] *
> > > > FS type: [4.2BSD] RAID
> > > > > w
> > > > > q
> > > > No label changes.
> > > > almandine# disklabel sd0 > layout
> > > > almandine# disklabel -R sd1 layout
> > > > almandine# rm layout
> > > > almandine# bioctl -c 1 -l sd0a,sd1a softraid0
> > > > bioctl: Can't open /dev/bio: Device not configured
> > > > ------------------------------------------------------------------
> > >
> > > softraid is not currently built as part of the ramdisk kernel on arm*
> > > also the case for landisk, loongson, luna88k, octeon, sgi, socppc
> >
> > bio as well
>
> And then someone needs to add support to armv7/arm64 efiboot to be able
> to boot from it like amd64, i386 and sparc64 can.
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Can't open /dev/bio on arm

Jonathan Gray-11
On Sun, Aug 05, 2018 at 10:39:10AM +0200, Janne Johansson wrote:
> Is there MAKEDEV things to add also?

No, the MAKEDEV and conf.c parts are already there.

It should be possible to use softraid with ramdisks on arm* with future
snapshots, just not as a boot volume.