Modify

Opened 9 years ago

Closed 4 years ago

Last modified 4 years ago

#5066 closed enhancement (not_a_bug)

Ubiquiti Bullet5 - signal (strength) leds

Reported by: flo'-at-'degnet.de Owned by: developers
Priority: low Milestone: Barrier Breaker 14.07
Component: kernel Version: Trunk
Keywords: ubiquiti bullet5 leds Cc: flo@…

Description

Hi,

I tried to get the signal (strength) leds beeing discovered by the OpenWRT kernel on an Ubiquiti Bullet5 with Kamikaze 8.09 and current trunk. Unfortunatly I did not succeed yet. Here are some system information from the current todays trunk. Let me know if you need further information (or the same info from 8.09):

root@OpenWrt:/# dmesg
Linux version 2.6.28.10 (flo@imperator) (gcc version 4.1.2) #1 Tue May 5 22:24:48 CEST 2009
CPU revision is: 0001800a (MIPS 4Kc)
Determined physical RAM map:
 memory: 01000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal   0x00000000 -> 0x00001000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00001000
On node 0 totalpages: 4096
free_area_init_node: node 0, pgdat 80265bc0, node_mem_map 802a2000
  Normal zone: 32 pages used for memmap
  Normal zone: 0 pages reserved
  Normal zone: 4064 pages, LIFO batch:0
  Movable zone: 0 pages used for memmap
Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 4064
Kernel command line: console=ttyS0,9600 rootfstype=squashfs,jffs2 init=/etc/preinit
Primary instruction cache 16kB, VIPT, 4-way, linesize 16 bytes.
Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 16 bytes
PID hash table entries: 64 (order: 6, 256 bytes)
console [ttyS0] enabled
Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
Memory: 13544k/16384k available (1889k kernel code, 2840k reserved, 312k data, 128k init, 0k highmem)
Calibrating delay loop... 179.81 BogoMIPS (lpj=899072)
Mount-cache hash table entries: 512
net_namespace: 480 bytes
NET: Registered protocol family 16
Switched to high resolution mode on CPU 0
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 512 (order: 0, 4096 bytes)
TCP bind hash table entries: 512 (order: -1, 2048 bytes)
TCP: Hash tables configured (established 512 bind 512)
TCP reno registered
NET: Registered protocol family 1
Radio config found at offset 0x2000(0x100)
squashfs: version 3.0 (2006/03/15) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
msgmni has been set to 26
io scheduler noop registered
io scheduler deadline registered (default)
gpiodev: gpio device registered with major 254
gpiodev: gpio platform device registered with access mask FFFFFFFF
Serial: 8250/16550 driver1 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO 0xbc000003 (irq = 37) is a 16550A
eth0: Atheros AR231x: 00:15:6d:d3:07:73, irq 4
ar231x_eth_mii: probed
eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:00)
physmap platform flash device: 00800000 at 1e000000
physmap-flash.0: Found 1 x16 devices at 0x0 in 8-bit bank
physmap-flash.0: Found an alias at 0x400000 for the chip at 0x0
 Amd/Fujitsu Extended Query Table at 0x0040
physmap-flash.0: Swapping erase regions for broken CFI table.
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
cmdlinepart partition parsing not available
Searching for RedBoot partition table in physmap-flash.0 at offset 0x3d0000
Searching for RedBoot partition table in physmap-flash.0 at offset 0x3e0000
6 RedBoot partitions found on MTD device physmap-flash.0
Creating 6 MTD partitions on "physmap-flash.0":
0x00000000-0x00030000 : "RedBoot"
0x00030000-0x00100000 : "kernel"
0x00100000-0x003e0000 : "rootfs"
mtd: partition "rootfs" set to be root filesystem
mtd: partition "rootfs_data" created automatically, ofs=310000, len=D0000
0x00310000-0x003e0000 : "rootfs_data"
eth0: Configuring MAC for full duplex
0x003e0000-0x003ef000 : "FIS directory"
0x003ef000-0x003f0000 : "RedBoot config"
0x003f0000-0x00400000 : "boardconfig"
Registered led device: wlan
TCP vegas registered
NET: Registered protocol family 17
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
VFS: Mounted root (squashfs filesystem) readonly.
Freeing unused kernel memory: 128k freed
Please be patient, while OpenWrt loads ...
Algorithmics/MIPS FPU Emulator v1.5
mini_fo: using base directory: /
mini_fo: using storage directory: /tmp/root
device eth0 entered promiscuous mode
br-lan: topology change detected, propagating
br-lan: port 1(eth0) entering forwarding state
br-lan: port 1(eth0) entering disabled state
br-lan: topology change detected, propagating
br-lan: port 1(eth0) entering forwarding state
ip_tables: (C) 2000-2006 Netfilter Core Team
nf_conntrack version 0.5.0 (256 buckets, 1024 max)
CONFIG_NF_CT_ACCT is deprecated and will be removed soon. Please use
nf_conntrack.acct=1 kernel paramater, acct=1 nf_conntrack module option or
sysctl net.netfilter.nf_conntrack_acct=1 to enable it.
IMQ driver loaded successfully.
        Hooking IMQ before NAT on PREROUTING.
        Hooking IMQ after NAT on POSTROUTING.
wlan: trunk
ath_hal: module license 'Proprietary' taints kernel.
ath_hal: 2008-10-02 (AR5212, AR5312, RF5111, RF5112, RF2316, RF2317, REGOPS_FUNC, TX_DESC_SWAP, DFS, XR)
ath_rate_minstrel: Minstrel automatic rate control algorithm 1.2 (trunk)
ath_rate_minstrel: look around rate set to 10%
ath_rate_minstrel: EWMA rolloff level set to 75%
ath_rate_minstrel: max segment size in the mrr set to 6000 us
wlan: mac acl policy registered
ath_ahb: trunk
Atheros HAL provided by OpenWrt, DD-WRT and MakSat Technologies
wifi0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: turboA rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: H/W encryption support: WEP AES AES_CCM TKIP
ath_ahb: wifi0: Atheros 2313 WiSoC: mem=0xb8500000, irq=5
jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
jffs2_build_filesystem(): unlocking the mtd device... done.
jffs2_build_filesystem(): erasing all blocks after the end marker... done.
mini_fo: using base directory: /
mini_fo: using storage directory: /jffs


root@OpenWrt:/# cat /proc/cpuinfo
system type             : Atheros AR2313
processor               : 0
cpu model               : MIPS 4Kc V0.10
BogoMIPS                : 179.81
wait instruction        : yes
microsecond timers      : yes
tlb_entries             : 16
extra interrupt vector  : yes
hardware watchpoint     : yes, count: 1, address/irw mask: [0x0fff]
ASEs implemented        :
shadow register sets    : 1
core                    : 0
VCED exceptions         : not available
VCEI exceptions         : not available


root@OpenWrt:/# cat /proc/devices
Character devices:
  1 mem
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
 10 misc
 90 mtd
128 ptm
136 pts
254 gpio

Block devices:
259 blkext
 31 mtdblock

On an Ubiquiti Bullet2 the kernel detects four gpio deviced in addition to the wlan led like:

[...]
Creating 7 MTD partitions on "spiflash":                                                                                                       
0x00000000-0x00030000 : "RedBoot"                                                                                                              
0x00030000-0x000f0000 : "kernel"                                                                                                               
0x000f0000-0x003c0000 : "rootfs"                                                                                                               
mtd: partition "rootfs" set to be root filesystem                                                                                              
mtd: partition "rootfs_data" created automatically, ofs=270000, len=150000
0x00270000-0x003c0000 : "rootfs_data"
0x003c0000-0x003e0000 : "cfg"
0x003e0000-0x003ef000 : "FIS directory"
0x003ef000-0x003f0000 : "RedBoot config"
0x003f0000-0x00400000 : "boardconfig"
Registered led device: gpio1
Registered led device: gpio2
Registered led device: gpio3
Registered led device: gpio4
Registered led device: wlan
[...]

The Ubiquiti Bullet2 has an Atheros AR5315 architecture.

Would be a cool feature if these signal strength leds are being programmable via a little wifi-signal-watch daemon ;-)

-Florian

Attachments (1)

openwrt-trunk_ubnt_bullet_signal-leds.patch (15.0 KB) - added by flo'-at-'degnet.de 9 years ago.
madwifi ubiquiti bullet2 and bullet5 signal leds patch

Download all attachments as: .zip

Change History (5)

comment:1 Changed 9 years ago by anonymous

This would be HUGE.

Fix the LED bug AND create signal strength daemon to control the LEDs

Changed 9 years ago by flo'-at-'degnet.de

madwifi ubiquiti bullet2 and bullet5 signal leds patch

comment:2 Changed 9 years ago by flo'-at-'degnet.de

Hi,

I've attached a patch which made the signal leds working for me. As I'm no coder so it would be cool if anyone with more coding knowledge may have a review on it ;-)

TODO:
- automatic detection and configuration of Ubiquiti Bullet2 and Bullet5 signal leds (no need to edit ath/Makefile for +COPTS)
- configuration of signal led rssi levels on system runtime (within the /sys tree?)
- using signal=rssi-noise for the led decision maker
- having a review on the mod_timer() settings
- having a review on the "dev->tx_queue_len = [...]" setting
- still using the "red" led as flashing softled on wifi traffic load

So far,
-Florian

comment:3 Changed 4 years ago by tripolar

  • Resolution set to not_a_bug
  • Status changed from new to closed

feel free to send a patch to the ml to get this included into latest trunk.

comment:4 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.