User Tools

Site Tools


toh:compex:wpj344

Compex WPJ344

The device is supported in OpenWrt since 12.09 Attitude Adjustment. (If you accept that downloading all the patched sources from Compex qualifies.)

*WPJ344 Datasheet

Hardware info

Architecture: MIPS
Vendor: Atheros
Bootloader: uboot
System-On-Chip: AR9344
CPU Speed: 533Mhz
Flash size: 8 MB (up to 16MB)
RAM: 128MDDR SDRAM
Wireless: on-board abgn radio, 1 miniPCIe slot; all Compex WLE series, including 802.11ac radio
Ethernet: 2 x Gigabit Ethernet Port
USB: With USB Extension (Optional), can support 1 x miniPCIe-based USB 2.0 only interface(e.g. 3G modems), 2 x USB 2.0 ports
Serial: yes
JTAG: yes

Photos

Serial: JTAG:

New Hardware revision:

UART

uart speed is 115200, the default login in the firmware is root and password abcd1234

uboot env

ar7240> 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}db12x${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:12:15:49
bootcmd=bootm 0x9f680000 || bootm 0x9f030000
stdin=serial
stdout=serial
stderr=serial
ethact=eth0

Environment size: 693/65532 bytes

Stock Firmware Bootlog

U-Boot 1.1.4 (Jul 15 2014 - 15:24:17)

U-Boot DB120
Wasp 1.2

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:12:15:49)
eth_set_enetaddr(num=0, addr=04:f0:21:12:15:49)
In:    serial
Out:   serial
Err:   serial
Net:   ag934x_enet_initialize...
 wasp  reset mask:c02200 
WASP  ----> S17 PHY *
athrs17_reg_init: complete
: cfg1 0x80000000 cfg2 0x7114
eth0: 04:f0:21:12:15:49
eth0 up
eth0
Setting 0xb8116290 to 0x40802d0f
Hit any key to stop autoboot:  0 
## Booting image at 9f680000 ...
   Image Name:   MimoAP v1.47_b140731
   Created:      2014-07-31   3:46:55 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    908774 Bytes = 887.5 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@mesh) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #47 Thu Jul 31 03:11:10 GMT 2014
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU revision is: 0001974c (MIPS 74Kc)
[    0.000000] SoC: Atheros AR9344 rev 2
[    0.000000] Clocks: CPU:560.000MHz, DDR:450.000MHz, AHB:225.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=WPJ344 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: 126640k/131072k available (2099k kernel code, 4432k reserved, 387k data, 184k 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... 278.93 BogoMIPS (lpj=1394688)
[    0.070000] pid_max: default: 32768 minimum: 301
[    0.070000] Mount-cache hash table entries: 512
[    0.080000] NET: Registered protocol family 16
[    0.080000] gpiochip_add: registered GPIOs 0 to 22 on device: ath79
[    0.090000] MIPS: machine is Compex WPJ344
[    0.110000] ar724x-pci ar724x-pci: 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-0x13ffffff]
[    0.140000] pci_bus 0000:00: root bus resource [io  0x0000]
[    0.140000] Switching to clocksource MIPS
[    0.150000] NET: Registered protocol family 2
[    0.150000] 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 entries: 256 (order: 0, 4096 bytes)
[    0.190000] NET: Registered protocol family 1
[    0.210000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.220000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.230000] msgmni has been set to 247
[    0.230000] io scheduler noop registered
[    0.240000] io scheduler deadline registered (default)
[    0.240000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.270000] 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.290000] m25p80 spi0.0: found mx25l12805d, expected m25p80
[    0.290000] m25p80 spi0.0: mx25l12805d (16384 Kbytes)
[    0.300000] 7 cmdlinepart partitions found on MTD device spi0.0
[    0.310000] Creating 7 MTD partitions on "spi0.0":
[    0.310000] 0x000000000000-0x000000040000 : "u-boot"
[    0.320000] 0x000000040000-0x000000050000 : "u-boot-env"
[    0.320000] 0x000000050000-0x000000680000 : "rootfs"
[    0.330000] mtd: partition "rootfs" set to be root filesystem
[    0.340000] mtd: partition "rootfs_data" created automatically, ofs=530000, len=150000 
[    0.340000] 0x000000530000-0x000000680000 : "rootfs_data"
[    0.350000] 0x000000680000-0x0000007e0000 : "kernel"
[    0.360000] 0x0000007e0000-0x0000007f0000 : "nvram"
[    0.360000] 0x0000007f0000-0x000000800000 : "art"
[    0.370000] 0x000000050000-0x0000007e0000 : "firmware"
[    0.400000] ag71xx_mdio: probed
[    0.400000] ag71xx_mdio: probed
[    0.410000] TCP cubic registered
[    0.410000] NET: Registered protocol family 17
[    0.420000] 8021q: 802.1Q VLAN Support v1.8
[    0.430000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[    0.430000] Freeing unused kernel memory: 184k freed
- preinit -
Press the [f] key and hit [enter] to enter failsafe mode
- regular preinit -
[    5.320000] JFFS2 notice: (449) 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 -

[COMPEXWRT] Please press Enter to activate this console![    7.260000] ATHR_GMAC: Length per segment 1536
[    7.270000] ATHR_GMAC: fifo cfg 3 01f00140
[    7.270000] mac:0 Registering S17....
[    7.280000] ATHR_GMAC: RX TASKLET - Pkts per Intr:100
[    7.280000] ATHR_GMAC: Mac address for unit 0: 04:f0:21:12:15:49
[    7.840000] ATHR_GMAC: Max segments per packet :   1
[    7.840000] ATHR_GMAC: Max tx descriptor count :   128
[    7.850000] ATHR_GMAC: Max rx descriptor count :   128
[    7.850000] ATHR_GMAC: Mac capability flags    :   2381
[    7.860000] ATHR_GMAC: Mac address for unit 0: 04:f0:21:12:15:49
[    7.860000] ATHR_GMAC: Mac address for unit 1: 04:f0:21:12:15:4a
[    8.150000] usbcore: registered new interface driver usbfs
[    8.150000] usbcore: registered new interface driver hub
[    8.160000] usbcore: registered new device driver usb
[    8.200000] PPP generic driver version 2.4.2
[    8.220000] tun: Universal TUN/TAP device driver, 1.6
[    8.230000] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[    8.250000] PPP MPPE Compression module registered
[    8.320000] L2TP core driver, V2.0
[    8.330000] L2TP netlink interface
[    8.360000] GRE over IPv4 demultiplexor driver
[    8.380000] GRE over IPv4 tunneling driver
[    8.410000] ip_tables: (C) 2000-2006 Netfilter Core Team
[    8.570000] NET: Registered protocol family 24
[    8.580000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    8.590000] ehci-platform ehci-platform: Generic Platform EHCI Controller
[    8.600000] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1
[    8.640000] ehci-platform ehci-platform: irq 3, io mem 0x1b000000
[    8.660000] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00
[    8.660000] hub 1-0:1.0: USB hub found
[    8.670000] hub 1-0:1.0: 1 port detected
[    8.750000] nf_conntrack version 0.5.0 (1981 buckets, 7924 max)
[    9.030000] PPPoL2TP kernel driver, V2.0
[    9.050000] PPTP driver version 0.8.5
[    9.420000] xt_time: kernel timezone is -0000
[    9.900000] adf: module license 'Proprietary' taints kernel.
[    9.910000] Disabling lock debugging due to kernel taint
[   10.220000] ath_hal: 0.9.17.1 (AR5416, AR9380, REGOPS_FUNC, WRITE_EEPROM, 11D)
[   10.310000] ath_rate_atheros: Copyright (c) 2001-2005 Atheros Communications, Inc, All Rights Reserved
[   10.330000] ath_spectral: Version 2.0.0
[   10.330000] Copyright (c) 2005-2009 Atheros Communications, Inc. All Rights Reserved
[   10.340000] SPECTRAL module built on Jul 31 2014 03:02:47
[   10.360000] ath_dfs: Version 2.0.0
[   10.360000] Copyright (c) 2005-2006 Atheros Communications, Inc. All Rights Reserved
[   10.550000] ath_dev: Copyright (c) 2001-2007 Atheros Communications, Inc, All Rights Reserved
[   11.810000] ath_ahb: 10.1.436 (Atheros/multi-bss)
[   11.810000] __ath_attach: Set global_scn[0]
[   11.810000] ACBKMinfree = 48
[   11.820000] ACBEMinfree = 32
[   11.820000] ACVIMinfree = 16
[   11.820000] ACVOMinfree = 0
[   11.830000] CABMinfree = 48
[   11.830000] UAPSDMinfree = 0
[   11.840000] Enterprise mode: 0x00000000
[   11.840000] Restoring Cal data from Flash
[   11.850000] SPECTRAL : get_capability not registered
[   11.850000] HAL_CAP_PHYDIAG : Capable
[   11.860000] SPECTRAL : Need to fix the capablity check for RADAR (spectral_attach : 226)
[   11.870000] SPECTRAL : get_capability not registered
[   11.870000] HAL_CAP_RADAR   : Capable
[   11.880000] SPECTRAL : Need to fix the capablity check for SPECTRAL
[   11.880000]  (spectral_attach : 231)
[   11.890000] SPECTRAL : get_capability not registered
[   11.890000] HAL_CAP_SPECTRAL_SCAN : Capable
[   11.890000] SPECTRAL : get_tsf64 not registered
[   11.900000] spectral_init_netlink 52 NULL SKB
[   11.900000] SPECTRAL : No ADVANCED SPECTRAL SUPPORT
[   11.910000] SPECTRAL : module attached
[   11.910000] Green-AP : Green-AP : Attached
[   11.910000] 
[   11.920000] ath_get_caps[5982] rx chainmask mismatch actual 3 sc_chainmak 0
[   11.930000] ath_get_caps[5957] tx chainmask mismatch actual 3 sc_chainmak 0
[   11.940000] ath_attach_dfs[11964] dfsdomain 0
[   11.950000] SPECTRAL : module already attached
[   11.960000] ath_tx_paprd_init sc 872b0000 PAPRD Enabled
[   11.970000] wifi0: Atheros 9340: mem=0xb8100000, irq=47
[   11.970000] ath_pci: 10.1.436 (Atheros/multi-bss)
[   16.320000] athr_gmac_ring_alloc Allocated 2048 at 0x87006800
[   16.330000] athr_gmac_ring_alloc Allocated 2048 at 0x87007000
[   16.640000] WASP  ----> S17 PHY *
[   16.640000] To set s17 LOOKUP_CTRL_REG registers, flag 0 
[   16.650000] To set s17 LOOKUP_CTRL_REG registers, flag 0 
[   16.690000] athrs17_reg_init:done
[   16.690000] Setting Drop CRC Errors, Pause Frames and Length Error frames 
[   16.700000] Setting PHY...
[   22.640000] Phy setup Complete
[   22.650000] ATHRS17:Unknown speed read:0! phyhwstat:3
[   22.650000] ATHRS17:Unknown speed read:1! phyhwstat:3
[   22.660000] ATHRS17:Unknown speed read:2! phyhwstat:3
[   22.660000] ATHRS17:Unknown speed read:3! phyhwstat:3
[   22.680000] ATHRS17:Unknown speed read:4! phyhwstat:3
[   22.680000] ATH_MAC_TIMER: enet unit:0 is up...
[   22.690000] RGMii 1000Mbps full duplex
[   22.690000] ATH_MAC_TIMER: done cfg2 0x7215 ifctl 0x0 miictrl  
[   22.700000] To set s17 LOOKUP_CTRL_REG registers, flag 1 
[   22.710000] To set s17 LOOKUP_CTRL_REG registers, flag 1 
[   22.720000] device eth0 entered promiscuous mode
[   22.720000] br-lan: port 1(eth0) entered forwarding state
[   22.730000] br-lan: port 1(eth0) entered forwarding state
[   22.750000] device eth1 entered promiscuous mode
[   22.750000] br-lan: port 2(eth1) entered forwarding state
[   22.760000] br-lan: port 2(eth1) entered forwarding state
[   24.570000]  DCS for CW interference mitigation:   0
[   24.570000]  DCS for WLAN interference mitigation: 0
[   24.700000] ATHRS17:Unknown speed read:0! phyhwstat:3
[   24.700000] ATHRS17:Unknown speed read:1! phyhwstat:3
[   24.710000] ATHRS17:Unknown speed read:2! phyhwstat:3
[   24.710000] ATHRS17:Unknown speed read:3! phyhwstat:3
[   24.720000] ATHRS17:Unknown speed read:4! phyhwstat:3

Installation

Upgrade Firmware with Serial Console

Power on the device, press Esc button from Keyboard. It would be directed to the u-boot loader mode.

  1. Open the tftp server (Tftpd32.exe) and select the location of firmware folder.
  2. To flash the firmware type the following the command: #cpximg <copy the file’s name>
  3. Wait to complete the firmware loading. Reboot the device after update successfully.

Upgrade Firmware using TFTP [uboot loader version is b130802 onwards]

  1. Press and hold the reset button while power up the board.
  2. Release the button after 1 second
  3. Wait for the Diagnostic led to blink fast.
  4. Open the command prompt and type the following command: #tftp –i 192.168.1.1 put <firmware.img>
  5. Diagnostic led is always on while writing flash.
  6. Diagnostic led blinks slowly after flash firmware.
  7. Power off and power on again to reboot the device.

Upgrading OpenWRT

Minimum Requirement
  1. OpenWRT will only be supported on WPJ344 with 8MB NOR flash and above.
  2. Please ensure that the Ethernet connection is able to ping address = 192.168.168.1
Compiling OpenWRT on WPJ344 + ath9k with patches from Compex
  1. [To get patches from Compex, visit http://www.compex.com.sg/openwrtdownload.aspx to register and get patches.]
  2. Recommended Linux host: CentOS 6.x, Debian 6.x
  3. During the first build of openwrt, about 300MB of various source files will be downloaded from the internet.The downloaded files will be put in openwrt/dl.
  4. Patches from Compex (support ath9k): sdkowrt-130603.tar.bz2
  5. For first build:
  6. $ cd
  7. $ tar jxf sdkowrt-130603.tar.bz2
  8. $ cd sdkowrt-130603
  9. $ make
  10. The compiled firmware is in:
  11. sdkowrt-130603/openwrt/bin/ar71xx/openwrt-ar71xx-generic-wpj35-squashfs-factory.img
  12. For subsequent build:
  13. $ cd
  14. $ cd sdkowrt-130603/openwrt
  15. $ make
  16. For WPJ344, use WPJ35 firmware, they use the same firmware
  17. OpenWRT Firmware will be in bin/openwrt-ar71xx-wpJ344.bin

Compiling OpenWRT on WPJ344 + ath10k for 11ac radios, with patches from Compex

  1. [To get patches from Compex, visit http://www.compex.com.sg/openwrtdownload.aspx to register and get patches.]
  2. Recommended Linux host: CentOS 6.x, Debian 6.x
  3. During the first build of openwrt, about 300MB of various source files will be downloaded from the internet.The downloaded files will be put in openwrt/dl.
  4. Patches from Compex (support ath10k): sdkath10k-130716.tar.bz2
  5. For first build:
  6. $ cd
  7. $ tar jxf sdkath10k-130716.tar.bz2
  8. $ cd sdkath10k-130716
  9. $ make
  10. The compiled firmware is in:
  11. sdkath10k-130716/openwrt/bin/ar71xx/openwrt-ar71xx-generic-wpj344-squashfs-factory.img
  12. For subsequent build:
  13. $ cd
  14. $ cd sdkath10k-130716/openwrt
  15. $ make

Useful sources

This page has been assembled from a number of different pages from the old wiki and the current wiki. Refer to them for more (possibly outdated) information.

Tags

toh/compex/wpj344.txt · Last modified: 2015/02/11 14:09 by claudyus