Now I reinstalled on another CF-Disk (4GB Transcend) with another method
(miniboot.fs), this went through and first-rebooted just fine.

But now halting the machine produces a panic:

# halt -q -p
syncing disks... panic: init died (signal 11, exit 0)
Stopped at      Debugger+0x7:   leave
   TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND
*    1      1      0       0x802     0x2000    0  init
Debugger(d09ee194,f35e5e08,d09c5b88,f35e5e08,cf7c0004) at Debugger+0x7
panic(d09c5b88,b,0,0,2) at panic+0x71
exit1(d5774000,b,1,0,d576b210,0,6cfd49fd,d5772000) at exit1+0x548
sigexit(d5774000,b,0,0,0) at sigexit+0x76
trapsignal(d5774000,b,1,1,17b50e00) at trapsignal+0xe2
trap() at trap+0x71f
--- trap (number 23636) ---
0xcf7c0004:
http://www.openbsd.org/ddb.html describes the minimum info required in bug
reports.  Insufficient info makes it difficult to find and fix bugs.
ddb> trace
Debugger(d09ee194,f35e5e08,d09c5b88,f35e5e08,cf7c0004) at Debugger+0x7
panic(d09c5b88,b,0,0,2) at panic+0x71
exit1(d5774000,b,1,0,d576b210,0,6cfd49fd,d5772000) at exit1+0x548
sigexit(d5774000,b,0,0,0) at sigexit+0x76
trapsignal(d5774000,b,1,1,17b50e00) at trapsignal+0xe2
trap() at trap+0x71f
--- trap (number 23636) ---
0xcf7c0004:
ddb> ps
   TID   PPID   PGRP    UID  S       FLAGS  WAIT          COMMAND
 55507  85598  55507      0  2         0x3                halt
 85598      1  85598      0  3    0x10008b  pause         ksh
 92661      1  92661      0  3    0x100098  poll          cron
 57250      1  57250     99  3    0x100090  poll          sndiod
 63400      1  63400    110  3    0x100090  poll          sndiod
 65906  81999  81999     95  3    0x100092  kqread        smtpd
 72831  81999  81999    103  3    0x100092  kqread        smtpd
 10633  81999  81999     95  3    0x100092  kqread        smtpd
 97068  81999  81999     95  3    0x100092  kqread        smtpd
 81499  81999  81999     95  3    0x100092  kqread        smtpd
 57906  81999  81999     95  3    0x100092  kqread        smtpd
 81999      1  81999      0  3    0x100080  kqread        smtpd
  7482  89821  89821     74  3    0x100090  bpf           pflogd
 89821      1  89821      0  3        0x80  netio         pflogd
 93705  43872  43872     73  3    0x100090  kqread        syslogd
 43872      1  43872      0  3    0x100080  netio         syslogd
  9456      1   9456     77  3    0x100090  poll          dhclient
 86556      1  86556      0  3        0x80  poll          dhclient
 88578      0      0      0  2     0x14200                zerothread
 85136      0      0      0  3     0x14200  aiodoned      aiodoned
  9148      0      0      0  3     0x14200  syncer        update
 37019      0      0      0  3     0x14200  cleaner       cleaner
 79443      0      0      0  3     0x14200  reaper        reaper
 69499      0      0      0  3     0x14200  pgdaemon      pagedaemon
 42714      0      0      0  3     0x14200  bored         crynlk
 51880      0      0      0  3     0x14200  bored         crypto
 69072      0      0      0  3     0x14200  pftm          pfpurge
 79050      0      0      0  3     0x14200  usbtsk        usbtask
 15996      0      0      0  3     0x14200  usbatsk       usbatsk
 42597      0      0      0  2     0x14200                softnet
 40363      0      0      0  3     0x14200  bored         systqmp
 89410      0      0      0  3     0x14200  bored         systq
 29073      0      0      0  3  0x40014200                idle0
 69980      0      0      0  3     0x14200  kmalloc       kmthread
*    1      0      1      0  7      0x2802                init
     0     -1      0      0  3     0x10200  scheduler     swapper
ddb> show uvm
Current UVM status:
  pagesize=4096 (0x1000), pagemask=0xfff, pageshift=12
  61273 VM pages: 2530 active, 0 inactive, 0 wired, 55999 free (5913 zero)
  min  10% (25) anon, 10% (25) vnode, 5% (12) vtext
  pages  0 anon, 0 vnode, 0 vtext
  freemin=2042, free-target=2722, inactive-target=0, wired-max=20424
  faults=73549, traps=74028, intrs=146205, ctxswitch=22830 fpuswitch=76
  softint=61989, syscalls=134503, kmapent=16
  fault counts:
    noram=0, noanon=0, noamap=0, pgwait=0, pgrele=0
    ok relocks(total)=3723(3723), anget(retries)=35383(0), amapcopy=35109
    neighbor anon/obj pg=2026/33638, gets(lock/unlock)=14623/3732
    cases: anon=28842, anoncow=6541, obj=13191, prcopy=1423, przero=23543
  daemon and swap counts:
    woke=0, revs=0, scans=0, obscans=0, anscans=0
    busy=0, freed=0, reactivate=0, deactivate=0
    pageouts=0, pending=0, nswget=0
    nswapdev=1, nanon=0, nanonneeded=0 nfreeanon=0
    swpages=65535, swpginuse=0, swpgonly=0 paging=0
  kernel pointers:
    objs(kern)=0xd0b89580
ddb> show bcstats
Current Buffer Cache status:
numbufs 30 busymapped 1, delwri 0
kvaslots 765 avail kva slots 764
bufpages 114, dirtypages 0
pendingreads 0, pendingwrites 0
ddb> mount
No such command
ddb> show panic
init died (signal 11, exit 0)
ddb>

I could not reproduce this after a reboot (taking 2:17, of which 52 s
are for reordering libraries).

But then I could reproduce it several times, halting directly after
logging in.

Peer


Am 02.10.2016 um 17:54 schrieb Peer Janssen:
> Goal: Upgrade a working soekris net4801 from OpenBSD 4.6 to 6.0.
>
> First I copied the complete 256 MB SiliconDrive CF-Disk to a newer
> SanDisk 8 GB Ultra one and rebootet, which worked smoothly and fine.
>
> I took the bsd.rd from an OpenBSD 6.0 i386 machine:
>
> # ls -l /bsd.rd
> -rw-r--r--  1 root  wheel  7173390 Sep 20 19:17 /bsd.rd
> # md5 /bsd.rd
> MD5 (/bsd.rd) = 191559b8c5907ca34c144462366b021a
> # dmesg
> OpenBSD 6.0 (GENERIC) #1917: Tue Jul 26 12:48:33 MDT 2016
>     dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
> cpu0: Geode(TM) Integrated Processor by AMD PCS ("AuthenticAMD"
> 586-class) 499 MHz
> cpu0: FPU,DE,PSE,TSC,MSR,CX8,SEP,PGE,CMOV,CFLUSH,MMX,MMXX,3DNOW2,3DNOW
>
> [snip]
>
> put it in / of a working soekris net4801 with OpenBSD 4.6 in order to
> jump-upgrade the system, but it doesn't boot the 6.0 bsd.rd install image:
>
> $ cu -l /dev/ttyS0 -s 19200
> Connected.
>  1
> Using drive 0, partition 3.
> Loading...
> probing: pc0 com0 com1 pci mem[639K 255M a20=on]
> disk: hd0+
>>> OpenBSD/i386 BOOT 3.02
> switching console to com0
>                          >> OpenBSD/i386 BOOT 3.02
> boot>  stty com0 19200
>
> com0: 19200 baud
> boot> set tty com0
> switching console to com0
>>> OpenBSD/i386 BOOT 3.02
> boot> boot bsd.rd
> booting hd0a:bsd.rd: 3211188+1318224+2061312+0+442368
> [72+298576+282894]=0x744144
> entry point at 0x2000d4
> cu: Got hangup signal
>
> Disconnected.
> ==> So here is where it brakes. Immediate reconnect:
>
> $ cu -l /dev/ttyS0 -s 19200
> Connected.
>
> [snip: more empty lines]
> ==> it goes into a reboot like this:
>
> comBIOS ver. 1.28  20050529  Copyright (C) 2000-2005 Soekris Engineering.
>
> net4801
>
> 0256 Mbyte Memory                        CPU Geode 266 Mhz
>
> Pri Mas  SDCFHS-008G                     LBA Xlt 974-255-63  7831 Mbyte
>
> Slot   Vend Dev  ClassRev Cmd  Stat CL LT HT  Base1    Base2   Int
> -------------------------------------------------------------------
> 0:00:0 1078 0001 06000000 0107 0280 00 00 00 00000000 00000000
> 0:06:0 100B 0020 02000000 0107 0290 00 3F 00 0000E101 A0000000 10
> 0:07:0 100B 0020 02000000 0107 0290 00 3F 00 0000E201 A0001000 10
> 0:08:0 100B 0020 02000000 0107 0290 00 3F 00 0000E301 A0002000 10
> 0:10:0 104C AC23 06040002 0107 0210 08 3F 01 00000000 00000000
> 0:18:2 100B 0502 01018001 0005 0280 00 00 00 00000000 00000000
> 0:19:0 0E11 A0F8 0C031008 0117 0280 08 38 00 A0003000 00000000 11
> 1:00:0 100B 0020 02000000 0107 0290 00 3F 00 0000D001 A4000000 05
> 1:01:0 100B 0020 02000000 0107 0290 00 3F 00 0000D101 A4001000 11
> 1:02:0 100B 0020 02000000 0107 0290 00 3F 00 0000D201 A4002000 05
> 1:03:0 100B 0020 02000000 0107 0290 00 3F 00 0000D301 A4003000 11
>
>  1 Seconds to automatic boot.   Press Ctrl-P for entering Monitor.
>
> comBIOS Monitor.   Press ? for help.
> [snip]
> ==> For comparison and giving machine details, booting into the working
> OpenBSD 4.6:
>> boot
> Using drive 0, partition 3.
> Loading...
> probing: pc0 com0 com1 pci mem[639K 255M a20=on]
> disk: hd0+
>>> OpenBSD/i386 BOOT 3.02
> switching console to com0
>                          >> OpenBSD/i386 BOOT 3.02
> boot>
> booting hd0a:/bsd: 6563548+1052072 [52+345584+327881]=0x7e7ce8
> entry point at 0x200120
>
> [ using 673892 bytes of bsd ELF symbol table ]
> Copyright (c) 1982, 1986, 1989, 1991, 1993
>         The Regents of the University of California.  All rights reserved.
> Copyright (c) 1995-2009 OpenBSD. All rights reserved.
> http://www.OpenBSD.org
>
> OpenBSD 4.6 (GENERIC) #58: Thu Jul  9 21:24:42 MDT 2009
>     dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
> cpu0: Geode(TM) Integrated Processor by National Semi ("Geode by NSC"
> 586-class) 267 MHz
> cpu0: FPU,TSC,MSR,CX8,CMOV,MMX
> real mem  = 268005376 (255MB)
> avail mem = 250331136 (238MB)
> mainbus0 at root
> bios0 at mainbus0: AT/286+ BIOS, date 20/50/29, BIOS32 rev. 0 @ 0xf7840
> 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 #1 is the last bus
> bios0: ROM list: 0xc8000/0x9000
> cpu0 at mainbus0: (uniprocessor)
> cpu0: TSC disabled
> pci0 at mainbus0 bus 0: configuration mode 1 (bios)
> pchb0 at pci0 dev 0 function 0 "Cyrix GXm PCI" rev 0x00
> sis0 at pci0 dev 6 function 0 "NS DP83815 10/100" rev 0x00, DP83816A:
> irq 10, address 00:00:24:c6:20:c4
> nsphyter0 at sis0 phy 0: DP83815 10/100 PHY, rev. 1
> sis1 at pci0 dev 7 function 0 "NS DP83815 10/100" rev 0x00, DP83816A:
> irq 10, address 00:00:24:c6:20:c5
> nsphyter1 at sis1 phy 0: DP83815 10/100 PHY, rev. 1
> sis2 at pci0 dev 8 function 0 "NS DP83815 10/100" rev 0x00, DP83816A:
> irq 10, address 00:00:24:c6:20:c6
> nsphyter2 at sis2 phy 0: DP83815 10/100 PHY, rev. 1
> ppb0 at pci0 dev 10 function 0 "TI PCI2250 PCI-PCI" rev 0x02
> pci1 at ppb0 bus 1
> sis3 at pci1 dev 0 function 0 "NS DP83815 10/100" rev 0x00, DP83816A:
> irq 5, address 00:00:24:c4:fa:30
> nsphyter3 at sis3 phy 0: DP83815 10/100 PHY, rev. 1
> sis4 at pci1 dev 1 function 0 "NS DP83815 10/100" rev 0x00, DP83816A:
> irq 11, address 00:00:24:c4:fa:31
> nsphyter4 at sis4 phy 0: DP83815 10/100 PHY, rev. 1
> sis5 at pci1 dev 2 function 0 "NS DP83815 10/100" rev 0x00, DP83816A:
> irq 5, address 00:00:24:c4:fa:32
> nsphyter5 at sis5 phy 0: DP83815 10/100 PHY, rev. 1
> sis6 at pci1 dev 3 function 0 "NS DP83815 10/100" rev 0x00, DP83816A:
> irq 11, address 00:00:24:c4:fa:33
> nsphyter6 at sis6 phy 0: DP83815 10/100 PHY, rev. 1
> gscpcib0 at pci0 dev 18 function 0 "NS SC1100 ISA" rev 0x00
> gpio0 at gscpcib0: 64 pins
> "NS SC1100 SMI" rev 0x00 at pci0 dev 18 function 1 not configured
> pciide0 at pci0 dev 18 function 2 "NS SCx200 IDE" rev 0x01: DMA, channel
> 0 wired to compatibility, channel 1 wired to compatibility
> wd0 at pciide0 channel 0 drive 0: <SDCFHS-008G>
> wd0: 1-sector PIO, LBA48, 7647MB, 15662304 sectors
> wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
> geodesc0 at pci0 dev 18 function 5 "NS SC1100 X-Bus" rev 0x00: iid 6
> revision 3 wdstatus 0
> ohci0 at pci0 dev 19 function 0 "Compaq USB OpenHost" rev 0x08: irq 11,
> version 1.0, legacy support
> isa0 at gscpcib0
> isadma0 at isa0
> com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifocu: Got hangup
signal
> Disconnected.
> ==> (Why that?) Well, again, immediate reconnect:
>
> (Just hese lines (reinserted from dmesg after login) are missing:
>
> com0: console
> com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo)
>
> $ cu -l /dev/ttyS0 -s 19200
> Connected.
> pckbd0 at pckbc0 (kbd slot)
> pckbc0: using irq 1 for kbd slot
> wskbd0 at pckbd0: console keyboard
> pcppi0 at isa0 port 0x61
> midi0 at pcppi0: <PC speaker>
> spkr0 at pcppi0
> nsclpcsio0 at isa0 port 0x2e/2: NSC PC87366 rev 10: GPIO VLM TMS
> gpio1 at nsclpcsio0: 29 pins
> gscsio0 at isa0 port 0x15c/2: SC1100 SIO rev 1:
> npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
> usb0 at ohci0: USB revision 1.0
> uhub0 at usb0 "Compaq OHCI root hub" rev 1.00/1.00 addr 1
> biomask fbc5 netmask ffe5 ttymask ffff
> softraid0 at root
> root on wd0a swap on wd0b dump on wd0b
> Automatic boot in progress: starting file system checks.
> /dev/rwd0a: file system is clean; not checking
> setting tty flags
> pf enabled
> starting network
> DHCPREQUEST on sis0 to 255.255.255.255 port 67
> DHCPACK from 192.168.0.1 (c0:25:06:d4:45:9e)
> bound to 192.168.0.122 -- renewal in 432000 seconds.
> starting system logger
> starting initial daemons: ntpd.
> savecore: /dev/wd0b: Device not configured
> checking quotas: done.
> building ps databases: kvm dev.
> clearing /tmp
> starting pre-securelevel daemons:.
> setting kernel security level: kern.securelevel: 0 -> 1
> creating runtime link editor directory cache.
> preserving editor files.
> starting network daemons: sendmail inetd sshd.
> starting local daemons:.
> standard daemons: cron.
> Sun Oct  2 17:25:22 CEST 2016
>
> OpenBSD/i386 (net4801.fritz.box) (tty00)
>
> login: root
> Password:
> Last login: Sun Oct  2 17:00:53 on ttyp0 from kubuntu-neu.fritz.box
> OpenBSD 4.6 (GENERIC) #58: Thu Jul  9 21:24:42 MDT 2009
>
> Welcome to OpenBSD: The proactively secure Unix-like operating system.
>
> Please use the sendbug(1) utility to report bugs in the system.
> Before reporting a bug, please try to reproduce it with the latest
> version of the code.  With bug reports, please try to ensure that
> enough information to reproduce the problem is enclosed, and if a
> known fix for it exists, include that as well.
>
> You have new mail.
> # md5 /bsd.rd
> MD5 (/bsd.rd) = 191559b8c5907ca34c144462366b021a
> # df -h
> Filesystem     Size    Used   Avail Capacity  Mounted on
> /dev/wd0a      244M    219M   12.8M    94%    /
> # ping google.com
> PING google.com (172.217.22.46): 56 data bytes
> 64 bytes from 172.217.22.46: icmp_seq=0 ttl=56 time=61.595 ms
> #
> So the non-booting kernel is indeed the unaltered one from the other
> i386 OpenBSD 6.0 machine, and these
> https://marc.info/?l=openbsd-misc&m=144242763106881&w=2 hints were taken
> into account.
> Is a system like the soekris net4801 not supported any more? Or is there
> something I can do to install the new version on it?
> Peer
>
>
> --
> Peer Janssen - p...@pjk.de
>
>

--
Peer Janssen - p...@pjk.de

Reply via email to