Subject: Booting problems (was: -advocacy mailing list)
To: None <netbsd-help@netbsd.org>
From: Thomas Mueller <tmueller@bluegrass.net>
List: netbsd-help
Date: 03/26/2002 04:16:22
from Richard Rauch:

> Try Peter's suggestion.  (^&

You mean unplug the keyboard momentarily?  That slipped my mind after two other
attempts.

I tried boot:wd0a:netbsdi.gz , and it looked just like I'd booted from the CD.
I was stuck in the install menu, running sh got me the reduced ramdisk version.
Too bad I couldn't mount root=/dev/hd.. as in Linux.  Then I tried boot -s,
accepted sh shell when prompted, got lines with # in the first column rapidly
scrolling down, noticed the dreaded pckbc: command timeout on one of those
lines.  I didn't even get a login prompt, maybe there is no login prompt is
single-user mode?

From a previous CD boot, I copied the dmesg from the earlier wd0a:netbsd boot
after mounting /dev/wd0a; I remember copying it to an msdos-formatted floppy,
and I found it there, a:\netbsd\dmesg.wd0

> I think that what you outline (booting to hard disk, resetting, booting
  from CD, mounting / and reading /var/log/messages) would work to get
  dmesg.

> Did you try booting single-user, as I suggested?  If you can talk to the
  boot loader, you might be able to talk to NetBSD in single-user mode.
  It's not a *solution*, but it would give a bit of information about the
  nature of the problem.

> Cross-compiling: I don't think that you can do that with the present
  release, but -current is headed that way (if it's not already there).

Do you mean cross-compiling from NetBSD to compile a kernel for Linux or other
BSD?  My desire is to cross-compile a NetBSD kernel from Linux.

You asked for the dmesg, here is the aforementioned a:\netbsd\dmesg.wd0 :


NetBSD 1.5.2 (GENERIC) #3: Sat Aug 18 23:37:05 CEST 2001
    he@hamster.urc.uninett.no:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: AMD Athlon Model 4 (Thunderbird) (686-class), 1396.08 MHz
total memory = 255 MB
avail memory = 231 MB
using 3296 buffers containing 13184 KB of memory
BIOS32 rev. 0 found at 0xfb5d0
mainbus0 (root)
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled
pchb0 at pci0 dev 0 function 0
pchb0: Advanced Micro Devices product 0x700e (rev. 0x13)
ppb0 at pci0 dev 1 function 0: Advanced Micro Devices product 0x700f (rev. 0x00)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga1 at pci1 dev 5 function 0: ATI Technologies product 0x5046 (rev. 0x00)
wsdisplay0 at vga1: console (80x25, vt100 emulation)
pcib0 at pci0 dev 7 function 0
pcib0: VIA Technologies VT82C686A (Apollo KX133) PCI-ISA Bridge (rev. 0x40)
pciide0 at pci0 dev 7 function 1: VIA Technologies VT82C686A (Apollo KX133) ATA100 controller
pciide0: bus-master DMA support present
pciide0: primary channel configured to compatibility mode
wd0 at pciide0 channel 0 drive 0: <WDC WD400BB-00CLB0>
wd0: drive supports 16-sector pio transfers, lba addressing
wd0: 38166 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 78165360 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5
pciide0: primary channel interrupting at irq 14
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5 (using DMA data transfers)
pciide0: secondary channel configured to compatibility mode
atapibus0 at pciide0 channel 1
cd0 at atapibus0 drive 0: <PLEXTOR CD-R   PX-W1610A, , 1.02> type 5 cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2
wd1 at pciide0 channel 1 drive 1: <WDC AC2340H>
wd1: drive supports 16-sector pio transfers, chs addressing
wd1: 325 MB, 1010 cyl, 12 head, 55 sec, 512 bytes/sect x 666600 sectors
wd1: 32-bit data port
wd1: drive supports PIO mode 3
pciide0: secondary channel interrupting at irq 15
cd0(pciide0:1:0): using PIO mode 4, DMA mode 2 (using DMA data transfers)
wd1(pciide0:1:1): using PIO mode 3
uhci0 at pci0 dev 7 function 2: VIA Technologies VT83C572 USB Controller (rev. 0x16)
uhci0: interrupting at irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: VIA Technologie UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 7 function 3: VIA Technologies VT83C572 USB Controller (rev. 0x16)
uhci1: interrupting at irq 11
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: VIA Technologie UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
VIA Technologies VT82C686A SMBus Controller (SMBus serial bus, revision 0x40) at pci0 dev 7 function 4 not configured
eap0 at pci0 dev 14 function 0: Ensoniq CT5880 (rev. 0x03)
eap0: interrupting at irq 5
eap0: unknown (0x00000000) codec; no 3D stereo
audio0 at eap0: full duplex, mmap, independent
midi0 at eap0: AudioPCI MIDI UART
puc0 at pci0 dev 15 function 0: US Robotics (3Com) 3CP5609 PCI 16550 Modem (com)
com3 at puc0 port 0: interrupting at irq 11
com3: ns16550a, working fifo
pciide1 at pci0 dev 16 function 0: Promise Ultra100/ATA Bus Master IDE Accelerator (rev. 0x02)
pciide1: bus-master DMA support present
pciide1: primary channel configured to native-PCI mode
pciide1: using irq 11 for native-PCI interrupt
pciide1: disabling primary channel (no drives)
pciide1: secondary channel configured to native-PCI mode
pciide1: disabling secondary channel (no drives)
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pmsi0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pmsi0 mux 0
lpt0 at isa0 port 0x378-0x37b irq 7
pcppi0 at isa0 port 0x61
midi1 at pcppi0: PC speaker
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff: using exception 16
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
isapnp0: no ISA Plug 'n Play devices found
biomask ef45 netmask ef45 ttymask ffc7
wd1: no disk label
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
wd0: transfer error, downgrading to Ultra-DMA mode 2
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (using DMA data transfers)
wd0a: aborted command, interface CRC error reading fsbn 459568 of 459568-459599 (wd0 bn 54196993; cn 53766 tn 13 sn 46), retrying
wd0: soft error (corrected)
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0