Subject: Re: Promise RAID 0 & 1
To: None <>
From: Manuel Bouyer <>
List: tech-kern
Date: 02/03/2003 22:07:03
On Mon, Feb 03, 2003 at 07:26:29AM +0200, Lucio De Re wrote:
> I have acquired a GigaByte server for a client, but discovered that
> the RAID facility was not automatically supported by NetBSD 1.6.
> I hacked the motherboard wiring and BIOS to use a single drive in
> conventional operation but would prefer to supply the client with
> the feature they paid for.  Being a 1U rackmount, there is no room
> on the server for an additional, non-RAID drive, which makes things
> a bit more complicated.  I seem to recall that I used the CD-ROM
> IDE channel for one of the two disks, the other is unavailable.
> In the long run, I expect to run the server off CD-ROM/ramdisk and
> use RAID for data, if anyone is curious.
> I have downloaded from
> what seems to be an LKM for FreeBSD to at least help with the
> on-board RAID (FastTrak or some such), but there's bound to be
> someone considerably more familiar with FreeBSD and NetBSD who can
> port this to NetBSD or at least guide me in doing so.  I have to
> confess that I have no idea where to start (I did try compiling it
> in a 1.5.2 context, I'm sure it won't be any better under 1.6 :-)
> The on-board chip is the Promise PDC20265R, I suspect it serves IDE2
> and 3.  The current arrangement of drives is reflected by the
> following dmesg.boot entries:
> 	ppb0 at pci0 dev 1 function 0: VIA Technologies VT82C598
> 	 (Apollo MVP3) CPU-AGP Bridge (rev. 0x00)
> 	pci1 at ppb0 bus 1
> 	pci1: i/o space, memory space enabled
> 	[ ... ]
> 	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: <Maxtor 6E040L0>
> 	wd0: drive supports 16-sector PIO transfers, LBA addressing
> 	wd0: 39205 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x
> 	 80293248 sectors
> 	wd0: 32-bit data port
> 	wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6
> 	pciide0: primary channel interrupting at irq 14
> 	wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
> 	 (Ultra/100) (using DMA data transfers)
> 	pciide0: secondary channel configured to compatibility mode
> 	pciide0: disabling secondary channel (no drives)

What other device did it find ?
the PDC20265R should be probed by NetBSD.

You should be able to use it as a standart IDE controller, and build a
RAID-1 raidframe device on it.

Manuel Bouyer <>
     NetBSD: 24 ans d'experience feront toujours la difference