• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: wireless AP almost working: is this a radio error?  (Read 3435 times)
bad_gui
Jr. Member
**

Karma: 0
Posts: 50


View Profile
« on: February 16, 2013, 06:43:34 AM »

I did a net install of Wheezy on my Server Plus and I am running the following kernel:

Linux guruplug 3.2.0-4-kirkwood #1 Debian 3.2.35-2 armv5tel GNU/Linux

eth0 is on my internal nework 192.168.1.255 and I want the micro AP to provide
addresses on 192.168.0.255

I followed the instructions here http://plugcomputer.org/plugforum/index.php?topic=1648.0;wap2
and got as far as having the microAP accept commands but it doesn't appear to
other wireless devices. The radio seems to be off since there are no packets moving:

Code:
uap0      Link encap:Ethernet  HWaddr MAC ID 
          inet addr:192.168.0.1  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

I don't know what "no-carrier" means.

Code:
# ip link list
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN mode DEFAULT
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT qlen 1000
    link/ether MAC ID hidden brd ff:ff:ff:ff:ff:ff
3: uap0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT qlen 1000
    link/ether MAC ID hidden brd ff:ff:ff:ff:ff:ff

Here is dmesg:

Code:
8.534073] uap_probe: vendor=0x02DF device=0x9104 class=0 function=1
...
[    9.615138] uap_sdio mmc0:0001:1: firmware: agent loaded mrvl/helper_sd.bin into memory
[    9.781655] uap_sdio mmc0:0001:1: firmware: agent loaded mrvl/sd8688_ap.bin into memory
[   10.048926] UAP FW is active
[   11.116717] Bluetooth: vendor=0x2df, device=0x9105, class=255, fn=2
....
[   25.389715] ADDRCONF(NETDEV_UP): uap0: link is not ready
[   25.795512] ADDRCONF(NETDEV_UP): eth0: link is not ready
.....
[   28.875061] mv643xx_eth_port mv643xx_eth_port.0: eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[   28.885273] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

But I don't see anything obvious from uaputl:
Code:
# uaputl -i uap0 sys_config
dev_name:uap0
AP settings:
SSID = microAP
Basic Rates = 0x82 0x84 0x8b 0x96
Non-Basic Rates = 0xc 0x12 0x18 0x24 0x30 0x48 0x60 0x6c
AP MAC address = hidden
Beacon period = 100
DTIM period = 1
Tx power = 13 dBm
SSID broadcast = enabled
Preamble type = short
Rx antenna = A
Tx antenna = A
Radio = on
Firmware = handles intra-BSS packets
RTS threshold = 2347
Fragmentation threshold = 2346
Tx data rate = auto
STA ageout timer = 1800
WEP KEY_0 = 00 00 00 00 00
Default WEP Key = 0
WEP KEY_1 = 00 00 00 00 00
WEP KEY_2 = 00 00 00 00 00
WEP KEY_3 = 00 00 00 00 00
AUTHMODE = Open authentication
Filter Mode = Filter table is disabled
PROTOCOL = WPA2
Max Station Number = 8
Retry Limit = 7
Channel = 6
Channel Select Mode = Manual
Channels List = 1 2 3 4 5 6 7 8 9 10 11
MCBC data rate = auto
Group re-key time = 86400 second
KeyMgmt = PSK
PairwiseCipher = AES CCMP
GroupCipher = AES CCMP
WPA passphrase = password

I am checking my networking configuration (dnsmasq, etc.) but I want to rule out a wireless device
problem.
Logged

bad_gui
Jr. Member
**

Karma: 0
Posts: 50


View Profile
« Reply #1 on: February 18, 2013, 07:11:28 PM »

I forgot to add some important information.  I followed these instructions to install a binary version of uap8xxx.ko
https://github.com/bnewbold/dreamplug-libertas_uap/blob/master/README

The version I installed is this https://github.com/bnewbold/dreamplug-libertas_uap/blob/master/uap8xxx.ko-3.2.0-4-kirkwood


# modinfo uap8xxx
filename:       /lib/modules/3.2.0-4-kirkwood/kernel/drivers/net/wireless/libertas_uap/uap8xxx.ko
license:        GPL
version:        26146
author:         Marvell International Ltd.
description:    M-UAP Driver
srcversion:     57F99B22EB7F8C05852196E
alias:          sdio:c*v02DFd9104*
depends:        mmc_core
vermagic:       3.2.0-4-kirkwood mod_unload modversions ARMv5 p2v8
parm:           helper_name:Helper name (charp)
parm:           fw_name:Firmware name (charp)


Here are the modules that are loaded

# lsmod
Module                  Size  Used by
nfsd                  228309  2
nfs                   339907  0
nfs_acl                 2205  2 nfs,nfsd
auth_rpcgss            33897  2 nfs,nfsd
fscache                41075  1 nfs
lockd                  67548  2 nfs,nfsd
sunrpc                183739  6 lockd,auth_rpcgss,nfs_acl,nfs,nfsd
ipv6                  261103  38
ext2                   54948  1
loop                   13345  0
evdev                   7376  0
snd_usb_audio          73614  0
snd_usbmidi_lib        15346  1 snd_usb_audio
snd_hwdep               5049  1 snd_usb_audio
snd_rawmidi            15534  1 snd_usbmidi_lib
uvcvideo               55755  1
snd_seq_device          4683  1 snd_rawmidi
snd_pcm                57156  1 snd_usb_audio
snd_page_alloc          4723  1 snd_pcm
btmrvl_sdio             7263  0
snd_timer              15103  1 snd_pcm
btmrvl                 10484  1 btmrvl_sdio
videodev               69993  2 uvcvideo
snd                    43640  7 snd_timer,snd_pcm,snd_seq_device,snd_rawmidi,snd_hwdep,snd_usbmidi_lib,snd_usb_audio
hmac                    2427  0
soundcore               4704  1 snd
media                   9239  2 videodev,uvcvideo
bluetooth             131875  2 btmrvl,btmrvl_sdio
sha1_generic            1740  0
rfkill                 14546  1 bluetooth
uap8xxx                39295  1
mv_cesa                 9469  0
aes_generic            27588  1 mv_cesa
ext4                  380402  5
jbd2                   67983  1 ext4
mbcache                 4460  2 ext4,ext2
sg                     18141  0
sd_mod                 31044  8
crc_t10dif              1110  1 sd_mod
usb_storage            34981  0
mmc_block              15560  0
sata_mv                23631  7
libata                139220  1 sata_mv
ehci_hcd               37353  0
scsi_mod              149937  4 libata,usb_storage,sd_mod,sg
usbcore               121587  6 ehci_hcd,usb_storage,uvcvideo,snd_usbmidi_lib,snd_usb_audio
mvsdio                  5182  0
mmc_core               80180  4 mvsdio,mmc_block,uap8xxx,btmrvl_sdio
usb_common               648  1 usbcore
mv643xx_eth            23026  0
inet_lro                4272  1 mv643xx_eth
libphy                 14604  1 mv643xx_eth

Logged

bad_gui
Jr. Member
**

Karma: 0
Posts: 50


View Profile
« Reply #2 on: June 17, 2013, 05:01:09 PM »

After a few months of not needing a wireless AP, I decided to try to fix this problem.

I did two things but I don't know if both are necessary:

One is to build uap8xxx.ko on the plug against the running kernel

Code:
# aptitude install module-assistant
# module-assistant prepare
# apt-get install linux-headers-kirkwood
# apt-get install build-essential

copy libertas_uap source files from git download from http://github.com/bnewbold/dreamplug-libertas_uap

#make CONFIG_LIBERTAS_UAP=m -C /lib/modules/$(uname -r)/build M=$(pwd)

copy new uap8xxx.ko to /lib/modules/3.2.0-4-kirkwood/kernel/drivers/net/wireless/libertas_uap

The other is that I edited the startup script to comment out the command uaputl sys_cfg_radio_ctl 0
from the /etc/network/guruplug-wl-conf.sh script.  Someone else posted this tip on a forum.

I unloaded the old module and loaded the new one and then did a cold restart.  The AP didn't appear
right away.  I thought it didn't work but a few hours later I saw the plug AP. 



I don't know what this means but I still get a "NO-CARRIER" when I use this command

Code:
# ip link show uap0
3: uap0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT qlen 1000
    link/ether ---------------- brd ------------------

I edited out the id above.
Logged

Pages: [1]
Print
Jump to: