I have since ran the OpenBSD 5.3 media for an upgrade and got the system
running. However, I accidentally built the i386 kernel when the machine is
amd64, which might have replaced init or something in the process which
might be why obsd didn't work.


On Thu, May 23, 2013 at 3:25 AM, John Tate <j...@johntate.org> wrote:

> I have an OpenBSD VPS, I just built the latest kernel from the 5.3 patch
> branch, and the new kernel can't find init, but neither can the old kernel,
> they both make this output:
>
> >> OpenBSD/amd64 BOOT 3.01
> boot> obsd
> booting hd0a:obsd: 8404228+1102404 [52+381152+367486]=0x9c7d50
> entry point at 0x200120 [7205c766, 34000004, 24448b12, 2494a304]
>
> [ using 749064 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-2013 OpenBSD. All rights reserved.
> http://www.OpenBSD.org
>
> OpenBSD 5.3-stable (SECUSRVR) #0: Wed May 22 10:07:51 PDT 2013
>     r...@elijah.secusrvr.com:/usr/src/sys/arch/i386/compile/SECUSRVR
> cpu0: QEMU Virtual CPU version 0.9.1 ("GenuineIntel" 686-class) 2.65 GHz
> cpu0:
> FPU,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,NXE,LONG,SSE3,PERF
> real mem  = 804777984 (767MB)
> avail mem = 780640256 (744MB)
> mainbus0 at root
> bios0 at mainbus0: AT/286+ BIOS, date 02/13/10, BIOS32 rev. 0 @ 0xfb4d0,
> SMBIOS rev. 2.4 @ 0xfbd3f (10 entries)
> bios0: vendor QEMU version "QEMU" date 01/01/2007
> acpi0 at bios0: rev 0
> acpi0: sleep states S3 S4 S5
> acpi0: tables DSDT FACP APIC
> acpi0: wakeup devices
> acpitimer0 at acpi0: 3579545 Hz, 24 bits
> acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
> acpiprt0 at acpi0: bus 0 (PCI0)
> acpicpu0 at acpi0
> mpbios0 at bios0: Intel MP Specification 1.4
> cpu0 at mainbus0: apid 0 (boot processor)
> cpu0: apic clock running at 999MHz
> mpbios0: bus 0 is type ISA
> ioapic0 at mainbus0: apid 1 pa 0xfec00000, version 11, 24 pins
> ioapic0: misconfigured as apic 0, remapped to apid 1
> bios0: ROM list: 0xc0000/0x8c00 0xd0000/0x600!
> pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
> pchb0 at pci0 dev 0 function 0 "Intel 82441FX" rev 0x02
> pcib0 at pci0 dev 1 function 0 "Intel 82371SB ISA" rev 0x00
> pciide0 at pci0 dev 1 function 1 "Intel 82371SB IDE" rev 0x00: DMA,
> channel 0 wired to compatibility, channel 1 wired to compatibility
> wd0 at pciide0 channel 0 drive 0: <QEMU HARDDISK>
> wd0: 16-sector PIO, LBA48, 20480MB, 41943040 sectors
> atapiscsi0 at pciide0 channel 0 drive 1
> scsibus0 at atapiscsi0: 2 targets
> cd0 at scsibus0 targ 0 lun 0: <QEMU, QEMU DVD-ROM, 0.9.> ATAPI 5/cdrom
> removable
> wd0(pciide0:0:0): using PIO mode 0, DMA mode 2
> cd0(pciide0:0:1): using PIO mode 0
> atapiscsi1 at pciide0 channel 1 drive 0
> scsibus1 at atapiscsi1: 2 targets
> cd1 at scsibus1 targ 0 lun 0: <QEMU, QEMU DVD-ROM, 0.9.> ATAPI 5/cdrom
> removable
> cd1(pciide0:1:0): using PIO mode 0
> uhci0 at pci0 dev 1 function 2 "Intel 82371SB USB" rev 0x01: apic 1 int 11
> piixpm0 at pci0 dev 1 function 3 "Intel 82371AB Power" rev 0x03: apic 1
> int 10
> iic0 at piixpm0
> iic0: addr 0x19 3e=00 48=00 4a=00 4e=00 fc=00 fe=00 words 00=0000 01=0000
> 02=0000 03=0000 04=0000 05=0000 06=0000 07=0000
> iic0: addr 0x1b 3e=00 48=00 4a=00 4e=00 fc=00 fe=00 words 00=0000 01=0000
> 02=0000 03=0000 04=0000 05=0000 06=0000 07=0000
> iic0: addr 0x1c 0f=00 3e=00 48=00 4a=00 4e=00 fc=00 fe=00 words 00=0000
> 01=0000 02=0000 03=0000 04=0000 05=0000 06=0000 07=0000
> iic0: addr 0x1d 0f=00 3e=00 48=00 4a=00 4e=00 fc=00 fe=00 words 00=0000
> 01=0000 02=0000 03=0000 04=0000 05=0000 06=0000 07=0000
> iic0: addr 0x1e 3e=00 48=00 4a=00 4e=00 fc=00 fe=00 words 00=0000 01=0000
> 02=0000 03=0000 04=0000 05=0000 06=0000 07=0000
> iic0: addr 0x1f 3e=00 48=00 4a=00 4e=00 fc=00 fe=00 words 00=0000 01=0000
> 02=0000 03=0000 04=0000 05=0000 06=0000 07=0000
> iic0: addr 0x29 00=d0 01=d0 02=d0 03=d0 04=d0 05=d0 06=d0 07=d0 08=d0
> words 00=0000 01=0000 02=0000 03=0000 04=0000 05=0000 06=0000 07=0000
> iic0: addr 0x2b 00=d0 01=d0 02=d0 03=d0 04=d0 05=d0 06=d0 07=d0 08=d0
> words 00=0000 01=0000 02=0000 03=0000 04=0000 05=0000 06=0000 07=0000
> iic0: addr 0x4c 00=d0 01=d0 02=d0 03=d0 04=d0 05=d0 06=d0 07=d0 08=d0
> words 00=0000 01=0000 02=0000 03=0000 04=0000 05=0000 06=0000 07=0000
> iic0: addr 0x4e 00=d0 01=d0 02=d0 03=d0 04=d0 05=d0 06=d0 07=d0 08=d0
> words 00=0000 01=0000 02=0000 03=0000 04=0000 05=0000 06=0000 07=0000
> vga1 at pci0 dev 2 function 0 "Cirrus Logic CL-GD5446" rev 0x00
> wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
> wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
> em0 at pci0 dev 3 function 0 "Intel PRO/1000MT (82540EM)" rev 0x03: apic 1
> int 11, address 52:54:00:27:26:84
> em1 at pci0 dev 4 function 0 "Intel PRO/1000MT (82540EM)" rev 0x03: apic 1
> int 11, address 52:54:00:3b:26:84
> virtio0 at pci0 dev 5 function 0 "Qumranet Virtio Memory" rev 0x00: Virtio
> Memory Balloon Device
> viomb0 at virtio0
> virtio0: apic 1 int 10
> virtio1 at pci0 dev 6 function 0 "Qumranet Virtio Console" rev 0x00:
> Virtio Console Device
> virtio1: no matching child driver; not configured
> isa0 at pcib0
> isadma0 at isa0
> com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
> com0: console
> pckbc0 at isa0 port 0x60/5
> pckbd0 at pckbc0 (kbd slot)
> pckbc0: using irq 1 for kbd slot
> wskbd0 at pckbd0: console keyboard, using wsdisplay0
> pms0 at pckbc0 (aux slot)
> pckbc0: using irq 12 for aux slot
> wsmouse0 at pms0 mux 0
> pcppi0 at isa0 port 0x61
> spkr0 at pcppi0
> npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
> fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
> fd0 at fdc0 drive 0: density unknown
> fd1 at fdc0 drive 1: density unknown
> usb0 at uhci0: USB revision 1.0
> uhub0 at usb0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
> mtrr: Pentium Pro MTRR support
> nvram: invalid checksum
> vscsi0 at root
> scsibus2 at vscsi0: 256 targets
> softraid0 at root
> scsibus3 at softraid0: 256 targets
> root on wd0a swap on wd0b dump on wd0b
> clock: unknown CMOS layout
> exec /sbin/init: error 8
> init: not found
> panic: no init
> Stopped at      Debugger+0x4:   popl    %ebp
> RUN AT LEAST 'trace' AND 'ps' AND INCLUDE OUTPUT WHEN REPORTING THIS PANIC!
> DO NOT EVEN BOTHER REPORTING THIS WITHOUT INCLUDING THAT INFORMATION!
> ddb> trace
> Debugger(d08fd27c,f53b6f18,d08d83d7,f53b6f18,d09e6f94) at Debugger+0x4
> panic(d08d83d7,f53b6f58,f53b6f64,0,ffffffff) at panic+0x5d
> start_init(d658c000) at start_init+0x251
> Bad frame pointer: 0xd0bc9ea8
> ddb> ps
>    PID   PPID   PGRP    UID  S       FLAGS  WAIT          COMMAND
>     15      0      0      0  3    0x100200  aiodoned      aiodoned
>     14      0      0      0  3    0x100200  syncer        update
>     13      0      0      0  3    0x100200  cleaner       cleaner
>     12      0      0      0  3    0x100200  reaper        reaper
>     11      0      0      0  3    0x100200  pgdaemon      pagedaemon
>     10      0      0      0  3    0x100200  bored         crypto
>      9      0      0      0  3    0x100200  pftm          pfpurge
>      8      0      0      0  3    0x100200  usbtsk        usbtask
>      7      0      0      0  3    0x100200  usbatsk       usbatsk
>      6      0      0      0  3    0x100200  bored         viomb
>      5      0      0      0  3    0x100200  acpi0         acpi0
>      4      0      0      0  3    0x100200  bored         syswq
>      3      0      0      0  3  0x40100200                idle0
>      2      0      0      0  3    0x100200  kmalloc       kmthread
> *    1      0      0      0  7           0                swapper
>      0     -1      0      0  3       0x200  scheduler     swapper
>
> I'm really not sure how this can happen, it's like init vanished.
>
> --
> www.johntate.org
>



-- 
www.johntate.org

Reply via email to