Unable to boot sparc from raid drive installation:Open ..... Invalid argument

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

Unable to boot sparc from raid drive installation:Open ..... Invalid argument

Kihaguru Gathura-2
Hi,

Unable to boot with the following message

open /pci@83,4000/FJSV,ulsa@2,1/disk@0,0:a/etc/random.seed: Invalid argument
open /pci@83,4000/FJSV,ulsa@2,1/disk@0,0:a/bsd: Invalid argument

 Not sure the issue with softraid setup detailed below. Any assistance
highly appreciated.

Thanks and regards,

Kihaguru.


{0} ok boot cdrom
Resetting ...

Sep 02 08:57:03 GMT 2019 XSCF:I::[02030100] Start reset sequence
Sep 02 08:57:04 GMT 2019 XSCF:I::[02030200] Reset released...

Sep 02 08:57:07 GMT 2019 PowerOn SelfTest start
POST:Testing Flash/SRAM
POST:Testing SC
POST:Testing XSCF
POST:Banner
POST:FATAL check
POST:Testing Timer1
POST:Testing Tick
POST:Testing MMU
POST:Testing CPU Type
POST:Testing DTAG
POST:Memory Probe
POST:Testing Memory
POST:Testing Softint
POST:Testing U2P
POST:Testing Slave Device
POST:Testing Master Device
POST:System Configure
POST:OBP Start
screen not found.
keyboard not found.
Keyboard not present.  Using ttya for input and output.

Fujitsu Siemens PRIMEPOWER250 2x SPARC64 V, No Keyboard
OpenBoot 3.18.1-1, 16384 MB memory installed
Ethernet address 0:b:5d:f3:a7:5c, Host ID: 80f2a75c.
XSCF Version: 4.12.1



Executing last command: boot cdrom
Boot device: /pci@83,4000/ide@d/cdrom@0,0:f  File and args:
OpenBSD IEEE 1275 Bootblock 1.4
..>> OpenBSD BOOT 1.12
Trying bsd...
open /pci@83,4000/ide@d/cdrom@0,0:f/etc/random.seed: No such file or
directory
Booting /pci@83,4000/ide@d/cdrom@0,0:f/bsd
4145224@0x1000000+8120@0x13f4048+3255632@0x1c00000+938672@0x1f1ad50
symbols @ 0xfeae4340 139 start=0x1000000
console is /pci@83,4000/isa@7/su@0,3f8
Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2019 OpenBSD. All rights reserved.
https://www.OpenBSD.org

OpenBSD 6.5 (RAMDISK) #156: Sun Apr 14 05:14:17 MDT 2019
    [hidden email]:/usr/src/sys/arch/sparc64/compile/RAMDISK
real mem = 17179869184 (16384MB)
avail mem = 16869081088 (16087MB)
mainbus0 at root: Fujitsu Siemens PRIMEPOWER250 2x SPARC64 V
cpu0 at mainbus0: FJSV,SPARC64-V (rev 5.1) @ 1979 MHz
cpu0: physical 128K instruction (64 b/l), 128K data (64 b/l), 3072K
external (64 b/l)
"FJSV,SPARC64-V" at mainbus0 not configured
psycho0 at mainbus0 addr 0xfffb2000: SUNW,psycho, impl 0, version 4, ign c0
psycho0: bus range 0-0, PCI bus 0
psycho0: dvma map fe000000-ffffffff, STC0 enabled
pci0 at psycho0
ebus0 at pci0 dev 1 function 0 "Sun PCIO EBus2" rev 0x01
"FJSV,scfc" at ebus0 addr 210000-210085, 220000-220031, 260000-260001,
270000-28ffff ivec 0x23 not configured
"FJSV,flashprom" at ebus0 addr 0-3fffff not configured
clock1 at ebus0 addr 250000-251fff: mk48t59
"FJSV,panel" at ebus0 addr 210011-210011 ivec 0x25 not configured
ebus1 at pci0 dev 7 function 0 "Acer Labs M1533 ISA" rev 0x00
com0 at ebus1 addr 3f8-3ff ivec 0x2b: ns16550a, 16 byte fifo
com0: console
com1 at ebus1 addr 2e8-2ef ivec 0x2b: ns16550a, 16 byte fifo
hme0 at pci0 dev 1 function 1 "Sun HME" rev 0x01: ivec 0xe1, address
00:0b:5d:f3:a7:5c
nsphyter0 at hme0 phy 1: DP83843 10/100 PHY, rev. 0
mpi0 at pci0 dev 2 function 1 "Symbios Logic 53c1030" rev 0x07: ivec 0xe0
mpi0: 0, firmware 1.0.12.0
scsibus0 at mpi0: 16 targets, initiator 7
sd0 at scsibus0 targ 0 lun 0: <FUJITSU, MAT3073N SUN72G, 0602> SCSI2
0/direct fixed serial.FUJITSU_MAT3073N_SUN72G_000506B00RAR_AAN0P5200RAR
sd0: 70007MB, 512 bytes/sector, 143374738 sectors
sd1 at scsibus0 targ 1 lun 0: <FUJITSU, MAT3073N SUN72G, 0602> SCSI2
0/direct fixed serial.FUJITSU_MAT3073N_SUN72G_000506B00SSL_AAN0P5200SSL
sd1: 70007MB, 512 bytes/sector, 143374738 sectors
mpi0: target 0 Sync at 160MHz width 16bit offset 127 QAS 1 DT 1 IU 1
mpi0: target 1 Sync at 160MHz width 16bit offset 127 QAS 1 DT 1 IU 1
pciide0 at pci0 dev 13 function 0 "Acer Labs M5229 UDMA IDE" rev 0xc4: DMA,
channel 0 configured to native-PCI, channel 1 configured to native-PCI
pciide0: using ivec 0xe4 for native-PCI interrupt
atapiscsi0 at pciide0 channel 0 drive 0
scsibus1 at atapiscsi0: 2 targets
cd0 at scsibus1 targ 0 lun 0: <MATSHITA, DVD-ROM SR-8178, PY28> ATAPI
5/cdrom removable
cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 disabled (no drives)
ohci0 at pci0 dev 10 function 0 "Acer Labs M5237 USB" rev 0x03: ivec 0xe9,
version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0 configuration 1 interface 0 "Acer Labs OHCI root hub" rev
1.00/1.00 addr 1
psycho1 at mainbus0 addr 0xfff9e000: SUNW,psycho, impl 0, version 4, ign c0
psycho1: bus range 128-128, PCI bus 128
psycho1: dvma map fe000000-ffffffff, STC0 enabled, STC1 enabled
pci1 at psycho1
bge0 at pci1 dev 1 function 0 "Fujitsu PRIMEPOWER250/450 LAN" rev 0x02,
BCM5702/5703 A2 (0x1002): ivec 0xc0, address 00:0b:5d:f4:27:5c
brgphy0 at bge0 phy 1: BCM5703 10/100/1000baseT PHY, rev. 2
timer0 at mainbus0 addr 0xfff8bc00 ivec 0xec, 0xed
softraid0 at root
scsibus2 at softraid0: 256 targets
bootpath: /pci@83,4000/ide@d,0/cdrom@0,0:f
root on rd0a swap on rd0b dump on rd0b
erase ^?, werase ^W, kill ^U, intr ^C, status ^T

Welcome to the OpenBSD/sparc64 6.5 installation program.
(I)nstall, (U)pgrade, (A)utoinstall or (S)hell? I
At any prompt except password prompts you can escape to a shell by
typing '!'. Default answers are shown in []'s and are selected by
pressing RETURN.  You can exit this program at any time by pressing
Control-C, but this can leave your system in an inconsistent state.

Terminal type? [sun]
~
~
~
~
Available disks are: sd0 sd1.
Which disk is the root disk? ('?' for details) [sd0] !
Type 'exit' to return to install.
www# dd if=/dev/urandom of=/dev/rsd0c bs=1m
dd: /dev/rsd0c: short write on character device
dd: /dev/rsd0c: end of device
70008+0 records in
70007+1 records out
73407865856 bytes transferred in 2026.673 secs (36220859 bytes/sec)
www# dd if=/dev/urandom of=/dev/rsd1c bs=1m
dd: /dev/rsd1c: short write on character device
dd: /dev/rsd1c: end of device
70008+0 records in
70007+1 records out
73407865856 bytes transferred in 2029.361 secs (36172892 bytes/sec)
www# cd /dev
www# ls
MAKEDEV  rd0c     rsd1d    rsd2n    rwd1g    sd0a     sd1k     urandom  wd1j
bio      rfd0a    rsd1e    rsd2o    rwd1h    sd0b     sd1l     wd0a     wd1k
bpf      rfd0b    rsd1f    rsd2p    rwd1i    sd0c     sd1m     wd0b     wd1l
bpf0     rfd0c    rsd1g    rst0     rwd1j    sd0d     sd1n     wd0c     wd1m
cd0a     rfd0i    rsd1h    rwd0a    rwd1k    sd0e     sd1o     wd0d     wd1n
cd0c     rrd0a    rsd1i    rwd0b    rwd1l    sd0f     sd1p     wd0e     wd1o
console  rrd0c    rsd1j    rwd0c    rwd1m    sd0g     sd2a     wd0f     wd1p
diskmap  rsd0a    rsd1k    rwd0d    rwd1n    sd0h     sd2b     wd0g     wd2a
enrst0   rsd0b    rsd1l    rwd0e    rwd1o    sd0i     sd2c     wd0h     wd2b
erst0    rsd0c    rsd1m    rwd0f    rwd1p    sd0j     sd2d     wd0i     wd2c
fd0a     rsd0d    rsd1n    rwd0g    rwd2a    sd0k     sd2e     wd0j     wd2d
fd0b     rsd0e    rsd1o    rwd0h    rwd2b    sd0l     sd2f     wd0k     wd2e
fd0c     rsd0f    rsd1p    rwd0i    rwd2c    sd0m     sd2g     wd0l     wd2f
fd0i     rsd0g    rsd2a    rwd0j    rwd2d    sd0n     sd2h     wd0m     wd2g
klog     rsd0h    rsd2b    rwd0k    rwd2e    sd0o     sd2i     wd0n     wd2h
kmem     rsd0i    rsd2c    rwd0l    rwd2f    sd0p     sd2j     wd0o     wd2i
ksyms    rsd0j    rsd2d    rwd0m    rwd2g    sd1a     sd2k     wd0p     wd2j
mdesc    rsd0k    rsd2e    rwd0n    rwd2h    sd1b     sd2l     wd1a     wd2k
mem      rsd0l    rsd2f    rwd0o    rwd2i    sd1c     sd2m     wd1b     wd2l
nrst0    rsd0m    rsd2g    rwd0p    rwd2j    sd1d     sd2n     wd1c     wd2m
null     rsd0n    rsd2h    rwd1a    rwd2k    sd1e     sd2o     wd1d     wd2n
openprom rsd0o    rsd2i    rwd1b    rwd2l    sd1f     sd2p     wd1e     wd2o
random   rsd0p    rsd2j    rwd1c    rwd2m    sd1g     stderr   wd1f     wd2p
rcd0a    rsd1a    rsd2k    rwd1d    rwd2n    sd1h     stdin    wd1g     zero
rcd0c    rsd1b    rsd2l    rwd1e    rwd2o    sd1i     stdout   wd1h
rd0a     rsd1c    rsd2m    rwd1f    rwd2p    sd1j     tty      wd1i
www# disklabel -E sd0
This platform requires that partition offsets/sizes be on cylinder
boundaries.
Partition offsets/sizes will be rounded to the nearest cylinder
automatically.
Label editor (enter '?' for help at any prompt)
sd0> p
OpenBSD area: 0-143374738; size: 143374738; free: 143374738
#                size           offset  fstype [fsize bsize   cpg]
  c:        143374738                0  unused
sd0> q
No label changes.
www# disklabel -E sd1
This platform requires that partition offsets/sizes be on cylinder
boundaries.
Partition offsets/sizes will be rounded to the nearest cylinder
automatically.
Label editor (enter '?' for help at any prompt)
sd1> p
OpenBSD area: 0-143374738; size: 143374738; free: 143374738
#                size           offset  fstype [fsize bsize   cpg]
  c:        143374738                0  unused
sd1> q
No label changes.
www# disklabel -E sd2
disklabel: /dev/rsd2c: Device not configured
www# fdisk -iy sd0
sh: fdisk: not found
www# disklabel -E sd0
This platform requires that partition offsets/sizes be on cylinder
boundaries.
Partition offsets/sizes will be rounded to the nearest cylinder
automatically.
Label editor (enter '?' for help at any prompt)
sd0> a
partition: [a]
offset: [0]
size: [143374738] *
FS type: [4.2BSD] RAID
sd0> w
sd0> q
No label changes.
www# disklabel sd0 > layout
www# disklabel -R sd1 layout
www# rm layout
www# bioctl -c 1 -l sd0a,sd1a softraid0
sd2 at scsibus2 targ 1 lun 0: <OPENBSD, SR RAID 1, 006> SCSI2 0/direct fixed
sd2: 70002MB, 512 bytes/sector, 143366016 sectors
softraid0: RAID 1 volume attached as sd2
www# dd if=/dev/zero of=/dev/rsd2c bs=1m count=1
1+0 records in
1+0 records out
1048576 bytes transferred in 0.033 secs (31058796 bytes/sec)
www# bioctl sd2
Volume      Status               Size Device
softraid0 0 Online        73403400192 sd2     RAID1
          0 Online        73403400192 0:0.0   noencl <sd0a>
          1 Online        73403400192 0:1.0   noencl <sd1a>
www# exit
Available disks are: sd0 sd1 sd2.
Which disk is the root disk? ('?' for details) [sd0] sd2
The auto-allocated layout for sd2 is:
#                size           offset  fstype [fsize bsize   cpg]
  a:             1.0G                0  4.2BSD   2048 16384     1 # /
  b:             5.9G          2104515    swap
  c:            68.4G                0  unused
  d:             4.0G         14442435  4.2BSD   2048 16384     1 # /tmp
  e:             7.6G         22844430  4.2BSD   2048 16384     1 # /var
  f:             2.0G         38829105  4.2BSD   2048 16384     1 # /usr
  g:             1.0G         43038135  4.2BSD   2048 16384     1 #
/usr/X11R6
  h:             9.7G         45142650  4.2BSD   2048 16384     1 #
/usr/local
  i:             2.0G         65497005  4.2BSD   2048 16384     1 # /usr/src
  j:             6.0G         69706035  4.2BSD   2048 16384     1 # /usr/obj
  k:            29.1G         82300995  4.2BSD   2048 16384     1 # /home
Use (A)uto layout, (E)dit auto layout, or create (C)ustom layout? [a]
/dev/rsd2a: 1027.6MB in 2104512 sectors of 512 bytes
6 cylinder groups of 202.47MB, 12958 blocks, 25984 inodes each
/dev/rsd2k: 29815.9MB in 61063064 sectors of 512 bytes
148 cylinder groups of 202.47MB, 12958 blocks, 25984 inodes each
/dev/rsd2d: 4102.5MB in 8401992 sectors of 512 bytes
21 cylinder groups of 202.47MB, 12958 blocks, 25984 inodes each
/dev/rsd2f: 2055.2MB in 4209028 sectors of 512 bytes
11 cylinder groups of 202.47MB, 12958 blocks, 25984 inodes each
/dev/rsd2g: 1027.6MB in 2104512 sectors of 512 bytes
6 cylinder groups of 202.47MB, 12958 blocks, 25984 inodes each
/dev/rsd2h: 9938.6MB in 20354352 sectors of 512 bytes
50 cylinder groups of 202.47MB, 12958 blocks, 25984 inodes each
/dev/rsd2j: 6149.9MB in 12594960 sectors of 512 bytes
31 cylinder groups of 202.47MB, 12958 blocks, 25984 inodes each
/dev/rsd2i: 2055.2MB in 4209028 sectors of 512 bytes
11 cylinder groups of 202.47MB, 12958 blocks, 25984 inodes each
/dev/rsd2e: 7805.0MB in 15984672 sectors of 512 bytes
39 cylinder groups of 202.47MB, 12958 blocks, 25984 inodes each
Available disks are: sd0 sd1.
Which disk do you wish to initialize? (or 'done') [done]
/dev/sd2a (f17019aae84f4ec9.a) on /mnt type ffs (rw, asynchronous, local)
/dev/sd2k (f17019aae84f4ec9.k) on /mnt/home type ffs (rw, asynchronous,
local, nodev, nosuid)
/dev/sd2d (f17019aae84f4ec9.d) on /mnt/tmp type ffs (rw, asynchronous,
local, nodev, nosuid)
/dev/sd2f (f17019aae84f4ec9.f) on /mnt/usr type ffs (rw, asynchronous,
local, nodev)
/dev/sd2g (f17019aae84f4ec9.g) on /mnt/usr/X11R6 type ffs (rw,
asynchronous, local, nodev)
/dev/sd2h (f17019aae84f4ec9.h) on /mnt/usr/local type ffs (rw,
asynchronous, local, nodev)
/dev/sd2j (f17019aae84f4ec9.j) on /mnt/usr/obj type ffs (rw, asynchronous,
local, nodev, nosuid)
/dev/sd2i (f17019aae84f4ec9.i) on /mnt/usr/src type ffs (rw, asynchronous,
local, nodev, nosuid)
/dev/sd2e (f17019aae84f4ec9.e) on /mnt/var type ffs (rw, asynchronous,
local, nodev, nosuid)

Let's install the sets!
Location of sets? (cd0 disk http or 'done') [http]
HTTP proxy URL? (e.g. '<a href="http://proxy:8080'">http://proxy:8080', or 'none') [none]
HTTP Server? (hostname, list#, 'done' or '?') [ftp.OpenBSD.org]
Server directory? [pub/OpenBSD/6.5/sparc64]

Select sets by entering a set name, a file name pattern or 'all'. De-select
sets by prepending a '-', e.g.: '-game*'. Selected sets are labelled '[X]'.
    [X] bsd           [X] base65.tgz    [X] game65.tgz    [X] xfont65.tgz
    [X] bsd.mp        [X] comp65.tgz    [X] xbase65.tgz   [X] xserv65.tgz
    [X] bsd.rd        [X] man65.tgz     [X] xshare65.tgz
Set name(s)? (or 'abort' or 'done') [done] -game* -x*
    [X] bsd           [X] base65.tgz    [ ] game65.tgz    [ ] xfont65.tgz
    [X] bsd.mp        [X] comp65.tgz    [ ] xbase65.tgz   [ ] xserv65.tgz
    [X] bsd.rd        [X] man65.tgz     [ ] xshare65.tgz
Set name(s)? (or 'abort' or 'done') [done]
Get/Verify SHA256.sig   100% |**************************|  1974       00:00
Signature Verified
Get/Verify bsd          100% |**************************| 11005 KB    00:14
Get/Verify bsd.mp       100% |**************************| 11076 KB    00:14
Get/Verify bsd.rd       100% |**************************|  2699 KB    00:09
Get/Verify base65.tgz   100% |**************************|   160 MB    01:41
Get/Verify comp65.tgz   100% |**************************| 68832 KB    01:39
Get/Verify man65.tgz    100% |**************************|  7392 KB    00:12
Installing bsd          100% |**************************| 11005 KB    00:00
Installing bsd.mp       100% |**************************| 11076 KB    00:00
Installing bsd.rd       100% |**************************|  2699 KB    00:00
Installing base65.tgz   100% |**************************|   160 MB    00:15
Extracting etc.tgz      100% |**************************|   260 KB    00:00
Installing comp65.tgz   100% |**************************| 68832 KB    00:09
Installing man65.tgz    100% |**************************|  7392 KB    00:01
Location of sets? (cd0 disk http or 'done') [done]
Saving configuration files... done.
Making all device nodes... done.
Multiprocessor machine; using bsd.mp instead of bsd.
Relinking to create unique kernel... done.

CONGRATULATIONS! Your OpenBSD install has been successfully completed!

When you login to your new system the first time, please read your mail
using the 'mail' command.

Exit to (S)hell, (H)alt or (R)eboot? [halt] R
syncing disks... done
rebooting

Resetting ...

Sep 02 13:11:10 GMT 2019 XSCF:I::[02030100] Start reset sequence
Sep 02 13:11:10 GMT 2019 XSCF:I::[02030200] Reset released...

Sep 02 13:11:13 GMT 2019 PowerOn SelfTest start
POST:Testing Flash/SRAM
POST:Testing SC
POST:Testing XSCF
POST:Banner
POST:FATAL check
POST:Testing Timer1
POST:Testing Tick
POST:Testing MMU
POST:Testing CPU Type
POST:Testing DTAG
POST:Memory Probe
POST:Testing Memory
POST:Testing Softint
POST:Testing U2P
POST:Testing Slave Device
POST:Testing Master Device
POST:System Configure
POST:OBP Start
screen not found.
keyboard not found.
Keyboard not present.  Using ttya for input and output.

Fujitsu Siemens PRIMEPOWER250 2x SPARC64 V, No Keyboard
OpenBoot 3.18.1-1, 16384 MB memory installed
Ethernet address 0:b:5d:f3:a7:5c, Host ID: 80f2a75c.
XSCF Version: 4.12.1



Executing last command: boot
Boot device: /pci@83,4000/FJSV,ulsa@2,1/disk@0,0  File and args:
OpenBSD IEEE 1275 Bootblock 1.4
>> OpenBSD BOOT 1.12
Can't read disk label.
Can't open disk label package
sr0*
Trying bsd...
open /pci@83,4000/FJSV,ulsa@2,1/disk@0,0:a/etc/random.seed: Invalid argument
open /pci@83,4000/FJSV,ulsa@2,1/disk@0,0:a/bsd: Invalid argument

Boot:
Reply | Threaded
Open this post in threaded view
|

Re: Unable to boot sparc from raid drive installation:Open ..... Invalid argument

Otto Moerbeek
On Mon, Sep 02, 2019 at 05:32:53PM +0300, Kihaguru Gathura wrote:

> Hi,
>
> Unable to boot with the following message
>
> open /pci@83,4000/FJSV,ulsa@2,1/disk@0,0:a/etc/random.seed: Invalid argument
> open /pci@83,4000/FJSV,ulsa@2,1/disk@0,0:a/bsd: Invalid argument
>
>  Not sure the issue with softraid setup detailed below. Any assistance
> highly appreciated.
>
> Thanks and regards,

Did you setup boot-file?

Try

        boot sr0a:/bsd

On the OpenBSD boot loader prompt.

If that works you should setup boot-file as described in

See http://man.openbsd.org/man8/sparc64/boot_sparc64.8

        -Otto

>
> Kihaguru.
>
>
> {0} ok boot cdrom
> Resetting ...
>
> Sep 02 08:57:03 GMT 2019 XSCF:I::[02030100] Start reset sequence
> Sep 02 08:57:04 GMT 2019 XSCF:I::[02030200] Reset released...
>
> Sep 02 08:57:07 GMT 2019 PowerOn SelfTest start
> POST:Testing Flash/SRAM
> POST:Testing SC
> POST:Testing XSCF
> POST:Banner
> POST:FATAL check
> POST:Testing Timer1
> POST:Testing Tick
> POST:Testing MMU
> POST:Testing CPU Type
> POST:Testing DTAG
> POST:Memory Probe
> POST:Testing Memory
> POST:Testing Softint
> POST:Testing U2P
> POST:Testing Slave Device
> POST:Testing Master Device
> POST:System Configure
> POST:OBP Start
> screen not found.
> keyboard not found.
> Keyboard not present.  Using ttya for input and output.
>
> Fujitsu Siemens PRIMEPOWER250 2x SPARC64 V, No Keyboard
> OpenBoot 3.18.1-1, 16384 MB memory installed
> Ethernet address 0:b:5d:f3:a7:5c, Host ID: 80f2a75c.
> XSCF Version: 4.12.1
>
>
>
> Executing last command: boot cdrom
> Boot device: /pci@83,4000/ide@d/cdrom@0,0:f  File and args:
> OpenBSD IEEE 1275 Bootblock 1.4
> ..>> OpenBSD BOOT 1.12
> Trying bsd...
> open /pci@83,4000/ide@d/cdrom@0,0:f/etc/random.seed: No such file or
> directory
> Booting /pci@83,4000/ide@d/cdrom@0,0:f/bsd
> 4145224@0x1000000+8120@0x13f4048+3255632@0x1c00000+938672@0x1f1ad50
> symbols @ 0xfeae4340 139 start=0x1000000
> console is /pci@83,4000/isa@7/su@0,3f8
> Copyright (c) 1982, 1986, 1989, 1991, 1993
>         The Regents of the University of California.  All rights reserved.
> Copyright (c) 1995-2019 OpenBSD. All rights reserved.
> https://www.OpenBSD.org
>
> OpenBSD 6.5 (RAMDISK) #156: Sun Apr 14 05:14:17 MDT 2019
>     [hidden email]:/usr/src/sys/arch/sparc64/compile/RAMDISK
> real mem = 17179869184 (16384MB)
> avail mem = 16869081088 (16087MB)
> mainbus0 at root: Fujitsu Siemens PRIMEPOWER250 2x SPARC64 V
> cpu0 at mainbus0: FJSV,SPARC64-V (rev 5.1) @ 1979 MHz
> cpu0: physical 128K instruction (64 b/l), 128K data (64 b/l), 3072K
> external (64 b/l)
> "FJSV,SPARC64-V" at mainbus0 not configured
> psycho0 at mainbus0 addr 0xfffb2000: SUNW,psycho, impl 0, version 4, ign c0
> psycho0: bus range 0-0, PCI bus 0
> psycho0: dvma map fe000000-ffffffff, STC0 enabled
> pci0 at psycho0
> ebus0 at pci0 dev 1 function 0 "Sun PCIO EBus2" rev 0x01
> "FJSV,scfc" at ebus0 addr 210000-210085, 220000-220031, 260000-260001,
> 270000-28ffff ivec 0x23 not configured
> "FJSV,flashprom" at ebus0 addr 0-3fffff not configured
> clock1 at ebus0 addr 250000-251fff: mk48t59
> "FJSV,panel" at ebus0 addr 210011-210011 ivec 0x25 not configured
> ebus1 at pci0 dev 7 function 0 "Acer Labs M1533 ISA" rev 0x00
> com0 at ebus1 addr 3f8-3ff ivec 0x2b: ns16550a, 16 byte fifo
> com0: console
> com1 at ebus1 addr 2e8-2ef ivec 0x2b: ns16550a, 16 byte fifo
> hme0 at pci0 dev 1 function 1 "Sun HME" rev 0x01: ivec 0xe1, address
> 00:0b:5d:f3:a7:5c
> nsphyter0 at hme0 phy 1: DP83843 10/100 PHY, rev. 0
> mpi0 at pci0 dev 2 function 1 "Symbios Logic 53c1030" rev 0x07: ivec 0xe0
> mpi0: 0, firmware 1.0.12.0
> scsibus0 at mpi0: 16 targets, initiator 7
> sd0 at scsibus0 targ 0 lun 0: <FUJITSU, MAT3073N SUN72G, 0602> SCSI2
> 0/direct fixed serial.FUJITSU_MAT3073N_SUN72G_000506B00RAR_AAN0P5200RAR
> sd0: 70007MB, 512 bytes/sector, 143374738 sectors
> sd1 at scsibus0 targ 1 lun 0: <FUJITSU, MAT3073N SUN72G, 0602> SCSI2
> 0/direct fixed serial.FUJITSU_MAT3073N_SUN72G_000506B00SSL_AAN0P5200SSL
> sd1: 70007MB, 512 bytes/sector, 143374738 sectors
> mpi0: target 0 Sync at 160MHz width 16bit offset 127 QAS 1 DT 1 IU 1
> mpi0: target 1 Sync at 160MHz width 16bit offset 127 QAS 1 DT 1 IU 1
> pciide0 at pci0 dev 13 function 0 "Acer Labs M5229 UDMA IDE" rev 0xc4: DMA,
> channel 0 configured to native-PCI, channel 1 configured to native-PCI
> pciide0: using ivec 0xe4 for native-PCI interrupt
> atapiscsi0 at pciide0 channel 0 drive 0
> scsibus1 at atapiscsi0: 2 targets
> cd0 at scsibus1 targ 0 lun 0: <MATSHITA, DVD-ROM SR-8178, PY28> ATAPI
> 5/cdrom removable
> cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
> pciide0: channel 1 disabled (no drives)
> ohci0 at pci0 dev 10 function 0 "Acer Labs M5237 USB" rev 0x03: ivec 0xe9,
> version 1.0, legacy support
> usb0 at ohci0: USB revision 1.0
> uhub0 at usb0 configuration 1 interface 0 "Acer Labs OHCI root hub" rev
> 1.00/1.00 addr 1
> psycho1 at mainbus0 addr 0xfff9e000: SUNW,psycho, impl 0, version 4, ign c0
> psycho1: bus range 128-128, PCI bus 128
> psycho1: dvma map fe000000-ffffffff, STC0 enabled, STC1 enabled
> pci1 at psycho1
> bge0 at pci1 dev 1 function 0 "Fujitsu PRIMEPOWER250/450 LAN" rev 0x02,
> BCM5702/5703 A2 (0x1002): ivec 0xc0, address 00:0b:5d:f4:27:5c
> brgphy0 at bge0 phy 1: BCM5703 10/100/1000baseT PHY, rev. 2
> timer0 at mainbus0 addr 0xfff8bc00 ivec 0xec, 0xed
> softraid0 at root
> scsibus2 at softraid0: 256 targets
> bootpath: /pci@83,4000/ide@d,0/cdrom@0,0:f
> root on rd0a swap on rd0b dump on rd0b
> erase ^?, werase ^W, kill ^U, intr ^C, status ^T
>
> Welcome to the OpenBSD/sparc64 6.5 installation program.
> (I)nstall, (U)pgrade, (A)utoinstall or (S)hell? I
> At any prompt except password prompts you can escape to a shell by
> typing '!'. Default answers are shown in []'s and are selected by
> pressing RETURN.  You can exit this program at any time by pressing
> Control-C, but this can leave your system in an inconsistent state.
>
> Terminal type? [sun]
> ~
> ~
> ~
> ~
> Available disks are: sd0 sd1.
> Which disk is the root disk? ('?' for details) [sd0] !
> Type 'exit' to return to install.
> www# dd if=/dev/urandom of=/dev/rsd0c bs=1m
> dd: /dev/rsd0c: short write on character device
> dd: /dev/rsd0c: end of device
> 70008+0 records in
> 70007+1 records out
> 73407865856 bytes transferred in 2026.673 secs (36220859 bytes/sec)
> www# dd if=/dev/urandom of=/dev/rsd1c bs=1m
> dd: /dev/rsd1c: short write on character device
> dd: /dev/rsd1c: end of device
> 70008+0 records in
> 70007+1 records out
> 73407865856 bytes transferred in 2029.361 secs (36172892 bytes/sec)
> www# cd /dev
> www# ls
> MAKEDEV  rd0c     rsd1d    rsd2n    rwd1g    sd0a     sd1k     urandom  wd1j
> bio      rfd0a    rsd1e    rsd2o    rwd1h    sd0b     sd1l     wd0a     wd1k
> bpf      rfd0b    rsd1f    rsd2p    rwd1i    sd0c     sd1m     wd0b     wd1l
> bpf0     rfd0c    rsd1g    rst0     rwd1j    sd0d     sd1n     wd0c     wd1m
> cd0a     rfd0i    rsd1h    rwd0a    rwd1k    sd0e     sd1o     wd0d     wd1n
> cd0c     rrd0a    rsd1i    rwd0b    rwd1l    sd0f     sd1p     wd0e     wd1o
> console  rrd0c    rsd1j    rwd0c    rwd1m    sd0g     sd2a     wd0f     wd1p
> diskmap  rsd0a    rsd1k    rwd0d    rwd1n    sd0h     sd2b     wd0g     wd2a
> enrst0   rsd0b    rsd1l    rwd0e    rwd1o    sd0i     sd2c     wd0h     wd2b
> erst0    rsd0c    rsd1m    rwd0f    rwd1p    sd0j     sd2d     wd0i     wd2c
> fd0a     rsd0d    rsd1n    rwd0g    rwd2a    sd0k     sd2e     wd0j     wd2d
> fd0b     rsd0e    rsd1o    rwd0h    rwd2b    sd0l     sd2f     wd0k     wd2e
> fd0c     rsd0f    rsd1p    rwd0i    rwd2c    sd0m     sd2g     wd0l     wd2f
> fd0i     rsd0g    rsd2a    rwd0j    rwd2d    sd0n     sd2h     wd0m     wd2g
> klog     rsd0h    rsd2b    rwd0k    rwd2e    sd0o     sd2i     wd0n     wd2h
> kmem     rsd0i    rsd2c    rwd0l    rwd2f    sd0p     sd2j     wd0o     wd2i
> ksyms    rsd0j    rsd2d    rwd0m    rwd2g    sd1a     sd2k     wd0p     wd2j
> mdesc    rsd0k    rsd2e    rwd0n    rwd2h    sd1b     sd2l     wd1a     wd2k
> mem      rsd0l    rsd2f    rwd0o    rwd2i    sd1c     sd2m     wd1b     wd2l
> nrst0    rsd0m    rsd2g    rwd0p    rwd2j    sd1d     sd2n     wd1c     wd2m
> null     rsd0n    rsd2h    rwd1a    rwd2k    sd1e     sd2o     wd1d     wd2n
> openprom rsd0o    rsd2i    rwd1b    rwd2l    sd1f     sd2p     wd1e     wd2o
> random   rsd0p    rsd2j    rwd1c    rwd2m    sd1g     stderr   wd1f     wd2p
> rcd0a    rsd1a    rsd2k    rwd1d    rwd2n    sd1h     stdin    wd1g     zero
> rcd0c    rsd1b    rsd2l    rwd1e    rwd2o    sd1i     stdout   wd1h
> rd0a     rsd1c    rsd2m    rwd1f    rwd2p    sd1j     tty      wd1i
> www# disklabel -E sd0
> This platform requires that partition offsets/sizes be on cylinder
> boundaries.
> Partition offsets/sizes will be rounded to the nearest cylinder
> automatically.
> Label editor (enter '?' for help at any prompt)
> sd0> p
> OpenBSD area: 0-143374738; size: 143374738; free: 143374738
> #                size           offset  fstype [fsize bsize   cpg]
>   c:        143374738                0  unused
> sd0> q
> No label changes.
> www# disklabel -E sd1
> This platform requires that partition offsets/sizes be on cylinder
> boundaries.
> Partition offsets/sizes will be rounded to the nearest cylinder
> automatically.
> Label editor (enter '?' for help at any prompt)
> sd1> p
> OpenBSD area: 0-143374738; size: 143374738; free: 143374738
> #                size           offset  fstype [fsize bsize   cpg]
>   c:        143374738                0  unused
> sd1> q
> No label changes.
> www# disklabel -E sd2
> disklabel: /dev/rsd2c: Device not configured
> www# fdisk -iy sd0
> sh: fdisk: not found
> www# disklabel -E sd0
> This platform requires that partition offsets/sizes be on cylinder
> boundaries.
> Partition offsets/sizes will be rounded to the nearest cylinder
> automatically.
> Label editor (enter '?' for help at any prompt)
> sd0> a
> partition: [a]
> offset: [0]
> size: [143374738] *
> FS type: [4.2BSD] RAID
> sd0> w
> sd0> q
> No label changes.
> www# disklabel sd0 > layout
> www# disklabel -R sd1 layout
> www# rm layout
> www# bioctl -c 1 -l sd0a,sd1a softraid0
> sd2 at scsibus2 targ 1 lun 0: <OPENBSD, SR RAID 1, 006> SCSI2 0/direct fixed
> sd2: 70002MB, 512 bytes/sector, 143366016 sectors
> softraid0: RAID 1 volume attached as sd2
> www# dd if=/dev/zero of=/dev/rsd2c bs=1m count=1
> 1+0 records in
> 1+0 records out
> 1048576 bytes transferred in 0.033 secs (31058796 bytes/sec)
> www# bioctl sd2
> Volume      Status               Size Device
> softraid0 0 Online        73403400192 sd2     RAID1
>           0 Online        73403400192 0:0.0   noencl <sd0a>
>           1 Online        73403400192 0:1.0   noencl <sd1a>
> www# exit
> Available disks are: sd0 sd1 sd2.
> Which disk is the root disk? ('?' for details) [sd0] sd2
> The auto-allocated layout for sd2 is:
> #                size           offset  fstype [fsize bsize   cpg]
>   a:             1.0G                0  4.2BSD   2048 16384     1 # /
>   b:             5.9G          2104515    swap
>   c:            68.4G                0  unused
>   d:             4.0G         14442435  4.2BSD   2048 16384     1 # /tmp
>   e:             7.6G         22844430  4.2BSD   2048 16384     1 # /var
>   f:             2.0G         38829105  4.2BSD   2048 16384     1 # /usr
>   g:             1.0G         43038135  4.2BSD   2048 16384     1 #
> /usr/X11R6
>   h:             9.7G         45142650  4.2BSD   2048 16384     1 #
> /usr/local
>   i:             2.0G         65497005  4.2BSD   2048 16384     1 # /usr/src
>   j:             6.0G         69706035  4.2BSD   2048 16384     1 # /usr/obj
>   k:            29.1G         82300995  4.2BSD   2048 16384     1 # /home
> Use (A)uto layout, (E)dit auto layout, or create (C)ustom layout? [a]
> /dev/rsd2a: 1027.6MB in 2104512 sectors of 512 bytes
> 6 cylinder groups of 202.47MB, 12958 blocks, 25984 inodes each
> /dev/rsd2k: 29815.9MB in 61063064 sectors of 512 bytes
> 148 cylinder groups of 202.47MB, 12958 blocks, 25984 inodes each
> /dev/rsd2d: 4102.5MB in 8401992 sectors of 512 bytes
> 21 cylinder groups of 202.47MB, 12958 blocks, 25984 inodes each
> /dev/rsd2f: 2055.2MB in 4209028 sectors of 512 bytes
> 11 cylinder groups of 202.47MB, 12958 blocks, 25984 inodes each
> /dev/rsd2g: 1027.6MB in 2104512 sectors of 512 bytes
> 6 cylinder groups of 202.47MB, 12958 blocks, 25984 inodes each
> /dev/rsd2h: 9938.6MB in 20354352 sectors of 512 bytes
> 50 cylinder groups of 202.47MB, 12958 blocks, 25984 inodes each
> /dev/rsd2j: 6149.9MB in 12594960 sectors of 512 bytes
> 31 cylinder groups of 202.47MB, 12958 blocks, 25984 inodes each
> /dev/rsd2i: 2055.2MB in 4209028 sectors of 512 bytes
> 11 cylinder groups of 202.47MB, 12958 blocks, 25984 inodes each
> /dev/rsd2e: 7805.0MB in 15984672 sectors of 512 bytes
> 39 cylinder groups of 202.47MB, 12958 blocks, 25984 inodes each
> Available disks are: sd0 sd1.
> Which disk do you wish to initialize? (or 'done') [done]
> /dev/sd2a (f17019aae84f4ec9.a) on /mnt type ffs (rw, asynchronous, local)
> /dev/sd2k (f17019aae84f4ec9.k) on /mnt/home type ffs (rw, asynchronous,
> local, nodev, nosuid)
> /dev/sd2d (f17019aae84f4ec9.d) on /mnt/tmp type ffs (rw, asynchronous,
> local, nodev, nosuid)
> /dev/sd2f (f17019aae84f4ec9.f) on /mnt/usr type ffs (rw, asynchronous,
> local, nodev)
> /dev/sd2g (f17019aae84f4ec9.g) on /mnt/usr/X11R6 type ffs (rw,
> asynchronous, local, nodev)
> /dev/sd2h (f17019aae84f4ec9.h) on /mnt/usr/local type ffs (rw,
> asynchronous, local, nodev)
> /dev/sd2j (f17019aae84f4ec9.j) on /mnt/usr/obj type ffs (rw, asynchronous,
> local, nodev, nosuid)
> /dev/sd2i (f17019aae84f4ec9.i) on /mnt/usr/src type ffs (rw, asynchronous,
> local, nodev, nosuid)
> /dev/sd2e (f17019aae84f4ec9.e) on /mnt/var type ffs (rw, asynchronous,
> local, nodev, nosuid)
>
> Let's install the sets!
> Location of sets? (cd0 disk http or 'done') [http]
> HTTP proxy URL? (e.g. '<a href="http://proxy:8080'">http://proxy:8080', or 'none') [none]
> HTTP Server? (hostname, list#, 'done' or '?') [ftp.OpenBSD.org]
> Server directory? [pub/OpenBSD/6.5/sparc64]
>
> Select sets by entering a set name, a file name pattern or 'all'. De-select
> sets by prepending a '-', e.g.: '-game*'. Selected sets are labelled '[X]'.
>     [X] bsd           [X] base65.tgz    [X] game65.tgz    [X] xfont65.tgz
>     [X] bsd.mp        [X] comp65.tgz    [X] xbase65.tgz   [X] xserv65.tgz
>     [X] bsd.rd        [X] man65.tgz     [X] xshare65.tgz
> Set name(s)? (or 'abort' or 'done') [done] -game* -x*
>     [X] bsd           [X] base65.tgz    [ ] game65.tgz    [ ] xfont65.tgz
>     [X] bsd.mp        [X] comp65.tgz    [ ] xbase65.tgz   [ ] xserv65.tgz
>     [X] bsd.rd        [X] man65.tgz     [ ] xshare65.tgz
> Set name(s)? (or 'abort' or 'done') [done]
> Get/Verify SHA256.sig   100% |**************************|  1974       00:00
> Signature Verified
> Get/Verify bsd          100% |**************************| 11005 KB    00:14
> Get/Verify bsd.mp       100% |**************************| 11076 KB    00:14
> Get/Verify bsd.rd       100% |**************************|  2699 KB    00:09
> Get/Verify base65.tgz   100% |**************************|   160 MB    01:41
> Get/Verify comp65.tgz   100% |**************************| 68832 KB    01:39
> Get/Verify man65.tgz    100% |**************************|  7392 KB    00:12
> Installing bsd          100% |**************************| 11005 KB    00:00
> Installing bsd.mp       100% |**************************| 11076 KB    00:00
> Installing bsd.rd       100% |**************************|  2699 KB    00:00
> Installing base65.tgz   100% |**************************|   160 MB    00:15
> Extracting etc.tgz      100% |**************************|   260 KB    00:00
> Installing comp65.tgz   100% |**************************| 68832 KB    00:09
> Installing man65.tgz    100% |**************************|  7392 KB    00:01
> Location of sets? (cd0 disk http or 'done') [done]
> Saving configuration files... done.
> Making all device nodes... done.
> Multiprocessor machine; using bsd.mp instead of bsd.
> Relinking to create unique kernel... done.
>
> CONGRATULATIONS! Your OpenBSD install has been successfully completed!
>
> When you login to your new system the first time, please read your mail
> using the 'mail' command.
>
> Exit to (S)hell, (H)alt or (R)eboot? [halt] R
> syncing disks... done
> rebooting
>
> Resetting ...
>
> Sep 02 13:11:10 GMT 2019 XSCF:I::[02030100] Start reset sequence
> Sep 02 13:11:10 GMT 2019 XSCF:I::[02030200] Reset released...
>
> Sep 02 13:11:13 GMT 2019 PowerOn SelfTest start
> POST:Testing Flash/SRAM
> POST:Testing SC
> POST:Testing XSCF
> POST:Banner
> POST:FATAL check
> POST:Testing Timer1
> POST:Testing Tick
> POST:Testing MMU
> POST:Testing CPU Type
> POST:Testing DTAG
> POST:Memory Probe
> POST:Testing Memory
> POST:Testing Softint
> POST:Testing U2P
> POST:Testing Slave Device
> POST:Testing Master Device
> POST:System Configure
> POST:OBP Start
> screen not found.
> keyboard not found.
> Keyboard not present.  Using ttya for input and output.
>
> Fujitsu Siemens PRIMEPOWER250 2x SPARC64 V, No Keyboard
> OpenBoot 3.18.1-1, 16384 MB memory installed
> Ethernet address 0:b:5d:f3:a7:5c, Host ID: 80f2a75c.
> XSCF Version: 4.12.1
>
>
>
> Executing last command: boot
> Boot device: /pci@83,4000/FJSV,ulsa@2,1/disk@0,0  File and args:
> OpenBSD IEEE 1275 Bootblock 1.4
> >> OpenBSD BOOT 1.12
> Can't read disk label.
> Can't open disk label package
> sr0*
> Trying bsd...
> open /pci@83,4000/FJSV,ulsa@2,1/disk@0,0:a/etc/random.seed: Invalid argument
> open /pci@83,4000/FJSV,ulsa@2,1/disk@0,0:a/bsd: Invalid argument
>
> Boot:

Reply | Threaded
Open this post in threaded view
|

Re: Unable to boot sparc from raid drive installation:Open ..... Invalid argument

Stefan Sperling-5
In reply to this post by Kihaguru Gathura-2
On Mon, Sep 02, 2019 at 05:32:53PM +0300, Kihaguru Gathura wrote:
> Hi,
>
> Unable to boot with the following message
>
> open /pci@83,4000/FJSV,ulsa@2,1/disk@0,0:a/etc/random.seed: Invalid argument
> open /pci@83,4000/FJSV,ulsa@2,1/disk@0,0:a/bsd: Invalid argument
 
> Boot device: /pci@83,4000/FJSV,ulsa@2,1/disk@0,0  File and args:

> Trying bsd...
> open /pci@83,4000/FJSV,ulsa@2,1/disk@0,0:a/etc/random.seed: Invalid argument
> open /pci@83,4000/FJSV,ulsa@2,1/disk@0,0:a/bsd: Invalid argument

BOOT_SPARC64(8)        System Manager's Manual (sparc64)       BOOT_SPARC64(8)

[...]

     To boot from a softraid(4) volume by default, boot-device must be set to
     a disk device hosting a chunk of the softraid volume:

           ok setenv boot-device disk0

     and boot-file must contain the (sr) device name of the softraid volume
     and optionally a partition letter and/or kernel:

           ok setenv boot-file sr0a:/bsd

Reply | Threaded
Open this post in threaded view
|

Re: Unable to boot sparc from raid drive installation:Open ..... Invalid argument

Kihaguru Gathura-2
In reply to this post by Otto Moerbeek
Thank you,

Works well

Regards,

Kihaguru

On Mon, Sep 2, 2019 at 6:07 PM Otto Moerbeek <[hidden email]> wrote:

> On Mon, Sep 02, 2019 at 05:32:53PM +0300, Kihaguru Gathura wrote:
>
> > Hi,
> >
> > Unable to boot with the following message
> >
> > open /pci@83,4000/FJSV,ulsa@2,1/disk@0,0:a/etc/random.seed: Invalid
> argument
> > open /pci@83,4000/FJSV,ulsa@2,1/disk@0,0:a/bsd: Invalid argument
> >
> >  Not sure the issue with softraid setup detailed below. Any assistance
> > highly appreciated.
> >
> > Thanks and regards,
>
> Did you setup boot-file?
>
> Try
>
>         boot sr0a:/bsd
>
> On the OpenBSD boot loader prompt.
>
> If that works you should setup boot-file as described in
>
> See http://man.openbsd.org/man8/sparc64/boot_sparc64.8
>
>         -Otto
>
> >
> > Kihaguru.
> >
> >
> > {0} ok boot cdrom
> > Resetting ...
> >
> > Sep 02 08:57:03 GMT 2019 XSCF:I::[02030100] Start reset sequence
> > Sep 02 08:57:04 GMT 2019 XSCF:I::[02030200] Reset released...
> >
> > Sep 02 08:57:07 GMT 2019 PowerOn SelfTest start
> > POST:Testing Flash/SRAM
> > POST:Testing SC
> > POST:Testing XSCF
> > POST:Banner
> > POST:FATAL check
> > POST:Testing Timer1
> > POST:Testing Tick
> > POST:Testing MMU
> > POST:Testing CPU Type
> > POST:Testing DTAG
> > POST:Memory Probe
> > POST:Testing Memory
> > POST:Testing Softint
> > POST:Testing U2P
> > POST:Testing Slave Device
> > POST:Testing Master Device
> > POST:System Configure
> > POST:OBP Start
> > screen not found.
> > keyboard not found.
> > Keyboard not present.  Using ttya for input and output.
> >
> > Fujitsu Siemens PRIMEPOWER250 2x SPARC64 V, No Keyboard
> > OpenBoot 3.18.1-1, 16384 MB memory installed
> > Ethernet address 0:b:5d:f3:a7:5c, Host ID: 80f2a75c.
> > XSCF Version: 4.12.1
> >
> >
> >
> > Executing last command: boot cdrom
> > Boot device: /pci@83,4000/ide@d/cdrom@0,0:f  File and args:
> > OpenBSD IEEE 1275 Bootblock 1.4
> > ..>> OpenBSD BOOT 1.12
> > Trying bsd...
> > open /pci@83,4000/ide@d/cdrom@0,0:f/etc/random.seed: No such file or
> > directory
> > Booting /pci@83,4000/ide@d/cdrom@0,0:f/bsd
> > 4145224@0x1000000+8120@0x13f4048+3255632@0x1c00000+938672@0x1f1ad50
> > symbols @ 0xfeae4340 139 start=0x1000000
> > console is /pci@83,4000/isa@7/su@0,3f8
> > Copyright (c) 1982, 1986, 1989, 1991, 1993
> >         The Regents of the University of California.  All rights
> reserved.
> > Copyright (c) 1995-2019 OpenBSD. All rights reserved.
> > https://www.OpenBSD.org
> >
> > OpenBSD 6.5 (RAMDISK) #156: Sun Apr 14 05:14:17 MDT 2019
> >     [hidden email]:
> /usr/src/sys/arch/sparc64/compile/RAMDISK
> > real mem = 17179869184 (16384MB)
> > avail mem = 16869081088 (16087MB)
> > mainbus0 at root: Fujitsu Siemens PRIMEPOWER250 2x SPARC64 V
> > cpu0 at mainbus0: FJSV,SPARC64-V (rev 5.1) @ 1979 MHz
> > cpu0: physical 128K instruction (64 b/l), 128K data (64 b/l), 3072K
> > external (64 b/l)
> > "FJSV,SPARC64-V" at mainbus0 not configured
> > psycho0 at mainbus0 addr 0xfffb2000: SUNW,psycho, impl 0, version 4, ign
> c0
> > psycho0: bus range 0-0, PCI bus 0
> > psycho0: dvma map fe000000-ffffffff, STC0 enabled
> > pci0 at psycho0
> > ebus0 at pci0 dev 1 function 0 "Sun PCIO EBus2" rev 0x01
> > "FJSV,scfc" at ebus0 addr 210000-210085, 220000-220031, 260000-260001,
> > 270000-28ffff ivec 0x23 not configured
> > "FJSV,flashprom" at ebus0 addr 0-3fffff not configured
> > clock1 at ebus0 addr 250000-251fff: mk48t59
> > "FJSV,panel" at ebus0 addr 210011-210011 ivec 0x25 not configured
> > ebus1 at pci0 dev 7 function 0 "Acer Labs M1533 ISA" rev 0x00
> > com0 at ebus1 addr 3f8-3ff ivec 0x2b: ns16550a, 16 byte fifo
> > com0: console
> > com1 at ebus1 addr 2e8-2ef ivec 0x2b: ns16550a, 16 byte fifo
> > hme0 at pci0 dev 1 function 1 "Sun HME" rev 0x01: ivec 0xe1, address
> > 00:0b:5d:f3:a7:5c
> > nsphyter0 at hme0 phy 1: DP83843 10/100 PHY, rev. 0
> > mpi0 at pci0 dev 2 function 1 "Symbios Logic 53c1030" rev 0x07: ivec 0xe0
> > mpi0: 0, firmware 1.0.12.0
> > scsibus0 at mpi0: 16 targets, initiator 7
> > sd0 at scsibus0 targ 0 lun 0: <FUJITSU, MAT3073N SUN72G, 0602> SCSI2
> > 0/direct fixed serial.FUJITSU_MAT3073N_SUN72G_000506B00RAR_AAN0P5200RAR
> > sd0: 70007MB, 512 bytes/sector, 143374738 sectors
> > sd1 at scsibus0 targ 1 lun 0: <FUJITSU, MAT3073N SUN72G, 0602> SCSI2
> > 0/direct fixed serial.FUJITSU_MAT3073N_SUN72G_000506B00SSL_AAN0P5200SSL
> > sd1: 70007MB, 512 bytes/sector, 143374738 sectors
> > mpi0: target 0 Sync at 160MHz width 16bit offset 127 QAS 1 DT 1 IU 1
> > mpi0: target 1 Sync at 160MHz width 16bit offset 127 QAS 1 DT 1 IU 1
> > pciide0 at pci0 dev 13 function 0 "Acer Labs M5229 UDMA IDE" rev 0xc4:
> DMA,
> > channel 0 configured to native-PCI, channel 1 configured to native-PCI
> > pciide0: using ivec 0xe4 for native-PCI interrupt
> > atapiscsi0 at pciide0 channel 0 drive 0
> > scsibus1 at atapiscsi0: 2 targets
> > cd0 at scsibus1 targ 0 lun 0: <MATSHITA, DVD-ROM SR-8178, PY28> ATAPI
> > 5/cdrom removable
> > cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
> > pciide0: channel 1 disabled (no drives)
> > ohci0 at pci0 dev 10 function 0 "Acer Labs M5237 USB" rev 0x03: ivec
> 0xe9,
> > version 1.0, legacy support
> > usb0 at ohci0: USB revision 1.0
> > uhub0 at usb0 configuration 1 interface 0 "Acer Labs OHCI root hub" rev
> > 1.00/1.00 addr 1
> > psycho1 at mainbus0 addr 0xfff9e000: SUNW,psycho, impl 0, version 4, ign
> c0
> > psycho1: bus range 128-128, PCI bus 128
> > psycho1: dvma map fe000000-ffffffff, STC0 enabled, STC1 enabled
> > pci1 at psycho1
> > bge0 at pci1 dev 1 function 0 "Fujitsu PRIMEPOWER250/450 LAN" rev 0x02,
> > BCM5702/5703 A2 (0x1002): ivec 0xc0, address 00:0b:5d:f4:27:5c
> > brgphy0 at bge0 phy 1: BCM5703 10/100/1000baseT PHY, rev. 2
> > timer0 at mainbus0 addr 0xfff8bc00 ivec 0xec, 0xed
> > softraid0 at root
> > scsibus2 at softraid0: 256 targets
> > bootpath: /pci@83,4000/ide@d,0/cdrom@0,0:f
> > root on rd0a swap on rd0b dump on rd0b
> > erase ^?, werase ^W, kill ^U, intr ^C, status ^T
> >
> > Welcome to the OpenBSD/sparc64 6.5 installation program.
> > (I)nstall, (U)pgrade, (A)utoinstall or (S)hell? I
> > At any prompt except password prompts you can escape to a shell by
> > typing '!'. Default answers are shown in []'s and are selected by
> > pressing RETURN.  You can exit this program at any time by pressing
> > Control-C, but this can leave your system in an inconsistent state.
> >
> > Terminal type? [sun]
> > ~
> > ~
> > ~
> > ~
> > Available disks are: sd0 sd1.
> > Which disk is the root disk? ('?' for details) [sd0] !
> > Type 'exit' to return to install.
> > www# dd if=/dev/urandom of=/dev/rsd0c bs=1m
> > dd: /dev/rsd0c: short write on character device
> > dd: /dev/rsd0c: end of device
> > 70008+0 records in
> > 70007+1 records out
> > 73407865856 bytes transferred in 2026.673 secs (36220859 bytes/sec)
> > www# dd if=/dev/urandom of=/dev/rsd1c bs=1m
> > dd: /dev/rsd1c: short write on character device
> > dd: /dev/rsd1c: end of device
> > 70008+0 records in
> > 70007+1 records out
> > 73407865856 bytes transferred in 2029.361 secs (36172892 bytes/sec)
> > www# cd /dev
> > www# ls
> > MAKEDEV  rd0c     rsd1d    rsd2n    rwd1g    sd0a     sd1k     urandom
> wd1j
> > bio      rfd0a    rsd1e    rsd2o    rwd1h    sd0b     sd1l     wd0a
>  wd1k
> > bpf      rfd0b    rsd1f    rsd2p    rwd1i    sd0c     sd1m     wd0b
>  wd1l
> > bpf0     rfd0c    rsd1g    rst0     rwd1j    sd0d     sd1n     wd0c
>  wd1m
> > cd0a     rfd0i    rsd1h    rwd0a    rwd1k    sd0e     sd1o     wd0d
>  wd1n
> > cd0c     rrd0a    rsd1i    rwd0b    rwd1l    sd0f     sd1p     wd0e
>  wd1o
> > console  rrd0c    rsd1j    rwd0c    rwd1m    sd0g     sd2a     wd0f
>  wd1p
> > diskmap  rsd0a    rsd1k    rwd0d    rwd1n    sd0h     sd2b     wd0g
>  wd2a
> > enrst0   rsd0b    rsd1l    rwd0e    rwd1o    sd0i     sd2c     wd0h
>  wd2b
> > erst0    rsd0c    rsd1m    rwd0f    rwd1p    sd0j     sd2d     wd0i
>  wd2c
> > fd0a     rsd0d    rsd1n    rwd0g    rwd2a    sd0k     sd2e     wd0j
>  wd2d
> > fd0b     rsd0e    rsd1o    rwd0h    rwd2b    sd0l     sd2f     wd0k
>  wd2e
> > fd0c     rsd0f    rsd1p    rwd0i    rwd2c    sd0m     sd2g     wd0l
>  wd2f
> > fd0i     rsd0g    rsd2a    rwd0j    rwd2d    sd0n     sd2h     wd0m
>  wd2g
> > klog     rsd0h    rsd2b    rwd0k    rwd2e    sd0o     sd2i     wd0n
>  wd2h
> > kmem     rsd0i    rsd2c    rwd0l    rwd2f    sd0p     sd2j     wd0o
>  wd2i
> > ksyms    rsd0j    rsd2d    rwd0m    rwd2g    sd1a     sd2k     wd0p
>  wd2j
> > mdesc    rsd0k    rsd2e    rwd0n    rwd2h    sd1b     sd2l     wd1a
>  wd2k
> > mem      rsd0l    rsd2f    rwd0o    rwd2i    sd1c     sd2m     wd1b
>  wd2l
> > nrst0    rsd0m    rsd2g    rwd0p    rwd2j    sd1d     sd2n     wd1c
>  wd2m
> > null     rsd0n    rsd2h    rwd1a    rwd2k    sd1e     sd2o     wd1d
>  wd2n
> > openprom rsd0o    rsd2i    rwd1b    rwd2l    sd1f     sd2p     wd1e
>  wd2o
> > random   rsd0p    rsd2j    rwd1c    rwd2m    sd1g     stderr   wd1f
>  wd2p
> > rcd0a    rsd1a    rsd2k    rwd1d    rwd2n    sd1h     stdin    wd1g
>  zero
> > rcd0c    rsd1b    rsd2l    rwd1e    rwd2o    sd1i     stdout   wd1h
> > rd0a     rsd1c    rsd2m    rwd1f    rwd2p    sd1j     tty      wd1i
> > www# disklabel -E sd0
> > This platform requires that partition offsets/sizes be on cylinder
> > boundaries.
> > Partition offsets/sizes will be rounded to the nearest cylinder
> > automatically.
> > Label editor (enter '?' for help at any prompt)
> > sd0> p
> > OpenBSD area: 0-143374738; size: 143374738; free: 143374738
> > #                size           offset  fstype [fsize bsize   cpg]
> >   c:        143374738                0  unused
> > sd0> q
> > No label changes.
> > www# disklabel -E sd1
> > This platform requires that partition offsets/sizes be on cylinder
> > boundaries.
> > Partition offsets/sizes will be rounded to the nearest cylinder
> > automatically.
> > Label editor (enter '?' for help at any prompt)
> > sd1> p
> > OpenBSD area: 0-143374738; size: 143374738; free: 143374738
> > #                size           offset  fstype [fsize bsize   cpg]
> >   c:        143374738                0  unused
> > sd1> q
> > No label changes.
> > www# disklabel -E sd2
> > disklabel: /dev/rsd2c: Device not configured
> > www# fdisk -iy sd0
> > sh: fdisk: not found
> > www# disklabel -E sd0
> > This platform requires that partition offsets/sizes be on cylinder
> > boundaries.
> > Partition offsets/sizes will be rounded to the nearest cylinder
> > automatically.
> > Label editor (enter '?' for help at any prompt)
> > sd0> a
> > partition: [a]
> > offset: [0]
> > size: [143374738] *
> > FS type: [4.2BSD] RAID
> > sd0> w
> > sd0> q
> > No label changes.
> > www# disklabel sd0 > layout
> > www# disklabel -R sd1 layout
> > www# rm layout
> > www# bioctl -c 1 -l sd0a,sd1a softraid0
> > sd2 at scsibus2 targ 1 lun 0: <OPENBSD, SR RAID 1, 006> SCSI2 0/direct
> fixed
> > sd2: 70002MB, 512 bytes/sector, 143366016 sectors
> > softraid0: RAID 1 volume attached as sd2
> > www# dd if=/dev/zero of=/dev/rsd2c bs=1m count=1
> > 1+0 records in
> > 1+0 records out
> > 1048576 bytes transferred in 0.033 secs (31058796 bytes/sec)
> > www# bioctl sd2
> > Volume      Status               Size Device
> > softraid0 0 Online        73403400192 sd2     RAID1
> >           0 Online        73403400192 0:0.0   noencl <sd0a>
> >           1 Online        73403400192 0:1.0   noencl <sd1a>
> > www# exit
> > Available disks are: sd0 sd1 sd2.
> > Which disk is the root disk? ('?' for details) [sd0] sd2
> > The auto-allocated layout for sd2 is:
> > #                size           offset  fstype [fsize bsize   cpg]
> >   a:             1.0G                0  4.2BSD   2048 16384     1 # /
> >   b:             5.9G          2104515    swap
> >   c:            68.4G                0  unused
> >   d:             4.0G         14442435  4.2BSD   2048 16384     1 # /tmp
> >   e:             7.6G         22844430  4.2BSD   2048 16384     1 # /var
> >   f:             2.0G         38829105  4.2BSD   2048 16384     1 # /usr
> >   g:             1.0G         43038135  4.2BSD   2048 16384     1 #
> > /usr/X11R6
> >   h:             9.7G         45142650  4.2BSD   2048 16384     1 #
> > /usr/local
> >   i:             2.0G         65497005  4.2BSD   2048 16384     1 #
> /usr/src
> >   j:             6.0G         69706035  4.2BSD   2048 16384     1 #
> /usr/obj
> >   k:            29.1G         82300995  4.2BSD   2048 16384     1 # /home
> > Use (A)uto layout, (E)dit auto layout, or create (C)ustom layout? [a]
> > /dev/rsd2a: 1027.6MB in 2104512 sectors of 512 bytes
> > 6 cylinder groups of 202.47MB, 12958 blocks, 25984 inodes each
> > /dev/rsd2k: 29815.9MB in 61063064 sectors of 512 bytes
> > 148 cylinder groups of 202.47MB, 12958 blocks, 25984 inodes each
> > /dev/rsd2d: 4102.5MB in 8401992 sectors of 512 bytes
> > 21 cylinder groups of 202.47MB, 12958 blocks, 25984 inodes each
> > /dev/rsd2f: 2055.2MB in 4209028 sectors of 512 bytes
> > 11 cylinder groups of 202.47MB, 12958 blocks, 25984 inodes each
> > /dev/rsd2g: 1027.6MB in 2104512 sectors of 512 bytes
> > 6 cylinder groups of 202.47MB, 12958 blocks, 25984 inodes each
> > /dev/rsd2h: 9938.6MB in 20354352 sectors of 512 bytes
> > 50 cylinder groups of 202.47MB, 12958 blocks, 25984 inodes each
> > /dev/rsd2j: 6149.9MB in 12594960 sectors of 512 bytes
> > 31 cylinder groups of 202.47MB, 12958 blocks, 25984 inodes each
> > /dev/rsd2i: 2055.2MB in 4209028 sectors of 512 bytes
> > 11 cylinder groups of 202.47MB, 12958 blocks, 25984 inodes each
> > /dev/rsd2e: 7805.0MB in 15984672 sectors of 512 bytes
> > 39 cylinder groups of 202.47MB, 12958 blocks, 25984 inodes each
> > Available disks are: sd0 sd1.
> > Which disk do you wish to initialize? (or 'done') [done]
> > /dev/sd2a (f17019aae84f4ec9.a) on /mnt type ffs (rw, asynchronous, local)
> > /dev/sd2k (f17019aae84f4ec9.k) on /mnt/home type ffs (rw, asynchronous,
> > local, nodev, nosuid)
> > /dev/sd2d (f17019aae84f4ec9.d) on /mnt/tmp type ffs (rw, asynchronous,
> > local, nodev, nosuid)
> > /dev/sd2f (f17019aae84f4ec9.f) on /mnt/usr type ffs (rw, asynchronous,
> > local, nodev)
> > /dev/sd2g (f17019aae84f4ec9.g) on /mnt/usr/X11R6 type ffs (rw,
> > asynchronous, local, nodev)
> > /dev/sd2h (f17019aae84f4ec9.h) on /mnt/usr/local type ffs (rw,
> > asynchronous, local, nodev)
> > /dev/sd2j (f17019aae84f4ec9.j) on /mnt/usr/obj type ffs (rw,
> asynchronous,
> > local, nodev, nosuid)
> > /dev/sd2i (f17019aae84f4ec9.i) on /mnt/usr/src type ffs (rw,
> asynchronous,
> > local, nodev, nosuid)
> > /dev/sd2e (f17019aae84f4ec9.e) on /mnt/var type ffs (rw, asynchronous,
> > local, nodev, nosuid)
> >
> > Let's install the sets!
> > Location of sets? (cd0 disk http or 'done') [http]
> > HTTP proxy URL? (e.g. '<a href="http://proxy:8080'">http://proxy:8080', or 'none') [none]
> > HTTP Server? (hostname, list#, 'done' or '?') [ftp.OpenBSD.org]
> > Server directory? [pub/OpenBSD/6.5/sparc64]
> >
> > Select sets by entering a set name, a file name pattern or 'all'.
> De-select
> > sets by prepending a '-', e.g.: '-game*'. Selected sets are labelled
> '[X]'.
> >     [X] bsd           [X] base65.tgz    [X] game65.tgz    [X] xfont65.tgz
> >     [X] bsd.mp        [X] comp65.tgz    [X] xbase65.tgz   [X]
> xserv65.tgz
> >     [X] bsd.rd        [X] man65.tgz     [X] xshare65.tgz
> > Set name(s)? (or 'abort' or 'done') [done] -game* -x*
> >     [X] bsd           [X] base65.tgz    [ ] game65.tgz    [ ] xfont65.tgz
> >     [X] bsd.mp        [X] comp65.tgz    [ ] xbase65.tgz   [ ]
> xserv65.tgz
> >     [X] bsd.rd        [X] man65.tgz     [ ] xshare65.tgz
> > Set name(s)? (or 'abort' or 'done') [done]
> > Get/Verify SHA256.sig   100% |**************************|  1974
>  00:00
> > Signature Verified
> > Get/Verify bsd          100% |**************************| 11005 KB
> 00:14
> > Get/Verify bsd.mp       100% |**************************| 11076 KB
> 00:14
> > Get/Verify bsd.rd       100% |**************************|  2699 KB
> 00:09
> > Get/Verify base65.tgz   100% |**************************|   160 MB
> 01:41
> > Get/Verify comp65.tgz   100% |**************************| 68832 KB
> 01:39
> > Get/Verify man65.tgz    100% |**************************|  7392 KB
> 00:12
> > Installing bsd          100% |**************************| 11005 KB
> 00:00
> > Installing bsd.mp       100% |**************************| 11076 KB
> 00:00
> > Installing bsd.rd       100% |**************************|  2699 KB
> 00:00
> > Installing base65.tgz   100% |**************************|   160 MB
> 00:15
> > Extracting etc.tgz      100% |**************************|   260 KB
> 00:00
> > Installing comp65.tgz   100% |**************************| 68832 KB
> 00:09
> > Installing man65.tgz    100% |**************************|  7392 KB
> 00:01
> > Location of sets? (cd0 disk http or 'done') [done]
> > Saving configuration files... done.
> > Making all device nodes... done.
> > Multiprocessor machine; using bsd.mp instead of bsd.
> > Relinking to create unique kernel... done.
> >
> > CONGRATULATIONS! Your OpenBSD install has been successfully completed!
> >
> > When you login to your new system the first time, please read your mail
> > using the 'mail' command.
> >
> > Exit to (S)hell, (H)alt or (R)eboot? [halt] R
> > syncing disks... done
> > rebooting
> >
> > Resetting ...
> >
> > Sep 02 13:11:10 GMT 2019 XSCF:I::[02030100] Start reset sequence
> > Sep 02 13:11:10 GMT 2019 XSCF:I::[02030200] Reset released...
> >
> > Sep 02 13:11:13 GMT 2019 PowerOn SelfTest start
> > POST:Testing Flash/SRAM
> > POST:Testing SC
> > POST:Testing XSCF
> > POST:Banner
> > POST:FATAL check
> > POST:Testing Timer1
> > POST:Testing Tick
> > POST:Testing MMU
> > POST:Testing CPU Type
> > POST:Testing DTAG
> > POST:Memory Probe
> > POST:Testing Memory
> > POST:Testing Softint
> > POST:Testing U2P
> > POST:Testing Slave Device
> > POST:Testing Master Device
> > POST:System Configure
> > POST:OBP Start
> > screen not found.
> > keyboard not found.
> > Keyboard not present.  Using ttya for input and output.
> >
> > Fujitsu Siemens PRIMEPOWER250 2x SPARC64 V, No Keyboard
> > OpenBoot 3.18.1-1, 16384 MB memory installed
> > Ethernet address 0:b:5d:f3:a7:5c, Host ID: 80f2a75c.
> > XSCF Version: 4.12.1
> >
> >
> >
> > Executing last command: boot
> > Boot device: /pci@83,4000/FJSV,ulsa@2,1/disk@0,0  File and args:
> > OpenBSD IEEE 1275 Bootblock 1.4
> > >> OpenBSD BOOT 1.12
> > Can't read disk label.
> > Can't open disk label package
> > sr0*
> > Trying bsd...
> > open /pci@83,4000/FJSV,ulsa@2,1/disk@0,0:a/etc/random.seed: Invalid
> argument
> > open /pci@83,4000/FJSV,ulsa@2,1/disk@0,0:a/bsd: Invalid argument
> >
> > Boot:
>
Reply | Threaded
Open this post in threaded view
|

Re: Unable to boot sparc from raid drive installation:Open ..... Invalid argument

Kihaguru Gathura-2
In reply to this post by Stefan Sperling-5
Thanks for the detailed explanation.

Really appreciated.

All the best....

Regards,

Kihaguru.

On Mon, Sep 2, 2019 at 6:17 PM Stefan Sperling <[hidden email]> wrote:

> On Mon, Sep 02, 2019 at 05:32:53PM +0300, Kihaguru Gathura wrote:
> > Hi,
> >
> > Unable to boot with the following message
> >
> > open /pci@83,4000/FJSV,ulsa@2,1/disk@0,0:a/etc/random.seed: Invalid
> argument
> > open /pci@83,4000/FJSV,ulsa@2,1/disk@0,0:a/bsd: Invalid argument
>
> > Boot device: /pci@83,4000/FJSV,ulsa@2,1/disk@0,0  File and args:
>
> > Trying bsd...
> > open /pci@83,4000/FJSV,ulsa@2,1/disk@0,0:a/etc/random.seed: Invalid
> argument
> > open /pci@83,4000/FJSV,ulsa@2,1/disk@0,0:a/bsd: Invalid argument
>
> BOOT_SPARC64(8)        System Manager's Manual (sparc64)
>  BOOT_SPARC64(8)
>
> [...]
>
>      To boot from a softraid(4) volume by default, boot-device must be set
> to
>      a disk device hosting a chunk of the softraid volume:
>
>            ok setenv boot-device disk0
>
>      and boot-file must contain the (sr) device name of the softraid volume
>      and optionally a partition letter and/or kernel:
>
>            ok setenv boot-file sr0a:/bsd
>