This translation is older than the original page and might be outdated. See what has changed.

Buffalo WZR-HP-AG300H

FIXME Please see template_device to update and finish this wiki.

Version/Model Launch Date S/N OpenWrt Version Supported Model Specific Notes
v1 2011-02 - ar71xx trunk -
CPU Ram Flash Network USB Serial JTag
Atheros AR7161@680MHz 128MiB 32MiB 4 x 1 Yes Yes Yes

NOTE: FCC情報は こちら

flash.layout has an example flash layout and all explanations required to understand this. Here the naked hex-values for the WZR-HP-AG300H:

root@DD-WRT:~# cat /proc/mtd dev: size erasesize name mtd0: 00050000 00010000 “RedBoot” mtd1: 01f80000 00010000 “linux” mtd2: 00b11000 00010000 “rootfs” mtd3: 01380000 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” root@OpenWrt:~# cat /proc/mtd dev: size erasesize name mtd0: 01000000 00001000 “spi0.0” mtd1: 01000000 00001000 “spi0.1” mtd2: 00040000 00001000 “u-boot” mtd3: 00010000 00001000 “u-boot-env” mtd4: 00010000 00001000 “art” mtd5: 00100000 00001000 “kernel” mtd6: 01e90000 00001000 “rootfs” mtd7: 01d2c000 00001000 “rootfs_data” mtd8: 00010000 00001000 “user_property” mtd9: 01f90000 00001000 “firmware”

→ cf. oem.installation.using.the.tftp.method with more precise values (4 sec), etc. Merge both to obtain one really good procedure description ;-)

NOTE #1: The bootloader of the WZR-HP-AG300H has a very short time frame in which it will accept a new firmware transfer over TFTP: it is about 4 sec long approximately 10-20 sec after powering it on
The usable time window gets even shorter when your OS starts negotiating the network connection before it allows you to send data over it. And your OS is going to do that every time, when the other device gets powered on!
So to be able to use the entire time span available you need to put a switch between the router and you host machine. In case you do not have a switch, in Windows try turning off Media Sensing and in Linux prefer a static network configuration over the NetworkManager. It is further recommended to make a static ARP entry for the router.
Users have found that 'smart' or managed switches sometimes will not allow flashing even with static arp entries sometimes- the simplest switch is the best to use.
Here is a link to the console output of the boot process, with all led's in view for reference http://www.youtube.com/watch?v=mAZNTKhpHig.
Finally, you must also set your TFTP timeout to something very short (1 second). The default (varies between TFTP clients) is most likely higher than the TFTP window so it will never work.
NOTE #2: As the Windows stack can interfere with the process, see forum post, it is recommended to use some Linux to perform the upload!
FYI: The OEM version of uboot on the AG300H always uses the IP address 192.168.11.1 and the MAC address 02:aa:bb:cc:dd:20 when listening for a new firmware. It also expects the sending IP address to be 192.168.11.2. Values belong to the bootloader and are independent of the ones used by OEM firmware or OpenWrt!
The computer used for the install must be connected to the LAN port on the router closest to the WAN port. On my device this is labeled LAN 4, and it corresponds to port 0 per the information below.
訳注) 日本版のAG300Hは標準状態では、OpenWrtファームウェアイメージをtftp経由でアップロードを行っても無視されますので、まずはじめにこちらを参照してブートローダの設定変更を行ってください。
  1. AG300H用のOpenWrtファームウェアイメージをダウンロードする。例: trunk最新版 (NOTE: ファームウェアイメージの名前に “tftp” が含まれているファイルをダウンロードしてください)
  2. TFTPクライアントをインストールします。aptが使用可能なLinuxを使用しているのであれば、以下のコマンドを実行してください。
    sudo apt-get update
    sudo apt-get install tftp
  3. あなたのPCとAG300Hのネットワークスイッチを接続します。AG300Hの電源はまだオフのままにしておいてください。
  4. PCのインタフェース設定の準備を行います:
    sudo ifconfig eth0:1 192.168.11.2
    sudo arp -s 192.168.11.1 02:aa:bb:cc:dd:20
  5. 迅速に
    tftp -m binary 192.168.11.1 -c put openwrt-ar71xx-generic-wzr-hp-ag300h-squashfs-tftp.bin

    とタイプし、エンターキーを押したあと...

  6. 素早くAG300Hの電源をオン!
  7. If the red “DIAG”-LED begins to flash rapidly then the router has received the image and is currently booting the new firmware.
  8. First Loginに従い、インストールステップを完了してください。
  • ブラウザでDD-WRTのWEBインタフェースである http://192.168.11.1 にアクセスし、“Administration”“Firmware Upgrade”に移動
  • インストールしたいOpenWrtイメージをアップロードする。例: 最新のtrunk版factoryイメージ
  • あなたのPCがOpenWrtルーターから新しいIPアドレスを取得できたことを確認する。 (dhclient eth0 or pump -i eth0)
  • checks_and_troubleshootingを実行し、インストールを完了します。

訳注) 本手法は日本で発売されているモデルでは使用できませんでしたので、ご注意ください。

Basic configuration After flashing, proceed with this.
Set up your Internet connection, configure wireless, configure USB port, etc.

If you want to trigger a LED as soon as an USB-Device is connected to your USB-Port, add this to /etc/config/system:

config 'led' option 'default' '0' option 'name' 'USB' option 'sysfs' 'buffalo:red:diag' option 'trigger' 'usbdev' option 'dev' '1-1'

This switches on the little red circle of the DIAG-LED everytime you connect something to your USB-Port.

  • It's very unlikely that you completely bricked the device, so first try the TFTP Method above. Note that a red diagnostics light blinking twice means your flash failed, but the device is ok and tftp will work (keep trying). If you still get nowhere, more drastic measures:

generic.debrick

port 0 CPU
port 1 LAN 4
port 2 LAN 3
port 3 LAN 2
port 4 LAN 1

ハードウェアボタンの使い方や設定方法はこちら→ hardware.button

ボタン イベント
Resetreset/BTN_0 (pressed, released)
AOSSwps/BTN_1 (pressed, released)
USB Eject BTN_2 (pressed, released)
Movie Engine (on) BTN_3 released, BTN_4 pressed
Movie Engine (off) BTN_3 pressed, BTN_4 released
Router (on) BTN_5 released, BTN_6 released
Router (off) BTN_5 pressed, BTN_6 released
Router (auto) BTN_5 released, BTN_6 pressed
Architecture: MIPS
Vendor: Qualcomm Atheros
bootloader: crippled U-Boot
System-On-Chip: AR7161 rev 2 (MIPS 24Kc V7.4)
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: Yes
JTAG: Yes
root@OpenWrt:~# lspci -vv
00:11.0 Network controller: Atheros Communications Inc. AR922X Wireless Network Adapter (rev 01)
	Subsystem: Atheros Communications Inc. Device a097
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 168, Cache Line Size: 32 bytes
	Interrupt: pin A routed to IRQ 72
	Region 0: Memory at 10000000 (32-bit, non-prefetchable) [size=64K]
	Capabilities: [44] <chain broken>
	Kernel driver in use: ath9k

00:12.0 Network controller: Atheros Communications Inc. AR922X Wireless Network Adapter (rev 01)
	Subsystem: Atheros Communications Inc. Device a096
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 168, Cache Line Size: 32 bytes
	Interrupt: pin A routed to IRQ 73
	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 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
	Kernel driver in use: ath9k

A collection of photos on how to open the case, of the PCB and the serial port can be found on https://picasaweb.google.com/111743287730172647732/BuffaloWZRHPAG300HHardwarePhotos .

PCB FIXME

port.serial general information about the serial port, serial port cable, etc.

このデバイスのシリアルポートの作成方法は以下の通りです:

  1. ケースを開ける
  2. シリアルポートの穴が“ムービーエンジン”スイッチ横にあることを確認する
  3. ピン位置は四角マークから vcc, gnd, rx, txの順番に配置されています
  4. vccは3.3 V
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: 2018/03/31 23:23
  • by bobafetthotmail