Compex WPJ344

  • Switch support for the AR8334 was *added.
  • The ethernet port doesn't initialise correctly when a serial adapter is attached! No ethernet with UART on boot!

The switch on this board is currently NOT support in openwrt! In case you have a datasheet or a Linux driver for the QCA8334 switch / AR8334 switch, please send your information to openwrt-devel@lists.openwrt.org

To make the switch partially work: https://forum.openwrt.org/viewtopic.php?id=49583

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

Install OpenWrt (generic explanation)

FIXME Please add the installation procedure here.

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


  1. Put OpenWrt firmware image file at
    ftp://192.168.1.10/openwrt-15.05-ar71xx-generic-wpj344-16M-squashfs-sysupgrade.bin
  2. Execute the following commands
    tftpboot 0x80500000 openwrt-15.05-ar71xx-generic-wpj344-16M-squashfs-sysupgrade.bin
    erase 0x9f030000 +$filesize
    cp.b $fileaddr 0x9f030000 $filesize
    reset
--- a/target/linux/generic/files/drivers/net/phy/ar8327.c
+++ b/target/linux/generic/files/drivers/net/phy/ar8327.c
@@ -508,8 +508,10 @@ ar8327_hw_config_pdata(struct ar8xxx_priv *priv,
 	data->port6_status = ar8327_get_port_init_status(&pdata->port6_cfg);
 
 	t = ar8327_get_pad_cfg(pdata->pad0_cfg);
+#if 0
 	if (chip_is_ar8337(priv))
 		t |= AR8337_PAD_MAC06_EXCHANGE_EN;
+#endif
 
 	ar8xxx_write(priv, AR8327_REG_PAD0_MODE, t);
 	t = ar8327_get_pad_cfg(pdata->pad5_cfg);
--

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:85) eth_set_enetaddr(num=0, addr=04:f0:21:12:15:85) 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:85 eth0 up eth0 Setting 0xb8116290 to 0x3c782d0f Hit any key to stop autoboot: 0 ## Booting image at 9f680000 ... Bad Magic Number ## Booting image at 9f030000 ... Image Name: MIPS OpenWrt Linux-3.18.11 Created: 2015-04-21 9:55:43 UTC Image Type: MIPS Linux Kernel Image (lzma compressed) Data Size: 1132553 Bytes = 1.1 MB Load Address: 80060000 Entry Point: 80060000 Verifying Checksum at 0x9f030040 ...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.18.11 (c@black) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r45458) ) #1 Tue Apr 21 11:55:34 CEST 2015 [ 0.000000] bootconsole [early0] enabled [ 0.000000] CPU0 revision is: 0001974c (MIPS 74Kc) [ 0.000000] SoC: Atheros AR9344 rev 2 [ 0.000000] Determined physical RAM map: [ 0.000000] memory: 08000000 @ 00000000 (usable) [ 0.000000] Initrd not found or empty - disabling initrd [ 0.000000] Zone ranges: [ 0.000000] Normal [mem 0x00000000-0x07ffffff] [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x00000000-0x07ffffff] [ 0.000000] Initmem setup node 0 [mem 0x00000000-0x07ffffff] [ 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] 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:192k(u-boot)ro,16128k(firmware),64k(art)ro 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] Writing ErrCtl register=00000000 [ 0.000000] Readback ErrCtl register=00000000 [ 0.000000] Memory: 125920K/131072K available (2470K kernel code, 124K rwdata, 528K rodata, 260K init, 188K bss, 5152K reserved) [ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [ 0.000000] NR_IRQS:51 [ 0.000000] Clocks: CPU:560.000MHz, DDR:450.000MHz, AHB:225.000MHz, Ref:40.000MHz [ 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: 1024 (order: 0, 4096 bytes) [ 0.080000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.080000] NET: Registered protocol family 16 [ 0.090000] MIPS: machine is Compex WPJ344 [ 0.100000] ar724x-pci ar724x-pci: PCIe link is down [ 0.100000] registering PCI controller with io_map_base unset [ 0.550000] PCI host bridge to bus 0000:00 [ 0.560000] pci_bus 0000:00: root bus resource [mem 0x10000000-0x13ffffff] [ 0.560000] pci_bus 0000:00: root bus resource [io 0x0000] [ 0.570000] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff] [ 0.570000] Switched to clocksource MIPS [ 0.580000] NET: Registered protocol family 2 [ 0.580000] TCP established hash table entries: 1024 (order: 0, 4096 bytes) [ 0.580000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes) [ 0.590000] TCP: Hash tables configured (established 1024 bind 1024) [ 0.590000] TCP: reno registered [ 0.600000] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 0.600000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 0.610000] NET: Registered protocol family 1 [ 0.610000] futex hash table entries: 256 (order: -1, 3072 bytes) [ 0.630000] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 0.630000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc. [ 0.640000] msgmni has been set to 245 [ 0.660000] io scheduler noop registered [ 0.660000] io scheduler deadline registered (default) [ 0.670000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled �[ 0.700000] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 2500000) is a 16550A [ 0.700000] console [ttyS0] enabled [ 0.700000] console [ttyS0] enabled [ 0.710000] bootconsole [early0] disabled [ 0.710000] bootconsole [early0] disabled [ 0.720000] m25p80 spi0.0: found mx25l12805d, expected m25p80 [ 0.730000] m25p80 spi0.0: mx25l12805d (16384 Kbytes) [ 0.730000] 3 cmdlinepart partitions found on MTD device spi0.0 [ 0.740000] Creating 3 MTD partitions on "spi0.0": [ 0.740000] 0x000000000000-0x000000030000 : "u-boot" [ 0.750000] 0x000000030000-0x000000ff0000 : "firmware" [ 0.790000] 2 uimage-fw partitions found on MTD device firmware [ 0.790000] 0x000000030000-0x000000150000 : "kernel" [ 0.800000] 0x000000150000-0x000000ff0000 : "rootfs" [ 0.800000] mtd: device 3 (rootfs) set to be root filesystem [ 0.810000] 1 squashfs-split partitions found on MTD device rootfs [ 0.820000] 0x0000003c0000-0x000000ff0000 : "rootfs_data" [ 0.820000] 0x000000ff0000-0x000001000000 : "art" [ 0.840000] libphy: ag71xx_mdio: probed [ 0.850000] switch0: Atheros AR8337 rev. 2 switch registered on ag71xx-mdio.0 [ 0.920000] libphy: ag71xx_mdio: probed [ 1.520000] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.0:00 [uid=004dd036, driver=Atheros AR8216/AR8236/AR8316] [ 1.530000] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:RGMII [ 2.120000] ag71xx-mdio.1: Found an AR934X built-in switch [ 2.160000] eth1: Atheros AG71xx at 0xba000000, irq 5, mode:GMII [ 2.170000] TCP: cubic registered [ 2.170000] NET: Registered protocol family 17 [ 2.170000] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this. [ 2.190000] 8021q: 802.1Q VLAN Support v1.8 [ 2.200000] VFS: Mounted root (squashfs filesystem) readonly on device 31:3. [ 2.210000] Freeing unused kernel memory: 260K (8036f000 - 803b0000) [ 3.230000] init: failed to symlink /tmp -> /var [ 3.230000] init: Console is alive [ 3.230000] init: - watchdog - [ 4.420000] usbcore: registered new interface driver usbfs [ 4.420000] usbcore: registered new interface driver hub [ 4.430000] usbcore: registered new device driver usb [ 4.440000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 4.440000] ehci-platform: EHCI generic platform driver [ 4.450000] ehci-platform ehci-platform: EHCI Host Controller [ 4.460000] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1 [ 4.470000] ehci-platform ehci-platform: irq 3, io mem 0x1b000000 [ 4.490000] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00 [ 4.490000] hub 1-0:1.0: USB hub found [ 4.500000] hub 1-0:1.0: 1 port detected [ 4.500000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver [ 4.510000] ohci-platform: OHCI generic platform driver [ 5.240000] init: - preinit - [ 5.990000] random: procd urandom read with 9 bits of entropy available Press the [f] key and hit [enter] to enter failsafe mode Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level [ 7.690000] eth0: link up (1000Mbps/Full duplex) [ 9.320000] jffs2: notice: (371) jffs2_build_xattr_subsystem: complete building xattr subsystem, 1 of xdatum (0 unchecked, 0 orphan) and 1 of xref (0 dead, 0 orphan) found. [ 9.340000] mount_root: switching to jffs2 overlay [ 9.380000] eth0: link down [ 9.390000] procd: - early - [ 9.390000] procd: - watchdog - [ 10.030000] procd: - ubus - [ 11.050000] procd: - init - Please press Enter to activate this console. [ 11.760000] NET: Registered protocol family 10 [ 11.770000] ip6_tables: (C) 2000-2006 Netfilter Core Team [ 11.790000] Loading modules backported from Linux version master-2015-03-09-0-g141f155 [ 11.800000] Backport generated by backports.git backports-20150129-0-gdd4a670 [ 11.830000] cfg80211: Calling CRDA to update world regulatory domain [ 11.830000] cfg80211: World regulatory domain updated: [ 11.840000] cfg80211: DFS Master region: unset [ 11.840000] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time) [ 11.850000] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A) [ 11.860000] cfg80211: (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A) [ 11.870000] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A) [ 11.880000] cfg80211: (5170000 KHz - 5250000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A) [ 11.890000] cfg80211: (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s) [ 11.890000] cfg80211: (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s) [ 11.900000] cfg80211: (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A) [ 11.910000] cfg80211: (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A) [ 12.020000] ip_tables: (C) 2000-2006 Netfilter Core Team [ 12.030000] nf_conntrack version 0.5.0 (1971 buckets, 7884 max) [ 12.070000] xt_time: kernel timezone is -0000 [ 12.090000] PPP generic driver version 2.4.2 [ 12.100000] NET: Registered protocol family 24 [ 12.130000] ieee80211 phy0: Atheros AR9340 Rev:2 mem=0xb8100000, irq=47 [ 12.140000] cfg80211: Calling CRDA for country: US [ 12.140000] cfg80211: Regulatory domain changed to country: US [ 12.150000] cfg80211: DFS Master region: FCC [ 12.150000] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time) [ 12.160000] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 3000 mBm), (N/A) [ 12.170000] cfg80211: (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 1700 mBm), (N/A) [ 12.180000] cfg80211: (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2300 mBm), (0 s) [ 12.190000] cfg80211: (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 3000 mBm), (N/A) [ 12.200000] cfg80211: (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 4000 mBm), (N/A) [ 19.710000] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready [ 19.730000] device eth0.1 entered promiscuous mode [ 19.730000] device eth0 entered promiscuous mode [ 19.750000] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready [ 19.790000] IPv6: ADDRCONF(NETDEV_UP): eth0.2: link is not ready [ 20.890000] eth0: link up (1000Mbps/Full duplex) [ 20.910000] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready [ 20.910000] br-lan: port 1(eth0.1) entered forwarding state [ 20.920000] br-lan: port 1(eth0.1) entered forwarding state [ 20.930000] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.2: link becomes ready [ 20.960000] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready [ 22.900000] Atheros AR8216/AR8236/AR8316 ag71xx-mdio.0:00: Port 2 is up [ 22.920000] br-lan: port 1(eth0.1) entered forwarding state [ 80.200000] random: nonblocking pool is initialized


The following documentation refects the vendor firmware!

Please contact us to get the firmware login password.

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


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.
  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.
  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
  1. To get patches from Compex, visit http://www.compex.com.sg/downloads/ 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 WPJ344, use WPJ35 firmware, they use the same firmware
  6. For first build:
    $ cd
    $ tar -jxf sdkowrt-130603.tar.bz2
    $ cd sdkowrt-130603
    $ make

    The compiled firmware is in sdkowrt-130603/openwrt/bin/ar71xx/openwrt-ar71xx-generic-wpj35-squashfs-factory.img

  7. For subsequent build:
    $ cd
    $ cd sdkowrt-130603/openwrt
    $ make

    OpenWrt Firmware will be in bin/openwrt-ar71xx-wpJ344.bin

  1. To get patches from Compex, visit http://www.compex.com.sg/downloads/ 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:
    $ cd
    $ tar -jxf sdkath10k-130716.tar.bz2
    $ cd sdkath10k-130716
    $ make

    The compiled firmware is in sdkath10k-130716/openwrt/bin/ar71xx/openwrt-ar71xx-generic-wpj344-squashfs-factory.img

  6. For subsequent build:
    $ cd
    $ cd sdkath10k-130716/openwrt
    $ make
Architecture MIPS
Vendor Atheros
Bootloader U-Boot
System-On-Chip AR9344
Switch QCA8334
CPU Speed 533 Mhz
Flash size 8 MB (up to 16 MB)
RAM 128 MB DDR2 SDRAM
Wireless on-board abgn radio, 1 miniPCIe slot; all Compex WLE series, including 802.11ac radio
Ethernet 2 × Gigabit Ethernet Port
USB With USB Extension (optional), can support 1 × miniPCIe-based USB 2.0 only interface (e.g. 3G modems), 2 × USB 2.0 ports
Power over Ethernet IEEE 802.3af/at PoE Standard or Passive 24V PoE
Serial yes
JTAG yes

New Hardware revision

uart speed is 115200

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