OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: Help! Drive order changes!

From: Stefan Kell (skba.opbsdgmx.de)
Date: Mon Feb 07 2005 - 07:38:31 CST


Hi,

OpenBSD simply scans the PCI-bus for devices in order. You see this in
the lines:

> pciide0 at pci0 dev 8 function 0 "CMD Technology PCI0680" rev 0x02
> fxp0 at pci0 dev 10 function 0 "Intel 82557" rev 0x08: irq 5, address
> fxp1 at pci0 dev 11 function 0 "Intel 82557" rev 0x08: irq 10, address
> pciide1 at pci0 dev 17 function 1 "VIA VT82C571 IDE" rev 0x06: ATA133,

so your motherboard controller comes after the pcicard, that's all. With
proper root device and /etc/fstab everything should be working. I would
not try to compile a kernel because it is only necessary to change
/etc/fstab, boot with option -a, select the new root device and use
config to store the changed configuration into a new kernel-image.

Regards

Stefan Kell

On Sun, 6 Feb 2005, Sean Hafeez wrote:

> dmesg from the system with the harddrives that are on the pci card
> unplugged:
>
> rootmerlot.beastproject.org:/usr/src/sys/arch/i386/compile/RAIDF
> cpu0: AMD Athlon(tm) XP 2200+ ("AuthenticAMD" 686-class) 1.80 GHz
> cpu0:
> FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,
> MMX,FXSR,SSE
> real mem = 536354816 (523784K)
> avail mem = 481927168 (470632K)
> using 4278 buffers containing 26918912 bytes (26288K) of memory
> mainbus0 (root)
> bios0 at mainbus0: AT/286+(fb) BIOS, date 07/19/04, BIOS32 rev. 0
> 0xfb450
> apm0 at bios0: Power Management spec V1.2
> apm0: AC on, battery charge unknown
> pcibios0 at bios0: rev 2.1 0xf0000/0xdf74
> pcibios0: PCI IRQ Routing Table rev 1.0 0xfdec0/176 (9 entries)
> pcibios0: PCI Exclusive IRQs: 3 5 10 11
> pcibios0: PCI Interrupt Router at 000:17:0 ("VIA VT82C596A ISA" rev
> 0x00)
> pcibios0: PCI bus #1 is the last bus
> bios0: ROM list: 0xc0000/0xf400 0xd0000/0x8000! 0xd8000/0x1800
> 0xda000/0x1800
> cpu0 at mainbus0
> pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
> pchb0 at pci0 dev 0 function 0 "VIA VT8377 PCI" rev 0x00
> ppb0 at pci0 dev 1 function 0 "VIA VT8235 AGP" rev 0x00
> pci1 at ppb0 bus 1
> vga1 at pci1 dev 0 function 0 "Nvidia GeForce FX 5200" rev 0xa1
> wsdisplay0 at vga1: console (80x25, vt100 emulation)
> wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
> pciide0 at pci0 dev 8 function 0 "CMD Technology PCI0680" rev 0x02
> pciide0: bus-master DMA support present
> pciide0: channel 0 configured to native-PCI mode
> pciide0: using irq 11 for native-PCI interrupt
> pciide0: channel 1 configured to native-PCI mode
> fxp0 at pci0 dev 10 function 0 "Intel 82557" rev 0x08: irq 5, address
> 00:d0:b7:d4:83:27
> inphy0 at fxp0 phy 1: i82555 10/100 media interface, rev. 4
> fxp1 at pci0 dev 11 function 0 "Intel 82557" rev 0x08: irq 10, address
> 00:d0:b7:85:a7:3d
> inphy1 at fxp1 phy 1: i82555 10/100 media interface, rev. 4
> "Texas Instruments TSB12LV26 FireWire" rev 0x00 at pci0 dev 12 function
> 0 not configured
> uhci0 at pci0 dev 16 function 0 "VIA VT83C572 USB" rev 0x80: irq 11
> usb0 at uhci0: USB revision 1.0
> uhub0 at usb0
> uhub0: VIA 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 16 function 1 "VIA VT83C572 USB" rev 0x80: irq 3
> usb1 at uhci1: USB revision 1.0
> uhub1 at usb1
> uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
> uhub1: 2 ports with 2 removable, self powered
> uhci2 at pci0 dev 16 function 2 "VIA VT83C572 USB" rev 0x80: irq 5
> usb2 at uhci2: USB revision 1.0
> uhub2 at usb2
> uhub2: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
> uhub2: 2 ports with 2 removable, self powered
> ehci0 at pci0 dev 16 function 3 "VIA VT6202 USB 2.0" rev 0x82: irq 10
> ehci0: EHCI version 1.0
> ehci0: companion controllers, 2 ports each: uhci0 uhci1 uhci2
> usb3 at ehci0: USB revision 2.0
> uhub3 at usb3
> uhub3: VIA EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
> uhub3: 6 ports with 6 removable, self powered
> pcib0 at pci0 dev 17 function 0 "VIA VT8235 ISA" rev 0x00
> pciide1 at pci0 dev 17 function 1 "VIA VT82C571 IDE" rev 0x06: ATA133,
> channel 0 configured to compatibility, channel 1 configured to
> compatibility
> wd0 at pciide1 channel 0 drive 0: <WDC WD102AA>
> wd0: 16-sector PIO, LBA, 9787MB, 20044080 sectors
> wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 4
> wd1 at pciide1 channel 1 drive 0: <WDC WD200BB-75CLB0>
> wd1: 16-sector PIO, LBA, 19092MB, 39102336 sectors
> atapiscsi0 at pciide1 channel 1 drive 1
> scsibus0 at atapiscsi0: 2 targets
> cd0 at scsibus0 targ 0 lun 0: <LITEON, DVD-ROM LTD163, GH4W> SCSI0
> 5/cdrom removable
> wd1(pciide1:1:0): using PIO mode 4, Ultra-DMA mode 2
> cd0(pciide1:1:1): using PIO mode 4, Ultra-DMA mode 2
> auvia0 at pci0 dev 17 function 5 "VIA VT8233 AC97" rev 0x50: irq 5
> ac97: codec id 0x56494161 (VIA Technologies VT1612A)
> ac97: codec features headphone, 18 bit DAC, 18 bit ADC, KS Waves 3D
> audio0 at auvia0
> vr0 at pci0 dev 18 function 0 "VIA RhineII-2" rev 0x74: irq 11 address
> 00:0d:87:6d:ad:73
> ukphy0 at vr0 phy 1: Generic IEEE 802.3u media interface
> ukphy0: OUI 0x004063, model 0x0032, rev. 8
> isa0 at pcib0
> isadma0 at isa0
> 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
> pcppi0 at isa0 port 0x61
> midi0 at pcppi0: <PC speaker>
> sysbeep0 at pcppi0
> lpt0 at isa0 port 0x378/4 irq 7
> it0 at isa0 port 0x290/8: IT87
> npx0 at isa0 port 0xf0/16: using exception 16
> pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
> fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
> fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
> biomask ff6d netmask ff6d ttymask ffef
> pctr: user-level cycle counter enabled
> mtrr: Pentium Pro MTRR support
> Kernelized RAIDframe activated
> wd1: no disk label
> cd0(atapiscsi0:0:0): Check Condition (error 0x70) on opcode 0x0
> SENSE KEY: Not Ready
> ASC/ASCQ: Medium Not Present
> dkcsum: wd0 matched BIOS disk 80
> dkcsum: wd1 matched BIOS disk 81
> root on wd0a
> rootdev=0x0 rrootdev=0x300 rawdev=0x302
>
>
> as you can see the kernel id's the (pci card) pciide0 at pci0 dev 8
> function 0 "CMD Technology PCI0680" rev 0x02 as the 1st ide device, and
> the (onboard) pciide1 at pci0 dev 17 function 1 "VIA VT82C571 IDE" rev
> 0x06: ATA133, channel 0 configured to compatibility, channel 1
> configured to compatibility as the second.
>
> i have looked at the UKC man page but have had no luck. is there away i
> can change this with a custom kernel?