Subject: Re: Sysinst won't install onto ld0 on NetBSD 4.0 Beta 2
To: None <port-i386@NetBSD.org>
From: David W. Rankin Jr. <drankin@bohemians.lexington.ky.us>
List: port-i386
Date: 03/09/2007 16:08:29
I wanted to follow-up on this again, since the discussion has been quiet
a few days. I found that the SCSI cable in my Dell was bad, and replaced
it, but this has NOT fixed my ld0 issue. Even with the fix, I can install
4.0 Beta 2 onto the machine with the RAID adapter turned off, but I
cannot install onto ld0. sysinst won't see the disk. fdisk returns
DIOCGDEFLABEL: Inappropriate ioctl for device, but will write an
MBR and partition information when asked. I can even write a disklabel
and newfs a filesystem.

I've reconfirmed that 3.1 doesn't have the problem, and tried 4.0 media
downloaded from releng.

I can't find a single change to the ld driver code between 3.1 and HEAD
that would cause it to reject that ioctl. Was there a change in the glue
code between 3-branch and 4-branch (or current) that would cause the
driver to not get the DIOCGDEFLABEL ioctl?

I've put in port-i386/35957 to cover the problem. 

dmesg included below for completeness.

Thanks,
David

Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 4.0_BETA2 (INSTALL) #1: Tue Feb 27 10:26:58 EST 2007
	root@hilda:/files1/netbsd-4-branch/obj/sys/arch/i386/compile/INSTALL
total memory = 511 MB
avail memory = 495 MB
timecounter: Timecounters tick every 10.000 msec
timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
BIOS32 rev. 0 found at 0xffe90
mainbus0 (root)
cpu0 at mainbus0: (uniprocessor)
cpu0: Intel Pentium III (686-class), 596.03 MHz, id 0x683
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0
pchb0: vendor 0x1166 product 0x0009 (rev. 0x05)
pchb1 at pci0 dev 0 function 1
pchb1: vendor 0x1166 product 0x0009 (rev. 0x05)
pci1 at pchb1 bus 1
pci1: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
ppb0 at pci1 dev 2 function 0: vendor 0x8086 product 0x0962 (rev. 0x01)
pci2 at ppb0 bus 2
pci2: i/o space, memory space enabled, rd/line, wr/inv ok
aac0 at pci1 dev 2 function 1: Dell PERC 3/Si
aac0: interrupting at irq 10
aac0: i960RX at 100MHz, 64MB mem (54MB cache), no battery support
ld0 at aac0 unit 0: RAID 1 (Mirror)
ld0: 17355 MB, 8815 cyl, 64 head, 63 sec, 512 bytes/sect x 35544576 sectors
fxp0 at pci1 dev 8 function 0: i82559 Ethernet, rev 8
fxp0: interrupting at irq 10
fxp0: Ethernet address 00:b0:d0:49:2d:e4
inphy0 at fxp0 phy 1: i82555 10/100 media interface, rev. 4
inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp1 at pci0 dev 8 function 0: i82559 Ethernet, rev 8
fxp1: interrupting at irq 12
fxp1: Ethernet address 00:d0:b7:84:ac:3e
inphy1 at fxp1 phy 1: i82555 10/100 media interface, rev. 4
inphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
vga1 at pci0 dev 14 function 0: vendor 0x1002 product 0x4759 (rev. 0x7a)
wsdisplay0 at vga1 kbdmux 1
wsmux1: connecting to wsdisplay0
pcib0 at pci0 dev 15 function 0
pcib0: vendor 0x1166 product 0x0200 (rev. 0x4f)
rccide0 at pci0 dev 15 function 1
rccide0: ServerWorks OSB4 IDE Controller (rev. 0x00)
rccide0: bus-master DMA support present
rccide0: primary channel configured to compatibility mode
rccide0: primary channel interrupting at irq 14
atabus0 at rccide0 channel 0
rccide0: secondary channel configured to compatibility mode
rccide0: secondary channel interrupting at irq 15
atabus1 at rccide0 channel 1
ohci0 at pci0 dev 15 function 2: vendor 0x1166 product 0x0220 (rev. 0x04)
ohci0: interrupting at irq 11
ohci0: OHCI version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: vendor 0x1166 OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 4 ports with 4 removable, self powered
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com0: console
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 mux 1
wskbd0: connecting to wsdisplay0
npx0 at isa0 port 0xf0-0xff
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
timecounter: Timecounter "TSC" frequency 596031820 Hz quality 800
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
md0: internal 5000 KB image area
atapibus0 at atabus0: 2 targets
cd0 at atapibus0 drive 0: <SAMSUNG CD-ROM SN-124, , S003> cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
cd0(rccide0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33) (using DMA)
boot device: fd0
root on md0a dumps on md0b
root file system type: ffs
warning: no /dev/console
init: Creating mfs /dev (488 blocks, 1280 inodes)
erase ^?, werase ^W, kill ^U, intr ^C
-- 
David W. Rankin, Jr.     Christian, Husband, Father, and UNIX Sysadmin. 
   ".... As for me and my household, we will serve the LORD." Joshua 24:15