From: "Philip A. Prindeville" <philipp_subx@redfish-solutions.com>
To: linux-wireless@vger.kernel.org
Subject: Using compat-wireless w/ 2.6.27.26
Date: Fri, 17 Jul 2009 18:27:48 -0700 [thread overview]
Message-ID: <4A612514.4050708@redfish-solutions.com> (raw)
I'm the lead developer on the Astlinux project, which I might have
mentioned in a previous posting. This means that I have my hands in
many pots, so I'm not an expert in the latest Linux kernel changes... be
patient with me. Hard to keep track of 200+ individual projects.
I'm building 2.6.26.27 as I said for (amongst other things) an Alix 2D3
(GeodeLX) with EMP-8602 (AR-5413) as a test platform.
My kernel gets built with:
#
# Wireless
#
CONFIG_CFG80211=m
CONFIG_NL80211=y
CONFIG_WIRELESS_EXT=y
# CONFIG_WIRELESS_EXT_SYSFS is not set
CONFIG_MAC80211=m
#
# Rate control algorithm selection
#
CONFIG_MAC80211_RC_PID=y
CONFIG_MAC80211_RC_DEFAULT_PID=y
CONFIG_MAC80211_RC_DEFAULT="pid"
# CONFIG_MAC80211_MESH is not set
CONFIG_MAC80211_LEDS=y
# CONFIG_MAC80211_DEBUG_MENU is not set
# CONFIG_IEEE80211 is not set
CONFIG_RFKILL=m
CONFIG_RFKILL_INPUT=m
CONFIG_RFKILL_LEDS=y
# CONFIG_NET_9P is not set
I build compat-wireless-2.6.30 into /lib/modules/2.6.27.26-astlinux/kernel/... as a Kbuild.
The system also has iw-0.9.15 and hostapd-0.6.9.
All of this is fairly straightforward.
On boot, our /etc/init.d scripts do the following:
+ modprobe ath5k
ath5k phy0: Atheros AR5413 chip found (MAC: 0xa4, PHY: 0x61)
+ iw dev wlan0 interface add ap0 type managed
+ ip link set ap0 up
+ iw dev ap0 connect xxxx
command failed: Operation not supported (-95)
So doing some sanity checks by hand I get:
pbx ~ # lsmod | head
Module Size Used by
ath5k 104772 0
mac80211 153304 1 ath5k
cfg80211 54584 2 ath5k,mac80211
binfmt_misc 7112 1
aes_i586 7456 0
aes_generic 28968 1 aes_i586
lm90 11944 0
hwmon 2324 1 lm90
scx200_acb 4356 0
pbx ~ # iw dev ap0 info
Interface ap0
ifindex 9
type managed
pbx ~ # iw phy phy0 info
command failed: No buffer space available (-105)
pbx ~ #
Not sure why the "phy ... info" command fails.
pbx ~ # hostapd -v
hostapd v0.6.9
User space daemon for IEEE 802.11 AP management,
IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator
Copyright (c) 2002-2009, Jouni Malinen <j@w1.fi> and contributors
pbx ~ # cat /etc/hostapd.conf
# automatically generated. do not edit!
logger_syslog=-1
logger_syslog_level=2
logger_stdout=--1
logger_stdout_level=2
debug=0
ctrl_interface_group=0
# should this be per-ssid?
macaddr_acl=0
dump_file=/tmp/hostapd.dump
# should this be an option?
hw_mode=b
bridge=br1
interface=ap0
driver=nl80211
ssid=xxxxx
channel=0
auth_algs=1
wpa_passphrase=yyyyy
wpa=2
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
ignore_broadcast_ssid=1
wpa_strict_rekey=1
wpa_group_rekey=600
wpa_gmk_rekey=14400
pbx ~ # ip link show ap0
9: ap0: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast state DOWN qlen 1000
link/ether 00:02:6f:5a:d2:2b brd ff:ff:ff:ff:ff:ff
pbx ~ # brctl show
bridge name bridge id STP enabled interfaces
br1 8000.00026f5ad22b no ap0
eth0
pbx ~ #
pbx ~ # hostapd -dddd -P /var/run/hostapd.pid /etc/hostapd.conf
Configuration file: /etc/hostapd.conf
Line 8: DEPRECATED: 'debug' configuration variable is not used anymore
ctrl_interface_group=0
Failed to set interface ap0 to master mode.
nl80211 driver initialization failed.
ap0: Unable to setup interface.
ELOOP: remaining socket: sock=5 eloop_data=0x8098028 user_data=(nil) handler=0x806f503
pbx ~ #
pbx ~ # ldd /usr/bin/hostapd
libnl.so.1 => /usr/lib/libnl.so.1 (0xb7f04000)
libcrypto.so.0.9.8 => /lib/libcrypto.so.0.9.8 (0xb7df8000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7def000)
libc.so.0 => /lib/libc.so.0 (0xb7da5000)
libm.so.0 => /lib/libm.so.0 (0xb7d97000)
libdl.so.0 => /lib/libdl.so.0 (0xb7d94000)
ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0xb7f3d000)
pbx ~ #
And on the host that this was cross-compiled:
[philipp@builder ~/kernel]$ cat build_i586/hostapd-0.6.9/hostapd/.config
CFLAGS+=-Os -Wall -Os -pipe -fomit-frame-pointer -march=k6-2 -fno-align-functions -fno-align-loops -fno-align-jumps -fno-align-labels
CFLAGS+= -DUSE_KERNEL_HEADERS -I/home/philipp/kernel/build_i586/linux-2.6.27.26-astlinux/include
CONFIG_IEEE80211N=y
CONFIG_DRIVER_NL80211=y
CFLAGS+=-I/home/philipp/kernel/build_i586/staging_dir/usr/include
LIBS+=-L/home/philipp/kernel/build_i586/root/usr/lib
CONFIG_DRIVER_NONE=y
CONFIG_DRIVER_WIRED=y
CONFIG_IAPP=y
CONFIG_RSN_PREAUTH=y
CONFIG_PEERKEY=y
CONFIG_EAP=y
CONFIG_EAP_MD5=y
CONFIG_EAP_MSCHAPV2=y
CONFIG_EAP_GTC=y
CONFIG_EAP_SIM=y
CONFIG_EAP_AKA=y
CONFIG_EAP_AKA_PRIME=y
CONFIG_EAP_PAX=y
CONFIG_EAP_PSK=y
CONFIG_EAP_SAKE=y
CONFIG_EAP_GPSK=y
CONFIG_EAP_GPSK_SHA256=y
CONFIG_EAP_IKEV2=y
CONFIG_PKCS12=y
CONFIG_IPV6=y
CONFIG_IEEE80211R=y
CONFIG_IEEE80211N=y
[philipp@builder ~/kernel]$
What am I missing?
How should I go about debugging this?
Thanks,
-Philip
next reply other threads:[~2009-07-18 1:27 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-18 1:27 Philip A. Prindeville [this message]
2009-07-19 8:58 ` Using compat-wireless w/ 2.6.27.26 Philip A. Prindeville
2009-07-19 13:38 ` Bob Copeland
2009-07-19 17:55 ` Philip A. Prindeville
2009-07-19 20:31 ` Bob Copeland
2009-07-20 3:05 ` Philip A. Prindeville
2009-07-20 11:52 ` Bob Copeland
2009-07-20 19:16 ` Philip A. Prindeville
2009-07-20 19:47 ` Luis R. Rodriguez
2009-07-20 23:52 ` Philip A. Prindeville
2009-07-21 20:10 ` Philip A. Prindeville
2009-07-21 23:24 ` Luis R. Rodriguez
2009-07-22 3:28 ` Bob Copeland
2009-07-23 11:24 ` Bob Copeland
2009-07-23 11:59 ` Bob Copeland
2009-07-23 20:29 ` Philip A. Prindeville
2009-07-23 20:33 ` Bob Copeland
2009-07-23 21:53 ` Philip A. Prindeville
2009-07-23 22:21 ` Bob Copeland
2009-07-23 22:45 ` Philip A. Prindeville
2009-07-24 13:58 ` Bob Copeland
2009-07-30 4:36 ` Philip A. Prindeville
2009-07-21 23:26 ` Luis R. Rodriguez
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A612514.4050708@redfish-solutions.com \
--to=philipp_subx@redfish-solutions.com \
--cc=linux-wireless@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).