User Tools

Site Tools


toh:buffalo:wzr-600dhp

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Previous revision
toh:buffalo:wzr-600dhp [2012/12/08 03:51]
toh:buffalo:wzr-600dhp [2015/11/30 22:31] (current)
tmomas [[meta:tags]] -> [[meta:tags|How to add tags]]
Line 1: Line 1:
 +======Buffalo WZR-600DHP======
 +**''​NOTE:''​** Buffalo WZR-600DHP shares the same FCC ID FDI-09101889-0 with [[toh/​buffalo/​wzr-hp-ag300h|Buffalo WZR-HP-AG300H]]. Indeed, WZR-600DHP is a replacement model for WZR-HP-AG300H,​ and their hardware look almost identical. For FCC documentation,​ see [[https://​apps.fcc.gov/​oetcf/​eas/​reports/​ViewExhibitReport.cfm?​mode=Exhibits&​RequestTimeout=500&​calledFromFrame=N&​application_id=398337&​fcc_id=FDI-09101889-0|here]]
  
 +
 +===== Supported Versions =====
 +^ Version/​Model ​  ^ Launch Date   ^ S/N   ^ OpenWrt Version Supported ​                                                     ^ Model Specific Notes   ^
 +| C0B1            |       ? ​      | -     | [[https://​dev.openwrt.org/​changeset/​35840|r35840]],​ also Attitude Adjustment ​  | -                      |
 +| C0B2            |       ? ​      | -     | Attitude Adjustment 12.09-rc1 ​                                                 | -                      |
 +| C0B3            |     ​2013 ​     | -     | Attitude Adjustment 12.09 / Barrier Breaker ​                                   | -                      |
 +| C0A3            |       ? ​      | -     | Attitude Adjustment 12.09 / Barrier Breaker RC2                                | -                      |
 +
 +You can tell which version you have by looking on the SSID sticker on the router itself. ​ To the right of the SSIDs will be the C0 B# identifier.
 +
 +===== Hardware Highlights =====
 +^ CPU                     ^ Ram      ^ Flash   ^ Network ​  ^ USB   ^ Serial ​  ^ JTag   ^
 +| Atheros AR7161@680MHz ​  | 128MiB ​  | 32MiB   | 4 x 1     | Yes   | Yes      | Yes    |
 +
 +
 +===== Installation =====
 +Note: In OpenWRT versions prior to Barrier Breaker 14.07 there was no specific firmware for the WZR-600DHP but the same firmware as the [[toh/​buffalo/​wzr-hp-ag300h|Buffalo WZR-HP-AG300H]] could be utilized due to the similar hardware. ​ In this case after installation OpenWRT will report the device as the WZR-HP-AG300H even though it is the WZR-600DHP. In addition the factory image could not be flashed to OpenWRT through the standard OEM web interface firmware flash process because the firmware image was not specifically designed for the WZR-600DHP. Instead you needed to install the sysupgrade version using the wget and mtd commands through the OEM interface Administration -> Commands interface.
 +
 +Because this router is individually supported since the Barrier Breaker 14.07 release it is suggested that you install that version as it will be much easier to install.
 +
 +==== Firmware Download Quick Links ====
 +
 +Please consult the specific installation method below for each firmware type.
 +
 +^ Firmware Type   ^ Download Link                                                                                                                 ^
 +| Factory ​        | http://​downloads.openwrt.org/​barrier_breaker/​14.07/​ar71xx/​generic/​openwrt-ar71xx-generic-wzr-600dhp-squashfs-factory.bin ​     |
 +| SysUpgrade ​     | http://​downloads.openwrt.org/​barrier_breaker/​14.07/​ar71xx/​generic/​openwrt-ar71xx-generic-wzr-600dhp-squashfs-sysupgrade.bin ​  |
 +| tftp            | http://​downloads.openwrt.org/​barrier_breaker/​14.07/​ar71xx/​generic/​openwrt-ar71xx-generic-wzr-600dhp-squashfs-tftp.bin ​        |
 +
 +==== Installing using the Factory version using the OEM web interface ====
 +Since the Barrier Breaker 14.07 version of OpenWRT it is possible to install OpenWRT through the OEM web interface using the standard flash upgrade method in the web interface.
 +  - Download the openwrt-ar71xx-generic-wzr-600dhp-squashfs-factory.bin file to your PC
 +  - Load the OEM web interface (192.168.11.1,​ admin/​password) from a DHCP configured computer
 +  - Click the Administration -> Firmware Upgrade tab
 +  - Click the browse button and find the openwrt-ar71xx-generic-wzr-600dhp-squashfs-factory.bin file on your PC
 +  - Allow the firmware upgrade a few minutes to complete. The router will reboot at least once.
 +  - Check your PC to see if the DHCP address of the PC has switched to the OpenWrt address of 192.168.1.x
 +  - Once your PC has a 192.168.1.x address you can load the OpenWrt web interface at 192.168.1.1 and complete your configuration.
 +
 +==== Installing using the SysUpgrade version using the OEM web interface ====
 +
 +It is possible to easily install OpenWrt SysUpgrade versions using the OEM web interface (Buffalo branded DD-WRT) as long as you can connect the router to the Internet and do not use the firmware upgrade web utility. What you need to do is:
 +  - Load the OEM web interface (192.168.11.1,​ admin/​password) from a DHCP configured computer
 +  - Click the Administration -> Commands tab
 +  - Enter the command "wget -P /tmp http://​downloads.openwrt.org/​attitude_adjustment/​12.09/​ar71xx/​generic/​openwrt-ar71xx-generic-wzr-hp-ag300h-squashfs-sysupgrade.bin"​ and press the "run commands"​ button. This will download OpenWrt to the /tmp directory.
 +  - Verify that the file downloaded by running the "ls -al /tmp" command. You should see the "​openwrt-ar71xx-generic-wzr-hp-ag300h-squashfs-sysupgrade.bin"​ file listed in the directory contents.
 +  - Run the "mtd -r write /​tmp/​openwrt-ar71xx-generic-wzr-hp-ag300h-squashfs-sysupgrade.bin linux" command to flash the new firmware. This will take a couple minutes to write to flash and automatically reboot.
 +  - During the flashing process you will get some output to your web page including "​Unlocking linux ... Writing from /​tmp/​openwrt-ar71xx-generic-wzr-hp-ag300h-squashfs-sysupgrade.bin to linux ..." you will also see a solid red //"​DIAG"//​-LED
 +  - Once the //"​DIAG"//​-LED begins flashing check your PC to see if the DHCP address of the PC has switched to the OpenWrt address of 192.168.1.x
 +  - Once your PC has a 192.168.1.x address you can load the OpenWrt web interface and complete your configuration,​ when you load the page the first time the //"​DIAG"//​-LED should stop flashing and go out.
 +
 +==== Installation using the TFTP method ====
 +
 +->  [[doc:​howto:​generic.flashing.tftp]]
 +
 +=== Specific values you need ===
 +
 +| Bootloader tftp server IPv4 address ​ | 192.168.11.1 ​       |
 +| Bootloader MAC address (special) ​    | 02:​aa:​bb:​cc:​dd:​20 ​  |
 +| Latest firmware tftp image           | See Firmware Download Quick Links (**''​NOTE:''​** Name must contain //"​tftp"//​) |
 +| TFTP Transfer Window ​                | 4 seconds ​                                   |
 +| TFTP Window Start                    | approximately 10-20 seconds after power on   |
 +| TFTP Client Required IP Address ​     | 192.168.11.2 ​                                |
 +
 +
 +=== Flashing Notes ===
 +  * Connect ethernet to one of the router'​s LAN ports
 +  * Configure tftp'​ing host's ip address, e.g.: $ sudo ip addr add 192.168.11.2/​24 dev eth0
 +  * Pre-populate arp table on tftp'​ing host, e.g.: $ sudo arp -s 192.168.11.1 02:​aa:​bb:​cc:​dd:​20
 +  * The red //"​DIAG"//​-LED begins to flash rapidly when the router has received the image and is currently booting the new firmware.
 +  * Successful flashes via tftp using Windows 7 directly plugged into the router have been done.  It helps to add arp entries and disable media sensing as per the generic tftp instructions.
 +  * Flash should have reset all settings as well.  The IP address of the router should be 192.168.1.1 now since 192.168.11.1 is only for the bootloader at boot-time
 +  * If your router has two red flashes of the DIAG LED followed by no flash and repeats then the flash failed or the image given is corrupt. ​ You can still recover with tftp.  Start over and try again.
 +
 +
 +==== Installation using the remote shell method ====
 +
 +It is possible to flash the SysUpgrade version from the command line of a running DD-WRT, using the mtd command:
 +  - Shell into the command line, cd /tmp;
 +  - Copy the image file to /tmp by whatever means is handy (e.g. wget, scp)
 +  - mtd -r write openwrt-ar71xx-generic-wzr-600dhp-squashfs-sysupgrade.bin linux
 +  - wait;
 +  - be happy.
 +
 +Note from the boot messages that the linux partition starts at offset 0x60000 from the beginning of flash. ​ It would probably be wise to confirm that before proceeding.
 +
 +
 +==== Japanese version ====
 +
 +[[http://​www.dd-wrt.com/​phpBB2/​viewtopic.php?​p=727242&​sid=d725e7fba4c94483220cddf61c8a1fff#​727242|Source]]
 +
 +On the Japanese version of Buffalo WZR-600DHP, you have first to change a setting on a hidden maintenance page.
 +
 +  - Load the hidden maintenance page: http://​192.168.11.1/​cgi-bin/​cgi?​req=frm&​frm=py-db/​55debug.html,​ username is **bufpy**, password is **otdpopy + <your admin password>​** (example: **otdpopypassword**). If you get a message "under construction",​ clear your browser cache (or open in private navigation) and retry.
 +  - Run commands from text field:
 +    - ubootenv set accept_open_rt_fmt 1
 +    - reboot
 +  - **''​NOTE:''​** you can also start tftp server if needed.
 +  - Now clear your browser cache again, and open default web interface (192.168.11.1),​ but this time using the credentials provided above (**bufpy**).
 +  - Go to Settings page (管理設定,​ //kanri settei// in Japanese), and you will see a few new links, including one that will allow you to flash firware from any file you upload.
 +
 +I didn't know which OpenWrt firmware file to use, but the original user who brought this procedure successfully flashed an DD-WRT firmware, so I did the same first.
 +
 +From there, I was able to flash OpenWrt, following [[#​installation.using.the.oem.web.interface|Installation using the OEM web interface]] above.
 +
 +===== Flash Layout =====
 +->​[[doc:​techref:​Flash.Layout]] has an example flash layout and all explanations required to understand this. Here the naked hex-values for the WZR-600DHP:
 +
 +|''​
 +DD-WRT v24-sp2 std (c) 2012 NewMedia-NET GmbH
 +Release: 07/09/12 (SVN revision: 19438)
 +
 +bootlog:
 +Creating 9 MTD partitions on "​ar7100-nor0":​
 +0x000000000000-0x000000050000 : "​RedBoot"​
 +0x000000060000-0x000001fe0000 : "​linux"​
 +0x00000017a000-0x000000e80000 : "​rootfs"​
 +0x000000e80000-0x000001fe0000 : "​ddwrt"​
 +0x000001fe0000-0x000001ff0000 : "​nvram"​
 +0x000001ff0000-0x000002000000 : "FIS directory"​
 +0x000001ff0000-0x000002000000 : "​board_config"​
 +0x000000000000-0x000002000000 : "​fullflash"​
 +0x000000040000-0x000000050000 : "​uboot-env"​
 +''​|
 +
 +|''​
 +root@DD-WRT:​~#​ cat /proc/mtd
 +dev:    size   ​erasesize ​ name
 +mtd0: 00050000 00010000 "​RedBoot"​
 +mtd1: 01f80000 00010000 "​linux"​
 +mtd2: 00ac6000 00010000 "​rootfs"​
 +mtd3: 013a0000 00010000 "​ddwrt"​
 +mtd4: 00010000 00010000 "​nvram"​
 +mtd5: 00010000 00010000 "FIS directory"​
 +mtd6: 00010000 00010000 "​board_config"​
 +mtd7: 02000000 00010000 "​fullflash"​
 +mtd8: 00010000 00010000 "​uboot-env"​
 +''​|
 +
 +|''​
 +OpenWrt (as of r35052)
 +
 +bootlog:
 +Creating 7 MTD partitions on "​flash":​
 +0x000000000000-0x000000040000 : "​u-boot"​
 +0x000000040000-0x000000050000 : "​u-boot-env"​
 +0x000000050000-0x000000060000 : "​art"​
 +0x000000060000-0x000000160000 : "​kernel"​
 +0x000000160000-0x000001ff0000 : "​rootfs"​
 +0x0000005b0000-0x000001ff0000 : "​rootfs_data"​
 +0x000001ff0000-0x000002000000 : "​user_property"​
 +0x000000060000-0x000001ff0000 : "​firmware"​
 +''​|
 +
 +===== Boot Sequence =====
 +This complete boot sequence shows Buffalo'​s U-BOOT ver 1.00, its TftpServer timing, and kernel messages while booting up
 +
 +<​code>​
 +root@DD-WRT:​~# ​
 +
 +BUFFALO U-BOOT Ver 1.00
 +  == CPU:680MHz, DDR:340MHz, AHB:170MHz ==
 +AP96 (ar7100) U-boot 0.0.1
 +DRAM:  128 MB
 +Top of RAM usable for U-Boot at: 84000000
 +Reserving 266k for U-Boot at: 83fbc000
 +Reserving 192k for malloc() at: 83f8c000
 +Reserving 44 Bytes for Board Info at: 83f8bfd4
 +Reserving 36 Bytes for Global Data at: 83f8bfb0
 +Reserving 128k for boot params() at: 83f6bfb0
 +Stack Pointer at: 83f6bf98
 +Now running in RAM - U-Boot at: 83fbc000
 +flash bank #0 found 16 MB flash [W25Q128BV, blk:​0x10000,​ sectors:​256]
 +flash bank #1 found 16 MB flash [W25Q128BV, blk:​0x10000,​ sectors:​256]
 +Flash: 32 MB
 +In:    serial
 +Out:   ​serial
 +Err:   ​serial
 +Memory Test
 +uboot use  83F6BFB0 - 84000000
 +Memory Test start(80000000) end(83F00000) size(03F00000)
 +Pattern 00000000 ​ Writing... ​ Reading...
 +Memory Test start(84000000) end(88000000) size(04000000)
 +Pattern 00000000 ​ Writing... ​ Reading...
 +Memory Test OK
 +### buf_ver=[1.00] U-Boot Ver.=[1.00]
 +### build_date(env)=[May 21 2012 - 08:29:08] build_date(bin)=[May 21 2012 - 08:29:08]
 +ag7100_enet_initialize...
 +Reading MAC Address from ENV(0x83f8c2f4)
 +Port 0, Neg Success
 +Port 1, Neg Success
 +Port 2, Neg Success
 +Port 3, Neg Success
 +eth0: Phy Specific Status=0010
 +eth0: Phy Specific Status=0010
 +eth0: Phy Specific Status=0010
 +eth0: Phy Specific Status=0010;​$eth0:​ 02:​aa:​bb:​cc:​dd:​20
 +eth0 up
 +Reading MAC Address from ENV(0x83f8c2f4)
 +Port 4, Neg Success
 +eth1: Phy Specific Status=0010
 +eth1: 02:​aa:​bb:​cc:​dd:​21
 +eth1 up
 +eth0  02:​AA:​BB:​CC:​DD:​20
 +, eth1  02:​AA:​BB:​CC:​DD:​21
 +
 +
 +enet0 port0 up
 +pll reg 0x18050010: 0x110000  ​
 +tftp server(receive) go, waiting:​4[sec]
 +Load address: 0x84000000
 +
 +TftpServer Timeout;
 +no file was loaded.
 +change bootargs
 +console=ttyS0,​115200 root=31:03 rootfstype=jffs2 init=/​sbin/​init mtdparts=ar7100-nor0:​256k(u-boot),​64k(u-boot-env),​1152k@384k(uImage),​6592k@1536k(rootfs),​64k@320k(ART),​64k@8128k(properties),​8192k@8192k(flash1),​16384k@16384k(flash2) mem=128M
 +## Booting image at bf060000 ...
 +   Image Name:   ​DD-WRT v24 Linux Kernel Image
 +   ​Created: ​     2012-11-04 ​ 17:15:31 UTC
 +   Image Type:   MIPS Linux Kernel Image (lzma compressed)
 +   Data Size:    1152152 Bytes =  1.1 MB
 +   Load Address: 80002000
 +   Entry Point: ​ 80238490
 +   ​Verifying Checksum ... crc32_fw: bf060040 - bf1794d7 (len:​00119498) calc...
 +crc32_fw: range1 bf060040 - bf1794d7
 +OK
 +   ​Uncompressing Kernel Image ... OK
 +No initrd
 +## Transferring control to Linux (at address 80238490) ...
 +## Giving linux memsize in bytes, 134217728
 +
 +Starting kernel ...
 +
 +[    0.000000] Linux version 3.2.28 (root@dd-wrt) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #13 Thu Nov 1 14:55:47 CET 2012
 +[    0.000000] bootconsole [early0] enabled
 +[    0.000000] CPU revision is: 00019374 (MIPS 24Kc)
 +[    0.000000] booting platform Atheros AR7161 rev 2 (0xaa)
 +[    0.000000] Determined physical RAM map:
 +[    0.000000] ​ memory: 08000000 @ 00000000 (usable)
 +[    0.000000] Zone PFN ranges:
 +[    0.000000] ​  ​Normal ​  ​0x00000000 -> 0x00008000
 +[    0.000000] Movable zone start PFN for each node
 +[    0.000000] early_node_map[1] active 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: console=ttyS0,​115200 root=1f02 rootfstype=squashfs noinitrd init=/​sbin/​init
 +[    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: 126344k/​131072k available (2299k kernel code, 4728k reserved, 804k data, 160k init, 0k highmem)
 +[    0.000000] NR_IRQS:80
 +[    0.000000] irq init done
 +[    0.000000] plat_time_init:​ plat time init done
 +[    0.000000] Calibrating delay loop... 452.19 BogoMIPS (lpj=2260992)
 +[    0.060000] pid_max: default: 32768 minimum: 301
 +[    0.060000] Mount-cache hash table entries: 512
 +[    0.070000] NET: Registered protocol family 16
 +[    3.070000] registering PCI controller with io_map_base unset
 +[    3.080000] bio: create slab <​bio-0>​ at 0
 +[    3.090000] found calibration data for slot 0 on 0xBF051000
 +[    3.100000] PCI: fixup device 0000:​00:​00.0
 +[    3.110000] found calibration data for slot 1 on 0xBF055000
 +[    3.120000] PCI: fixup device 0000:​00:​01.0
 +[    3.120000] pci 0000:​00:​00.0:​ BAR 0: assigned [mem 0x10000000-0x1000ffff]
 +[    3.130000] pci 0000:​00:​00.0:​ BAR 0: set to [mem 0x10000000-0x1000ffff] (PCI address [0x10000000-0x1000ffff])
 +[    3.130000] pci 0000:​00:​01.0:​ BAR 0: assigned [mem 0x10010000-0x1001ffff]
 +[    3.140000] pci 0000:​00:​01.0:​ BAR 0: set to [mem 0x10010000-0x1001ffff] (PCI address [0x10010000-0x1001ffff])
 +[    3.150000] Switching to clocksource MIPS
 +[    3.150000] NET: Registered protocol family 2
 +[    3.160000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
 +[    3.160000] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
 +[    3.170000] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
 +[    3.170000] TCP: Hash tables configured (established 4096 bind 4096)
 +[    3.180000] TCP reno registered
 +[    3.180000] UDP hash table entries: 256 (order: 0, 4096 bytes)
 +[    3.190000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
 +[    3.190000] NET: Registered protocol family 1
 +[    3.200000] gpio_proc: module loaded and /proc/gpio/ created
 +[    3.200000] Register LED Device
 +[    3.210000] wl0gpio_proc:​ module loaded and /​proc/​wl0gpio/​ created
 +[    3.210000] AR7100 GPIOC major 0
 +[    3.220000] squashfs: version 3.0 (2006/​03/​15) Phillip Lougher
 +[    3.220000] msgmni has been set to 246
 +[    3.230000] alg: No test for stdrng (krng)
 +[    3.230000] io scheduler noop registered
 +[    3.240000] io scheduler deadline registered (default)
 +[    3.240000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
 +[    3.270000] serial8250.0:​ ttyS0 at MMIO 0x18020000 (irq = 19) is a 16550A
 +[    3.280000] console [ttyS0] enabled, bootconsole disabled
 +[    3.280000] console [ttyS0] enabled, bootconsole disabled
 +[    3.290000] check spi banks 2
 +[    3.290000] 0000 : EF 40 18
 +[    3.290000] found W25Q128BV device on bank#0
 +[    3.300000] 0000 : EF 40 18
 +[    3.300000] found W25Q128BV device on bank#1
 +[    3.310000] SPI flash size total:32 Mbytes
 +[    3.400000] ​
 +[    3.400000] found squashfs at 17A000
 +[    3.400000] Creating 9 MTD partitions on "​ar7100-nor0":​
 +[    3.410000] 0x000000000000-0x000000050000 : "​RedBoot"​
 +[    3.410000] 0x000000060000-0x000001fe0000 : "​linux"​
 +[    3.420000] 0x00000017a000-0x000000c40000 : "​rootfs"​
 +[    3.430000] mtd: partition "​rootfs"​ must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
 +[    3.440000] mtd: partition "​rootfs"​ set to be root filesystem
 +[    3.440000] 0x000000c40000-0x000001fe0000 : "​ddwrt"​
 +[    3.450000] 0x000001fe0000-0x000001ff0000 : "​nvram"​
 +[    3.460000] 0x000001ff0000-0x000002000000 : "FIS directory"​
 +[    3.460000] 0x000001ff0000-0x000002000000 : "​board_config"​
 +[    3.470000] 0x000000000000-0x000002000000 : "​fullflash"​
 +[    3.480000] 0x000000040000-0x000000050000 : "​uboot-env"​
 +[    3.480000] tun: Universal TUN/TAP device driver, 1.6
 +[    3.490000] tun: (C) 1999-2004 Max Krasnyansky <​maxk@qualcomm.com>​
 +[    3.890000] PPP generic driver version 2.4.2
 +[    3.900000] PPP BSD Compression module registered
 +[    3.900000] PPP Deflate Compression module registered
 +[    3.910000] PPP MPPE Compression module registered
 +[    3.910000] NET: Registered protocol family 24
 +[    3.920000] Software Watchdog Timer: 0.07 initialized. soft_noboot=0 soft_margin=60 sec soft_panic=0 (nowayout= 0)
 +[    3.940000] u32 classifier
 +[    3.950000] ​    ​Performance counters on
 +[    3.950000] ​    input device check on
 +[    3.950000] ​    ​Actions configured
 +[    3.960000] Netfilter messages via NETLINK v0.30.
 +[    3.960000] nf_conntrack version 0.5.0 (1974 buckets, 7896 max)
 +[    3.970000] nf_conntrack_rtsp v0.6.21 loading
 +[    3.970000] nf_nat_rtsp v0.6.21 loading
 +[    3.980000] ip_tables: (C) 2000-2006 Netfilter Core Team
 +[    3.980000] IPP2P v0.8.2 loading
 +[    3.990000] TCP bic registered
 +[    3.990000] TCP cubic registered
 +[    3.990000] TCP westwood registered
 +[    3.990000] TCP highspeed registered
 +[    4.000000] TCP hybla registered
 +[    4.000000] TCP htcp registered
 +[    4.000000] TCP vegas registered
 +[    4.010000] TCP veno registered
 +[    4.010000] TCP scalable registered
 +[    4.010000] TCP lp registered
 +[    4.020000] TCP yeah registered
 +[    4.020000] TCP illinois registered
 +[    4.020000] NET: Registered protocol family 17
 +[    4.030000] Bridge firewalling registered
 +[    4.030000] 8021q: 802.1Q VLAN Support v1.8
 +[    4.040000] searching for nvram
 +[    4.040000] nvram size = -2144567346
 +[    4.130000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
 +[    4.130000] Freeing unused kernel memory: 160k freed
 +start service
 +starting Architecture code for wzrag300nh
 +starting hotplug
 +Jan  1 00:00:05 udevtrigger[274]:​ parse_config_file:​ can't open '/​etc/​udev/​udev.conf'​ as config file: No such file or directory
 +start MSTP Daemon
 +1970-01-01 00:00:06 main: Sanity checks succeeded
 +done
 +load ag71xx or ag7100_mod Ethernet Driver
 +[    6.470000] ag71xx_mdio:​ probed
 +[    6.470000] eth0: Atheros AG71xx at 0xb9000000, irq 4
 +[    6.890000] eth0: AR8316 switch driver attached.
 +[    6.900000] ar8316: Using port 4 as switch port
 +[   ​12.440000] ag71xx ag71xx.0: eth0: connected to PHY at ag71xx-mdio.0:​00 [uid=004dd041,​ driver=Atheros AR8216/​AR8236/​AR8316]
 +[   ​12.450000] eth1: Atheros AG71xx at 0xba000000, irq 5
 +[   ​12.870000] ar8316: Using port 4 as PHY
 +[   ​18.940000] ag71xx ag71xx.1: eth1: connected to PHY at ag71xx-mdio.0:​04 [uid=004dd041,​ driver=Atheros AR8216/​AR8236/​AR8316]
 +load ATH 802.11 a/b/g Driver
 +insmod: ath_hal.ko: module not found
 +insmod: ath_pci.ko: module not found
 +insmod: ath_ahb.ko: module not found
 +load ATH9K 802.11n Driver
 +[   ​19.770000] Compat-wireless backport release: compat-wireless-2012-04-13-1-r31296
 +[   ​19.780000] Backport based on wireless-testing.git master-2012-04-13
 +insmod: compat_firmware_class.ko:​ module not found
 +[   ​19.890000] cfg80211: Calling CRDA to update world regulatory domain
 +[   ​20.120000] cfg80211: World regulatory domain updated:
 +[   ​20.130000] cfg80211: ​  ​(start_freq - end_freq @ bandwidth), (max_antenna_gain,​ max_eirp)
 +[   ​20.140000] cfg80211: ​  ​(2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
 +[   ​20.140000] cfg80211: ​  ​(2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
 +[   ​20.150000] cfg80211: ​  ​(2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
 +[   ​20.160000] cfg80211: ​  ​(5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
 +[   ​20.170000] cfg80211: ​  ​(5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
 +[   ​20.330000] ieee80211 phy0: Atheros AR9280 Rev:2 mem=0xb0000000,​ irq=48
 +[   ​20.340000] PCI: Enabling device 0000:​00:​01.0 (0000 -> 0002)
 +[   ​20.360000] ieee80211 phy1: Atheros AR9280 Rev:2 mem=0xb0010000,​ irq=49
 +[   ​20.370000] cfg80211: Calling CRDA for country: US
 +[   ​20.490000] cfg80211: Regulatory domain changed to country: US
 +[   ​20.490000] cfg80211: ​  ​(start_freq - end_freq @ bandwidth), (max_antenna_gain,​ max_eirp)
 +[   ​20.500000] cfg80211: ​  ​(2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)
 +[   ​20.510000] cfg80211: ​  ​(5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 1700 mBm)
 +[   ​20.520000] cfg80211: ​  ​(5250000 KHz - 5330000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
 +[   ​20.530000] cfg80211: ​  ​(5490000 KHz - 5600000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
 +[   ​20.530000] cfg80211: ​  ​(5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
 +[   ​20.540000] cfg80211: ​  ​(5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 3000 mBm)
 +[USB] checking...
 +umount: can't umount /mnt: No such file or directory
 +rmmod: usblp: No such file or directory
 +rmmod: printer: No such file or directory
 +rmmod: usb-storage:​ No such file or directory
 +rmmod: sr_mod: No such file or directory
 +rmmod: cdrom: No such file or directory
 +rmmod: sd_mod: No such file or directory
 +rmmod: scsi_wait_scan:​ No such file or directory
 +rmmod: scsi_mod: No such file or directory
 +rmmod: usb-ohci: No such file or directory
 +rmmod: ohci-hcd: No such file or directory
 +rmmod: uhci-hcd: No such file or directory
 +rmmod: usb-uhci: No such file or directory
 +rmmod: ehci-hcd: No such file or directory
 +rmmod: usbcore: No such file or directory
 +rmmod: xfs: No such file or directory
 +rmmod: msdos: No such file or directory
 +rmmod: vfat: No such file or directory
 +rmmod: fat: No such file or directory
 +rmmod: nls_utf8: No such file or directory
 +rmmod: nls_iso8859-2:​ No such file or directory
 +rmmod: nls_iso8859-1:​ No such file or directory
 +rmmod: nls_cp437: No such file or directory
 +rmmod: nls_cp932: No such file or directory
 +rmmod: nls_cp936: No such file or directory
 +rmmod: nls_cp950: No such file or directory
 +rmmod: nls_base: No such file or directory
 +rmmod: ext3: No such file or directory
 +rmmod: jbd: No such file or directory
 +rmmod: ext2: No such file or directory
 +rmmod: mbcache: No such file or directory
 +rmmod: fuse: No such file or directory
 +[   ​21.470000] eth0: link up (1000Mbps/​Full duplex)
 +ath9k deconfigure_single:​ phy0 ath0
 +ath9k deconfigure_single:​ phy1 ath1
 +CTL_set_cist_bridge_config:​ Got return code 0, -1
 +Couldn'​t find bridge with index 6
 +
 +Couldn'​t change bridge bridge_forward_delay
 +killall: ead: no process ki[   ​22.320000] eth0: link down
 +lled
 +[   ​22.350000] device eth0 entered promiscuous mode
 +/bin/sh: ead: not found
 +ifconfig: ioctl 0x8914 failed: Cannot assign requested address
 +ath9k deconfigure_single:​ phy0 ath0
 +ath9k deconfigure_single:​ phy1 ath1
 +[   ​22.410000] cfg80211: Calling CRDA to update world regulatory domain
 +[   ​22.440000] cfg80211: World regulatory domain updated:
 +[   ​22.450000] cfg80211: ​  ​(start_freq - end_freq @ bandwidth), (max_antenna_gain,​ max_eirp)
 +[   ​22.450000] cfg80211: ​  ​(2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
 +[   ​22.460000] cfg80211: ​  ​(2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
 +[   ​22.470000] cfg80211: ​  ​(2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
 +[   ​22.480000] cfg80211: ​  ​(5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
 +[   ​22.490000] cfg80211: ​  ​(5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
 +[   ​22.500000] cfg80211: Calling CRDA for country: US
 +[   ​22.510000] cfg80211: Regulatory domain changed to country: US
 +[   ​22.520000] cfg80211: ​  ​(start_freq - end_freq @ bandwidth), (max_antenna_gain,​ max_eirp)
 +[   ​22.530000] cfg80211: ​  ​(2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)
 +[   ​22.530000] cfg80211: ​  ​(5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 1700 mBm)
 +[   ​22.540000] cfg80211: ​  ​(5250000 KHz - 5330000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
 +[   ​22.550000] cfg80211: ​  ​(5490000 KHz - 5600000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
 +[   ​22.560000] cfg80211: ​  ​(5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
 +[   ​22.560000] cfg80211: ​  ​(5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 3000 mBm)
 +[   ​22.600000] eth0: link up (1000Mbps/​Full duplex)
 +[   ​22.600000] br0: port 1(eth0) entering forwarding state
 +[   ​22.610000] br0: port 1(eth0) entering forwarding state
 +ath9k configure_single:​ phy0 ath0
 +[   ​22.620000] ath: phy0: Unable to set channel
 +call mac80211autochannel for interface: ath0
 +freq:2412 qual:62 noise:-94
 +freq:2417 qual:45 noise:-94
 +freq:2422 qual:66 noise:-95
 +freq:2427 qual:66 noise:-95
 +freq:2432 qual:45 noise:-94
 +freq:2437 qual:93 noise:-94
 +freq:2442 qual:47 noise:-95
 +freq:2447 qual:65 noise:-95
 +freq:2452 qual:66 noise:-95
 +freq:2457 qual:46 noise:-95
 +freq:2462 qual:74 noise:-95
 +mac80211autochannel interface: ath0 frequency: 2437
 +setup ath0 10:​6F:​3F:​88:​58:​C2
 +Configuration file: /​tmp/​ath0_hostap.conf
 +[   ​25.960000] device ath0 entered promiscuous mode
 +Using interface ath0 with hwaddr 10:​6f:​3f:​88:​58:​c2 and ssid '​BUFFALO-8858C2_G'​
 +[   ​26.150000] br0: port 2(ath0) entering forwarding state
 +[   ​26.150000] br0: port 2(ath0) entering forwarding state
 +random: Only 13/20 bytes of strong random data available from /dev/random
 +random: Not enough entropy pool available for secure operations
 +WPA: Not enough entropy in random pool for secure operations - update keys later when the first station connects
 +command failed: Invalid argument (-22)
 +ath9k configure_single:​ phy1 ath1
 +[   ​26.210000] ath: phy1: Unable to set channel
 +call mac80211autochannel for interface: ath1
 +freq:5180 qual:92 noise:-95
 +freq:5200 qual:95 noise:-95
 +freq:5220 qual:95 noise:-95
 +freq:5240 qual:95 noise:-95
 +freq:5745 qual:89 noise:-92
 +freq:5765 qual:89 noise:-92
 +freq:5785 qual:91 noise:-93
 +freq:5805 qual:91 noise:-93
 +freq:5825 qual:91 noise:-93
 +mac80211autochannel interface: ath1 frequency: 5200
 +setup ath1 10:​6F:​3F:​88:​58:​C3
 +Configuration file: /​tmp/​ath1_hostap.conf
 +[   ​28.870000] device ath1 entered promiscuous mode
 +Using interface ath1 with hwaddr 10:​6f:​3f:​88:​58:​c3 and ssid '​BUFFALO-8858C2_A'​
 +[   ​29.050000] br0: port 3(ath1) entering forwarding state
 +[   ​29.060000] br0: port 3(ath1) entering forwarding state
 +random: Cannot read from /​dev/​random:​ Resource temporarily unavailable
 +random: Only 0/20 bytes of strong random data available from /dev/random
 +random: Not enough entropy pool available for secure operations
 +WPA: Not enough entropy in random pool for secure operations - update keys later when the first station connects
 +command failed: Invalid argument (-22)
 +killall: roaming_daemon:​ no process killed
 +rmmod: bonding: No such file or directory
 +cp: can't stat '/​tmp/​mycron.d/​*':​ No such file or directory
 +cp: can't stat '/​jffs/​mycron.d/​*':​ No such file or directory
 +cp: can't stat '/​mmc/​mycron.d/​*':​ No such file or directory
 +rmmod: n_hdlc: No such file or directory
 +[   ​29.980000] device eth1 entered promiscuous mode
 +[   ​30.050000] device eth1 left promiscuous mode
 +SIOCGIFFLAGS:​ No such device
 +SIOCGIFFLAGS:​ No such device
 +ath9k radio 1: phy0 ath0
 +ath9k radio 1: phy1 ath1
 +[   ​30.990000] etherip: Ethernet over IPv4 tunneling driver
 +The Milkfish Router Services
 +ERROR: Necessary service setting not found: milkfish_username - aborting.
 +rmmod: ipt_webstr: No such file or directory
 +rmmod: ipt_layer7: No such file or directory
 +rmmod: xt_layer7: No such file or directory
 +rmmod: ipt_ipp2p: No such file or directory
 +The Milkfish Router Services
 +Restoring SIP ddsubscriber database from NVRAM...
 +Empty.
 +The Milkfish Router Services
 +Restoring SIP ddaliases database from NVRAM...
 +Empty.
 +killall: proxywatchdog.sh:​ no process killed
 +rmmod: xt_physdev: No such file or directory
 +rmmod: xt_IMQ: No such file or directory
 +rmmod: ipt_IMQ: No such file or directory
 +rmmod: imq: No such file or directory
 +umount: can't umount /​mnt/​smbshare:​ No such file or directory
 +rmmod: cifs: No such file or directory
 +killall: schedulerb.sh:​ no process killed
 +killall: shatd: no process killed
 +killall: wdswatchdog.sh:​ no process killed
 +[   ​37.640000] br0: port 1(eth0) entering forwarding state
 +[   ​41.200000] br0: port 2(ath0) entering forwarding state
 +[   ​44.080000] br0: port 3(ath1) entering forwarding state
 +
 +DD-WRT v24-sp2 std (c) 2012 NewMedia-NET GmbH
 +Release: 11/04/12 (SVN revision: 20180)
 +
 +DD-WRT login: ​
 +</​code>​
 +
 +
 +===== Hardware =====
 +==== Info ====
 +| **[[wp>​Instruction set|Architecture]]:​** ​  | [[wp>​MIPS architecture|MIPS]] ​  |
 +| **Vendor:​** ​                               | [[wp>​Qualcomm Atheros]] ​        |
 +| **[[doc:​techref:​Bootloader]]:​** ​           | crippled [[doc:​techref:​bootloader:​uboot|U-Boot]] ​  |
 +| **[[doc:​hardware:​soc|System-On-Chip]]:​** ​  | AR7161 rev 2 (MIPS 24Kc V7.4)   |
 +| **[[doc:​hardware:​cpu|CPU]]/​Speed** ​        | 24Kc V7.4 680 MHz               |
 +| **Flash-Chip:​** ​ |     ? ​    |
 +| **Flash size:​** ​ | 32 MiB    |
 +| **RAM:​** ​        | 128 MiB   |
 +| **Wireless:​** ​   | Atheros AR9223 (2.4GHz) and AR9220 (5.0GHz) 802.11abgn ​  |
 +| **Ethernet:​** ​   | AR8316 ​           |
 +| **Internet:​** ​   | n/a               |
 +| **USB:​** ​        | Yes 1 x 2.0       |
 +| **Serial:​** ​     | [[#​Serial|Yes]] ​  |
 +| **JTAG:​** ​       | [[#​JTAG|Yes]] ​    |
 +
 +<​code>​
 +root@DD-WRT:​~#​ lspci -vv
 +00:00.0 Network controller: Atheros Communications Inc. AR922X Wireless Network Adapter (rev 01)
 +        Subsystem: Atheros Communications Inc.: Unknown device a097
 +        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr+ Stepping- SERR+ FastB2B+
 +        Status: Cap+ 66Mhz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
 +        Latency: 168, cache line size 08
 +        Interrupt: pin A routed to IRQ 48
 +        Region 0: Memory at 10000000 (32-bit, non-prefetchable) [size=64K]
 +        Capabilities:​ [44] Power Management version 2
 +                Flags: PMEClk- DSI- D1- D2- AuxCurrent=100mA PME(D0+,​D1-,​D2-,​D3hot+,​D3cold-)
 +                Status: D0 PME-Enable- DSel=0 DScale=0 PME-
 +
 +00:01.0 Network controller: Atheros Communications Inc. AR922X Wireless Network Adapter (rev 01)
 +        Subsystem: Atheros Communications Inc.: Unknown device a096
 +        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
 +        Status: Cap+ 66Mhz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
 +        Latency: 168, cache line size 08
 +        Interrupt: pin A routed to IRQ 49
 +        Region 0: Memory at 10010000 (32-bit, non-prefetchable) [size=64K]
 +        Capabilities:​ [44] Power Management version 2
 +                Flags: PMEClk- DSI- D1- D2- AuxCurrent=100mA PME(D0+,​D1-,​D2-,​D3hot+,​D3cold-)
 +                Status: D0 PME-Enable- DSel=0 DScale=0 PME-
 +</​code>​
 +
 +
 +==== Serial ====
 +Exactly the same to [[:​toh:​buffalo:​wzr-hp-ag300h|Buffalo WZR-HP-AG300H]]
 +
 +==== WPS ====
 +<​code>​
 +
 +# make sure to have correct packages installed
 +opkg update
 +opkg remove wpad-mini
 +opkg install wpad hostapd-utils
 +
 +# enable wireless device if it isn't
 +uci set wireless.@wifi-device[0].disabled=0
 +
 +# psk2 encryption is required
 +uci set wireless.@wifi-iface[0].encryption=psk2
 +uci set wireless.@wifi-iface[0].key=123456789
 +
 +# enable wps button
 +uci set wireless.@wifi-iface[0].wps_pushbutton=1
 +
 +# commit changes
 +uci commit wireless
 +
 +# reload wireless interfaces
 +wifi
 +
 +# activate wps from OpenWrt cli
 +hostapd_cli wps_pbc
 +
 +# check status
 +hostapd_cli wps_get_status
 +
 +</​code>​
 +
 +With trunk version r40742 button works out of the box. For older version or attaching custom actions to button see [[doc:​howto:​hardware.button|Attach functions to a push button]]
 +
 +
 +===== Tags =====
 +[[meta:​tags|How to add tags]]
 +
 +{{tag>​GigabitEthernet 2NIC 2WNIC 5Port USB 802.11abgn 802.11abgn_simultan ath9k 128RAM 32Flash MIPS MIPS32 24Kc atheros-ap96}}