OpenWrt Forum Archive

Topic: Unable to install OpenWrt on a Buffalo WZR-HP-G300NH

The content of this topic has been archived on 30 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hello,

I tried to install OpenWrt backfire on my router without success.  I tried 10.03, 10.03.1-rc4 and 10.03.1-rc5.  I flash the firmware from DD-WRT with ssh like it's written on the wiki page (http://wiki.openwrt.org/toh/buffalo/wzr-hp-g300h?s[]=table&s[]=hardware).  I also tried to push the firmware with TFTP.

The router just don't work with OpenWrt firmware.  The LED diagnostic stay red for some seconds, then the LED router flash for some seconds and then stay stable.  The power LED is on from beginning.

I'm not able to get ip from DHCP and the router is not working more when I assign a static ip in the 192.168.1.x range.

I'm able to push DD-WRT firmware with TFTP to "unbrick" the router.

Any idea what's wrong?

Thank you!

(Last edited by ohmer on 20 Jul 2011, 18:06)

I succeed to flash firmware for G301NH from trunk (snapshot).  The firmware for G300NH from trunk is not working more with my router.

My G300NH revision is "A2 A0".

I have found that the newer Buffalo routers are very sensitive to the TFTP process and ended up using Ubuntu 10.10 within VirtualBox to do any of the TFTP flashing. There are instructions online for this and I have recently flashed OpenWRT onto 4 WZR-HP-G300NH's (Backfire 10.03.1-RC5) and 2 WZR-HP-AG300H's (trunk). Here are the steps which I have used:

1. boot with ubunto live cd,
2. sudo apt-get update
3. sudo apt-get install tftp-hpa

4. sudo /etc/init.d/networking stop
5. sudo ifconfig eth0 192.168.11.2
6. sudo ifconfig eth0 netmask 255.255.255.0

7. sudo arp -s 192.168.11.1 [MAC Address without :'s]

8. tftp 192.168.11.1
9. tftp>binary
10. tftp>rexmt 1
11. tftp>timeout 60
12. tftp>connect 192.168.11.1
13. tftp>put openwrt-10.03.1-rc5-ar71xx-wzr-hp-g300nh-squashfs-tftp.bin


14. connect your router and power on (as quickly as possible)

I had no problem to flash with tftp after I added arp entry for 02:aa:bb:cc:dd:1a.   (I first tried with real mac but it was hit & miss).  But this is not the problem I have right now.  After flashing, firmware for G300NH is not responding but firmware for G301NH seem to work.

(Last edited by ohmer on 20 Jul 2011, 19:19)

Mmmm my router is "working", but i'm unable to use luci.  The uhttpd deamon is not starting.  "No sockets bound, unable to continue".

I have ONLY had to use the 02AABBCCDD20 MAC address wih the WZR-HP-AG300H router, on all the WZR-HP-G300NH's  I have used their actual MAC Address which is stamped on the side of the router. Using the Backfire 10.03.1-RC5 I had not issues using LuCI out of the box, but with the Trunk editions, LuCI and SSH are NOT enabled out of the box. You will need to connect the router's WAN port to the internet and then do the following using a telnet session (or if you have already set the password using PASSWD on a telnet session, you will have to use SSH as telnet will be disabled).

LuCI installation Do:

1) opkg update

then for LuCI without HTTPS support

2) opkg install luci

and for LuCI with HTTPS support

3) opkg install luci-ssl

then continue with

4) /etc/init.d/uhttpd enable
5) /etc/init.d/uhttpd start
6) netstat -a
7) iptables -I INPUT -j ACCEPT -i eth0.1 -p tcp --dport 80
8) iptables -I INPUT -j ACCEPT -i eth0.1 -p tcp --dport 443

You should now be able to connect with a webbrowser.

Thank you chmcwill.  It made uhttp to start.

i still have a problem, i'm redirected to 192.168.1.1/cgi-bin/luci but that display a white page.

Yes, that is common. Depending on which OS you are running, you might need to clear the ARP tables to resolve that as I have had to do in the past when flashing multiple routers together. Under Windows 7, you will need to run a Command Prompt as administrator and do an ARP -d to clear. Also, might want to disconnect from the router, making sure that you don't have any other wired or wireless connections active before connecting back to the router.

Gents,

I am having trouble flashing my WZR-HP-G300NH using the procedure described.
I used the following image: http://downloads.openwrt.org/backfire/1 … s-tftp.bin
And did the TFTP  upload procedure:
tftp> binary
tftp> verbose
Verbose mode on.
tftp> rexmt 1
tftp> timeout 60
tftp> put openwrt-ar71xx-wzr-hp-g300nh-squashfs-tftp.bin
putting openwrt-ar71xx-wzr-hp-g300nh-squashfs-tftp.bin to 192.168.11.1:openwrt-ar71xx-wzr-hp-g300nh-squashfs-tftp.bin [octet]
Sent 3407904 bytes in 29.6 seconds [919589 bit/s]

After the upload, DIAG stays on for some time, then router starts to blink, then stos blinking.

My router seems to be blocked :(
Using the same procedure, i am  able to upload the firmwares provided by buffalo.

Am i missing any step? or using a wrong file?

Thanks,

Luiz

Did you do the following before the TFTP?

4. sudo /etc/init.d/networking stop
5. sudo ifconfig eth0 192.168.11.2
6. sudo ifconfig eth0 netmask 255.255.255.0
7. sudo arp -s 192.168.11.1 [MAC Address without :'s]

Yes, I did.
sent DATA <block=9472, 512 bytes>
received ACK <block=9472>
sent DATA <block=9473, 0 bytes>
received ACK <block=9473>
Sent 4849664 bytes in 24.2 seconds [1602282 bit/s]

TFTP actually seems to be working fine.
The problem is that looks like my router seems to be accepting only buffalo provided firmwares.
I am able to load user friendly and professional firmwares via TFTP but not a custom openwrt.

The router is for US and should not have the JP problem, right?
Looks like the buffalo firmware has Redboot as bootloader.
Hardware is A2 A0.

Thanks,

Luiz Oliveira

Hello, All

I connected a serial cable to the router.
Actually, the router boots but does not enable the ethernet ports.
The problem is reported here: https://forum.openwrt.org/viewtopic.php?pid=126796
This is the error i get:
"Realtek RTL8366S ethernet switch driver version 0.2.2
rtl8366s rtl8366s: using GPIO pins 19 (SDA) and 20 (SCK)
rtl8366s rtl8366s: unknown chip id (0000)
rtl8366s rtl8366s: chip detection failed, err=-19
eth0: Atheros AG71xx at 0xb9000000, irq 4
eth0: unable to find MII bus on device 'rtl8366s'
eth0: Atheros AG71xx at 0xba000000, irq 5
eth0: unable to find MII bus on device 'rtl8366s'
"

By the way, this is already fixed in the SVN Trunk for Openwrt (https://dev.openwrt.org/changeset/27785)

Regards,

Luiz de Barros

currently running a Buffalo WZR-HP-G300NH  A2 A0
Firmware Version DD-WRT v24SP2-EU-US (08/19/10) std - build 14998

I just bought from the USA on the back it has A2 A0 printed on the back I think it may be an updated model for new buyers now.
heads up to to anyone who wants to try Openwrt it bricks this router at the moment, hope you guys can fix it , would love to try openwrt.


Here's the output from dmesg | grep rtl_chip I think it's different on this updated model.

login as: root
DD-WRT v24-sp2 std (c) 2010 NewMedia-NET GmbH
Release: 08/19/10 (SVN revision: 14998)
root@192.168.1.2's password:
==========================================================

____ ___ __ ______ _____ ____ _ _
| _ \| _ \ \ \ / / _ \_ _| __ _|___ \| || |
|| | || ||____\ \ /\ / /| |_) || | \ \ / / __) | || |_
||_| ||_||_____\ V V / | _ < | | \ V / / __/|__ _|
|___/|___/ \_/\_/ |_| \_\|_| \_/ |_____| |_|

DD-WRT v24-sp2
http://www.dd-wrt.com

==========================================================


BusyBox v1.13.4 (2010-08-19 15:28:04 CEST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

root@DD-WRT:~# dmesg | grep rtl_chip
<0>rtl_chip_type_select:RTL8366RB
<0>rtl_chip_type_select:RTL8366RB

(Last edited by bcmalloy on 1 Aug 2011, 12:17)

jow wrote:

This should be fixed in the upcoming RC6, could you try this image please?
http://openwrt.linux-appliance.net/ar71 … s-tftp.bin

It will autodetect the rtl8366s/rb switch.

Just tested this, not working  I just get a solid red light with no activity and no ip address.

I installed openwrt-ar71xx-generic-wzr-hp-g301nh-squashfs-tftp.bin a couple of days ago and got it working http://downloads.openwrt.org/snapshots/ … s-tftp.bin
but the file appears to have gone, I have uploaded for you here http://www.mediafire.com/?p41tesaa95ogki8

I had to manually install the luci interface but it's the best firmware I've ever used despite the 40mhz option in the wireless is a little buggy,
it's makes ddwrt look not so good and my router work beautify.

I'll happily test any other images, an image that works OTB would be great, openddwrt is the best router firmware I've ever seen.

(Last edited by bcmalloy on 3 Aug 2011, 05:56)

Ok, looks like I just ran into this monster... I also have the A2 A0 version, and looks like I just bricked mine...

I followed the instructions written here:

http://wiki.openwrt.org/toh/buffalo/wzr … to.openwrt

But used the rc5 image instead...

Mine never seemed to reboot and Putty just stopped responding. I waited about an hour, then tried rebooting it, and all it does is the red Diag light comes on for a few seconds, then the green Router light flashes for about 5 seconds, then goes out, and I'm left with just the power light on (and the blue Off light at the bottom), and don't get an IP from a wired connection.

I am not that well versed in hacking these things, but am fully capable of following instructions as long as they are right... would some kind soul please point me to correct instructions for unbricking this thing until rc6 comes out?

Thanks

Charles

(Last edited by tanstaafl on 6 Aug 2011, 17:21)

WZR-HP-G300NH  A2 A0 Openwrt installation guide for windows users Easiest way

UPDATE: Got cracking on OPENWRT and compiled a version (OpenWrt Firmware Attitude Adjustment (r28043) ) for this router with the web interface built in follow the instructions in file.
http://www.mediafire.com/?niact3uvd3b0y25
(see guide below https://forum.openwrt.org/viewtopic.php … 2#p140742)  and goto 192.168.1.1 to login and configure router and save yourself the headache.

Note:ALL credit goes to the openwrt team

-----------------------------------------------------------------------------------------------------------------------------------------

The only way I could get it to work was tftp this image to router but note you have to manually install the web interface and can only use the command line after you flash it.
http://158.108.8.148/openwrt/snapshots/ … s-tftp.bin

1.Once you flash the image with tftp I use pumpKIN http://kin.klever.net/pumpkin
because it's more reliable, after about 4 min telnet to router I use
putty http://www.chiark.greenend.org.uk/~sgtatham/putty/
then change the password with the command
passwd

2.now shh into router after setting your IP address back to obtain automatically and plug a network cable into the WAN port that is internet enabled, go to point 3 if you need to get a ppoe connection going first
go to point 2.5

2.5 You can edit the config file easily on the router and get your ppoe connection if your using a bridged modem by using WinSCP  http://winscp.net/eng/index.php
just connect to the router with winSCP and ensure file protocol "SCP" is selected, navigate to
/ect/config/

right Click on "network" and choose edit
you will see a line like this edit the  username and password lines and ensure all other lines are the same then reboot your router

config 'interface' 'wan'
    option 'ifname' 'eth1'
    option 'proto' 'pppoe'
    option 'username' 'myusername'
    option 'password' 'mypassword'

Now you internet should be up you will be able to install luci (the web interface)


3.ssh into router L:root and the password you chose in point 1

4.Enter these commands to install the web interface.

opkg update
opkg install luci-ssl
/etc/init.d/uhttpd enable
/etc/init.d/uhttpd start
netstat -a
iptables -I INPUT -j ACCEPT -i eth0.1 -p tcp --dport 80
iptables -I INPUT -j ACCEPT -i eth0.1 -p tcp --dport 443
/etc/init.d/uhttpd enable

Ok now the web interface is installed and you can simply login at 192.168.1.1 in your web browser.

Works great on my WZR-HP-G300NH  A2 A0

Then in the web browser you probably want to go into the software tab and click update.
then choose luci upnp to install upnp for windows then go to services tab choose unpnp and click enable
then choose luci qos   to get Quality of service running go to network tab and choose qos to set it up.

Now your router has the features common on most commercial routers, but is very stable. Mine has been up for a week no problems

(Last edited by bcmalloy on 20 Aug 2011, 13:53)

WZR-HP-G300NH TFTP flashing and recovery guide for windows 7

Before flashing any firmware write down your routers MAC address!! looks like this 4C-E6-76-3F-2F-CA It should be written on the box mine is just a set of numbers like this 4CE6763F2FCA with no spaces

1.Download pumpKIN http://kin.klever.net/pumpkin save you wasting time with tftp and the  command line

2.Unplug all the ethernet cable and the power cable and connect the computer directly to the router(still leave it off)

3.Go to Control Panel\Network and Internet\Network Connections in win7
right click on local area connection and choose "properties"
choose "internet protocol version 4"
click properties then click "use the following ip address" 
Enter these values:
IP address 192.168.11.2, subnet mask 255.255.255.0, default gateway192.168.11.1

4.then turn off firewall go to Control Panel\Network and Internet\Network and Sharing Centre click on windows firewall then
choose "turn windows firewall on or off" then click on every "turn windows firewall off" box.

5.Open a Windows command prompt as Administrator. type cmd in the search box from Start menu, then press Ctrl+Shift+Enter. You will be prompted with the User Account Control dialogue choose yes. OR just right click on CMD and choose run as administrator.
Type the command
route print
to get a list of your NIC(s). Write down the interface number for the LAN card, in my case, it's 11, you may need to scroll up. mine is the first one "Realtek PCIe GBE Family Controller"

6.Now type the command below to get the ARP binding(thanks ermax at DD-WRT forum):
Replacing the number 11 with the interface number and 00-1d-12-34-56-78 with the router's MAC address.

netsh interface ipv4 add neighbors 11 192.168.11.1 4C-E6-76-3F-2F-CA

Eg: if your adaptor was no 10 and your mac address is 00:00:00:00:00 it would be
netsh interface ipv4 add neighbours 10 192.168.11.1 00-00-00-00-00-00

7.Run pumpKIN utility choose "Put File"

8.Put 192.168.11.1 as remote host, local File is the firmware file you want to flash openwrt or (usually Buffalo "friendly firmware" for a recovery).

9.Click "ok" and quickly plug the power cable into the back to turn on the router. (within a few seconds)

10.keep repeating point 9. until you see the file upload usually takes me three attempts.

11. leave router with power plugged in for at least 6 min for friendly firmware to install, it can take a while. the open ddwrt firmware only takes about 4 min.
When the upgrade is done.

12 repeat point 3 but choose obtain ip address automatically and ensure "obtain dns address automatically" is enabled in your adaptor so the router can be seen once the new firmware is active Navigate to http://192.168.11.1(for stock firmware) to configure your router. OR for openwrt http://192.168.1.1 see above post  for basic config

13.Turn your firewall back on

(Last edited by bcmalloy on 23 Aug 2011, 06:52)

#bcmalloy

I seem to be having the same issue with the WZR-HP-G300NH when trying to change to open wrt. My router does not say A2 A0 though, it reads A2 F0B instead. I have tried to load both the generic wzr-hp... version of open wrt and the  one you so kindly supplied at http://www.mediafire.com/?p41tesaa95ogki8.

I am able to get the firmware to write to the router ( i am using a linksys tftp client - linksys tftp 1.2.1) but once the new firmware is written to the router I am unable to access it through telnet, ssh or through my web browser. I am able to use the same tftp client to write the Buffalo DD-WRT firmware back to the router and have everything work out.

When I do get the open wrt firmware written to the flash memory the router restarts itself, then gives me a red diag led every two seconds for a while, then it turns solid red for a while, then the router led flashes for a while, then finally the router light stays solid.

And ideas?

Thanks,
Rambot

The only tftp program I found that worked properly in windows 7 ( of the couple I tried was) was http://kin.klever.net/pumpkin thats why I link it. it's free.

I tried the standard one you have originally and it never would finish writing the file to the router.

(Last edited by bcmalloy on 14 Aug 2011, 13:56)

@bcmalloy

Thanks so much! You saved my bacon - er, router...

WZR-HP-G300NH TFTP flashing and recovery guide for Mac Osx 10.6

1.Copy the firmware you want to put on your router to your home directory (the directory with the folders "desktop" "documents" and "downloads" folders
rename it to firmware.bin usually the Buffalo "friendly firmware" is used for a recovery.

2.Connect the computer directly to the router with the power lead not plugged in.
3.go to  System Preferences and choose network and then Ethernet
4.change "configure IP4v" to manually

5.Enter these values in the boxes
static IP to 192.168.11.2
subnetnet mask 255.255.255.0
DNS server 192.168.11.1

6.Get your router mac address (it should be written on the back) but may look like this 4ce6753f2fca
7.Open a terminal and type

sudo arp -s 192.168.11.1 (router Mac address) ifscope en0

for example:
sudo arp -s 192.168.11.1 4C:E6:75:3F:2F:CA ifscope en0

You may have to plug in your router and power it up wait 3 seconds just before you enter this line for it to work.

Then unplug the power again

8.Then type in a terminal window
tftp 192.168.11.1
tftp> binary
tftp> put firmware.bin

Ok it should say something like no route to host push the up arrow key so the line appears again

9.Plug your power cable back in and push enter
keep repeating the command put firmware.bin by pushing up arrow and enter as fast as you can until it sends file to router.
if it does not work after doing this for about 10 sec unplug router and plug it in again and keep pushing up arrow and enter until it does.
you will know when it says something like sent 570456 bytes that it has worked.

note: keep pushing up arrow and enter until put firmware.bin command works, if you get a timed out error after a while in tftp close the terminal and start at point 8

leave router with power plugged in for at least 6 min for friendly firmware to install, it can take a while. the open ddwrt firmware only takes about 4 min.

10.Go to  System Preferences and choose network and then Ethernet
change "configure IP4v" to Using DHCP and delete value in DNS server box and hit apply.
Now you Ethernet will work normally.

11. When the upgrade is done go to http://192.168.11.1 for friendly firmware and http://192.168.1.1 for openwrt

(Last edited by bcmalloy on 24 Aug 2011, 09:58)

bcmalloy wrote:

WZR-HP-G300NH TFTP flashing and recovery guide for Mac Osx 10.6

8.Then type in a terminal window
tftp 192.168.11.1
tftp> binary
tftp> put firmware.bin

I would suggest adding

tftp> rexmt 1

This will dramatically increase the chance to transmit the first tftp packet within the (default) 4 second window.

And optionally,

tftp> timeout 60

This will give you more margin in everything.

Regards,

This is what I tested and worked fine, I have a strict rule of only posting exactly what I have actually done myself.
Thanks for the info.

The discussion might have continued from here.