Differences

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

toh:buffalo:wzr-hp-ag300h [2012/07/28 07:38]
trickv Add a svn revision reference point for when support was added
toh:buffalo:wzr-hp-ag300h [2013/02/13 10:17] (current)
bittorf.bastian layout/cleanup howto tftp on linux
Line 1: Line 1:
======Buffalo WZR-HP-AG300H====== ======Buffalo WZR-HP-AG300H======
-FIXME Please see [[meta:template_device]] to update and finish this wiki.+
===== Supported Versions ===== ===== Supported Versions =====
Line 39: Line 39:
mtd8: 00010000 00001000 "user_property" mtd8: 00010000 00001000 "user_property"
mtd9: 01f90000 00001000 "firmware"''| mtd9: 01f90000 00001000 "firmware"''|
 +
 +
 +==== Installation using the OEM web interface ====
 +The easiest way to install OpenWrt is by using the firmware utility of the OEM web interface:
 +  - Connect to the WebInterface at [[http://192.168.11.1]] and go to //"Administration"// -> //"Firmware Upgrade"//
 +  - Upload the OpenWrt-Image you want to install, e.g. [[http://downloads.openwrt.org/attitude_adjustment/12.09-beta/ar71xx/generic/openwrt-ar71xx-generic-wzr-hp-ag300h-squashfs-factory.bin]]
 +  - Make your PC obtain a new IP address from OpenWrt (''dhclient eth0'' or ''pump -i eth0'' or ''ipconfig /renew'')
 +  - proceed with [[doc:howto:basic.config]] to complete installation
 +
==== OEM installation using the TFTP method ==== ==== OEM installation using the TFTP method ====
--> cf. [[[toh/buffalo/wzr-hp-g300h#oem.installation.using.the.tftp.method]] with more precise values (4 sec), etc. Merge both to obtain one really good procedure description ;-) 
-| {{:meta:icons:tango:dialog-information.png?nolink}} | **''<color red>NOTE #1:</color>''** The [[doc:techref: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 //[[wp>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.  \\ **''<color red>NOTE #2:</color>''** As the Windows stack can interfere with the process, see [[https://forum.openwrt.org/viewtopic.php?id=30468|forum post]], it is recommended to use some Linux to perform the upload!\\ **''<color red>FYI:</color>''** The OEM version of [[doc:techref:bootloader: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.  |+-> [[doc:howto:generic.flashing.tftp]]
-  - Download a suitable OpenWrt firmware image, e.g. [[http://downloads.openwrt.org/snapshots/trunk/ar71xx/openwrt-ar71xx-generic-wzr-hp-ag300h-squashfs-tftp.bin|Latest Trunk]] (**''NOTE:''** Name must contain //"tftp"//) +=== Specific values you need ===
-  - Install a TFTP client, when running some Linux distribution, do e.g. <code> +
-sudo apt-get update +
-sudo apt-get install tftp</code> +
-  - Connect the AG300H with some network switch and that switch with your host machine. Leave the AG300H powered off. +
-  - Prepare the interface of your PC:<code> +
-sudo ifconfig eth0:1 192.168.11.2 +
-sudo arp -s 192.168.11.1 02:aa:bb:cc:dd:20</code> +
-  - Now you must be quick. Type in<code>tftp -m binary 192.168.11.1 -c put openwrt-ar71xx-generic-wzr-hp-ag300h-squashfs-tftp.bin</code> and immediately after hitting enter +
-  - power on the AG300H! +
-  - If the red //"DIAG"//-LED begins to flash rapidly then the router has received the image and is currently booting the new firmware. +
-  - Follow the [[doc:howto:firstlogin|First Login]] steps to complete installation.+
 +| Bootloader tftp server IPv4 address | 192.168.11.1 |
 +| Bootloader MAC address (special) | 02:aa:bb:cc:dd:20 |
 +| Latest firmware tftp image | [[http://downloads.openwrt.org/attitude_adjustment/12.09-beta/ar71xx/generic/openwrt-ar71xx-generic-wzr-hp-ag300h-squashfs-tftp.bin]] (**''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 |
-==== Installation using the DD-WRT-Webinterface ==== +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]] 
-  * Connect to the WebInterface at [[http://192.168.11.1]] and go to //"Administration"// -> //"Firmware Upgrade"// + 
-  * Upload the OpenWrt-Image you want to install, e.g. [[http://downloads.openwrt.org/snapshots/trunk/ar71xx/openwrt-ar71xx-generic-wzr-hp-ag300h-squashfs-factory.bin|the latest factory trunk version]] +=== Flashing Notes === 
- * Make your PC obtain a new IP address from OpenWrt (''dhclient eth0'' or ''pump -i eth0'') +  * The red //"DIAG"//-LED begins to flash rapidly when the router has received the image and is currently booting the new firmware. 
-  * proceed with [[doc:howto:basic.config]] to complete installation+  * 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.  Start over and try again. 
 + 
 +=== TFTP advice, wrong region === 
 + 
 +There are apparently several regional versions of the OEM firmware. You may have to adjust the region in u-boot first. Below is example of a succesful region change and flash procedure. Source: [[https://forum.openwrt.org/viewtopic.php?pid=187714#p187714 | forum article]] 
 + 
 +This is how to do it from serial console: 
 + 
 +  - Hold the STRG+C pressed while poweron the Router. 
 +  - After prompt apears do: 
 +    * setenv accept_open_rt_fmt 1 
 +    * setenv region EU 
 +    * saveenv 
 +    * reset  
 +    * (it reboots now) 
 +  - After Reboot Power your Device down! 
 +  - Set Your LAN IP to 192.168.11.2 
 +  - In a linux terminal use these commands 
 +    * wget -O myfirmware.bin "http://downloads.openwrt.org/snapshots/trunk/ar71xx/openwrt-ar71xx-generic-wzr-hp-ag300h-squashfs-factory.bin" 
 +   * sudo ip neigh add 192.168.11.1 dev eth0 lladdr 02:aa:bb:cc:dd:20 nud permanent <enter> 
 +    * tftp 192.168.11.1 <enter> 
 +    * verbose <enter> 
 +    * bin <enter> 
 +    * <powerup your device and wait 5 seconds> 
 +    * put myfirmware.bin <enter> 
 +  - In Windows cmd put that Line: 
 +    * arp -s 192.168.11.1 02-AA-BB-CC-DD-20 
 +    * tftp -i 192.168.11.1 PUT wzrhpag300h-pro-v24sp2-19154.enc  **(don't hit enter, yet)** 
 +  - Power on the Device and 10 Seconds after that **hit enter in Windows CMD** to start the TFTP. (it tooks about ten Minutes to Complete the flash procedure) 
==== Upgrading OpenWrt ==== ==== Upgrading OpenWrt ====
Line 97: Line 131:
-> [[doc:howto:generic.debrick]] -> [[doc:howto:generic.debrick]]
- 
-====Network Port Assignments==== 
-|**port 0**| CPU | 
-|**port 1**| LAN 4| 
-|**port 2**| LAN 3| 
-|**port 3**| LAN 2| 
-|**port 4**| LAN 1| 
- 
-==== Buttons ==== 
--> [[doc:howto:hardware.button]] on how to use and configure the hardware buttons. 
- 
-^ Button ^ Event ^ 
-|Reset|reset/BTN_0 (pressed, released)| 
-|AOSS|wps/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| 
Line 162: Line 176:
==== Photos ==== ==== Photos ====
 +Correct serial pinout:
 +
 +{{:toh:buffalo:wzr_hp_ag300h_serial.jpg|}}
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 . 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 
==== Serial ==== ==== Serial ====
Line 177: Line 191:
  - Sends at 115200 8N1 as shipped   - Sends at 115200 8N1 as shipped
  - Voltage is 3.3 V   - Voltage is 3.3 V
 + 
 +====Network Port Assignments====
 +
 +|**port 0**| CPU |
 +|**port 1**| LAN 4|
 +|**port 2**| LAN 3|
 +|**port 3**| LAN 2|
 +|**port 4**| LAN 1|
 +
 +{{:toh:buffalo:wzr-hp-ag300h.png|}}
 +
 +==== Buttons ====
 +-> [[doc:howto:hardware.button]] on how to use and configure the hardware buttons.
 +
 +^ Button ^ Event ^
 +|Reset|reset/BTN_0 (pressed, released)|
 +|AOSS|wps/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|
===== Tags ===== ===== Tags =====

Back to top

toh/buffalo/wzr-hp-ag300h.1343453888.txt.bz2 · Last modified: 2012/07/28 07:38 by trickv