OpenWrt Forum Archive

Topic: Buffalo WMR-300 installation proceedure

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

I just got a Buffalo WMR-300 and it's apparently supported (http://wiki.openwrt.org/toh/buffalo/wmr-300).
My question now is, how to install OpenWrt on it. The wiki doesn't say anything and I would like to avoid cracking the thing open for serial access... big_smile

Hi,

Did you find any way to flash your router?

I've just get a WMR-300 too and I am also very new to OpenWrt. I searched around and got that you can upload the firmware on such wiki page via serial port, which means you have to open the case, do some work for connecting some serial port to the board.

To upload the firmware via TFTP, you have to download some firmware with "tftp" in or at the end of its name.

Can someone confirm my knowledge?

(Last edited by FreeCodeVN on 18 Jan 2015, 23:54)

I'm also interested, the WMR-300 is very inexpensive and quite capable!
8 MB of Flash, 64 MB of RAM.... plus the signal strength is stronger than advertised!

The OpenWRT page, while providing the BIN and showing the bootlogs, does not mention much more

So, was it via

  • Serial?

  • TFTP?

  • the original Buffalo web page?

Do we know the

  • TFTP address?

  • Header size and bytes?

Edit: the firmware was very likely injected from serial (57600N8), so it seems we have enough info to flash it...
However the case does not open easily, so I'll keep that option last...

Other info gathered

- the header size is 0x74 (116 dec),
- the size of fw post-header is written at 0x40 in header (4 bytes, beware it's big-endian)

Tried to add a header to the new no-header fw (changing the size of fw inside the header), but the interface (despite no message) doesn't accept it.

That's all for today!

(Last edited by *++p on 22 Jan 2015, 14:23)

Thanks to @ldpinney's work, the router WMR-300 is openwrt-flashed!

The WIKI has been updated.

Edit: just tested the TFTP server with the ramdisk generated version: works great! No serial needed if flash works from LuCI directly. Doc updated again.

(Last edited by *++p on 25 Jan 2015, 17:43)

*++p wrote:

Thanks to @ldpinney's work, the router WMR-300 is openwrt-flashed!

The WIKI has been updated.

Edit: just tested the TFTP server with the ramdisk generated version: works great! No serial needed if flash works from LuCI directly. Doc updated again.

Awesome! Thanks! Could someone upload a ramdisk version? And once I am at the LuCI stage, do I flash the squashfs version or the ramdisk version?

Once in Luci use the squashfs version to flash openwrt for good!

*++p wrote:

Once in Luci use the squashfs version to flash openwrt for good!

Could you upload a ramdisk version? With the internet speed here I really don't want to download all sources...

Made a initramfs version, added LuCI (an old song) in it - then flash from http://192.168.1.1 should be straightforward.

Edit: problem with wikisend ... the part below is likely not working
The file is on "wikisend"
http://wikisend.com/download/786340/ope … uImage.bin

Size   3176354 bytes
md5sum 2797b343cb17e93fd26789de99e13e3b

The doc is updated (wait 1~2 seconds after plugging USB or you may miss the tftp window [doc said 2-3])
http://wiki.openwrt.org/toh/buffalo/wmr-300

Basically
- install a tftp server on your pc (debian: "apt-get install tftpd-hpa")
- copy the file in your tftp server directory (debian: /var/lib/tftpboot/ )
- rename it "firmware_WMR-300.ram" and ensure it's readable by everyone (chmod 644 file)
- connect the NIC of the PC to the router one, PC IPv4 is 192.168.11.168 / 24 (note the .11., not .1.) (then restart NIC, debian: ifdown ethX ; ifup ethX)
- plug USB to router, after 1~2 seconds press AOSS for ~5 seconds. Release and wait.

Nothing should "move" - LEDs are stuck, ON.

So, I'd advise you to set a verbose mode for your tftp server.
These are my options on Ubuntu (debian)

TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/var/lib/tftpboot"
TFTP_ADDRESS="0.0.0.0:69"
TFTP_OPTIONS="-4 -v --secure --create"

Note the "-v" for verbose.
So you can

tail -f /var/log/syslog

to see when/if the router requests the file, like

Feb 12 00:01:02 dearestlinux in.tftpd[14202]: RRQ from 192.168.11.1 filename firmware_WMR-300.ram

and maybe errors...

Ok, so... disclaimer:
I just added LuCI (+LuCI failsafe) to the modules, and generated the ramfs version.
But I'm just a member, like you. In other words that's not an official OpenWRT version...

Anyway, if that seems to go well, change your PC NIC network to 192.168.1.168 / 24.
And after you could load the initramfs version into the router, do http://192.168.1.1 and dear LuCI will immediately offer you to upload a firmware. Take the official
"openwrt-ramips-mt7620n-wmr-300-squashfs-sysupgrade.bin" from
https://downloads.openwrt.org/barrier_b … s/mt7620n/

Reboot after 5 minutes ... and do open the same URL -
Enjoy :-)

(Last edited by *++p on 24 Nov 2015, 15:57)

So I bought a Japanese version of WMR-300 (it converted to $19 USD so it was a GOOD deal).

However, I can't flash the US version of the firmware onto it. Digging a bit, it seems that the US firmware is 36 bytes larger. Furthermore, I found out that other routers by Buffalo are region locked.

Region-lock workarounds for other routers (http://www.dd-wrt.com/phpBB2/viewtopic.php?p=745189) were unsuccessful for me. I think the only recourse left for me is to tftp into it.

My questions:
1) My understanding is that factory-released firmwares are NOT the same as ramfs versions, and that one needs to make the latter in some way. Is this correct?
2) If (1) is correct, is there a ramfs-generated version of a US factory firmware? My strategy at this point is to flash to ANY US version through tftp, then use the web-based interface to get to the latest (2.0) firmware. Of course if someone has a ramfs v2.0 firmware that'd be great!
3) I don't really have the time to learn how to decrypt and compile my own ramfs version of the factory firmware, unless someone can point me to a clearly-written set of instructions. Life's been busy lately and this is my first foray into dd/OpenWRT so I'm a bit apprehensive
4) My other recourse is to keep screencaps of the English Router Configuration Pages on my tablet so that I can access them when I travel. So yeah I don't REALLY need to convert to English but...it'd be nice!

I've seen that site already. I'm not interested in flashing to OpenWRT though; I'm interested in applying the method to flash to a US factory firmware.

I'm asking whether I can just flash the encrypted Buffalo firmware directly through tftp, and if not whether someone has a ramfs-enabled factory firmware that I can flash thru tftp

Hi *++p,

Many thanks for your kind efforts in making this. It seems that the download link on Wikisend is no longer available. Would you please help to make a update? Thanks!

*++p wrote:

Made a initramfs version, added LuCI (an old song) in it - then flash from http://192.168.1.1 should be straightforward.

Edit: problem with wikisend ... the part below is likely not working
The file is on "wikisend"
http://wikisend.com/download/786340/ope … uImage.bin

Size   3176354 bytes
md5sum 2797b343cb17e93fd26789de99e13e3b

The doc is updated (wait 1~2 seconds after plugging USB or you may miss the tftp window [doc said 2-3])
http://wiki.openwrt.org/toh/buffalo/wmr-300

Basically
- install a tftp server on your pc (debian: "apt-get install tftpd-hpa")
- copy the file in your tftp server directory (debian: /var/lib/tftpboot/ )
- rename it "firmware_WMR-300.ram" and ensure it's readable by everyone (chmod 644 file)
- connect the NIC of the PC to the router one, PC IPv4 is 192.168.11.168 / 24 (note the .11., not .1.) (then restart NIC, debian: ifdown ethX ; ifup ethX)
- plug USB to router, after 1~2 seconds press AOSS for ~5 seconds. Release and wait.

Nothing should "move" - LEDs are stuck, ON.

So, I'd advise you to set a verbose mode for your tftp server.
These are my options on Ubuntu (debian)

TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/var/lib/tftpboot"
TFTP_ADDRESS="0.0.0.0:69"
TFTP_OPTIONS="-4 -v --secure --create"

Note the "-v" for verbose.
So you can

tail -f /var/log/syslog

to see when/if the router requests the file, like

Feb 12 00:01:02 dearestlinux in.tftpd[14202]: RRQ from 192.168.11.1 filename firmware_WMR-300.ram

and maybe errors...

Ok, so... disclaimer:
I just added LuCI (+LuCI failsafe) to the modules, and generated the ramfs version.
But I'm just a member, like you. In other words that's not an official OpenWRT version...

Anyway, if that seems to go well, change your PC NIC network to 192.168.1.168 / 24.
And after you could load the initramfs version into the router, do http://192.168.1.1 and dear LuCI will immediately offer you to upload a firmware. Take the official
"openwrt-ramips-mt7620n-wmr-300-squashfs-sysupgrade.bin" from
https://downloads.openwrt.org/barrier_b … s/mt7620n/

Reboot after 5 minutes ... and do open the same URL -
Enjoy :-)

Hello, thanks for your great work!
Could somebody reup the first firmware uimage, please?
Thanks

Hello, Good job

Can someone help me compile the initramfs version with luci for booting from tftp.

other question is that is it possible to write the right .bin file directly to flash using programmer, or it wont work?

Best Regards

The discussion might have continued from here.