NetBSD upgrade (by )

Bah!

I've upgraded my main home server from NetBSD 1.6.1 (ancient) to 3.0 (current), for two reasons.

  1. There was a bug in the VIA Rhine network driver, causing it to drop packets and/or stop working (drop ALL packets until brought down and back up again) under load
  2. I need to install Asterisk, and 1.6.1 wasn't up to it - Asterisk requires a native pthreads implementation.

So I bravely reinstalled. NetBSD's upgrade process is a bit ropey, so I had to hack around a bit to get it all up and running.

But now I've lost my CD-ROM drive!

See, when I first moved to this hardware, my dmesg was like so:

http ://snell-pym.org.uk/archives/2005/10/28/no-more-cpu-fans/#more-94

Now it's like:

  NetBSD 3.0 (ANGER) #0: Wed May 24 16:28:02 BST 2006
          root@anger.home-net.warhead.org.uk:/usr/src/sys/arch/i386/compile/ANGER
  total memory = 503 MB
  avail memory = 484 MB
  BIOS32 rev. 0 found at 0xfb370
  mainbus0 (root)
  cpu0 at mainbus0: (uniprocessor)
  cpu0: VIA C3 Samuel 2/Ezra (686-class), 533.38 MHz, id 0x673
  cpu0: features 80803035<fpu ,DE,TSC,MSR,MTRR>
  cpu0: features 80803035<pge ,MMX>
  cpu0: features 80803035<3DNOW>
  cpu0: "VIA Samuel 2"
  cpu0: I-cache 64 KB 32B/line 4-way, D-cache 64 KB 32B/line 4-way
  cpu0: L2 cache 64 KB 32B/line 4-way
  cpu0: ITLB 128 4 KB entries 8-way
  cpu0: DTLB 128 4 KB entries 8-way
  cpu0: 4 page colors
  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: VIA Technologies product 0x0601 (rev. 0x05)
  agp0 at pchb0: aperture at 0xd0000000, size 0x10000000
  ppb0 at pci0 dev 1 function 0: VIA Technologies product 0x8601 (rev. 0x00)
  pci1 at ppb0 bus 1
  pci1: i/o space, memory space enabled
  vga1 at pci1 dev 0 function 0: Trident Microsystems product 0x8500 (rev. 0x6a)
  wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation)
  wsmux1: connecting to wsdisplay0
  pcib0 at pci0 dev 17 function 0
  pcib0: VIA Technologies VT8231 IDE Controller (rev. 0x10)
  viaide0 at pci0 dev 17 function 1
  viaide0: VIA Technologies VT8231 ATA100 controller
  viaide0: bus-master DMA support present
  viaide0: primary channel configured to compatibility mode
  viaide0: primary channel interrupting at irq 14
  atabus0 at viaide0 channel 0
  viaide0: secondary channel configured to compatibility mode
  viaide0: secondary channel interrupting at irq 15
  atabus1 at viaide0 channel 1
  uhci0 at pci0 dev 17 function 2: VIA Technologies VT83C572 USB Controller (rev. 0x1e)
  uhci0: interrupting at irq 5
  usb0 at uhci0: USB revision 1.0
  uhub0 at usb0
  uhub0: VIA Technologies 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 17 function 3: VIA Technologies VT83C572 USB Controller (rev. 0x1e)
  uhci1: interrupting at irq 5
  usb1 at uhci1: USB revision 1.0
  uhub1 at usb1
  uhub1: VIA Technologies UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
  uhub1: 2 ports with 2 removable, self powered
  VIA Technologies VT8231 Power Management Controller (miscellaneous bridge, revision 0x10) at pci0 dev 17 function 4 not configured
  auvia0 at pci0 dev 17 function 5: VIA Technologies VT82C686A AC'97 Audio (rev 0x40)
  auvia0: interrupting at irq 12
  auvia0: ac97: VIA Technologies VT1612A codec; headphone, 18 bit DAC, 18 bit ADC, KS Waves 3D
  auvia0: ac97: ext id 205<amap ,SPDIF,VRA>
  audio0 at auvia0: full duplex, mmap, independent
  vr0 at pci0 dev 18 function 0: VIA VT6102 (Rhine II) 10/100 Ethernet
  vr0: interrupting at irq 10
  vr0: Ethernet address: 00:40:63:df:25:73
  ukphy0 at vr0 phy 1: Generic IEEE 802.3u media interface
  ukphy0: OUI 0x0002c6, model 0x0032, rev. 8
  ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
  iha0 at pci0 dev 20 function 0: Initio INIC-950 SCSI (rev. 0x02)
  iha0: interrupting at irq 11
  scsibus0 at iha0: 16 targets, 8 luns per target
  isa0 at pcib0
  lpt0 at isa0 port 0x378-0x37b irq 7
  com0 at isa0 port 0x3f8-0x3ff irq 4: 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
  pcppi0 at isa0 port 0x61
  midi0 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
  isapnp0: no ISA Plug 'n Play devices found
  Kernelized RAIDframe activated
  IPsec: Initialized Security Association Processing.
  scsibus0: waiting 2 seconds for devices to settle...
  wd0 at atabus0 drive 0: <wdc WD400EB-00JEF0>
  wd0: drive supports 16-sector PIO transfers, LBA addressing
  wd0: 38166 MB, 77545 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 (Ultra/100)
  wd0(viaide0:0:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA)
  atapibus0 at atabus1: 2 targets
  cd0 at atapibus0 drive 1: <_nec DVD_RW ND-2510A, , 2.15> cdrom removable
  cd0: 32-bit data port
  cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
  cd0(viaide0:1:1): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA)
  boot device: wd0
  root on wd0a dumps on wd0b
  root file system type: ffs

Note that cd0 is now a _NEC DVD_RW ND-2510A instead of an lg CD-ROM CRD-8522B, and cd1 (which was the DVD_RW) has of course disappeared.

The way the IDE busses work has clearly shifted about a bit, with a dedicated VIAIDE driver taking over from the previous PCIIDE. Before, my IDE devices were:

  wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA data transfers)                                                                                                           
  cd0(pciide0:1:0): using PIO mode 4, DMA mode 2 (using DMA data transfers)
  cd1(pciide0:1:1): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA data transfers)

Eg, hard disk on primary channel, CD drive on secondary master, DVD-RW on secondary slave.

Now they're:

  wd0(viaide0:0:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA)
  cd0(viaide0:1:1): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA)

The DVD-writer is still secondary slave, just without a master.

Anyone have any ideas?

1 Comment

  • By Ben, Wed 24th May 2006 @ 4:58 pm

    You're not using cable select on the IDE thingys are you? Also check the jumpers on the devices.

Other Links to this Post

RSS feed for comments on this post.

Leave a comment

WordPress Themes

Creative Commons Attribution-NonCommercial-ShareAlike 2.0 UK: England & Wales
Creative Commons Attribution-NonCommercial-ShareAlike 2.0 UK: England & Wales