On Sun, Jun 30, 2019 at 01:05:50PM -0400, Gao-Mi Baohao wrote:
> As far as the loader messages go, I suspect that the loader simply isn't
> detecting the softraid.  The final thing that occurs to me is installboot.
> Have you run installboot on the softraid device itself?  Here's an example
> of the output from my working setup (you'll likely need to specify paths
> explicitly if you are working off the install image):
> 
> > glasloc-obsd# installboot -v sd2
> > Using / as root
> > installing bootstrap on /dev/rsd2c
> > using first-stage /usr/mdec/bootblk, second-stage /usr/mdec/ofwboot
> > boot block is 5840 bytes (12 blocks @ 512 bytes = 6144 bytes)
> > sd2: softraid volume with 2 disk(s)
> > sd2: installing boot loader on softraid volume
> > sd0a: installing boot blocks on /dev/rsd0c
> > writing boot block to disk /dev/rsd0c
> > sd1a: installing boot blocks on /dev/rsd1c
> > writing boot block to disk /dev/rsd1c
> >
> 
> I thinks that's about the end of what I've got suggestion-wise.

Thanks.  I'm pretty sure I had done this, but to verify, I booted the
install ISO, then mounted and chroot'd into the softraid.  The following
was run:

# chroot /mnt
# installboot -v sd4
Using / as root
installing bootstrap on /dev/rsd4c
using first-stage /usr/mdec/bootblk, second-stage /usr/mdec/ofwboot
boot block is 5840 bytes (12 blocks @ 512 bytes = 6144 bytes)
sd4: softraid volume with 2 disk(s)
sd4: installing boot loader on softraid volume
sd2a: installing boot blocks on /dev/rsd2c
writing boot block to disk /dev/rsd2c
sd3a: installing boot blocks on /dev/rsd3c
writing boot block to disk /dev/rsd3c
# halt

After that a "boot disk2 sr0" produces the same results.  "Unknown device: sr0"

> P.S. looks like there is some kung-fu going on in
> src/usr.sbin/installboot/sparc64_softraid.c with the install location of
> the ofwboot image that only occurs if you do installboot on the softraid
> itself.

Well, unless the kung-fu knows something different about sd0 vs sd2/sd3,
I don't know what it might not be doing for me.  :-/

Thanks.  The next thing I'll have to trace is why ofwboot could be
saying "Unknown device", and/or "Unknown error: code 19".  Let me know
if anyone has any other thoughts.  I'm clearly getting close. :-)

           - Chris


Reply via email to