[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ral(4) and PCI 2.x
- To: tech_(_at_)_openbsd_(_dot_)_org
- Subject: ral(4) and PCI 2.x
- From: Paul de Weerd <weerd_(_at_)_weirdnet_(_dot_)_nl>
- Date: Wed, 30 Mar 2005 09:40:13 +0200
Hi,
After all the new wireless NICs being supported (thanks team) I
decided it would be nice if I added HostAP functionality to the
gateway my parents use. I went out and purchased a Conceptronic C54RI
and an external antenna. Of course *after* I bought it, I noticed the
following in the CAVEATS section of ral(4) :
CAVEATS
PCI ral adapters seem to strictly require a system supporting PCI 2.2 or
greater and will likely not work in systems based on older revisions of
the PCI specification.
Of course the machine I intend to put it in is an older box that
definitely does not have PCI 2.2. So I decided to test in the first
machine I had easy access to (that didn't have PCI2.2). Turns out it
works perfectly :
...
pcibios0 at bios0: rev 2.1 @ 0xf0000/0xb61c
...
ral0 at pci0 dev 18 function 0 "Ralink RT2560" rev 0x01: irq 5, address 00:80:5a:27:d4:0c
ral0: MAC/BBP RT2560 (rev 0x04), RF RT2525
...
(full dmesg below)
I have installed this machine via ral0 and all works reasonably well
(the machine crashed upon first boot when trying to start ntpd, this
appears to be caused by the NIC not having found a network yet. I'll
investigate this further when I have some more spare time. For now
I've mitigated this issue by booting in single user mode and bringing
ral0 up, then waiting for the nic to find my network and exiting
single user mode).
So I propose the following patch for ral(4) :
Index: ral.4
===================================================================
RCS file: /cvs/src/share/man/man4/ral.4,v
retrieving revision 1.24
diff -u -r1.24 ral.4
--- ral.4 18 Mar 2005 20:28:27 -0000 1.24
+++ ral.4 30 Mar 2005 07:13:35 -0000
@@ -388,12 +388,6 @@
driver was written by
.An Damien Bergamini Aq damien_(_at_)_openbsd_(_dot_)_org .
.Sh CAVEATS
-PCI
-.Nm
-adapters seem to strictly require a system supporting PCI 2.2 or greater and
-will likely not work in systems based on older revisions of the PCI
-specification.
-.Pp
The
.Nm ural
driver does not support automatic adaptation of the transmit speed.
Cheers,
Paul 'WEiRD' de Weerd
OpenBSD 3.7 (GENERIC) #50: Sun Mar 20 00:01:57 MST 2005
deraadt_(_at_)_i386_(_dot_)_openbsd_(_dot_)_org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel Pentium III ("GenuineIntel" 686-class, 512KB L2 cache) 501 MHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
real mem = 267952128 (261672K)
avail mem = 237731840 (232160K)
using 3296 buffers containing 13500416 bytes (13184K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(25) BIOS, date 10/20/98, BIOS32 rev. 0 @ 0xfb1a0
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
pcibios0 at bios0: rev 2.1 @ 0xf0000/0xb61c
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdcd0/128 (6 entries)
pcibios0: PCI Exclusive IRQs: 5 10 11 12
pcibios0: PCI Interrupt Router at 000:07:0 ("Intel 82371SB ISA" rev 0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc0000/0x10000
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82443BX AGP" rev 0x03
ppb0 at pci0 dev 1 function 0 "Intel 82443BX AGP" rev 0x03
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "Nvidia Vanta" rev 0x15
wsdisplay0 at vga1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
pcib0 at pci0 dev 7 function 0 "Intel 82371AB PIIX4 ISA" rev 0x02
pciide0 at pci0 dev 7 function 1 "Intel 82371AB IDE" rev 0x01: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <ST314220A>
wd0: 16-sector PIO, LBA, 13600MB, 27853148 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <LITEON, CD-ROM LTN403, DL1H> SCSI0 5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
uhci0 at pci0 dev 7 function 2 "Intel 82371AB USB" rev 0x01: irq 10
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
"Intel 82371AB Power Mgmt" rev 0x02 at pci0 dev 7 function 3 not configured
tl0 at pci0 dev 16 function 0 "Compaq Netelligent 10/100 TX" rev 0x10: irq 12 address 00:80:5f:eb:78:40
nsphy0 at tl0 phy 1: DP83840 10/100 PHY, rev. 1
ukphy0 at tl0 phy 31: Generic IEEE 802.3u media interface
ukphy0: OUI 0x100014, model 0x0001, rev. 5
ral0 at pci0 dev 18 function 0 "Ralink RT2560" rev 0x01: irq 5, address 00:80:5a:27:d4:0c
ral0: MAC/BBP RT2560 (rev 0x04), RF RT2525
eap0 at pci0 dev 20 function 0 "Ensoniq AudioPCI97" rev 0x06: irq 5
ac97: codec id 0x43525903 (Cirrus Logic CS4297 rev 3)
ac97: codec features headphone, 18 bit DAC, 18 bit ADC, No 3D Stereo
audio0 at eap0
midi0 at eap0: <AudioPCI MIDI UART>
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 (mux 1 ignored for console): console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
midi1 at pcppi0: <PC speaker>
sysbeep0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pccom1 at isa0 port 0x2f8/8 irq 3: 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 ef45 netmask ff65 ttymask ffe7
pctr: 686-class user-level performance counters enabled
mtrr: Pentium Pro MTRR support
dkcsum: wd0 matched BIOS disk 80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302
WARNING: / was not properly unmounted
--
>++++++++[<++++++++++>-]<+++++++.>+++[<------>-]<.>+++[<+
+++++++++++>-]<.>++[<------------>-]<+.--------------.[-]
http://www.weirdnet.nl/
Visit your host, monkey.org