Compex WPJ558

Install OpenWrt (generic explanation)

  1. Put OpenWrt firmware image file at
    ftp://192.168.1.10/openwrt-15.05-ar71xx-generic-wpj558-16M-squashfs-sysupgrade.bin
  2. Execute the following commands
    tftpboot 0x80500000 openwrt-15.05-ar71xx-generic-wpj558-16M-squashfs-sysupgrade.bin
    erase 0x9f030000 +$filesize
    cp.b $fileaddr 0x9f030000 $filesize
    boot
Architecture MIPS
Vendor Qualcomm-Atheros
Bootloader U-Boot
System-On-Chip QCA9558
Switch AR8327
CPU Speed 700 MHz
Flash size 8 MB (max 16 MB optional)
RAM 128 MB DDR2
Wireless on-board abgn radio, 1 miniPCIe slot; all Compex WLE series, including 802.11ac radio
Ethernet 2 Gigabit ports with Auto-MDI/X
POE Integrated 48V 802.3af (alternative 24V PoE available)
Extras Serial Port 2, JTAG 3, Reset Button, Surge Arrestor, Watchdog Timer
USB With USB Extension (optional), can support 1 × miniPCIe-based USB 2.0 only interface (e.g. 3G modems), 2 × USB 2.0 ports
Serial yes
JTAG yes

The vendors marketing material claims voltages between 9-24V and 24-48V work. Those might be variants, our board only became stable at 24V.

Powering via 24V POE needs a bridge between two unpopulated headers according to the picture below.

UART speed is 115200
ath> printenv
bootargs=console=ttyS0,115200 root=31:02 rootfstype=jffs2 init=/sbin/init mtdparts=ath-nor0:256k(u-boot),64k(u-boot-env),6336k(rootfs),1408k(uImage),8256k(mib0),64k(ART)
bootdelay=1
baudrate=115200
ipaddr=192.168.1.1
serverip=192.168.1.10
dir=
lu=tftp 0x80060000 ${dir}tuboot.bin&&erase 0x9f000000 +$filesize&&cp.b $fileaddr 0x9f000000 $filesize
lf=tftp 0x80060000 ${dir}wpj558${bc}-jffs2&&erase 0x9f050000 +0x630000&&cp.b $fileaddr 0x9f050000 $filesize
lk=tftp 0x80060000 ${dir}vmlinux${bc}.lzma.uImage&&erase 0x9f680000 +$filesize&&cp.b $fileaddr 0x9f680000 $filesize
ethaddr=04:f0:21:14:db:8e
bootcmd=bootm 0x9f680000 || bootm 0x9f030000
stdin=serial
stdout=serial
stderr=serial
ethact=eth0

Environment size: 694/65532 bytes

The board itself has no USB connector, but the USB pins are reachable:

Please contact us to get the firmware login password.

The stock firmware uses 192.168.1.1 on the interface. Unfortunately the DHCP server is disabled on LAN and WAN.

You can enable it by editing /etc/config/dhcp.

To login on the vendor LuCI website use: admin/password.

U-Boot 1.1.4 (Jul 31 2014 - 09:39:55) wpj558 - Scorpion 1.0 DRAM: 128 MB Top of RAM usable for U-Boot at: 88000000 Reserving 146k for U-Boot at: 87fd8000 Reserving 192k for malloc() at: 87fa8000 Reserving 44 Bytes for Board Info at: 87fa7fd4 Reserving 36 Bytes for Global Data at: 87fa7fb0 Reserving 128k for boot params() at: 87f87fb0 Stack Pointer at: 87f87f98 Now running in RAM - U-Boot at: 87fd8000 Flash Manuf Id 0xc2, DeviceId0 0x20, DeviceId1 0x18 Flash found: mx25l 16MB Flash: 16 MB Using default environment eth_set_enetaddr(num=0, addr=04:f0:21:14:db:8e) eth_set_enetaddr(num=0, addr=04:f0:21:14:db:8e) In: serial Out: serial Err: serial Net: ath_gmac_enet_in itialize... athrs_sgmii_res_cal: cal value = 0x1 ath_gmac_enet_initialize: reset mask:c02200 Scorpion ----> S17 PHY * Vlan config... s17 phy0 register val ue 0x00004140 TEST: FINAL REG VAL after TX Calibration - 0x46000000 TEST: FINAL XMII VAL after RX Calibration - 0x56000000 TEST: FINAL ETH_CFG VAL after RX Calibration - 0x00028001 athrs17_reg_init: complete : cfg1 0x80000000 cfg2 0x7335 eth0: 04:f0:21:14:db:8e eth0 up eth0 Setting 0x18116290 to 0x2040214f Hit any key to stop autoboot: 1 \0x08\0x08\0x08 0 ## Booting image at 9f680000 ... Image Name: MimoAP v1.68_b141219 Created: 2014-12-19 9:27:01 UTC Image Type: MIPS Linux Kernel Image (lzma compressed) Data Size: 929051 Bytes = 907.3 kB Load Address: 80060000 Entry Point: 80060000 Verifying Checksum at 0x9f680040 ... OK Uncompressing Kernel Image ... OK No initrd ## Transferring control to Linux (at address 80060000) ... ## Giving linux memsize in bytes, 134217728 Starting kernel ... [ 0.000000] Linux version 3.3.8 (ttyaw@debian-x58) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #20 Fri Dec 19 17:26:20 SGT 2014 [ 0.000000] bootconsole [early0] enabled [ 0.000000] CPU revision is: 00019750 (MIPS 74Kc) [ 0.000000] SoC: Qualcomm Atheros QCA9558 rev 0 [ 0.000000] Clocks: CPU:720.000MHz, DDR:600.000MHz, AHB:200.000MHz, Ref:40.000MHz [ 0.000000] Determined physical RAM map: [ 0.000000] memory: 08000000 @ 00000000 (usable) [ 0.000000] Initrd not found or empty - disabling initrd [ 0.000000] Zone PFN ranges: [ 0.000000] Normal 0x00000000 -> 0x00008000 [ 0.000000] Movable zone start PFN for each node [ 0.000000] Early memory PFN ranges [ 0.000000] 0: 0x00000000 -> 0x00008000 [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512 [ 0.000000] Kernel command line: board=WPJ558 console=ttyS0,115200 mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,6336k(rootfs),1408k(kernel),64k(nvram),64k(art)ro,7744k@0x50000(firmware) rootfstype=squashfs,jffs2 noinitrd [ 0.000000] PID hash table entries: 512 (order: -1, 2048 bytes) [ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes) [ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes) [ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes. [ 0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes [ 0.000000] Writing ErrCtl register=00000000 [ 0.000000] Readback ErrCtl register=00000000 [ 0.000000] Memory: 126576k/131072k available (2151k kernel code, 4496k reserved, 393k data, 188k init, 0k highmem) [ 0.000000] SLUB: Genslabs=9, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [ 0.000000] NR_IRQS:51 [ 0.000000] Calibrating delay loop... 358.80 BogoMIPS (lpj=1794048) [ 0.060000] pid_max: default: 32768 minimum: 301 [ 0.060000] Mount-cache hash table entries: 512 [ 0.070000] NET: Registered protocol family 16 [ 0.070000] gpiochip_add: registered GPIOs 0 to 23 on device: ath79 [ 0.080000] MIPS: machine is Compex WPJ558 [ 0.100000] ar724x-pci ar724x-pci.0: PCIe link is down [ 0.100000] registering PCI controller with io_map_base unset [ 0.110000] ar724x-pci ar724x-pci.1: PCIe link is down [ 0.110000] registering PCI controller with io_map_base unset [ 0.120000] bio: create slab <bio-0> at 0 [ 0.130000] PCI host bridge to bus 0000:00 [ 0.130000] pci_bus 0000:00: root bus resource [mem 0x10000000-0x11ffffff] [ 0.140000] pci_bus 0000:00: root bus resource [io 0x0000] [ 0.140000] PCI host bridge to bus 0000:01 [ 0.140000] pci_bus 0000:01: root bus resource [mem 0x12000000-0x13ffffff] [ 0.150000] pci_bus 0000:01: root bus resource [io 0x0001] [ 0.150000] Switching to clocksource MIPS [ 0.160000] NET: Registered protocol family 2 [ 0.160000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.160000] TCP established hash table entries: 4096 (order: 3, 32768 bytes) [ 0.170000] TCP bind hash table entries: 4096 (order: 2, 16384 bytes) [ 0.170000] TCP: Hash tables configured (established 4096 bind 4096) [ 0.180000] TCP reno registered [ 0.180000] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 0.190000] UDP-Lite hash table ent ries: 256 (order: 0, 4096 bytes) [ 0.190000] NET: Registered protocol family 1 [ 0.210000] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 0.210000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc. [ 0.220000] msgmni has been set to 247 [ 0.230000] io scheduler noop registered [ 0.230000] io scheduler deadline registered (default) [ 0.240000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled [ 0.260000] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A [ 0.270000] console [ttyS0] enabled, bootconsole disabled [ 0.270000] console [ttyS0] enabled, bootconsole disabled [ 0.280000] m25p80 spi0.0: found mx25l12805d, expected m25p80 [ 0.290000] m25p80 spi0.0: mx25l12805d (16384 Kbytes) [ 0.290000] 7 cmdlinepart partitions found on MTD device spi0.0 [ 0.300000] Creating 7 MTD partitions on "spi0.0": [ 0.300000] 0x000000000000-0x000000040000 : "u-boot" [ 0.310000] 0x000000040000-0x000000050000 : "u-boot-env" [ 0.320000] 0x000000050000-0x000000680000 : "rootfs" [ 0.320000] mtd: partition "rootfs" set to be root filesystem [ 0.330000] mtd: partition "rootfs_data" created automatically, ofs=5E0000, len=A0000 [ 0.340000] 0x0000005e0000-0x000000680000 : "rootfs_data" [ 0.340000] 0x000000680000-0x0000007e0000 : "kernel" [ 0.350000] 0x0000007e0000-0x0000007f0000 : "nvram" [ 0.360000] 0x0000007f0000-0x000000800000 : "art" [ 0.360000] 0x000000050000-0x0000007e0000 : "firmware" [ 0.510000] ag71xx_mdio: probed [ 0.510000] TCP cubic registered [ 0.520000] NET: Registered protocol family 17 [ 0.520000] 8021q: 802.1Q VLAN Support v1.8 [ 0.530000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2. [ 0.540000] Freeing unused kernel memory: 188k freed - preinit - Press the [f] key and hit [enter] to enter failsafe mode - regular preinit - [ 5.170000] JFFS2 notice: (462) jffs2_build_xattr_subsystem: complete building xattr subsystem, 1 of xdatum (1 unchecked, 0 orphan) and 10 of xref (0 dead, 0 orphan) found. switching to jffs2 - init - Please press Enter to activate this console. [ 7.320000] qca955x_GMAC: Length per segment 1536 [ 7.33 0000] 955x_GMAC: qca955x_gmac_attach [ 7.330000] 955x_GMAC: qca955x_set_gmac_caps [ 7.330000] Currently in polling mode unit0 [ 7.340000] mac:0 Registering S17.... [ 7.340000] qca955x_GMAC: RX TASKLET - Pkts per Intr:160 [ 7.350000] qca955x_GMAC: Mac address for unit 0: 04:f0:21:14:db:8e [ 7.350000] qca955x_GMAC: Max segments per packet : 1 [ 7.360000] qca955x_GMAC: Max tx descriptor count : 128 [ 7.370000] qca955x_GMAC: Max rx descriptor count : 224 [ 7.370000] qca955x_GMAC: Mac capability flags : 10002A00 [ 7.680000] qca955x_GMAC: Mac address for unit 0: 04:f0:21:14: db:8e [ 7.680000] qca955x_GMAC: Mac address for unit 1: 04:f0:21:14:db:8f [ 7.850000] NET: Registered protocol family 10 [ 8.120000] usbcore: registered new interface driver usbfs [ 8.130000] usbcore: registered new interface driver hub [ 8.140000] usbcore: registered new device driver usb [ 8.210000] NET: Registered protocol family 15 [ 8.230000] Initializing XFRM netlink socket [ 8.260000] PPP generic driver version 2.4.2 [ 8.280000] tun: Universal TUN/TAP device driver, 1.6 [ 8.280000] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com> [ 8.320000] PPP MPPE Compression module registered [ 8.510000] L2TP core driver, V2.0 [ 8.520000] L2TP netlink i nterface [ 8.530000] L2TP ethernet pseudowire support (L2TPv3) [ 8.550000] L2TP IP encapsulation support (L2TPv3) [ 8.570000] GRE over IPv4 demultiplexor driver [ 8.580000] GRE over IPv4 tunneling driver [ 8.660000] ip_tables: (C) 2000-2006 Netfilter Core Team [ 8.860000] NET: Registered protocol family 24 [ 8.920000] eh ci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 8.930000] ehci-platform ehci-platform.0: Generic Platform EHCI Controller [ 8.940000] ehci-platform ehci-platform.0: new USB bus registered, assigned bus number 1 [ 8.970000] ehci-platform ehci-platform.0: irq 48, io mem 0x1b000000 [ 8.990000] ehci-platform ehci-platform.0: USB 2.0 started, EHCI 1.00 [ 8.990000] hub 1-0:1.0: USB hub found [ 9.000000] hub 1-0:1.0: 1 port detected [ 9.000000] ehci-platform ehci-platform.1: Generic Platform EHCI Controller [ 9.010000] ehci-platform ehci-platform.1: new USB bus registered, assigned bus number 2 [ 9.050000] ehci-platform ehci-platform.1: irq 49, io mem 0x1b400000 [ 9.070000] ehci-platform ehci-platform.1: USB 2.0 started, EHCI 1.00 [ 9.070000] hub 2-0:1.0: USB hub found [ 9.080000] hub 2-0:1.0: 1 port detected [ 9.150000] nf_conntrack version 0.5.0 (1980 buckets, 7920 max ) [ 9.430000] PPPoL2TP kernel driver, V2.0 [ 9.440000] P PTP driver version 0.8.5 [ 9.750000] xt_time: kernel timezone is -0000 [ 10.160000] adf: module license 'Proprietary' taints kern el. [ 10.160000] Disabling lock debugging due to kernel taint [ 10.430000] ath_hal: 0.9.17.1 (AR5416, AR9380, REGOPS_FUNC, WRITE_EEPROM, TX_DATA_SWAP, RX_DATA_SWAP, 11D) [ 10.510000] ath_rate_atheros: Copyright (c) 2001-2005 Atheros Communications, Inc, All Rights Reserved [ 10.530000] ath_spectral: Version 2.0.0 [ 10.530000] Copyright (c) 2005-2009 Atheros Communications, Inc. All Rights Reserved [ 10.550000] SPECTRAL module built on Dec 19 2014 17:16:31 [ 10.560000] ath_dfs: Version 2.0.0 [ 10.560000] Copyright (c) 2005-2006 Atheros Communications, Inc. All Rights Reserved [ 10.720000] ath_dev: Copyright (c) 2001-2007 Atheros Communications, Inc, All Rights Reserved [ 11.810000] ath_ahb: 10.2-00082-4 (Atheros/multi-bss) [ 11.810000] __ath_attach: Set global_scn[0] [ 11.820000] *** All the minfree values should be <= ATH_TXBUF-32, otherwise default value will be used instead *** [ 11.830000] ACBKMinfree = 48 [ 11.830000] ACBEMinfree = 32 [ 11.830000] ACVIMinfree = 16 [ 11.840000] ACVOMinfree = 0 [ 11.840000] CABMinfree = 48 [ 11.840000] UAPSDMinfree = 0 [ 11.850000] ATH_TXBUF=512 [ 11.860000] Enterprise mode: 0x33fc0000 [ 11.860000] Restoring Cal data from Flash [ 11.870000] SPECTRAL : get_capability not registered [ 11.870000] HAL_CAP_PHYDIAG : Capable [ 11.880000] SPECTRAL : Need to fix the capablity check for RADAR (spectral_attach : 231) [ 11.880000] SPECTRAL : get_capability not registered [ 11.890000] HAL_CAP_RADAR : Capable [ 11.890000] SPECTRAL : Need to fix the capablity check for SPECTRAL [ 11.890000] (spectral_attach : 236) [ 11.900000] SPECTRAL : get_capability not registered [ 11.910000] HAL_CAP_SPECTRAL_SCAN : Capable [ 11.910000] SPECTRAL : get_tsf64 not registered [ 11.920000] spectral_init_netlink 52 NULL SKB [ 11.920000] SPECTRAL : No ADVANCED SPECTRAL SUPPORT [ 11.930000] SPECTRAL :----- module attached [ 11.930000] Green-AP : Green-AP : Attached [ 11.930000] [ 11.940000] ath_get_caps[6174] rx chainmask mismatch actual 7 sc_chainmak 0 [ 11.950000] ath_get_caps[6149] tx chainmask mismatch actual 7 sc_chainmak 0 [ 11.960000] ath_attach_dfs[12587] dfsdomain 0 [ 11.980000] SPECTRAL : module already attached [ 11.980000] ath_tx_paprd_init sc 864a0000 PAPRD disabled in HAL [ 11.990000] wifi0: Atheros ???: mem=0xb8100000, irq=47 [ 12.000000] ath_pci: 10.2-00082-4 (Atheros/multi-bss) [ 12.070000] batman_adv: B.A.T.M.A.N. advanced 2013.2.0 (compatibility version 14) loaded [ 15.760000] To set s17 LOOKUP_CTRL_REG registers, flag 0 [ 15.770000] athr_gmac_ring_alloc Allocated 2048 at 0x86241000 [ 15.770000] sram_desc_cnt 1536,mac Unit 0,Tx r->ring_desc 0xbd000000 [ 15.780000] athr_gmac_ring_alloc Allocated 3584 at 0x8780d000 [ 15.780000] sram_desc_cnt 4224,mac Unit 0,Rx r->ring_desc 0xbd000600 [ 16.090000] 955x_GMAC: eth0 in RGMII MODE [ 16.090000] Sc orpion -----> S17 PHY [ 16.130000] athrs17_reg_init:done [ 16.130000] Setting Drop CRC Errors, Pause Frames and Length Error frames [ 16.140000] Setting PHY... [ 17.140000] Phy setup Complete [ 17.150000] 955x_GMAC: e net unit:0 is up... [ 17.150000] eth0 RGMII 1000Mbps full duplex [ 17.160000] 955x_GMAC: qca955x_soc_gmac_set_mac_duplex [ 17.160000] 955x_GMAC: qca955x_soc_gmac_set_link Done [ 17.170000] 955x_GMAC: done cfg2 0x7215 ifctl 0x0 miictrl [ 17.170000] To set s17 LOOKUP_CTRL_REG registers, flag 1 [ 17.180000] device eth0 entered promiscuous mode [ 17.200000] br-lan: port 1(eth0) entered forwarding state [ 17.200000] br-lan: port 1(eth0) entered forwarding state [ 17.220000] device eth1 entered promiscuous mode [ 17.220000] br-lan: port 2(eth1) entered forwarding state [ 17.230000] br-lan: port 2(eth1) entered forwarding state [ 18.180000] ADDRCONF(NETDEV_CHANGE): eth1: link becomes re ady [ 19.200000] br-lan: port 1(eth0) entered forwarding state [ 19.230000] br-lan: port 2(eth1) entered forwarding state [ 20.390000] \0x09DCS for CW interference mitigation: 0 [ 20.390000 ] \0x09DCS for WLAN interference mitigation: 0 [ 20.500000] wlan_vap_create : enter. devhandle=0x873a0380, opmode=IEEE80211_M_HOSTAP, flags=0x1 [ 20.510000] wlan_vap_create : exit. devhandle=0x873a0380, opmode=IEEE80211_M_HOSTAP, flags=0x1. [ 20.520000] VAP device ath0 created [ 20.630000] Set freq vap stop send + 8630c000 [ 20.630000] Set freq vap stop send -8630c000 [ 20.670000] Set wait done --8630c000 [ 20.700000] [ 20.700000] DES SSID SET=MimoSeries [ 21.280000] device ath0 entered promiscuous mode [ 21.280000] br -lan: port 3(ath0) entered forwarding state [ 21.290000] br-lan: port 3(ath0) entered forwarding state [ 23.290000] br-lan: port 3(ath0) entered forwarding state


ifconfig aeth0 Link encap:Ethernet HWaddr 04:F0:21:14:DB: 8E inet6 addr: fe80::6f0:21ff:fe14:db8e/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:64 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:6200 (6.0 KiB) ath0 Link encap:Ethernet HWaddr 04:F0:21:14:DB:90 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:29 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) br-lan Link encap:Ethernet HWaddr 04:F0:21:14:DB:8E inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::6f0:21ff:fe14:db8e/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:32 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:2860 (2.7 KiB) eth0 Link encap:Ethernet HWaddr 04:F0:21:14:DB:8E UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:32 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:2924 (2.8 KiB) eth1 Link encap:Ethernet HWaddr 04:F0:21:14:DB:8F UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:32 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:2924 (2.8 KiB) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:5617 errors:0 dropped:0 overruns:0 frame:0 TX packets:5617 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:382042 (373.0 KiB) TX bytes:382042 (373.0 KiB) wifi0 Link encap:UNSPEC HWaddr 04-F0-21-14-DB-90-00-48-00-00-00-00-00-00-00-00 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:27224 errors:0 dropped:0 overruns:0 frame:0 TX packets:13848 errors:2 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) Interrupt:47 Memory:b8100000-b8120000 root@MimoAP:~# root@MimoAP:~# cat /proc/cpuinfo system type\0x09\0x09: Qualcomm Atheros QCA9558 rev 0 ma chine\0x09\0x09\0x09: Compex WPJ558 processor\0x09\0x09: 0 cpu model\0x09\0x09: MIPS 74Kc V5.0 BogoMIPS\0x09\0x09: 358.80 wait instruction\0x09: yes microsecond timers\0x09: yes tlb_entries\0x09\0x09: 32 extra interrupt vector\0x09: yes hardware watchpoint\0x09: yes, count: 4, address/irw mask: [0x0000, 0x0ff8, 0x0ff8, 0x0ff8] ASEs implemented\0x09: mips16 dsp shadow register sets\0x09: 1 kscratch registers\0x09: 0 core\0x09\0x09\0x09: 0 VCED exceptions\0x09\0x09: not available VCEI exceptions\0x09\0x09: not available root@MimoAP:~# root@MimoAP:~# free total used free shared buffers Mem: 126764 40364 86400 0 4416 -/+ buffers: 35948 90816 Swap: 0 0 0 root@MimoAP:~# root@MimoAP:~# df Filesystem 1K-blocks Used Available Use% Mounted on rootfs 640 252 388 39% / /dev/root 5888 5888 0 100% /rom tmpfs 63384 136 63248 0% /tmp tmpfs 512 0 512 0% /dev /dev/mtdblock3 640 252 388 39% /overlay overlayfs:/overlay 640 252 388 39% / root@MimoAP:~# root@MimoAP:~# lsmod Module Size Used by Tainted: P ath79_wd t 2240 1 ledtrig_usbdev 2032 0 ledtrig_netdev 3184 0 ledtrig_heartbeat 1120 0 batman_adv 97968 0 umac 1692992 0 ath_dev 238240 1 umac ath_dfs 47920 1 umac ath_spectral 24192 2 umac,ath_dev ath_rate_atheros 29600 2 umac,ath_dev ath_hal 625104 3 umac,ath_dev,ath_rate_atheros asf 5984 5 umac,ath_dev,ath_dfs,ath_spectral,ath_hal adf 9472 3 umac,ath_dev,ath_hal nf_nat_tftp 400 0 nf_conntrack_tftp 2352 1 nf_nat_tftp nf_nat_snmp_basic 6912 0 nf_conntrack_snmp 656 1 nf_nat_snmp_basic nf_nat_sip 5088 0 nf_conntrack_sip 15872 1 nf_nat_sip nf_nat_pptp 1312 0 nf_conntrack_pptp 3072 1 nf_nat_pptp nf_nat_h323 4544 0 nf_conntrack_h323 33008 1 nf_nat_h323 nf_nat_proto_gre 784 1 nf_nat_pptp nf_conntrack_proto_gre 2368 1 nf_conntrack_pptp nf_nat_amanda 608 0 nf_conntrack_amanda 1536 1 nf_nat_amanda nf_conntrack_broadcast 752 1 nf_conntrack_snmp nf_nat_irc 784 0 nf_conntrack_irc 2464 1 nf_nat_irc nf_nat_ftp 976 0 nf_conntrack_ftp 4416 1 nf_nat_ftp xt_policy 1856 0 xt_esp 688 0 ipt_ah 608 0 xt_HL 1200 0 xt_hl 720 0 xt_ecn 1168 0 ipt_ECN 1264 0 xt_CLASSIFY 496 0 xt_time 1456 0 xt_tcpmss 912 0 xt_statistic 688 0 xt_mark 592 1 xt_length 608 0 xt_DSCP 1360 0 xt_dscp 912 0 xt_string 672 0 xt_layer7 8944 0 ipt_MASQUERADE 976 1 iptable_nat 2544 1 nf_nat 9792 10 nf_nat_tftp,nf_nat_sip,nf_nat_pptp,nf_nat_h323,nf_nat_proto_gre,nf_nat_amanda,nf_nat_irc,nf_nat_ftp,ipt_MASQUERADE,iptable_nat xt_recent 5680 0 xt_helper 784 0 xt_connmark 960 1 xt_connbytes 1424 0 pptp 13184 0 l2tp_ppp 12736 0 pppoe 7488 0 xt_conntrack 2048 3 xt_CT 1216 0 xt_NOTRACK 448 0 iptable_raw 560 1 xt_state 608 0 nf_conntrack_ipv4 3872 7 iptable_nat,nf_nat nf_defrag_ipv4 624 1 nf_conntrack_ipv4 nf_conntrack 37248 30 nf_nat_tftp,nf_conntrack_tftp,nf_nat_snmp_basic,nf_conntrack_snmp,nf_nat_sip,nf_conntrack_sip,nf_nat_pptp,nf_conntrack_pptp,nf_nat_h323,nf_conntrack_h323,nf_conntrack_proto_gre,nf_nat_amanda,nf_conntrack_amanda,nf_conntrack_broadcast,nf_nat_irc,nf_conntrack_irc,nf_nat_ftp,nf_conntrack_ftp,xt_layer7,ipt_MASQUERADE,iptable_nat,nf_nat,xt_helper,xt_connmark,xt_connbytes,xt_conntrack,xt_CT,xt_NOTRACK,xt_state,nf_conntrack_ipv4 ehci_hcd 33616 0 pppox 1152 3 pptp,l2tp_ppp,pppoe ipt_REJECT 1808 2 xt_TCPMSS 1824 0 ipt_LOG 6048 0 xt_comment 400 0 xt_multiport 1104 0 xt_mac 528 0 xt_limit 944 1 iptable_mangle 832 1 iptable_filter 592 1 ip_tables 8864 4 iptable_nat,iptable_raw,iptable_mangle,iptable_filter xt_tcpudp 1632 3 x_tables 9984 39 xt_policy,xt_esp,ipt_ah,xt_HL,xt_hl,xt_ecn,ipt_ECN,xt_CLASSIFY,xt_time,xt_tcpmss,xt_statistic,xt_mark,xt_length,xt_DSCP,xt_dscp,xt_string,xt_layer7,ipt_MASQUERADE,iptable_nat,xt_recent,xt_helper,xt_connmark,xt_connbytes,xt_conntrack,xt_CT,xt_NOTRACK,iptable_raw,xt_state,ipt_REJECT,xt_TCPMSS,ipt_LOG,xt_comment,xt_multiport,xt_mac,xt_limit,iptable_mangle,iptable_filter,ip_tables,xt_tcpudp ip_gre 11520 0 gre 896 2 pptp,ip_gre ifb 2496 0 l2tp_ip 4848 0 l2tp_eth 2320 0 l2tp_netlink 6800 2 l2tp_ppp,l2tp_eth l2tp_core 11872 4 l2tp_ppp,l2tp_ip,l2tp_eth,l2tp_netlink ipcomp6 1440 0 xfrm6_tunnel 1936 1 ipcomp6 xfrm6_mode_tunnel 1040 0 xfrm6_mode_transport 672 0 xfrm6_mode_beet 1104 0 esp6 4608 0 ah6 4064 0 ipcomp 1408 0 xfrm4_tunnel 960 0 xfrm4_mode_tunnel 1216 0 xfrm4_mode_transport 624 0 xfrm4_mode_beet 1424 0 esp4 4864 0 ah4 4048 0 ppp_mppe 4768 0 tunnel6 1456 1 xfrm6_tunnel tunnel4 1584 1 xfrm4_tunnel tun 10640 0 ppp_async 5952 0 ppp_generic 18848 6 pptp,l2tp_ppp,pppoe,pppox,ppp_mppe,ppp_async slhc 4368 1 ppp_generic xfrm_user 17504 0 xfrm_ipcomp 2592 2 ipcomp6,ipcomp af_key 22944 0 usbcore 99168 3 ledtrig_usbdev,ehci_hcd usb_common 480 1 usbcore nls_base 4640 1 usbcore ts_fsm 2496 0 ts_bm 1344 0 ts_kmp 1264 5 libcrc32c 480 1 batman_adv crc16 944 1 batman_adv crc_ccitt 944 1 ppp_async ipv6 231136 27 ip_gre,ipcomp6,xfrm6_tunnel,xfrm6_mode_tunnel,xfrm6_mode_beet,esp6,ah6,tunnel6 athrs_gmac_qca955x 39184 0 chainiv 2192 0 eseqiv 1856 0 crypto_wq 368 1 chainiv sha1_generic 1392 0 krng 592 0 rng 1264 3 chainiv,eseqiv,krng md5 1424 0 hmac 2224 0 ecb 1248 0 des_generic 18720 0 deflate 1280 0 cbc 1904 0 authenc 5104 0 arc4 768 0 aes_generic 29808 0 zlib_inflate 12112 1 deflate zlib_deflate 17472 1 deflate crc32c 1984 1 crypto_blkcipher 9600 5 chainiv,eseqiv,ecb,cbc,authenc cryptomgr 1840 0 aead 3920 4 esp6,esp4,authenc,cryptomgr crypto_hash 7888 8 ah6,ah4,libcrc32c,sha1_generic,md5,hmac,authenc,crc32c crypto_algapi 9200 15 chainiv,eseqiv,krng,hmac,ecb,des_generic,deflate,cbc,authenc,arc4,aes_generic,crypto_blkcipher,cryptomgr,aead,crypto_hash ledtrig_timer 1072 0 ledtrig_default_on 416 0 leds_gpio 1552 0 gpio_button_hotplug 3184 0 root@MimoAP:~# root@MimoAP:~# uname -a Linux MimoAP 3.3.8 #20 Fri Dec 19 17:26:20 SGT 2014 mips GNU/Linux root@MimoAP:~# root@MimoAP:~# ps PID USER VSZ STAT COMMAND 1 root 1512 S init 2 root 0 SW [kthreadd] 3 root 0 SW [ksoftirqd/0] 4 root 0 SW [kworker/0:0] 5 root 0 SW [kworker/u:0] 6 root 0 SW< [khelper] 7 root 0 SW [kworker/u:1] 63 root 0 SW [sync_supers] 65 root 0 SW [bdi-default] 67 root 0 SW< [kblockd] 100 root 0 SW [kswapd0] 148 root 0 SW [fsnotify_mark] 161 root 0 SW< [ath79-spi] 172 root 0 SW [mtdblock0] 177 root 0 SW [mtdblock1] 182 root 0 SW [mtdblock2] 187 root 0 SW [mtdblock3] 192 root 0 SW [mtdblock4] 197 root 0 SW [mtdblock5] 202 root 0 SW [mtdblock6] 207 root 0 SW [mtdblock7] 463 root 0 SWN [jffs2_gcd_mtd3] 479 root 1548 S {rcS} /bin/sh /etc/init.d/rcS S boot 480 root 1512 S -ash 482 root 1504 S logger -s -p 6 -t sysinit 537 root 0 SW< [crypto] 551 root 0 SW [khubd] 669 root 0 SW< [bat_events] 731 root 1516 S /sbin/syslogd -C16 733 root 1496 S /sbin/klogd 735 root 860 S /sbin/hotplug2 --override --persistent --set-rules-f 742 root 868 S /sbin/ubusd 810 root 1528 S /sbin/netifd 858 root 0 SW [kworker/0:2] 986 root 1508 S /sbin/watchdog -t 5 /dev/watchdog 1415 root 840 S /usr/sbin/cdp-send -t 30 br-lan 1421 root 800 S /usr/sbin/uconfig 1612 root 1152 S /usr/sbin/dropbear -P /var/run/dropbear.1.pid -p 22 1633 root 1500 S /usr/sbin/telnetd -p 23 1643 root 1132 S /usr/sbin/uhttpd -f -h /www -r MimoAP -x /cgi-bin -t 1664 root 1520 S /usr/sbin/crond -c /etc/crontabs -l 5 1673 root 8332 S /usr/sbin/snmpd 1675 root 1208 S /usr/sbin/xinetd -pidfile /var/run/xinetd.pid 1744 nobody 940 S /usr/sbin/dnsmasq -C /var/etc/dnsmasq.conf 1749 root 872 S xl2tpd 1751 root 1508 S /bin/sh /lib/faito/main-loop 1880 root 888 S /usr/sbin/rssileds ath0 1000000 1 wpj558:red:sig1 -8 1886 root 1508 S /usr/sbin/ntpd -n -p 0.openwrt.pool.ntp.org -p 1.ope 8219 root 0 Z [sh] 8228 root 1496 S sleep 2 8229 root 1504 R ps root@MimoAP:~# root@MimoAP:~# cat /lib/faito/main-loop #!/bin/sh #Author:NamPham #Date:10.29.2013 #Purpose:The loop check the status of AP every 2 seconds #$%^-^% \0x09while true ; do \0x09\0x09#check the FlagGetSettings first,if enabled then apply new settings to AP device\0x09 \0x09\0x09if [ "$(uci get apc.setting.WatchDogUser)" == "1" ];then \0x09\0x09\0x09/lib/faito/update_user.sh \0x09\0x09else \0x09\0x09 rm -rf /tmp/user_mac_current /tmp/user_mac_gone /tmp/user_mac_last /tmp/user_mac_new \0x09\0x09fi\0x09 [ "$(uci get apc.setting.initusers)" == "1" ]&& { rm -rf /tmp/user_mac_current /tmp/user_mac_gone /tmp/user_mac_last /tmp/user_mac_new uci set apc.setting.initusers=0 uci commit apc } \0x09\0x09 \0x09\0x09#[ "$(uci get management.enable.AllowAPController )" == "1" -a "$(uci get management.enable.FlagGetSettings )" == "1" ] && /bin/sh /lib/faito/apply_new_settings \0x09\0x09[ "$(uci -q get apc.setting.ApplyNewSettings )" == "1" ] && /lib/faito/apply_new_settings.sh newsets \0x09\0x09[ "$(uci -q get apc.setting.1minuteUd)" == "1" ]&& /lib/faito/update_settings_nodes.sh 1minuteUd\0x09\0x09\0x09 \0x09\0x09[ "$(uci -q get apc.setting.discovery)" == "1" ]&& /lib/faito/update_settings_nodes.sh discovery\0x09\0x09 \0x09\0x09[ "$(uci -q get apc.setting.FTP_flag)" == "1" ]&& /lib/faito/update_settings_nodes.sh upgrade\0x09 \0x09\0x09[ "$(uci -q get apc.setting.FTP_download_flag)" == "1" ]&& /lib/faito/update_settings_nodes.sh downloadfw\0x09 \0x09\0x09[ "$(uci -q get apc.setting.FTP_upgrade_flag)" == "1" ]&& /lib/faito/update_settings_nodes.sh applyfw\0x09 \0x09\0x09#[ "$(uci -q get apc.setting.APCdeleteAP)" == "1" ]&& /lib/faito/APCdeleteAP \0x09\0x09[ "$(uci -q get apc.setting.ImmediateUd)" == "1" ]&& /lib/faito/update_current_settings.sh \0x09\0x09[ "$(uci -q get apc.setting.FTP_just_upgraded)" == "1" ]&& /bin/sh /lib/faito/rc.local \0x09\0x09sleep 2 \0x09done root@MimoAP:~# cat /lib/faito/update_user.sh #!/bin/sh # FAITO - 2014 by NamPham <tn_pham@compex.com.sg> path_of_apc="$(uci get default.settings.apc_path)/$(uci get default.settings.apc_name)" apc_snmp_user_name=$(uci get default.settings.apc_snmp_user_name) apc_snmp_pass1=$(uci get default.settings.apc_snmp_pass1) apc_snmp_pass2=$(uci get default.settings.apc_snmp_pass2) #Prepare iwconfig | grep -B 1 -w Mode:Master |grep ESSID | awk '{print $1}' > /tmp/list_ath_master while read niga ; do \0x09iwinfo $niga assoslist|grep "ms ago"|awk '{print $1}' > /tmp/user_mac_tmp1 \0x09if [ "$(cat /tmp/user_mac_tmp1)" != "" ];then \0x09\0x09essidname=$(iwinfo ${niga} info | grep ESSID|awk '{print $3}'|tr -d '"') \0x09\0x09path=$(uci show wireless| grep -w $essidname|awk '{FS=".";OFS=".";print $1,$2}') \0x09\0x09vapname=$(uci -q get ${path}.id_ssid|sed s/wifi/VAP/g)\0x09 \0x09\0x09while read nu ;do \0x09\0x09\0x09echo "${niga} ${nu} ${vapname}" >> /tmp/user_mac_tmp \0x09\0x09done < /tmp/user_mac_tmp1\0x09 \0x09fi\0x09 done < /tmp/list_ath_master [ -f /tmp/user_mac_tmp ] && sort -u < /tmp/user_mac_tmp > /tmp/user_mac_current || echo "" > /tmp/user_mac_current rm -f /tmp/user_mac_tmp /tmp/user_mac_tmp1 [ ! -f /tmp/user_mac_last ] && touch /tmp/user_mac_last diff /tmp/user_mac_last /tmp/user_mac_current | sed 1,3d | grep "+" | tr -d '+' > /tmp/user_mac_new diff /tmp/user_mac_last /tmp/user_mac_current | sed 1,3d | grep "-" | tr -d '-' > /tmp/user_mac_gone #update status of user [ "$(cat /tmp/user_mac_new )" != "" ] && { \0x09\0x09device_mac_address=$(ifconfig wifi0 | grep HWaddr | awk '{print $5}'| awk '{FS="-";OFS=":";print $1,$2,$3,$4,$5,$6}') \0x09\0x09while read nigu ; do \0x09\0x09\0x09nigu_ath="$(echo ${nigu}|awk '{print $1}')" \0x09\0x09\0x09nigu_mac="$(echo ${nigu}|awk '{print $2}')" \0x09\0x09\0x09vap_name=$(echo ${nigu}|awk '{print $3}') \0x09\0x09\0x09iwinfo $nigu_ath assoslist |grep -A 4 ${nigu_mac} | head -5 > /tmp/user_small \0x09\0x09\0x09 \0x09\0x09\0x09check_type=1\0x09\0x09\0x09\0x09\0x09\0x09\0x09\0x09#1:checkin,0 checkout \0x09\0x09\0x09#user_host_name= \0x09\0x09\0x09#user_ip_address= \0x09\0x09\0x09user_mac_address=${nigu_mac} \0x09\0x09\0x09user_mode=1\0x09\0x09\0x09\0x09\0x09\0x09\0x09\0x09\0x09# \0x091:bridge mode,0 coovachilli mode \0x09\0x09\0x09\0x09\0x09 \0x09\0x09\0x09user_signal=$(cat /tmp/user_small |head -1 |awk '{OFS="";print $2,$3}' ) \0x09\0x09\0x09user_signal_chains="$(cat /tmp/user_small | grep "Signal Chains"|awk '{print $5}'|tr -d "Chains="|tr ',' ';')dBm" \0x09\0x09\0x09user_tx_rate=$(cat /tmp/user_small |grep TX|awk '{OFS="";print $2,$3}') \0x09\0x09\0x09user_rx_rate=$(cat /tmp/user_small |grep RX|awk '{OFS="";print $2,$3}') \0x09 \0x09\0x09 \0x09\0x09\0x09update="check_type=${check_type}&device_mac_address=${device_mac_address}&vap_name=${vap_name}&user_host_name=&user_ip_address=&user_mac_address=${user_mac_address}&user_mode=${user_mode}&user_signal=${user_signal}&user_signal_chains=${user_signal_chains}&user_tx_rate=${user_tx_rate}&user_rx_rate=${user_rx_rate}&user_upload=&user_download=&user_total=" \0x09\0x09\0x09echo $update > /tmp/update/user_checkin \0x09\0x09\0x09apc_host=$(uci get default.settings.l2tpserver) \0x09\0x09\0x09#snmpset -t 5 -v1 -c private $apc_host .1.3.6.1.4.1.426.8.1.20.5.1.4 s "$update" \0x09\0x09snmpset -t 5 -v3 -u $apc_snmp_user_name -a MD5 -A $apc_snmp_pass1 -x DES -X $apc_snmp_pass2 -l authPriv $apc_host 1.3.6.1.4.1.426.8.1.20.6.1.1.0 s "$path_of_apc/checkin/user_checkin_out.php \"${update}\"" \0x09\0x09\0x09 \0x09\0x09done < /tmp/user_mac_new } [ "$(cat /tmp/user_mac_gone )" != "" ] && { \0x09\0x09device_mac_address=$(ifconfig wifi0 | grep HWaddr | awk '{print $5}'| awk '{FS="-";OFS=":";print $1,$2,$3,$4,$5,$6}') \0x09\0x09while read nigu ; do \0x09\0x09\0x09nigu_ath="$(echo ${nigu}|awk '{print $1}')" \0x09\0x09\0x09nigu_mac="$(echo ${nigu}|awk '{print $2}')" \0x09\0x09\0x09vap_name="$(echo ${nigu}|awk '{print $3}')" \0x09 \0x09\0x09\0x09check_type=0\0x09\0x09\0x09\0x09\0x09\0x09\0x09\0x09#1:checkin,0 checkout \0x09\0x09\0x09 \0x09\0x09\0x09user_mac_address=${nigu_mac} \0x09\0x09\0x09user_mode=1\0x09\0x09\0x09\0x09\0x09\0x09\0x09\0x09\0x09# \0x091:bridge mode,0 coovachilli mode \0x09\0x09\0x09\0x09\0x09 \0x09\0x09\0x09update="check_type=${check_type}&device_mac_address=${device_mac_address}&vap_name=${vap_name}&user_host_name=&user_ip_address=&user_mac_address=${user_mac_address}&user_mode=${user_mode}&user_signal=&user_signal_chains=&user_tx_rate=&user_rx_rate=&user_upload=&user_download=&user_total=" \0x09\0x09\0x09echo $update > /tmp/update/user_check_out \0x09\0x09\0x09apc_host=$(uci get default.settings.l2tpserver) \0x09\0x09\0x09#snmpset -t 5 -v1 -c private $apc_host .1.3.6.1.4.1.426.8.1.20.5.1.4 s "$update" \0x09\0x09snmpset -t 5 -v3 -u $apc_snmp_user_name -a MD5 -A $apc_snmp_pass1 -x DES -X $apc_snmp_pass2 -l authPriv $apc_host 1.3.6.1.4.1.426.8.1.20.6.1.1.0 s "$path_of_apc/checkin/user_checkin_out.php \"${update}\"" \0x09\0x09\0x09 \0x09\0x09done < /tmp/user_mac_gone } cp -f /tmp/user_mac_current /tmp/user_mac_last root@MimoAP:~#


This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
  • Last modified: 2024/02/12 08:58
  • by 127.0.0.1