1

Topic: wbmr-hp-g300h brick

Hi,

I think I've done something very stupid and could need some help.
OpenWRT was running on this router (12.09) but I wanted to move to dd-wrt.
So I flashed the FW via mtd. Big mistake, as it doesn't boot any longer. Only orange power light. When I press AOSS before powering up a second led lights up.

I set up a TFTP server on my OSX machine (firewall disabled,192.168.11.2 on computer) and wanted to upload firmware.ram as described in the help pages. It didn't work. Nothing happened.
Wireshark showed no tftp requests from the router at all.

Could you please help me? How can I flash dd-wrt?
(OpenWRT didn't seem to have a webinterface so I want to return to the perfectly fine running DD-WRT)

Re: wbmr-hp-g300h brick

I think you have to "cut" some bytes from the dd-wrt image first and then use the modified file for flashing from OpenWrt to dd-wrt. But I haven't tried it, so just wait for someone who has or knows for sure. smile

About unbricking now... you may have to repeat the procedure if it fails. Just keep the AOSS button pressed until you see the tftp session in wireshark and then release it.

I would suggest to give OpenWrt another chance because it is much better than dd-wrt and you can do almost anything with it. You just have to spend some time reading. OpenWrt has a web interface, but you have to install it first. More info here...
http://wiki.openwrt.org/doc/howto/luci.essentials

3

Re: wbmr-hp-g300h brick

Thank you. Usually I prefer OpenWRT (I already have some experience with an older router). I was just shocked that there's no web interface. I should have gone to bed. It was late already.

There's lots of ARP, followed by MDNS, SSDP and some IPv6. But no tftp. No matter how long I press the button and how often I try.

Am I doomed? Please tell me no. sad

Re: wbmr-hp-g300h brick

No, you're not doomed. smile

If you like, you can use my own ramdisk image.

It is trunk release 35205 (kernel 3.7.2) and it was built in January, but the date in my linux box was not set correctly when I built it, so busybox reports "March 2013". Anyway, this doesn't matter as it is only for debricking purposes.

I have tested personally and it works.
Here it is...
http://www72.zippyshare.com/v/61386340/file.html

Are you sure you have setup the tftp server correctly?
If you run "telnet 192.168.11.2 69" from another pc or "telnet 127.0.0.1 69" from localhost, does it work?

5

Re: wbmr-hp-g300h brick

Thank you for your image! And your help, of course.

Interestingly Wireshark showed me "Who has 192.168.11.2? Tell 192.168.11.1". Like mentioned in some tutorials I set the MAC address from my router on my computer for 192.168.11.1.

To be on the safe side I currently use the tftp command from osx (put). I also see the command in Wireshark. But I can't locally connect to 127.0.0.1 69 via telnet: connection refused.

I can't try from a second computer since the computer is directly connected to the bricked router and isolated from my network. Also I made sure the OSX firewall is turned off.

Re: wbmr-hp-g300h brick

Well, I was never an osx user so can't help you much with that but I think if everything was OK, you would be able to connect to the tftp server from localhost without any problems with the telnet command.

I remember having a similar problem under windows with the firewall turned-off and the solution was to turn the firewall on and add a rule that allows inbound and outbound traffic for the specific app (tftp server). Don't know if this helps under osx...

7

Re: wbmr-hp-g300h brick

I guess I can't test the tftp connection from the host since I specified 192.168.11.1 as target..! Almost forgot about that. So this is probably not the problem.

Maybe I completely destroyed the bootloader of the router? What to do in such a case?

Re: wbmr-hp-g300h brick

I wouldn't worry about that, my (little) experience with the WBMR has showed me that is not that easy to destroy the boot loader.

Just connect it to a linux or windows machine and do the job there.

tftp-hpa under linux does the job for sure and without any problems.

If you don't have any linux machine available, try tftpd32 under windows with the firewall turned-off and if this doesn't work turn the firewall on and create the appropriate rules for the tftp server.

9

Re: wbmr-hp-g300h brick

I am familiar with linux and it's cli (Ubuntu, SuSE, Fedora..) and I can run a livecd on a computer at home. Even my mac I think.
So I will try this tomorrow. (it's late now)

Could you give me a brief explanation what to do? I have no experience with tftp-hpa.

Re: wbmr-hp-g300h brick

I use Arch Linux whenever I want to setup a linux host, but the arch installation is not what we call "user friendly", so if you're not familiar with it, there is no need to waste time by reading the arch wiki in order to setup a linux host just for tftp server.

After all, the "linux way" is always the same, no matter what distro you choose. smile

1. You install the tftp-hpa package.
2. You configure the service (not always needed) by editing the configuration file.
3. You start the service.

Tftp server has a root folder.
The firmware.ram file should be put there.

Once the tftpd service has started, you continue with the rest (power the router off - push AOSS button - turn the router on, check traffic with wireshark etc...)

11 (edited by wb 2013-05-05 00:14:00)

Re: wbmr-hp-g300h brick

Thank you, you're awesome wink

My router is up and running again! I installed Ubuntu, tftp worked perfectly. Set up an ftp server and downloaded the image on my router via ftp (wget). Then I successfully flashed openwrt.

Now I try to get the webinterface installed.

EDIT:

Please let me know if you ever come to Austria. I owe you all the beer you can drink. It's all up and running right now.
Some of it was quite some work to set up (I didn't know you have to manually install DSL drivers, set annex a via cli) but it works.
Thank you so much!

What still needs to be done:

-configuring transmissiond (working on it, but it's running)
-automatic wifi up and down at day and night (wrote a cronjob, hope it will work)
-LEDs (have to figure out how configuration works, doesn't bug me so much)

It's been a hard day's night, but now it finally works. Thank you again!

12 (edited by angelos 2013-05-05 08:29:07)

Re: wbmr-hp-g300h brick

Glad you made it.
And thanks for the invitation... smile

I don't know about transmissiond as I don't use it, but the led configuration must be put in /etc/config/system
You can configure it through cli, but it's a lot of writing so better use the web interface.

Here is mine, as an example...

( "wifi" and "security" leds blink both on wireless activity, "dsl" and "internet" leds blink on PPP/Internet activity, "power" led and "usb" led on the back are always on, and the blue "movie engine" led blinks every one second, without any particular reason... tongue )

config led
    option default '0'
    option name 'power'
    option sysfs 'soc:green:power'
    option trigger 'default-on'

config led
    option default '0'
    option name 'power2'
    option sysfs 'soc:red:power'
    option trigger 'none'

config led
    option default '0'
    option name 'wifi'
    option sysfs 'soc:green:wlan'
    option trigger 'phy0tpt'

config led
    option default '0'
    option name 'security'
    option sysfs 'soc:red:security'
    option trigger 'phy0tpt'

config led
    option default '0'
    option name 'dsl'
    option sysfs 'soc:green:adsl'
    option trigger 'netdev'
    option dev 'nas0'
    option mode 'link tx rx'

config led
    option default '0'
    option name 'online'
    option sysfs 'soc:green:internet'
    option trigger 'none'

config led
    option default '0'
    option name 'online2'
    option sysfs 'soc:red:internet'
    option trigger 'netdev'
    option dev 'nas0'
    option mode 'tx rx'

config led
    option default '0'
    option name 'usb'
    option sysfs 'soc:green:usb'
    option trigger 'default-on'

config led
    option default '0'
    option name 'movie'
    option sysfs 'soc:blue:movie'
    option trigger 'timer'
    option delayon '1000'
    option delayoff '1000'

13 (edited by benm 2013-05-05 11:07:03)

Re: wbmr-hp-g300h brick

I have also just installed OpenWRT on my WBMR-HP-G300H, and am delighted with the result. Getting everything set up did involve a lot of trawling through the forum though, and I am very grateful to all the people, including angelos, who have posted helpful information in the past.

I have now started to update the wiki, so as to document all the steps necessary for a fully working configuration in one place. I have not got very far yet, but will add more in the next few days. However, I do already have a question for wb. Am I right in thinking that when you flashed OpenWRT for the first time, before bricking the router trying to go back again, you used the web interface in DD-WRT? Did this work OK? I tried to do this several times. Each time when I rebooted after flashing I ended up back in DD-WRT. So I ended up going down the TFTP route. But it would be useful to know what I should have done for the wiki.

14 (edited by wb 2013-05-05 22:06:44)

Re: wbmr-hp-g300h brick

@angelos:
Your LED configuration works fine, of course. And who doesn't want some randomly flashing blue LED on his router?
Thank you again. Transmission and smbd is running fine. I also configured avahi-daemon so it appears as Airport in OSX's Finder smile
Wifi toggle at night needs some more work, but I found a script somewhere here, will give it a try later.

@benm:
I'm delighted too. I like this easy way to install opkgs directly into the flash memory. Over all OpenWRT seems very clean and elegant in every aspect (installation of software, configuration files).

But when I was running DD-WRT I got the same results as you. After a reboot there was no sign of OpenWRT.

What I did was logging in via telnet, cd /tmp, wget image (my router was online that time), and flash it using mtd (mtd -r write image.whatever linux if I remember correctly, please verify on your own).
Of course you have to be online with the router, but there's no need for setting up a tftp server and messing around too much. It's platform independent (I wasn't able to tftp on OSX) and quite straight forward.

Re: wbmr-hp-g300h brick

Aha! Thanks for the explanation. I'm pleased it wasn't just me.
I'll update the wiki. And of course if you or anyone else reading this has anything else to add please don't hesitate ...

16 (edited by wb 2013-05-06 10:10:53)

Re: wbmr-hp-g300h brick

You're welcome. If I can contribute something I will do so.

Edit:


I got Wifi Up/Down working with a cronjob:
30 00 * * * wifi down
00 09 * * * wifi up

But it seems like to get it actually work I had to restart cron afterwards. This should happen automatically if you press submit at the webinterface.