ral0 problem

2005-06-20 Thread Matt Brenneke
With the upgrade to OpenBSD 3.7, I decided it was time to upgrade from
802.11b to 802.11g.  I went out and bought a linksys card (Ralink
RT2560 based).

I pulled out my old wi0 card and put in the ral0 card, updated my pf
rules and hostname.if file, and tried to connect, but KisMAC and
iStumbler dont see it from my laptop.  If I put the old wi0 card back
in, everything works fine.  I've also tried OpenBSD-current as of half
an hour ago and it still doesn't work.

I also tried connecting to an existing network.  It can associate, and
dhclient gets an address.  However, no data gets transfered over the
interface once connected.

Anyone have an idea what I'm missing or what I can do to help debug the driver?

dmesg:
 OpenBSD 3.7-current (GENERIC) #5: Mon Jun 20 20:30:06 CDT 2005
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: AMD-K6(tm) 3D processor ("AuthenticAMD" 586-class) 299 MHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,MCE,CX8,MMX
real mem  = 133799936 (130664K)
avail mem = 115539968 (112832K)
using 1658 buffers containing 6791168 bytes (6632K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(5f) BIOS, date 08/04/98, BIOS32 rev. 0 @ 0xfbae0
apm at bios0 function 0x15 not configured
pcibios0 at bios0: rev 2.1 @ 0xf/0xbf58
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfda10/112 (5 entries)
pcibios0: PCI Exclusive IRQs: 0
pcibios0: PCI Interrupt Router at 000:02:0 ("Acer Labs M1533 ISA" rev 0x00)
pcibios0: PCI bus #0 is the last bus
bios0: ROM list: 0xc/0x8000 0xcc000/0x1800
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Acer Labs M1531 PCI" rev 0xb2
pcib0 at pci0 dev 2 function 0 "Acer Labs M1533 ISA" rev 0xb4
pciide0 at pci0 dev 3 function 0 "HighPoint HPT36x/37x IDE" rev 0x01: DMA
pciide0: using irq 11 for native-PCI interrupt
wd0 at pciide0 channel 0 drive 0: 
wd0: 16-sector PIO, LBA, 9541MB, 19541088 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 4
pciide1 at pci0 dev 3 function 1 "HighPoint HPT36x/37x IDE" rev 0x01: DMA
pciide1: using irq 11 for native-PCI interrupt
fxp0 at pci0 dev 4 function 0 "Intel 82557" rev 0x02: irq 10, address
00:a0:c9:ab:79:a6
inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 0
ral0 at pci0 dev 5 function 0 "Ralink RT2560" rev 0x01: irq 9, address
00:12:17:63:df:2b
ral0: MAC/BBP RT2560 (rev 0x04), RF RT2525
vga1 at pci0 dev 6 function 0 "Cirrus Logic CL-GD5446" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
pciide2 at pci0 dev 11 function 0 "Acer Labs M5229 UDMA IDE" rev 0x20:
DMA, channel 0 configured to compatibility, channel 1 configured to
compatibility
atapiscsi0 at pciide2 channel 0 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0:  SCSI0
5/cdrom removable
cd0(pciide2:0:0): using PIO mode 4, Ultra-DMA mode 2
pciide2: channel 1 disabled (no drives)
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: 
spkr0 at pcppi0
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
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
isapnp0 at isa0 port 0x279: read port 0x203
"LT 56k Modem, HSM0A1A, , " at isapnp0 port 0x2f8/8,0x100/8 irq 3 not configured
biomask f96d netmask ff6d ttymask ffef
pctr: user-level cycle counter enabled
dkcsum: wd0 matched BIOS disk 80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302

pf.conf:
ext_if="fxp0"
int_if="ral0"
scrub in all
nat on $ext_if from $int_if:network to any -> $ext_if
pass out quick on lo0 from any to any
pass in quick on lo0 from any to any
pass out quick on $int_if from any to any
pass in quick on $int_if from any to any
pass in quick on $ext_if all

hostname.ral0
inet 192.168.2.1 255.255.255.0 NONE
!ifconfig ral0 media OFDM54 mediaopt hostap chan 1 mode 11g nwid test up

dhcpd.conf
shared-network LOCAL-NET {
option  domain-name "test.domain";
option  domain-name-servers 192.168.0.1;
subnet 192.168.2.0 netmask 255.255.255.0 {
option routers 192.168.2.1;
range 192.168.2.32 192.168.2.127;
}
}

ifconfig:
fxp0: flags=8843 mtu 1500
lladdr 00:a0:c9:ab:79:a6
groups: egress 
media: Ethernet autoselect (100baseTX full-duplex)
status: active
inet6 fe80::2a0:c9ff:feab:79a6%fxp0 prefixlen 64 scopeid 0x1
inet 192.168.0.250 netmask 0xff00 broadcast 192.168.0.255
ral0: flags=8843 mtu 1500
lladdr 00:12:17:63:df:2b
media: IEEE802.11 OFDM54 mode 11g hostap (autoselect mode 11g hostap)
status: active
ieee80211: nwid test chan 1 bssid 00:12:17:63:df:2b 100dBm 
inet 192.168.2.1 netmask 0xff00 broadcast 192.168.2.255
inet

Re: ral0 problem

2005-06-21 Thread Matt Brenneke
On 6/21/05, Peter N. M. Hansteen <[EMAIL PROTECTED]> wrote:
> Matt Brenneke <[EMAIL PROTECTED]> writes:
> 
> > pcibios0 at bios0: rev 2.1 @ 0xf/0xbf58
> 
> That's your problem, right there. ral(4) needs PCI 2.2.
> 
> Easy to miss, but it does say so in the man page, under CAVEATS.
> 

I had read that actually, but I'm unsure what whether my motherboard
supports 2.2 or really is only 2.1, since the thread from
http://archives.neohapsis.com/archives/openbsd/2005-03/2810.html  <- that post

led me to believe that the pcibios version printed by OpenBSD doesn't
always tell the truth.

If the problem really is the pci version, can anyone recomend a good
802.11g card that works with PCI 2.1 and OpenBSD 3.7 and a place to
buy it?

-Matt



Re: ral0 problem

2005-07-09 Thread Matt Brenneke
!= 0xdeadbeef)
Data modified on freelist: word 4 of object 0xd0b8da00 size 0xc0
previous type devbuf (0xdeadbeee != 0xdeadbeef)


On 6/21/05, Paul de Weerd <[EMAIL PROTECTED]> wrote:
> On Tue, Jun 21, 2005 at 11:06:32AM -0500, Matt Brenneke wrote:
> | On 6/21/05, Peter N. M. Hansteen <[EMAIL PROTECTED]> wrote:
> | > Matt Brenneke <[EMAIL PROTECTED]> writes:
> | >
> | > > pcibios0 at bios0: rev 2.1 @ 0xf/0xbf58
> | >
> | > That's your problem, right there. ral(4) needs PCI 2.2.
> | >
> | > Easy to miss, but it does say so in the man page, under CAVEATS.
> | >
> |
> | I had read that actually, but I'm unsure what whether my motherboard
> | supports 2.2 or really is only 2.1, since the thread from
> | http://archives.neohapsis.com/archives/openbsd/2005-03/2810.html  <- that 
> post
> |
> | led me to believe that the pcibios version printed by OpenBSD doesn't
> | always tell the truth.
> 
> It does tell the truth where it concerns the pcibios version that your
> chipset claims to support. But, from what I understand, newer chipsets
> may not be completely 2.2 compliant, but will have the required
> features for ral(4) to work correctly.
> 
> 
> I've had a ral running in several motherboards, only one did not work.
> Too bad that particular board never worked again after trying, so I'm
> reluctant to put PCI ral in other older motherboards.
> 
> | If the problem really is the pci version, can anyone recomend a good
> | 802.11g card that works with PCI 2.1 and OpenBSD 3.7 and a place to
> | buy it?
> 
> ral appears to work with the more recent chipsets that support PCI
> 2.1, everything from the Pentium 3-era and up I tested works. The
> system that fried had a celeron 366 - I'm not sure the ral-card caused
> the system to stop functioning, but that was all we changed at the
> time.
> 
> Cheers,
> 
> Paul 'WEiRD' de Weerd

Again for archive integrity, this ral0 card did not fry my pentium 233
box and it recognized the card fine, I just couldn't see a network or
connect from my laptops.

-Matt Brenneke



Re: ral0 problem

2005-07-09 Thread Matt Brenneke
Nevermind that "almost working" comment, if I walk more than 15 feet
away from the base station the signal goes from 75 to 0.  Time to dump
this cheap card.  Does anyone know if ath works well with a pci 2.1?

-Matt Brenneke

On 7/9/05, Matt Brenneke <[EMAIL PROTECTED]> wrote:
> Just thought I'd give an update on this thread for the archives, and
> see if anyone has an idea how to fix my WEP problem.
> 
> I pulled out a new(er) p3-500 to replace the p-233 that I started this
> thread with.  It still reports as pci 2.1, but the card works in
> hostap mode in this machine, mostly.  If I leave security wide open, I
> can connect with my laptop and it forwards packets just fine.  If I
> enable WEP, however, my laptop reports that it is unable to connect to
> the network. KisMAC still sees the network as being there, I just
> can't connect to it. Also, I keep getting the following message at the
> end of my dmesg:
> Data modified on freelist: word 4 of object 0xd0b8da00 size 0xc0
> previous type devbuf (0xdeadbeee != 0xdeadbeef)
> 
> any ideas what's up with WEP?
> 
> # cat /etc/hostname.ral0
> up mediaopt hostap mode 11g chan 11 nwid "UnspunProductions"
> (connection works fine at boot with this)
> 
> #ifconfig ral0 nwkey 0xab
> (now I cannot connect from my laptops or wireless desktop)
> 
> #ifconfig ral0 -nwkey
> (connecting works fine again)
> 
> #dmesg
> OpenBSD 3.7-current (GENERIC) #232: Thu Jul  7 15:39:44 MDT 2005
> [EMAIL PROTECTED]:/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,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
> real mem  = 200908800 (196200K)
> avail mem = 176496640 (172360K)
> using 2478 buffers containing 10149888 bytes (9912K) of memory
> mainbus0 (root)
> bios0 at mainbus0: AT/286+(00) BIOS, date 10/29/99, BIOS32 rev. 0 @ 0xfdb70
> apm0 at bios0: Power Management spec V1.2
> apm0: AC on, battery charge unknown
> apm0: flags 30102 dobusy 0 doidle 1
> pcibios0 at bios0: rev 2.1 @ 0xf/0x1
> pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf7b60/144 (7 entries)
> pcibios0: PCI Interrupt Router at 000:07:0 ("Intel 82371FB ISA" rev 0x00)
> pcibios0: PCI bus #1 is the last bus
> bios0: ROM list: 0xc/0x8000
> 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 "ATI Rage Magnum" rev 0x00
> wsdisplay0 at vga1 mux 1: 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
> atapiscsi0 at pciide0 channel 0 drive 0
> scsibus0 at atapiscsi0: 2 targets
> cd0 at scsibus0 targ 0 lun 0:  SCSI0 5/cdrom 
> removable
> cd0(pciide0:0:0): using PIO mode 2
> wd0 at pciide0 channel 1 drive 0: 
> wd0: 16-sector PIO, LBA, 12407MB, 25410672 sectors
> wd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
> uhci0 at pci0 dev 7 function 2 "Intel 82371AB USB" rev 0x01: irq 5
> 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" rev 0x02 at pci0 dev 7 function 3 not configured
> clcs0 at pci0 dev 11 function 0 "Cirrus Logic CS4280/46xx CrystalClear
> Audio" rev 0x01: irq 5
> ac97: codec id 0x43525903 (Cirrus Logic CS4297 rev 3)
> ac97: codec features headphone, 18 bit DAC, 18 bit ADC, No 3D Stereo
> ral0 at pci0 dev 16 function 0 "Ralink RT2560" rev 0x01: irq 9,
> address 00:12:17:63:df:2b
> ral0: MAC/BBP RT2560 (rev 0x04), RF RT2525
> fxp0 at pci0 dev 18 function 0 "Intel 82557" rev 0x02: irq 10, address
> 00:a0:c9:ab:79:a7
> inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 0
> fxp1 at pci0 dev 19 function 0 "Intel 82557" rev 0x02: irq 11, address
> 00:a0:c9:ab:79:b4
> inphy1 at fxp1 phy 1: i82555 10/100 PHY, rev. 0
> 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: 
> spkr0 at pcppi0
> sysbeep0 at pcppi0
> lpt0 at isa0 port 0x378/4 irq 7
> npx0 at isa0 port 0xf0/16: using exception 16
> pccom0 at

ath0 troubles

2005-09-13 Thread Matt Brenneke
I just bought an Atheros based Netgear 311T to replace my ailing
wi0[1] card.  I put it in, updated my pf and bridge config files to
point to ath0 instead of wi0, and I can't connect.  KisMAC doesn't see
it from my laptop either.  Instead, I get "ath0: device timeout"
repeating over and over in my dmesg and /var/log/messages.  The man
page simply says "this should not happen."  This is in the same
machine that wouldn't support a ralink based card because it isn't PCI
2.2, only a late PCI 2.1 revision.

Can anyone help me debug/fix this problem?  I'm currently running a
shopshot from Aug. 8, and plan on upgrading to a current CVS version
tonight to see if that helps.

#dmesg
OpenBSD 3.8-beta (GENERIC) #1: Tue Aug  9 18:21:51 CDT 2005
[EMAIL PROTECTED]:/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,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
real mem  = 200908800 (196200K)
avail mem = 176467968 (172332K)
using 2478 buffers containing 10149888 bytes (9912K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(00) BIOS, date 10/29/99, BIOS32 rev. 0 @ 0xfdb70
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
apm0: flags 30102 dobusy 0 doidle 1
pcibios0 at bios0: rev 2.1 @ 0xf/0x1
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf7b60/144 (7 entries)
pcibios0: PCI Interrupt Router at 000:07:0 ("Intel 82371FB ISA" rev 0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc/0x8000
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 "ATI Rage Magnum" rev 0x00
wsdisplay0 at vga1 mux 1: 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: 
wd0: 16-sector PIO, LBA, 12407MB, 25410672 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:  SCSI0 5/cdrom removable
cd0(pciide0:1:0): using PIO mode 2
uhci0 at pci0 dev 7 function 2 "Intel 82371AB USB" rev 0x01: irq 5
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
"Intel 82371AB Power" rev 0x02 at pci0 dev 7 function 3 not configured
clcs0 at pci0 dev 11 function 0 "Cirrus Logic CS4280/46xx
CrystalClear" rev 0x01: irq 5
ac97: codec id 0x43525903 (Cirrus Logic CS4297 rev 3)
ac97: codec features headphone, 18 bit DAC, 18 bit ADC, No 3D Stereo
fxp0 at pci0 dev 16 function 0 "Intel 82557" rev 0x02: irq 9, address
00:a0:c9:ab:79:a7
inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 0
fxp1 at pci0 dev 18 function 0 "Intel 82557" rev 0x02: irq 10, address
00:a0:c9:ab:79:b4
inphy1 at fxp1 phy 1: i82555 10/100 PHY, rev. 0
ath0 at pci0 dev 19 function 0 "Atheros AR5212" rev 0x01: irq 11
ath0: AR5212 7.9 phy 4.5 rf2112 5.6 rf2112 5.6, FCC1A, address 00:0f:b5:4f:6f:1f
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: 
spkr0 at pcppi0
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 f165 netmask ff65 ttymask ffe7
pctr: 686-class user-level performance counters enabled
mtrr: Pentium Pro MTRR support
dkcsum: wd0 matches BIOS drive 0x80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302
clcs0: firmware loaded
audio0 at clcs0
ath0: device timeout
(last message repeating dozens of times trimmed)

#cat /etc/hostname.ath0
media autoselect mode 11g mediaopt hostap nwid "my_net" nwkey
0x1deadbeef1 chan 11 up
(I've also tried without WEP to no avail)

#cat /etc/bridgename.bridge0
add ath0
add fxp1
up

#cat /etc/hostname.fxp1
inet 192.168.0.1 255.255.255.0 NONE

#cat /etc/pf.conf
ext_if="fxp0"
int_if="fxp1"
wifi_if="ath0"
(rest trimmed, it's unimportant, it works fine when wifi_if="wi0")

-Matt Brenneke

[1]On an irregular basis (could be days, could be minutes apart) the
signal from my wi0 card to my laptops drops from full to 1/4 and no
traffi

Re: ath0 troubles

2005-09-13 Thread Matt Brenneke
On 9/13/05, Jonathan Gray <[EMAIL PROTECTED]> wrote:
> On Tue, Sep 13, 2005 at 07:54:52PM -0500, Matt Brenneke wrote:
> > I just bought an Atheros based Netgear 311T to replace my ailing
> > wi0[1] card.  I put it in, updated my pf and bridge config files to
> > point to ath0 instead of wi0, and I can't connect.  KisMAC doesn't see
> > it from my laptop either.  Instead, I get "ath0: device timeout"
> > repeating over and over in my dmesg and /var/log/messages.  The man
> > page simply says "this should not happen."  This is in the same
> > machine that wouldn't support a ralink based card because it isn't PCI
> > 2.2, only a late PCI 2.1 revision.
> >
> > Can anyone help me debug/fix this problem?  I'm currently running a
> > shopshot from Aug. 8, and plan on upgrading to a current CVS version
> > tonight to see if that helps.
> 
> Single chip AR5212 devices like the 311T are not supported yet.
> 

Thanks for the quick answer.  Can anyone recomend an Atheros card that
IS currently supported and is still being produced?

-Matt