DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Installation and Upgrading

OpenBSD Installation and Upgrading Installing and upgrading OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 17th June 2015
raindog308 raindog308 is offline
Fdisk Soldier
 
Join Date: Sep 2011
Posts: 67
Question Do you think this Soekris is dead? Or pilot error?

i have a Soekris 5501-70 that I bought used. It worked fine for a few months, and then it hung on boot. The soekris list advised a new power supply, which I got from Soekris. I had a SATA 2.5" disk in it but I've since removed it.

The box presently has a CF card and the install (from a pxeboot) consistently succeeds. I've reinstalled a couple times but on boot off the disk (CF card) I get strange errors below.

I'm a little puzzled because I'd think that if the disk was bad or the disk interface was bad, it'd failed during the install. But these errors only show up when I boot off it...though the filesystem is fine (as subsequently mounting it and looking at it shows).

Code:
Saving configuration files...done.
Making all device nodes...done.

CONGRATULATIONS! Your OpenBSD install has been successfully completed!
To boot the new system, enter 'reboot' at the command prompt.
When you login to your new system the first time, please read your mail
using the 'mail' command.

# reboot
syncing disks... done
rebooting...


POST: 012345689bcefghips1234ajklnopqr,,,tvwxy

comBIOS ver. 1.33c 20080626  Copyright (C) 2000-2008 Soekris Engineering.

net5501

0512 Mbyte Memory                        CPU Geode LX 500 Mhz 

Pri Mas  CF CARD                         LBA Xlt 974-255-63  7831 Mbyte

Slot   Vend Dev  ClassRev Cmd  Stat CL LT HT  Base1    Base2   Int 
-------------------------------------------------------------------
0:01:2 1022 2082 10100000 0006 0220 08 00 00 A0000000 00000000 10
0:06:0 1106 3053 02000096 0117 0210 08 40 00 0000E101 A0004000 11
0:07:0 1106 3053 02000096 0117 0210 08 40 00 0000E201 A0004100 05
0:08:0 1106 3053 02000096 0117 0210 08 40 00 0000E301 A0004200 09
0:09:0 1106 3053 02000096 0117 0210 08 40 00 0000E401 A0004300 12
0:17:0 13A3 0020 0B400000 0116 0280 08 40 00 A0005000 A0006000 15
0:20:0 1022 2090 06010003 0009 02A0 08 40 80 00006001 00006101 
0:20:2 1022 209A 01018001 0005 02A0 08 00 00 00000000 00000000 
0:21:0 1022 2094 0C031002 0006 0230 08 00 80 A0010000 00000000 07
0:21:1 1022 2095 0C032002 0006 0230 08 00 00 A0011000 00000000 07

 1 Seconds to automatic boot.   Press Ctrl-P for entering Monitor.
Using drive 0, partition 3.
Loading.....
probing: pc0 com0 com1 pci mem[639K 511M a20=on] 
disk: hd0+*
>> OpenBSD/i386 BOOT 3.26
open(hd0a:/etc/boot.conf): Invalid argument
boot> 
cannot open hd0a:/etc/random.seed: Unknown error: code 100
booting hd0a:/bsd: open hd0a:/bsd: Unknown error: code 100
 failed(100). will try /bsd
boot> 
cannot open hd0a:/etc/random.seed: Invalid argument
booting hd0a:/bsd: open hd0a:/bsd: Input/output error
 failed(5). will try /bsd
Turning timeout off.
boot>
After reset and pxeboot into the bsd.rd shell:

Code:
# disklabel wd0
# /dev/rwd0c:
type: ESDI
disk: ESDI/IDE disk
label: CF CARD         
duid: 78d991d3ab01b44c
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 974
total sectors: 15662304
boundstart: 64
boundend: 15647310
drivedata: 0 

16 partitions:
#                size           offset  fstype [fsize bsize  cpg]
  a:           212192               64  4.2BSD   2048 16384    1 
  b:           260550           212256    swap                   
  c:         15662304                0  unused                   
  d:           323072           472832  4.2BSD   2048 16384    1 
  e:           289536           795904  4.2BSD   2048 16384    1 
  f:          1891552          1085440  4.2BSD   2048 16384    1 
  g:          1077568          2976992  4.2BSD   2048 16384    1 
  h:          4291008          4054560  4.2BSD   2048 16384    1 
  i:          2116480          8345568  4.2BSD   2048 16384    1 
  j:          2701056         10462048  4.2BSD   2048 16384    1 
  k:          2484064         13163104  4.2BSD   2048 16384    1 
# 

# mount /dev/wd0a /mnt2
# cd /mnt2
# ls
.cshrc   altroot  boot     bsd.mp   dev      home     root     sys      usr
.profile bin      bsd      bsd.rd   etc      mnt      sbin     tmp      var
# cd etc
# ls
X11             fstab           mail            ntpd.conf       rpc
amd             ftpusers        mail.rc         passwd          services
authpf          gettytab        mailer.conf     pf.conf         shells
boot.conf       group           man.conf        pf.os           signify
changelist      hostname.vr0    master.passwd   ppp             skel
csh.cshrc       hosts           moduli          protocols       spwd.db
csh.login       hotplug         monthly         pwd.db          ssh
csh.logout      iked            motd            random.seed     ssl
daily           isakmpd         mtree           rc              sudoers
disktab         ksh.kshrc       mygate          rc.conf         syslog.conf
dumpdates       ldap            myname          rc.conf.local   systrace
examples        localtime       netstart        rc.d            termcap
fbtab           locate.rc       networks        rc.firsttime    ttys
firmware        login.conf      newsyslog.conf  resolv.conf     weekly
fonts           magic           npppd           rmt
# cat boot.conf
stty com0 19200
set tty com0
#
Here is the dmesg:

Code:
OpenBSD 5.7 (RAMDISK_CD) #719: Sun Mar  8 11:09:19 MDT 2015
    deraadt@i386.openbsd.org:/usr/src/sys/arch/i386/compile/RAMDISK_CD
cpu0: Geode(TM) Integrated Processor by AMD PCS ("AuthenticAMD" 586-class) 500 MHz
cpu0: FPU,DE,PSE,TSC,MSR,CX8,SEP,PGE,CMOV,CFLUSH,MMX,MMXX,3DNOW2,3DNOW
real mem  = 536408064 (511MB)
avail mem = 519950336 (495MB)
mainbus0 at root
bios0 at mainbus0: date 20/80/26, BIOS32 rev. 0 @ 0xfac40
pcibios0 at bios0: rev 2.0 @ 0xf0000/0x10000
pcibios0: pcibios_get_intr_routing - function not supported
pcibios0: PCI IRQ Routing information unavailable.
pcibios0: PCI bus #0 is the last bus
bios0: ROM list: 0xc8000/0xa800
cpu0 at mainbus0: (uniprocessor)
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
0:20:0: io address conflict 0x6100/0x100
0:20:0: io address conflict 0x6200/0x200
pchb0 at pci0 dev 1 function 0 "AMD Geode LX" rev 0x33
"AMD Geode LX Crypto" rev 0x00 at pci0 dev 1 function 2 not configured
vr0 at pci0 dev 6 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 11, address 00:00:24:cc:44:ac
ukphy0 at vr0 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI 0x004063, model 0x0034
vr1 at pci0 dev 7 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 5, address 00:00:24:cc:44:ad
ukphy1 at vr1 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI 0x004063, model 0x0034
vr2 at pci0 dev 8 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 9, address 00:00:24:cc:44:ae
ukphy2 at vr2 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI 0x004063, model 0x0034
vr3 at pci0 dev 9 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 12, address 00:00:24:cc:44:af
ukphy3 at vr3 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI 0x004063, model 0x0034
"Hifn 7955/7954" rev 0x00 at pci0 dev 17 function 0 not configured
pcib0 at pci0 dev 20 function 0 "AMD CS5536 ISA" rev 0x03
pciide0 at pci0 dev 20 function 2 "AMD CS5536 IDE" rev 0x01: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <CF CARD>
wd0: 1-sector PIO, LBA48, 7647MB, 15662304 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 ignored (disabled)
ohci0 at pci0 dev 21 function 0 "AMD CS5536 USB" rev 0x02: irq 7, version 1.0, legacy support
ehci0 at pci0 dev 21 function 1 "AMD CS5536 USB" rev 0x02: irq 7
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "AMD EHCI root hub" rev 2.00/1.00 addr 1
isa0 at pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com0: console
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
usb1 at ohci0: USB revision 1.0
uhub1 at usb1 "AMD OHCI root hub" rev 1.00/1.00 addr 1
softraid0 at root
scsibus0 at softraid0: 256 targets
PXE boot MAC address 00:00:24:cc:44:ac, interface vr0
root on rd0a swap on rd0b dump on rd0b
syncing disks... done
OpenBSD 5.7 (RAMDISK_CD) #719: Sun Mar  8 11:09:19 MDT 2015
    deraadt@i386.openbsd.org:/usr/src/sys/arch/i386/compile/RAMDISK_CD
cpu0: Geode(TM) Integrated Processor by AMD PCS ("AuthenticAMD" 586-class) 500 MHz
cpu0: FPU,DE,PSE,TSC,MSR,CX8,SEP,PGE,CMOV,CFLUSH,MMX,MMXX,3DNOW2,3DNOW
real mem  = 536408064 (511MB)
avail mem = 519950336 (495MB)
mainbus0 at root
bios0 at mainbus0: date 20/80/26, BIOS32 rev. 0 @ 0xfac40
pcibios0 at bios0: rev 2.0 @ 0xf0000/0x10000
pcibios0: pcibios_get_intr_routing - function not supported
pcibios0: PCI IRQ Routing information unavailable.
pcibios0: PCI bus #0 is the last bus
bios0: ROM list: 0xc8000/0xa800
cpu0 at mainbus0: (uniprocessor)
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
0:20:0: io address conflict 0x6100/0x100
0:20:0: io address conflict 0x6200/0x200
pchb0 at pci0 dev 1 function 0 "AMD Geode LX" rev 0x33
"AMD Geode LX Crypto" rev 0x00 at pci0 dev 1 function 2 not configured
vr0 at pci0 dev 6 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 11, address 00:00:24:cc:44:ac
ukphy0 at vr0 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI 0x004063, model 0x0034
vr1 at pci0 dev 7 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 5, address 00:00:24:cc:44:ad
ukphy1 at vr1 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI 0x004063, model 0x0034
vr2 at pci0 dev 8 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 9, address 00:00:24:cc:44:ae
ukphy2 at vr2 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI 0x004063, model 0x0034
vr3 at pci0 dev 9 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 12, address 00:00:24:cc:44:af
ukphy3 at vr3 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI 0x004063, model 0x0034
"Hifn 7955/7954" rev 0x00 at pci0 dev 17 function 0 not configured
pcib0 at pci0 dev 20 function 0 "AMD CS5536 ISA" rev 0x03
pciide0 at pci0 dev 20 function 2 "AMD CS5536 IDE" rev 0x01: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <CF CARD>
wd0: 1-sector PIO, LBA48, 7647MB, 15662304 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 ignored (disabled)
ohci0 at pci0 dev 21 function 0 "AMD CS5536 USB" rev 0x02: irq 7, version 1.0, legacy support
ehci0 at pci0 dev 21 function 1 "AMD CS5536 USB" rev 0x02: irq 7
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "AMD EHCI root hub" rev 2.00/1.00 addr 1
isa0 at pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com0: console
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
usb1 at ohci0: USB revision 1.0
uhub1 at usb1 "AMD OHCI root hub" rev 1.00/1.00 addr 1
softraid0 at root
scsibus0 at softraid0: 256 targets
PXE boot MAC address 00:00:24:cc:44:ac, interface vr0
root on rd0a swap on rd0b dump on rd0b
These are the comBIOS params...disk 80 is the CF card and "FLASH = Primary" is set. BIOS is at the latest version.

Code:
comBIOS Monitor.   Press ? for help.

> show

ConSpeed = 19200
ConLock = Enabled
ConMute = Disabled
BIOSentry = Enabled
PCIROMS = Enabled
PXEBoot = Enabled
FLASH = Primary
BootDelay = 5
FastBoot = Disabled
BootPartition = Disabled
BootDrive = 80 81 F0 FF 
ShowPCI = Enabled
Reset = Hard
CpuSpeed = Default
Reply With Quote
  #2   (View Single Post)  
Old 17th June 2015
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

This appears to me like a CF card that writes blocks without error, but cannot read them.

I would swap CF cards. If it turns out that its a bad CF card reader/IDE controller, which is possible, you can return to using SATA, or, you can run the platform diskless(8).

Last edited by jggimi; 17th June 2015 at 10:51 AM. Reason: CF cards are electronically identical to IDE/PATA
Reply With Quote
  #3   (View Single Post)  
Old 17th June 2015
raindog308 raindog308 is offline
Fdisk Soldier
 
Join Date: Sep 2011
Posts: 67
Default

Quote:
Originally Posted by jggimi View Post
This appears to me like a CF card that writes blocks without error, but cannot read them.

I would swap CF cards. If it turns out that its a bad CF card reader/IDE controller, which is possible, you can return to using SATA, or, you can run the platform diskless(8).
Trying a different CF card is a cheap test, so I'll try that. It's strange, though, because I can mount and read the filesystems after install.
Reply With Quote
  #4   (View Single Post)  
Old 17th June 2015
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

The failure-to-read indications were these:
Code:
cannot open hd0a:/etc/random.seed: Unknown error: code 100
booting hd0a:/bsd: open hd0a:/bsd: Unknown error: code 100
I don't know what an error of 100 means. I do know that early I/O uses BIOS services, rather than direct device drivers, which may be why you seem to have success when bsd.rd is running, but failures when the BIOS tries to read these sectors.

While not having random.seed only temporarily reduces the entropy pool for random number generation, not being able to read a kernel is a fatal error.

Can you successfully read every sector of that CF card? If so, the problem may be BIOS related. # dd if=/rwd0c of=/dev/null bs=1m
Reply With Quote
  #5   (View Single Post)  
Old 18th June 2015
raindog308 raindog308 is offline
Fdisk Soldier
 
Join Date: Sep 2011
Posts: 67
Default

A new CF card fixed it. Thanks for the advice!

Though having read a little on CF cards their long-term durability seems questionable to me...maybe I should run this box diskless. Hmm.

Last edited by raindog308; 18th June 2015 at 02:12 AM.
Reply With Quote
  #6   (View Single Post)  
Old 18th June 2015
Oko's Avatar
Oko Oko is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Kosovo, Serbia
Posts: 1,102
Default

Quote:
Originally Posted by raindog308 View Post
A new CF card fixed it. Thanks for the advice!

Though having read a little on CF cards their long-term durability seems questionable to me...maybe I should run this box diskless. Hmm.
You need either

http://www.nmedia.net/flashrd/flashrd-faq.html

or

http://www.mindrot.org/projects/flashboot/

The second might be actually dead project now. Flashrd is kick ass embedded installation of OpenBSD.
Reply With Quote
  #7   (View Single Post)  
Old 18th June 2015
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

I don't think its necessary to run diskless, if CF works. I've never investigated Oko's recommended third party solutions and can't comment on them. Instead, I'll just state that as with magnetic discs or modern SSDs -- be sure you have an adequate, functioning backup cadence, and be sure to TEST your recovery strategy carefully. And test it again when you make significant changes to the system.

I have a pair of Alix platforms that run on CF cards. I've had two CF card failures in two years of production use -- and one of those was on acquisition, so I've only had one failure while in production. I discussed that disaster recovery experience here.

The two failures -- its a small sample, granted -- were different. The DOA card had media problems, and the recent failure was of drive electronics.

The machines are using carp(4) so there was no outage of any service configured to run across both systems.

Last edited by jggimi; 18th June 2015 at 02:54 AM. Reason: clarity.
Reply With Quote
  #8   (View Single Post)  
Old 18th June 2015
ibara ibara is offline
OpenBSD language porter
 
Join Date: Jan 2014
Posts: 783
Default

Quote:
Originally Posted by jggimi View Post
I don't think its necessary to run diskless, if CF works. I've never investigated Oko's recommended third party solutions and can't comment on them.
While both are technically third-party, both tools are written by active OpenBSD developers. I can highly recommend flashrd (by chris@): there are some NYC*BUG projects that use it extensively.
Reply With Quote
  #9   (View Single Post)  
Old 18th June 2015
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

Thanks, ibara!

There's been an interesting discussion on misc@ which has become of value here. It began as a discussion of SSD drives and the TRIM function, but has recently evolved into a discussion of disk drive internal error handling. That shift in direction to applicability are in recent posts from nick@ and naddy@.
Reply With Quote
Old 18th June 2015
raindog308 raindog308 is offline
Fdisk Soldier
 
Join Date: Sep 2011
Posts: 67
Default

Alas, spoke too soon. Same problem on a subsequent reboot. I think the CF controller is malfunctioning. The POST has that weird commas between 'r' and 't' which I haven't seen in other Soekrises so I'll ask on soekris-tech about that.

Thanks for all the reading here!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Soekris - home network benky OpenBSD General 5 7th April 2015 04:38 PM
Soekris 5501-70 PXE install benky OpenBSD Installation and Upgrading 1 30th March 2015 09:13 PM
Soekris experiences Carpetsmoker General Hardware 42 21st August 2009 01:52 PM
soekris help revzalot OpenBSD Installation and Upgrading 6 17th December 2008 07:40 PM
Soekris Help revzalot General Hardware 2 27th August 2008 01:35 PM


All times are GMT. The time now is 05:09 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick