Re: Bad kernel for OpenBSD 6.1 sparc64 ?
On Sun, 23 Apr 2017, Stefan Sperling wrote: > On Sat, Apr 22, 2017 at 04:31:02PM -0600, Jeff wrote: > > Booting from sr0a seemed to do the trick to get my system upgraded to > > 6.1. Unfortunately, it's now panicing frequently with, "panic: > > psycho0: uncorrectable DMA error" but on different commands each time. > > Please follow the steps in https://www.openbsd.org/report.html > In the past we have found bugs in drivers where the hardware ends up > doing an out of bounds access during DMA transactions. On most platforms > those bugs don't get noticed but psycho on sparc64 is catching them > which results in this panic. Due to the criticality of my system, I installed 6.1 from scratch on a spare V120. That system seems to be working great. I was going to wait a few days and rebuild the first system to try and determine if it has a hardware issue but I'll wait and submit a bug report first. > > Question: After upgrading to 6.1, it's still booting with "OpenBSD > > BOOT 1.7" but I noticed when booting from the burned install61.iso > > CD, it reports BOOT 1.9. I tried running "installboot sd2" but > > there's no change. Is there another method I'm overlooking to > > update the boot image? > > Is sd2 your softraid disk? What does installboot -n -v sd2 say? > # installboot -n -v sd2 Using / as root would install 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) sd0d: installing boot blocks on /dev/rsd0c would write boot block to disk /dev/rsd0c sd1d: installing boot blocks on /dev/rsd1c would write boot block to disk /dev/rsd1c # ls -l /usr/mdec total 428 -rw-r--r-- 1 root bin5840 Apr 1 16:21 bootblk -r--r--r-- 1 root bin 101048 Apr 1 16:21 ofwboot -r--r--r-- 1 root bin 53608 Apr 1 16:21 ofwboot.net -r--r--r-- 1 root bin 53320 Apr 1 16:21 ofwbootfd Based on the timestamps, things seem to be in order. Thanks! -Jeff
Re: Bad kernel for OpenBSD 6.1 sparc64 ?
On Sat, Apr 22, 2017 at 04:31:02PM -0600, Jeff wrote: > Booting from sr0a seemed to do the trick to get my system upgraded to > 6.1. Unfortunately, it's now panicing frequently with, "panic: > psycho0: uncorrectable DMA error" but on different commands each time. Please follow the steps in https://www.openbsd.org/report.html In the past we have found bugs in drivers where the hardware ends up doing an out of bounds access during DMA transactions. On most platforms those bugs don't get noticed but psycho on sparc64 is catching them which results in this panic. > Question: After upgrading to 6.1, it's still booting with "OpenBSD > BOOT 1.7" but I noticed when booting from the burned install61.iso > CD, it reports BOOT 1.9. I tried running "installboot sd2" but > there's no change. Is there another method I'm overlooking to > update the boot image? Is sd2 your softraid disk? What does installboot -n -v sd2 say?
Re: Bad kernel for OpenBSD 6.1 sparc64 ?
On Fri, 21 Apr 2017, Jeff wrote: > On Fri, 21 Apr 2017, Stefan Sperling wrote: > > > On Thu, Apr 20, 2017 at 06:13:47PM -0600, Jeff wrote: > > > Hi, > > > > > > I have a Sunfire V120 (Sparc) with mirrored disks running OpenBSD 6.0. > > > I attempted to update to OpenBSD 6.1 using the files first from: > > > > > > http://mirrors.sonic.net/pub/OpenBSD/6.1/sparc64 > > > > > > Then from: > > > > > > https://ftp3.usa.openbsd.org/pub/OpenBSD/6.1/sparc64 > > > > > > First I tried to copy bsd.rd to / and boot from it. When I boot > > > using 6.1 bsd.rd (boot /bsd.rd), the boot messages still show > > > OpenBSD 6.0. > > > > Did you actually type '/boot bsd.rd'? > > When booting from softraid you need to pass the virtual 'sr' drive > > as part of the boot path. Try again with: boot sr0a:/bsd.rd > > > > >From the boot_sparc64(8) man page: > > > > 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 > > > > Hi Stefan, > > Thanks! > > I must have missed that man page when I originally installed 6.0. > Booting with sr0a:/bsd* did work but it took a much longer time > loading the symbols with both bsd & bsd.rd. I'll be sure to read > that man page and try again later today after I'm done working (in > case I muck it up again). > > Using a non-standard name for the bsd.rd file seems to help clarify > things. > > ok printenv boot-device > boot-device = disk1:a /pci@1f,0/pci@1/scsi@8/disk@1,0:a > > ok boot disk1:a /bsd.rd.61 > ... > Executing last command: boot disk1:a /bsd.rd.61 > Boot device: /pci@1f,0/pci@1/scsi@8/disk@1,0:a File and args: > /bsd.rd.61 > OpenBSD IEEE 1275 Bootblock 1.4 > ..>> OpenBSD BOOT 1.7 > Can't read disk label. > Can't open disk label package > Drive not ready > Can't read disk label. > Can't open disk label package > sr0* > open /pci@1f,0/pci@1/scsi@8/disk@1,0:a/etc/random.seed: No such file or > directory > open /pci@1f,0/pci@1/scsi@8/disk@1,0:a/bsd.rd.61: No such file or directory > > Boot: > > lom> reset > > ok boot sr0a:/bsd.rd.61 > Boot device: /pci@1f,0/pci@1/scsi@8/disk@1,0:a File and args: > sr0a:/bsd.rd.61 > OpenBSD IEEE 1275 Bootblock 1.4 > ..>> OpenBSD BOOT 1.7 > Can't read disk label. > Can't open disk label package > Drive not ready > Can't read disk label. > Can't open disk label package > sr0* > Booting sr0:a/bsd.rd.61 > 4045496@0x100+1352@0x13dbab8+3251904@0x180+942400@0x1b19ec0 > symbols @ 0xfff42300 120 start=0x100 > console is /pci@1f,0/pci@1,1/isa@7/serial@0,3f8 > Copyright (c) 1982, 1986, 1989, 1991, 1993 >The Regents of the University of California. All rights reserved. > Copyright (c) 1995-2017 OpenBSD. All rights reserved. > https://www.OpenBSD.org > OpenBSD 6.1 (RAMDISK) #55: Sat Apr 1 17:41:52 MDT 2017 > dera...@sparc64.openbsd.org:/usr/src/sys/arch/sparc64/compile/RAMDISK > > Hi, Booting from sr0a seemed to do the trick to get my system upgraded to 6.1. Unfortunately, it's now panicing frequently with, "panic: psycho0: uncorrectable DMA error" but on different commands each time. I know this is old hardware so I'm trying to swap out hardware to see if it's hardware related but it's been pretty stable until I attempted to upgrade from 6.0. Thus far, I've swapped out the DIMMs. I think I'm going to try installing 6.1 on a spare V120 partially to see if I still have issues and partially to have a backup system. Question: After upgrading to 6.1, it's still booting with "OpenBSD BOOT 1.7" but I noticed when booting from the burned install61.iso CD, it reports BOOT 1.9. I tried running "installboot sd2" but there's no change. Is there another method I'm overlooking to update the boot image? Thanks! -Jeff
Re: Bad kernel for OpenBSD 6.1 sparc64 ?
On Fri, 21 Apr 2017, Stefan Sperling wrote: > On Thu, Apr 20, 2017 at 06:13:47PM -0600, Jeff wrote: > > Hi, > > > > I have a Sunfire V120 (Sparc) with mirrored disks running OpenBSD 6.0. > > I attempted to update to OpenBSD 6.1 using the files first from: > > > > http://mirrors.sonic.net/pub/OpenBSD/6.1/sparc64 > > > > Then from: > > > > https://ftp3.usa.openbsd.org/pub/OpenBSD/6.1/sparc64 > > > > First I tried to copy bsd.rd to / and boot from it. When I boot > > using 6.1 bsd.rd (boot /bsd.rd), the boot messages still show > > OpenBSD 6.0. > > Did you actually type '/boot bsd.rd'? > When booting from softraid you need to pass the virtual 'sr' drive > as part of the boot path. Try again with: boot sr0a:/bsd.rd > > >From the boot_sparc64(8) man page: > > 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 > Hi Stefan, Thanks! I must have missed that man page when I originally installed 6.0. Booting with sr0a:/bsd* did work but it took a much longer time loading the symbols with both bsd & bsd.rd. I'll be sure to read that man page and try again later today after I'm done working (in case I muck it up again). Using a non-standard name for the bsd.rd file seems to help clarify things. ok printenv boot-device boot-device = disk1:a /pci@1f,0/pci@1/scsi@8/disk@1,0:a ok boot disk1:a /bsd.rd.61 ... Executing last command: boot disk1:a /bsd.rd.61 Boot device: /pci@1f,0/pci@1/scsi@8/disk@1,0:a File and args: /bsd.rd.61 OpenBSD IEEE 1275 Bootblock 1.4 ..>> OpenBSD BOOT 1.7 Can't read disk label. Can't open disk label package Drive not ready Can't read disk label. Can't open disk label package sr0* open /pci@1f,0/pci@1/scsi@8/disk@1,0:a/etc/random.seed: No such file or directory open /pci@1f,0/pci@1/scsi@8/disk@1,0:a/bsd.rd.61: No such file or directory Boot: lom> reset ok boot sr0a:/bsd.rd.61 Boot device: /pci@1f,0/pci@1/scsi@8/disk@1,0:a File and args: sr0a:/bsd.rd.61 OpenBSD IEEE 1275 Bootblock 1.4 ..>> OpenBSD BOOT 1.7 Can't read disk label. Can't open disk label package Drive not ready Can't read disk label. Can't open disk label package sr0* Booting sr0:a/bsd.rd.61 4045496@0x100+1352@0x13dbab8+3251904@0x180+942400@0x1b19ec0 symbols @ 0xfff42300 120 start=0x100 console is /pci@1f,0/pci@1,1/isa@7/serial@0,3f8 Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. Copyright (c) 1995-2017 OpenBSD. All rights reserved. https://www.OpenBSD.org OpenBSD 6.1 (RAMDISK) #55: Sat Apr 1 17:41:52 MDT 2017 dera...@sparc64.openbsd.org:/usr/src/sys/arch/sparc64/compile/RAMDISK
Re: Bad kernel for OpenBSD 6.1 sparc64 ?
On 2017-04-21 10:50, Stefan Sperling wrote: On Fri, Apr 21, 2017 at 09:04:07AM +0200, Mickael Torres wrote: On 2017-04-21 02:13, Jeff wrote: > I have a Sunfire V120 (Sparc) with mirrored disks running OpenBSD 6.0. > ... > First I tried to copy bsd.rd to / and boot from it. When I boot > using 6.1 bsd.rd (boot /bsd.rd), the boot messages still show > OpenBSD 6.0. Hi Jeff, If you use softraid on sparc64, you should have a small ffs FS on your first disk, containing the kernel and ofwboot. That *is* where you should put the new bsd.rd, and copy the new kernel(s) at the end of install. The firmware doesn't know how to boot a softraid volume, hence the need for this small FS. A separate boot partition is not required. The first stage boot loader is a Forth script which reads a second stage (ofwboot) from the softraid meta data area. ofwboot will load a kernel from RAID1 and CRYPTO volumes. See the last few slides in https://www.openbsd.org/papers/eurobsdcon2015-softraid-boot.pdf The install/upgrade scripts run installboot(8) to set this up. The only differences to i386/amd64 is that bootable sparc64 RAID partitions must use the letter 'a' (the first stage does not try any other letters) and that the boot-device and boot-file open firmware environment variables must be set up correctly (see boot_sparc64(8)). Wow, you've just made my day! Thanks, Stefan. Best regards, Mickael.
Re: Bad kernel for OpenBSD 6.1 sparc64 ?
On Fri, Apr 21, 2017 at 09:04:07AM +0200, Mickael Torres wrote: > On 2017-04-21 02:13, Jeff wrote: > > I have a Sunfire V120 (Sparc) with mirrored disks running OpenBSD 6.0. > > ... > > First I tried to copy bsd.rd to / and boot from it. When I boot > > using 6.1 bsd.rd (boot /bsd.rd), the boot messages still show > > OpenBSD 6.0. > > Hi Jeff, > > If you use softraid on sparc64, you should have a small ffs FS on your > first disk, containing the kernel and ofwboot. > That *is* where you should put the new bsd.rd, and copy the new kernel(s) > at the end of install. > > The firmware doesn't know how to boot a softraid volume, hence the need > for this small FS. A separate boot partition is not required. The first stage boot loader is a Forth script which reads a second stage (ofwboot) from the softraid meta data area. ofwboot will load a kernel from RAID1 and CRYPTO volumes. See the last few slides in https://www.openbsd.org/papers/eurobsdcon2015-softraid-boot.pdf The install/upgrade scripts run installboot(8) to set this up. The only differences to i386/amd64 is that bootable sparc64 RAID partitions must use the letter 'a' (the first stage does not try any other letters) and that the boot-device and boot-file open firmware environment variables must be set up correctly (see boot_sparc64(8)).
Re: Bad kernel for OpenBSD 6.1 sparc64 ?
On Thu, Apr 20, 2017 at 06:13:47PM -0600, Jeff wrote: > Hi, > > I have a Sunfire V120 (Sparc) with mirrored disks running OpenBSD 6.0. > I attempted to update to OpenBSD 6.1 using the files first from: > > http://mirrors.sonic.net/pub/OpenBSD/6.1/sparc64 > > Then from: > > https://ftp3.usa.openbsd.org/pub/OpenBSD/6.1/sparc64 > > First I tried to copy bsd.rd to / and boot from it. When I boot > using 6.1 bsd.rd (boot /bsd.rd), the boot messages still show > OpenBSD 6.0. Did you actually type '/boot bsd.rd'? When booting from softraid you need to pass the virtual 'sr' drive as part of the boot path. Try again with: boot sr0a:/bsd.rd >From the boot_sparc64(8) man page: 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
Re: Bad kernel for OpenBSD 6.1 sparc64 ?
On 2017-04-21 02:13, Jeff wrote: I have a Sunfire V120 (Sparc) with mirrored disks running OpenBSD 6.0. ... First I tried to copy bsd.rd to / and boot from it. When I boot using 6.1 bsd.rd (boot /bsd.rd), the boot messages still show OpenBSD 6.0. Hi Jeff, If you use softraid on sparc64, you should have a small ffs FS on your first disk, containing the kernel and ofwboot. That *is* where you should put the new bsd.rd, and copy the new kernel(s) at the end of install. The firmware doesn't know how to boot a softraid volume, hence the need for this small FS. Best regards, Mickael.