Re: ALIX/current as an Access Point

2011-03-20 Thread Jan Stary
On Feb 27 21:42:13, Stuart Henderson wrote:
 On 2011-02-27, Jan Stary h...@stare.cz wrote:
  I have been using www.pcengines.ch/alix2c1.htm
  as my home router for years. It is runnig current/i386.
 
  Now that I have bought me that Android, I also want wifi.
  The ALIX has a MiniPCI slot. Can people recommend a MiniPCI
  wifi card that works well for an AP, preferably tried in the ALIX?
 
  (I have read the recent threads considering obsd as an AP,
  but haven't come to a conclusion about which card to use.)
 
 
 If you want to do this with OpenBSD, athn(4) is probably the first
 choice, Mikrotik R52n-M is probably the most easily available MiniPCI
 card, SparkLan also have one.

On Feb 28 08:11:14, OSN | Marian Fischer wrote:
 i tested some wifi MiniPCI cards together with an ALIX2xx board.
 The best choice for me was an athn chipset.
 athn0: AR9280 rev 2 (2T2R), ROM rev 21,

On Feb 28 10:25:13, David Coppa wrote:
 From my experiences,
 1) athn
 2) ral

On Feb 28 07:19:52, Russell wrote:
 ath0 at pci0 dev 12 function 0 Atheros AR2413 rev 0x01: irq 9
 ath0: AR2413 7.8 phy 4.5 rf 5.6, FCC2A*, address 00:80:48:7e:13:be
 ath1 at pci0 dev 14 function 0 Atheros AR2413 rev 0x01: irq 11
 ath1: AR2413 7.8 phy 4.5 rf 5.6, FCC2A*, address 00:80:48:7e:14:36
 
 ral0 at cardbus0 dev 0 function 0 Ralink RT2560 rev 0x01: irq 12, address 
 00:0e:3b:08:45:41
 ral0: MAC/BBP RT2560 (rev 0x04), RF RT2525

So, what would a cheap bastard do? Buy the cheapest obsd-supported
MiniPCI wifi card on ebay, obviously. So I did (for about $9):

ral0 at pci0 dev 12 function 0 Ralink RT2560 rev 0x01:
irq 9, address 00:11:09:0d:d3:36
ral0: MAC/BBP RT2560 (rev 0x04), RF RT2525

Works well, apart from an occasional

ral0: device timeout

I like it when OpenBSD puts old crap to work. Thank you!

Anyway, the signal is a bit weak. When I place my Andriod
right beside the ALIX on my desk, it works OK; on the other
side of the desk, various services occasionally time out.
So I probably need to replace it with something that has
an external antena. Or has anyone used a MiniPCI wifi card
that is strong enough to cover a room without an external antena?

Thanks

Jan


OpenBSD 4.8-current (GENERIC) #0: Sun Dec 19 10:23:12 CET 2010
r...@gw.stare.cz:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Geode(TM) Integrated Processor by AMD PCS (AuthenticAMD 586-class) 432 
MHz
cpu0: FPU,DE,PSE,TSC,MSR,CX8,SEP,PGE,CMOV,CFLUSH,MMX
real mem  = 133791744 (127MB)
avail mem = 121593856 (115MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 12/10/07, BIOS32 rev. 0 @ 0xfceb2
pcibios0 at bios0: rev 2.1 @ 0xf/0x1
pcibios0: pcibios_get_intr_routing - function not supported
pcibios0: PCI IRQ Routing information unavailable.
pcibios0: PCI bus #0 is the last bus
bios0: ROM list: 0xe/0xa800
cpu0 at mainbus0: (uniprocessor)
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 1 function 0 AMD Geode LX rev 0x31
glxsb0 at pci0 dev 1 function 2 AMD Geode LX Crypto rev 0x00: RNG AES
vr0 at pci0 dev 9 function 0 VIA VT6105M RhineIII rev 0x96: irq 10, address 
00:0d:b9:12:9f:2c
ukphy0 at vr0 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI 0x004063, 
model 0x0034
vr1 at pci0 dev 10 function 0 VIA VT6105M RhineIII rev 0x96: irq 11, address 
00:0d:b9:12:9f:2d
ukphy1 at vr1 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI 0x004063, 
model 0x0034
vr2 at pci0 dev 11 function 0 VIA VT6105M RhineIII rev 0x96: irq 12, address 
00:0d:b9:12:9f:2e
ukphy2 at vr2 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI 0x004063, 
model 0x0034
ral0 at pci0 dev 12 function 0 Ralink RT2560 rev 0x01: irq 9, address 
00:11:09:0d:d3:36
ral0: MAC/BBP RT2560 (rev 0x04), RF RT2525
glxpcib0 at pci0 dev 15 function 0 AMD CS5536 ISA rev 0x03: rev 3, 32-bit 
3579545Hz timer, watchdog, gpio
gpio0 at glxpcib0: 32 pins
pciide0 at pci0 dev 15 function 2 AMD CS5536 IDE rev 0x01: DMA, channel 0 
wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: CF CARD 4GB
wd0: 1-sector PIO, LBA, 3871MB, 7928928 sectors
wd0(pciide0:0:0): using PIO mode 4, DMA mode 2
pciide0: channel 1 ignored (disabled)
ohci0 at pci0 dev 15 function 4 AMD CS5536 USB rev 0x02: irq 15, version 1.0, 
legacy support
ehci0 at pci0 dev 15 function 5 AMD CS5536 USB rev 0x02: irq 15
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 AMD EHCI root hub rev 2.00/1.00 addr 1
isa0 at glxpcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com0: console
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
usb1 at ohci0: USB revision 1.0
uhub1 at usb1 AMD OHCI root hub rev 1.00/1.00 addr 1
biomask e1ef netmask ffef ttymask 
mtrr: K6-family MTRR support (2 registers)
nvram: invalid checksum
vscsi0 at root
scsibus0 at vscsi0: 256 targets
softraid0 at root
root on wd0a swap on wd0b dump on wd0b
clock: unknown CMOS layout
ral0: 

Re: ALIX/current as an Access Point

2011-02-28 Thread OSN | Marian Fischer

On 28.02.2011 08:30, Jan Stary wrote:

On Feb 28 08:11:14, OSN | Marian Fischer wrote:

Am 27.02.2011 15:23, schrieb Jan Stary:

I have been using www.pcengines.ch/alix2c1.htm
as my home router for years. It is runnig current/i386.

Now that I have bought me that Android, I also want wifi.
The ALIX has a MiniPCI slot. Can people recommend a MiniPCI
wifi card that works well for an AP, preferably tried in the ALIX?

(I have read the recent threads considering obsd as an AP,
but haven't come to a conclusion about which card to use.)

Jan


hi,

i tested some wifi MiniPCI cards together with an ALIX2xx board.
The best choice for me was an athn chipset.

athn0: AR9280 rev 2 (2T2R), ROM rev 21,

Use 4.9 for ur AP. There are no more powersave problems anymore.
Works well for me and tested with a couple of different WIFI clients.


Do you mean that the 4.9 athn driver can do power saving,
and the following (CAVEATS from the 4.8 manpage) no longer applies?

 Host AP mode doesn't support power saving.  Clients attempting
 to use power saving mode may experience significant packet
 loss (disabling power saving on the client will fix this).



I have not tested if it really does, but my Clients have all enabled 
Powersaving by default (Intel, Atheros). If the client really uses PS - 
i didn't figure out. I'll check this out for u after work. There are nor 
drops or other lags by using WLAN over many hours / days. It runs 
perfect and fast!


The card is a Wistron DNMA92 MiniPCI. Under 4.8 i had a lot of trouble 
... gone with 4.9.


-m.



Re: ALIX/current as an Access Point

2011-02-28 Thread David Coppa
On Mon, Feb 28, 2011 at 10:11 AM, OSN | Marian Fischer m...@osn.de wrote:
 On 28.02.2011 08:30, Jan Stary wrote:

 i tested some wifi MiniPCI cards together with an ALIX2xx board.
 The best choice for me was an athn chipset.

 athn0: AR9280 rev 2 (2T2R), ROM rev 21,

From my experiences,

1) athn
2) ral

cheers
david



Re: ALIX/current as an Access Point

2011-02-28 Thread Russell

On 02/27/2011 10:25 AM, Joe Snikeris wrote:

On Sun, Feb 27, 2011 at 11:07 AM, Nerius Landysnlan...@gmail.com  wrote:

snip


In general people say that Atheros chips are the best supported (use
the ath driver).


Slightly off topic:

Is anyone using a card with an AR5213 chip?  I've got a Cisco
AIR-PI21AG-A-K9 that I'd love to use to replace my crappy router, but
my machine freezes while booting when it's plugged in.  ath(4)
mentions a bunch of AR5212 cards, but no AR5213 cards.


This is my build.
currently using it as a nat/firewall box.
Was intending to us it as an ap as well.
but, sigh obsd does not like my radios.
and have not been motivated enough to get off my ass
and do somthing about it.

OpenBSD 4.8 (GENERIC) #136: Mon Aug 16 09:06:23 MDT 2010
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Geode(TM) Integrated Processor by AMD PCS (AuthenticAMD 
586-class) 432 MHz

cpu0: FPU,DE,PSE,TSC,MSR,CX8,SEP,PGE,CMOV,CFLUSH,MMX
real mem  = 133791744 (127MB)
avail mem = 121712640 (116MB)
snip
vr0 at pci0 dev 9 function 0 VIA VT6105M RhineIII rev 0x96: irq 10, 
address 00:0d:b9:12:e0:90
ukphy0 at vr0 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI 
0x004063, model 0x0034
vr1 at pci0 dev 11 function 0 VIA VT6105M RhineIII rev 0x96: irq 12, 
address 00:0d:b9:12:e0:91
ukphy1 at vr1 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI 
0x004063, model 0x0034

ath0 at pci0 dev 12 function 0 Atheros AR2413 rev 0x01: irq 9
ath0: AR2413 7.8 phy 4.5 rf 5.6, FCC2A*, address 00:80:48:7e:13:be
ath1 at pci0 dev 14 function 0 Atheros AR2413 rev 0x01: irq 11
ath1: AR2413 7.8 phy 4.5 rf 5.6, FCC2A*, address 00:80:48:7e:14:36
snip

So I am still using an old k6-2 400Mhz ps with a ral(4) radio
on 44 that I keep meaning to update.

 OpenBSD 4.4 (GENERIC) #1021: Tue Aug 12 17:16:55 MDT 2008
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: AMD-K6(tm) 3D processor (AuthenticAMD 586-class) 451 MHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,MCE,CX8,PGE,MMX
real mem  = 267939840 (255MB)
avail mem = 250646528 (239MB)
snip
rl0 at pci0 dev 10 function 0 Realtek 8139 rev 0x10: irq 10, address 
00:e0:7d:c2:0f:87

rlphy0 at rl0 phy 0: RTL internal PHY
em0 at pci0 dev 11 function 0 Intel PRO/1000MT (82541GI) rev 0x00: irq 
5, address 00:0e:0c:72:80:8a
eso0 at pci0 dev 12 function 0 ESS SOLO-1 AudioDrive rev 0x01: ES1946, 
irq 11

eso0: mapping Audio 1 DMA using VC I/O space at 0x90c0
audio0 at eso0
opl0 at eso0: model OPL3
midi0 at opl0: ESO Yamaha OPL3
mpu at eso0 not configured
isa0 at pcib0
isadma0 at isa0
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
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
midi1 at pcppi0: PC speaker
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
usb0 at ohci0: USB revision 1.0
uhub0 at usb0 SiS OHCI root hub rev 1.00/1.00 addr 1
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 2 device 0 cacheline 0x8, lattimer 0x20
pcmcia0 at cardslot0
biomask f355 netmask f775 ttymask f7ff
mtrr: K6-family MTRR support (2 registers)
softraid0 at root
root on wd0a swap on wd0b dump on wd0b
WARNING: / was not properly unmounted
ral0 at cardbus0 dev 0 function 0 Ralink RT2560 rev 0x01: irq 12, 
address 00:0e:3b:08:45:41

ral0: MAC/BBP RT2560 (rev 0x04), RF RT2525

works great, I have not tried many radios, but...
all my ral based radios have worked (ral, rum)
none of my ath based radios have bees supported.
and my zyd radio delevered corrupted packets.



ALIX/current as an Access Point

2011-02-27 Thread Jan Stary
I have been using www.pcengines.ch/alix2c1.htm
as my home router for years. It is runnig current/i386.

Now that I have bought me that Android, I also want wifi.
The ALIX has a MiniPCI slot. Can people recommend a MiniPCI
wifi card that works well for an AP, preferably tried in the ALIX?

(I have read the recent threads considering obsd as an AP,
but haven't come to a conclusion about which card to use.)

Jan



Re: ALIX/current as an Access Point

2011-02-27 Thread Tobias Walkowiak
On Sun, Feb 27, 2011 at 03:23:11PM +0100, Jan Stary wrote:
 I have been using www.pcengines.ch/alix2c1.htm
 as my home router for years. It is runnig current/i386.
 
 Now that I have bought me that Android, I also want wifi.
 The ALIX has a MiniPCI slot. Can people recommend a MiniPCI
 wifi card that works well for an AP, preferably tried in the ALIX?

I use a Gigabyte GN-WI01GS in an ALIX.2D13 which uses the driver ral0.
Works pretty well with a linux wifi client.

Tobias
-- 
t...@count0.net



Re: ALIX/current as an Access Point

2011-02-27 Thread Ron McDowell

I'm using one of these
http://store.netgate.com/5004-MP-ATHEROS-4G-CM9-80211abg-miniPCI-Card-P125C26.aspx
in an Alix 3d3 with 4.7 on it.  Not the fastest thing around, but it was 
when I bought it. :)


--
Ron McDowell
San Antonio TX



Jan Stary wrote:

I have been using www.pcengines.ch/alix2c1.htm
as my home router for years. It is runnig current/i386.

Now that I have bought me that Android, I also want wifi.
The ALIX has a MiniPCI slot. Can people recommend a MiniPCI
wifi card that works well for an AP, preferably tried in the ALIX?

(I have read the recent threads considering obsd as an AP,
but haven't come to a conclusion about which card to use.)

Jan




Re: ALIX/current as an Access Point

2011-02-27 Thread Nerius Landys
 I have been using www.pcengines.ch/alix2c1.htm
 as my home router for years. It is runnig current/i386.

 Now that I have bought me that Android, I also want wifi.
 The ALIX has a MiniPCI slot. Can people recommend a MiniPCI
 wifi card that works well for an AP, preferably tried in the ALIX?

 (I have read the recent threads considering obsd as an AP,
 but haven't come to a conclusion about which card to use.)

I'm from FreeBSD land, but I can give you some links:

  http://www.freebsd.org/releases/8.1R/hardware.html#WLAN
  
http://www.freebsd.org/cgi/man.cgi?query=ath_halapropos=0sektion=4manpath=FreeBSD+8.1-RELEASE

In general people say that Atheros chips are the best supported (use
the ath driver).
However, there was recently a change in the ath driver that really
pisses me off.  Many people have this problem and there is no known
robust way to fix the problem.  The problem can be explained here:

  http://forums.freebsd.org/showthread.php?t=22112

When you end up choosing a miniPCI wireless card I'd like to know
about it, and how well it works, because I'm thinking of building a
mini router much like you have.

- Nerius



Re: ALIX/current as an Access Point

2011-02-27 Thread Joe Snikeris
On Sun, Feb 27, 2011 at 11:07 AM, Nerius Landys nlan...@gmail.com wrote:

snip

 In general people say that Atheros chips are the best supported (use
 the ath driver).

Slightly off topic:

Is anyone using a card with an AR5213 chip?  I've got a Cisco
AIR-PI21AG-A-K9 that I'd love to use to replace my crappy router, but
my machine freezes while booting when it's plugged in.  ath(4)
mentions a bunch of AR5212 cards, but no AR5213 cards.



Re: ALIX/current as an Access Point

2011-02-27 Thread Stuart Henderson
On 2011-02-27, Jan Stary h...@stare.cz wrote:
 I have been using www.pcengines.ch/alix2c1.htm
 as my home router for years. It is runnig current/i386.

 Now that I have bought me that Android, I also want wifi.
 The ALIX has a MiniPCI slot. Can people recommend a MiniPCI
 wifi card that works well for an AP, preferably tried in the ALIX?

 (I have read the recent threads considering obsd as an AP,
 but haven't come to a conclusion about which card to use.)

   Jan



If you want to do this with OpenBSD, athn(4) is probably the first
choice, Mikrotik R52n-M is probably the most easily available MiniPCI
card, SparkLan also have one.



Re: ALIX/current as an Access Point

2011-02-27 Thread m brandenberg

On Sun, 27 Feb 2011, Jan Stary wrote:


I have been using www.pcengines.ch/alix2c1.htm
as my home router for years. It is runnig current/i386.


Have you been running from Compact Flash?  I am interested in
hearing about your experiences getting maximum life from the
CF cards.  I've started playing with one of these and they're
looking good.  (I knocked mine to the floor twice while
compiling GENERIC and it didn't even notice.)

--
Monty Brandenberg



Re: ALIX/current as an Access Point

2011-02-27 Thread SJP Lists
On 28 February 2011 10:12, m brandenberg mcb...@panix.com wrote:
 On Sun, 27 Feb 2011, Jan Stary wrote:

 I have been using www.pcengines.ch/alix2c1.htm
 as my home router for years. It is runnig current/i386.

 Have you been running from Compact Flash?  I am interested in
 hearing about your experiences getting maximum life from the
 CF cards.  I've started playing with one of these and they're
 looking good.  (I knocked mine to the floor twice while
 compiling GENERIC and it didn't even notice.)

 --
 Monty Brandenberg

I've been running OpenBSD from CF coming on 6 years at my home and
client sites, with Sun's, PC's and little Soekris and ALIX machines.

http://www.mail-archive.com/misc@openbsd.org/msg11452.html

Not a single failure yet.

The limited writes issue is a non-issue, since write wear leveling
algorithms serve to evenly distribute writes over the entire media.
With typical endurance of 100,000 erase/writes per flash block, that's
400TB to kill a 4GB card.

On a card that can write at 30MB/s, you would have to write to it in
it's entirety, non-stop for 154 days before you killed it.  Without
even stopping to read from it.

And some parts support 1,000,000 write cycle endurance, so that
ridiculous constant flat-chat worst case scenario becomes over 4 years
to part death.  If you throw in 50/50 read/write duty cycle then now
it's 8 years.  In reality, what small device would have a really busy
CF?

Just use them, enjoy and don't worry.

I use softdep and noatime mount options, to reduce writes just because
I can, but they're not needed.


Shane



Re: ALIX/current as an Access Point

2011-02-27 Thread SJP Lists
On 28 February 2011 10:12, m brandenberg mcb...@panix.com wrote:
 On Sun, 27 Feb 2011, Jan Stary wrote:

 I have been using www.pcengines.ch/alix2c1.htm
 as my home router for years. It is runnig current/i386.

 Have you been running from Compact Flash?  I am interested in
 hearing about your experiences getting maximum life from the
 CF cards.  I've started playing with one of these and they're
 looking good.  (I knocked mine to the floor twice while
 compiling GENERIC and it didn't even notice.)

 --
 Monty Brandenberg

SanDisk Write Leveling White Paper showing use cases closer to real World...

http://www.sandisk.com/Assets/File/OEM/WhitePapersAndBrochures/RS-MMC/WPaperW
earLevelv1.0.pdf


Shane



Re: ALIX/current as an Access Point

2011-02-27 Thread OSN | Marian Fischer

Am 27.02.2011 15:23, schrieb Jan Stary:

I have been using www.pcengines.ch/alix2c1.htm
as my home router for years. It is runnig current/i386.

Now that I have bought me that Android, I also want wifi.
The ALIX has a MiniPCI slot. Can people recommend a MiniPCI
wifi card that works well for an AP, preferably tried in the ALIX?

(I have read the recent threads considering obsd as an AP,
but haven't come to a conclusion about which card to use.)

Jan


hi,

i tested some wifi MiniPCI cards together with an ALIX2xx board.
The best choice for me was an athn chipset.

athn0: AR9280 rev 2 (2T2R), ROM rev 21,

Use 4.9 for ur AP. There are no more powersave problems anymore.
Works well for me and tested with a couple of different WIFI clients.

 -marian



Re: ALIX/current as an Access Point

2011-02-27 Thread Jan Stary
On Feb 27 18:12:13, m brandenberg wrote:
 On Sun, 27 Feb 2011, Jan Stary wrote:
 
 I have been using www.pcengines.ch/alix2c1.htm
 as my home router for years. It is runnig current/i386.
 
 Have you been running from Compact Flash?  I am interested in
 hearing about your experiences getting maximum life from the
 CF cards.

I am getting maximum life from them the same way
I am geting maximum life from my RAM.



Re: ALIX/current as an Access Point

2011-02-27 Thread Jan Stary
On Feb 28 08:11:14, OSN | Marian Fischer wrote:
 Am 27.02.2011 15:23, schrieb Jan Stary:
 I have been using www.pcengines.ch/alix2c1.htm
 as my home router for years. It is runnig current/i386.
 
 Now that I have bought me that Android, I also want wifi.
 The ALIX has a MiniPCI slot. Can people recommend a MiniPCI
 wifi card that works well for an AP, preferably tried in the ALIX?
 
 (I have read the recent threads considering obsd as an AP,
 but haven't come to a conclusion about which card to use.)
 
  Jan
 
 hi,
 
 i tested some wifi MiniPCI cards together with an ALIX2xx board.
 The best choice for me was an athn chipset.
 
 athn0: AR9280 rev 2 (2T2R), ROM rev 21,
 
 Use 4.9 for ur AP. There are no more powersave problems anymore.
 Works well for me and tested with a couple of different WIFI clients.

Do you mean that the 4.9 athn driver can do power saving,
and the following (CAVEATS from the 4.8 manpage) no longer applies?

Host AP mode doesn't support power saving.  Clients attempting
to use power saving mode may experience significant packet
loss (disabling power saving on the client will fix this).