Re: wle200nx WiFi card on apu2b4 - no link

2015-12-29 Thread Mihai Popescu
> -> athn0 at pci4 dev 0 function 0 "Atheros AR9281" rev 0x01: apic 4 int 16
> -> athn0: AR9280 rev 2 (2T2R), ROM rev 22, address 

AR9281 and AR9280 are two different chips as they are listed in the man page.
Why does your dmesg report 2 chips?



Re: wle200nx WiFi card on apu2b4 - no link

2015-12-29 Thread Chris Cappuccio
Mihai Popescu [mih...@gmail.com] wrote:
> > -> athn0 at pci4 dev 0 function 0 "Atheros AR9281" rev 0x01: apic 4 int 
> > 16
> > -> athn0: AR9280 rev 2 (2T2R), ROM rev 22, address 
> 
> AR9281 and AR9280 are two different chips as they are listed in the man page.
> Why does your dmesg report 2 chips?

One is based on the PCI device ID, one is based on the internal card
identifier used by the driver. You'll have to examine the driver to understand
what implication this has. The ath and athn drivers are both finicky and require
specific combinations of settings, set in a particular order, to work properly.



Re: wle200nx WiFi card on apu2b4 - no link

2015-12-29 Thread Mihai Popescu
> seems that I am not alone.

This can be changed. But you and other users need to provide some information.

Try a snapshot install and simple commands like:

$ ifconfig athn0 scan (this scans for available WiFi networks)
$ ifconfig athn0 debug (enable debug mode)

Be sure your AP is accesible and fully functional, if you can provide
some info about AP, too. Test it with other client. If it is not a
standard one, check for not so common settings, forced modes, etc...



Re: wle200nx WiFi card on apu2b4 - no link

2015-12-29 Thread Kapfhammer, Stefan
Hello Mihai,

seems that I am not alone:

http://permalink.gmane.org/gmane.os.openbsd.misc/227232

Regards, Stefan


-Ursprüngliche Nachricht-
Von: owner-m...@openbsd.org [mailto:owner-m...@openbsd.org] Im Auftrag von
Mihai Popescu
Gesendet: Dienstag, 29. Dezember 2015 19:27
An: misc@openbsd.org
Betreff: Re: wle200nx WiFi card on apu2b4 - no link

> -> athn0 at pci4 dev 0 function 0 "Atheros AR9281" rev 0x01: apic 4 int
16
> -> athn0: AR9280 rev 2 (2T2R), ROM rev 22, address 

AR9281 and AR9280 are two different chips as they are listed in the man page.
Why does your dmesg report 2 chips?

[demime 1.01d removed an attachment of type application/pkcs7-signature which 
had a name of smime.p7s]



Re: wle200nx WiFi card on apu2b4 - no link

2015-12-28 Thread LÉVAI Dániel
Kapfhammer, Stefan @ 2015-12-27T22:44:09 +0100:
> Good evening,
> 
> I cannot access hotspot with apu2b4's wle200nx wifi card.
> 
> got ath0: device timeout
[...]

How come it's not athn? Is this the full and only error message?

>From athn(4):
athn0: device timeout  A frame dispatched to the hardware for
transmission did not complete in time.  The driver will reset the
hardware.  This should not happen.

Can you try the minipcie card in an other board, or switch minipcie
slots?

[...]
> -> athn0 at pci4 dev 0 function 0 "Atheros AR9281" rev 0x01: apic 4 int 16
> -> athn0: AR9280 rev 2 (2T2R), ROM rev 22, address 
[...]
> # ifconfig
> 
> athn0: flags=8843 mtu 1500
> lladdr 
> priority: 4
> groups: wlan
> media: IEEE802.11 autoselect (OFDM6 mode 11a)
> status: no network
> ieee80211: nwid  chan 9 wpakey 0x wpaprotos
> wpa2 wpaakms psk wpaciphers ccmp wpagroupcipher tkip
> 
> # cat /etc/hostname.athn0
> 
> nwid TESTNET
> wpakey 'Do!Not-deal+w1th-IT'
> dhcp

I'm using exactly the same minipcie card, in almost the same board
(apu1d), only with -current, and in hostap mode.

Just off the top of my head, you could try to set media to autoselect,
and make sure that you use the right mode:

# ifconfig athn0 media
[...]
supported media:
media autoselect
media autoselect mediaopt hostap
media autoselect mediaopt monitor
media autoselect mode 11a
media autoselect mode 11a mediaopt hostap
media autoselect mode 11a mediaopt monitor
media autoselect mode 11b
media autoselect mode 11b mediaopt hostap
media autoselect mode 11b mediaopt monitor
media autoselect mode 11g
media autoselect mode 11g mediaopt hostap
media autoselect mode 11g mediaopt monitor


The one and only problem with my WLE card was that I set the mode to 11g
before setting it to a 5GHz channel, and that combo does not exist, and
I could not set it back without a reboot. But other than that, it is
performing really well, set to 11a and 5GHz.


Daniel

-- 
LÉVAI Dániel
PGP key ID = 0x83B63A8F
Key fingerprint = DBEC C66B A47A DFA2 792D  650C C69B BE4C 83B6 3A8F



wle200nx WiFi card on apu2b4 - no link

2015-12-27 Thread Kapfhammer, Stefan
Good evening,

I cannot access hotspot with apu2b4's wle200nx wifi card.

got ath0: device timeout

I am running on OpenBSD 5.8-release with no patches applied yet.

Do I have to update with patches or does the combination of apu2b4
and Compex wle200nx not work with 5.8-release?

Below the output from POST, dmesg, ifconfig and hostname.athn0

Did not find hints on the net with this combination of hw and os.

What to do next?

Regards,

Stefan


Mainboard PCEngines apu2 Enable.
APIC: 00 missing read_resources
APIC: 01 missing read_resources
APIC: 02 missing read_resources
APIC: 03 missing read_resources
SeaBIOS (version rel-1.8.0-190-gc029eab-20151109_141843-wim-ws)
BUILD: gcc:  binutils: (GNU Binutils) 2.23.2
SeaBIOS (version rel-1.8.0-190-gc029eab-20151109_141843-wim-ws)
BUILD: gcc:  binutils: (GNU Binutils) 2.23.2
Found coreboot cbmem console @ dffdf000
Found mainboard PC Engines PCEngines apu2
Relocating init from 0x000eb200 to 0xdff66110 (size 32352)
Found CBFS header at 0xfc50
multiboot: eax=0, ebx=0
boot order:
1: /pci@i0cf8/*@11/drive@0/disk@0
2: /pci@i0cf8/usb@10/usb-*@1
3: /pci@i0cf8/usb@10/usb-*@2
4: /pci@i0cf8/usb@10/usb-*@3
5: /pci@i0cf8/usb@10/usb-*@4
6: /pci@i0cf8/*@11/drive@1/disk@0
7: 
8: pxen0
9: scon1
10: 
Found 23 PCI devices (max PCI bus is 04)
Copying SMBIOS entry point from 0xdffb7000 to 0x000f3040
Copying ACPI RSDP from 0xdffb8000 to 0x000f3010
Copying MPTABLE from 0xdffdc000/dffdc010 to 0x000f2e60
Copying PIR from 0xdffdd000 to 0x000f2e30
Using pmtimer, ioport 0x818
Scan for VGA option rom
Running option rom at c000:0003

Google, Inc.
Serial Graphics Adapter 08/22/15
SGABIOS $Id: sgabios.S 8 2010-04-22 00:03:40Z nlaredo $
(wiv@coreboot-Virtual-Machine) Sat Aug 22 09:25:30 UTC 2015
Term: 80x43
IO 4 0
Turning on vga text mode console

SeaBIOS (version rel-1.8.0-190-gc029eab-20151109_141843-wim-ws)

XHCI init on dev 00:10.0: regs @ 0xfeb22000, 4 ports, 32 slots, 32 byte
contexts
XHCIextcap 0x1 @ feb22500
XHCIprotocol USB  3.00, 2 ports (offset 1), def 0
XHCIprotocol USB  2.00, 2 ports (offset 3), def 10
XHCIextcap 0xa @ feb22540
Found 2 serial ports
ATA controller 1 at 4010/4020/0 (irq 0 dev 88)
EHCI init on dev 00:13.0 (regs=0xfeb25420)
ATA controller 2 at 4018/4024/0 (irq 0 dev 88)
Searching bootorder for: /pci@i0cf8/*@14,7
Searching bootorder for: /rom@img/memtest
Searching bootorder for: /rom@img/setup
ata0-0: SATA SSD ATA-10 Hard-Disk (15272 MiBytes)
Searching bootorder for: /pci@i0cf8/*@11/drive@0/disk@0
XHCI no devices found
Initialized USB HUB (0 ports used)
All threads complete.
Scan for option roms

PCengines Press F10 key now for boot menu:

Searching bootorder for: HALT
drive 0x000f2dc0: PCHS=16383/16/63 translation=lba LCHS=1024/255/63
s=31277232
Space available for UMB: c1000-ef000, f-f2dc0
Returned 262144 bytes of ZoneHigh
e820 map has 7 items:
  0:  - 0009f800 = 1 RAM
  1: 0009f800 - 000a = 2 RESERVED
  2: 000f - 0010 = 2 RESERVED
  3: 0010 - dffae000 = 1 RAM
  4: dffae000 - e000 = 2 RESERVED
  5: f800 - fc00 = 2 RESERVED
  6: 0001 - 00011f00 = 1 RAM
enter handle_19:
  NULL

Booting from Hard Disk...
Booting from :7c00
Using drive 0, partition 3.
Loading.
probing: pc0 com0 com1 mem[638K 3582M 496M a20=on] 
disk: hd0+
>> OpenBSD/amd64 BOOT 3.28
switching console to com0
>> OpenBSD/amd64 BOOT 3.28
boot> 
booting hd0a:/bsd: 
entry point at 0x1000160 [7205c766, 3404, 24448b12, 4060a304]
[ using 938176 bytes of bsd ELF symbol table ]
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2015 OpenBSD. All rights reserved.
http://www.OpenBSD.org
OpenBSD 5.8 (GENERIC.MP) #1236: Sun Aug 16 02:31:04 MDT 2015
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 4261076992 (4063MB)
avail mem = 4128043008 (3936MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xdffb7020 (7 entries)
bios0: vendor coreboot version "APU2A_20150928-13-gdfdf4a2-dirty" date
11/06/2015
bios0: PC Engines apu2
acpi0 at bios0: rev 2
acpi0: sleep states S0 S1 S2 S3 S4 S5
acpi0: tables DSDT FACP SSDT APIC HEST SSDT SSDT HPET
acpi0: wakeup devices PWRB(S4) PBR4(S4) PBR5(S4) PBR6(S4) PBR7(S4) PBR8(S4)
UOH1(S3) UOH3(S3) UOH5(S3) XHC0(S4)
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD GX-412TC SOC, 998.25 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLU
SH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,PO
PCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,LONG,LAHF,CMPLEG,SVM,EAPICSP,
AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TOPEXT,ITSC,BMI1
cpu0: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 2MB