Differences
This shows you the differences between two versions of the page.
|
toh:buffalo:wbmr-hp-g300h [2013/01/26 11:14] billou |
toh:buffalo:wbmr-hp-g300h [2013/06/11 23:06] (current) lorema |
||
|---|---|---|---|
| Line 2: | Line 2: | ||
| - | <html><b><u><font color=red>We need information for debrick this device with JTAG pineout, if you know how to repair full-brick, help us !</font></b></u></html> | + | <html><b><u><font color=red>We need information for debrick this device with JTAG pinout, if you know how to repair full-brick, help us !</font></b></u></html> |
| ===== Installation ===== | ===== Installation ===== | ||
| ->[[doc:howto:generic.flashing]] | ->[[doc:howto:generic.flashing]] | ||
| + | Only suitably encrypted images may be flashed from the web interface in the stock Buffalo firmware. It is therefore not possible to install OpenWRT in this way. There are two alternatives: | ||
| + | |||
| + | === Install from DD-WRT === | ||
| + | |||
| + | DD-WRT have a licensing agreement with Buffalo, and can therefore provide encrypted firmware images. So it is possible to proceed as follows: | ||
| + | |||
| + | * Flash the DD-WRT image from the web interface of the stock Buffalo firmware. (Be careful to choose the right image file, ie the one for an initial install, not the one for upgrading from a previous version of DD-WRT.) | ||
| + | |||
| + | * Get on-line. See DD-WRT documentation for this. | ||
| + | |||
| + | * telnet into DD-WRT, then download and flash the OpenWRT image file: | ||
| + | |||
| + | cd /tmp | ||
| + | wget http://downloads.openwrt.org/attitude_adjustment/12.09/lantiq/ar9/openwrt-lantiq-ar9-WBMR-squashfs.image | ||
| + | mtd -r write openwrt-lantiq-ar9-WBMR-squashfs.image linux | ||
| + | |||
| + | Can someone confirm that this works? | ||
| + | |||
| + | I found this to work but do **not** try to revert to DD-WRT using mtd or you may have to debrick (see https://forum.openwrt.org/viewtopic.php?id=43954). Note that getting back to DD-WRT may not be possible so be sure you want OpenWrt. | ||
| + | |||
| + | It does not appear to be possible to flash OpenWRT from the DD-WRT web interface. | ||
| + | |||
| + | === TFTP === | ||
| + | |||
| + | * Use TFTP to boot a ramdisk image of OpenWRT. See below for a detailed description of how to do this: [[toh:buffalo:wbmr-hp-g300h#how to recover from bricking]] . | ||
| + | |||
| + | * Set password to enable ssh. | ||
| + | |||
| + | * Download the OpenWRT image you wish to flash and copy it to the /tmp directory on the router using scp. | ||
| + | |||
| + | * Use sysupgrade to flash the image. | ||
| + | |||
| + | ===== Specific Configuration ===== | ||
| + | |||
| + | Although the WBMR-HP-G300H is supported in Attitude Adjustment 12.9 (the current stable release), the pre-compiled image is fairly basic (ADSL annex B only, no wifi, no LUCI, no LEDs etc.). | ||
| + | |||
| + | === Configure ADSL === | ||
| + | |||
| + | Precompiled image contains ADSL annex B only (for ISDN lines). For POTS (old-fashioned telephone line), you need annex A. Remove kmod-ltq-dsl-firmware-b-ar9 and install kmod-ltq-dsl-firmware-a-ar9 instead. | ||
| + | |||
| + | Add suitable configuration in /etc/network/config : | ||
| + | |||
| + | * PPPoA example: [[doc:uci:network#PPPoA ADSL internet connection]] | ||
| + | |||
| + | * PPPoE example: | ||
| + | <code> | ||
| + | config adsl-device 'adsl' | ||
| + | option fwannex 'a' | ||
| + | option annex 'a2p' | ||
| + | |||
| + | config atm-bridge 'atm' | ||
| + | option vpi '8' | ||
| + | option vci '35' | ||
| + | option encaps 'llc' | ||
| + | option payload 'bridged' | ||
| + | option unit '0' | ||
| + | |||
| + | config interface 'wan' | ||
| + | option ifname 'nas0' | ||
| + | option proto 'pppoe' | ||
| + | option username 'user@isp.net' | ||
| + | option password 'XXXXXXXXX' | ||
| + | </code> | ||
| + | |||
| + | === Configure WIFI === | ||
| + | |||
| + | For wifi install kmod-ath9k. | ||
| + | <code> | ||
| + | opkg install kmod-ath9k | ||
| + | </code> | ||
| + | |||
| + | === LUCI web interface === | ||
| + | |||
| + | Install the package luci. Then you need to enable and start uhttpd | ||
| + | |||
| + | <code> | ||
| + | opkg install luci | ||
| + | /etc/init.d/uhttpd enable | ||
| + | /etc/init.d/uhttpd start | ||
| + | </code> | ||
| + | |||
| + | === Configure switch === | ||
| + | |||
| + | See below: [[toh:buffalo:wbmr-hp-g300h#Wired stations cannot ping each other]] . | ||
| + | |||
| + | === LEDs === | ||
| + | |||
| + | LED configuration must be placed in /etc/config/system. Here is an example: | ||
| + | |||
| + | <code> | ||
| + | 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' | ||
| + | </code> | ||
| + | |||
| + | There are some better defaults for the LED's in Barrier Breaker (experimental!) trunk. | ||
| ===== Hardware ===== | ===== Hardware ===== | ||
| Line 31: | Line 183: | ||
| ==== Disassemble ==== | ==== Disassemble ==== | ||
| - | For disassembling the device you need a Torx T8 screwdriver that is _AT LEAST_ 1,6cm long (with some preasure Torx T9 works too). A normal torx bit won't fit because the screws are sunk very deep so you won't reach them. | + | For disassembling the device you need a Torx T8 screwdriver WITH HOLE that is AT LEAST 16mm long (with some preasure Torx T9 works too). A normal torx bit won't fit because the screws are sunk very deep so you won't reach them. |
| - | + | ||
| - | ==== Remaining Problems ==== | + | |
| - | + | ||
| - | <html><font color=red><del>JFFS2 builds won't work because of kernel panic at start up (no init found) as of r34578. See bug report #12596 and #12373.</del></font></html> | + | |
| - | + | ||
| - | <del>Some models of the WBMR-HP-G300H need the jffs2 builds with 128K blocks. Specially those with erase size "0x0020000". Release >= r34578 works fine. | + | |
| - | + | ||
| - | <html><font color=red>Warning: Since at least r34699 there is no support for this router anymore at all.</font></html> See [[https://dev.openwrt.org/ticket/12622|Ticket 12622]] The last one that worked for me was r34655. Maybe someone could figure it out what the highest working svn reslease version is.</del> | + | |
| - | + | ||
| - | It is now possible to compile a new trunk version with the following profile: | + | |
| - | + | ||
| - | **Target System (Lantiq GPON/XWAY/SVIP)** ---> **Subtarget (XWAY)** ---> **Target Profile (Buffalo WBMR-HP-G300H (A or B) - WBMR)** | + | |
| ==== Serial ==== | ==== Serial ==== | ||
| Line 55: | Line 195: | ||
| PIN 4: RX\\ | PIN 4: RX\\ | ||
| Use the following settings: ''115200 8N1''. | Use the following settings: ''115200 8N1''. | ||
| + | |||
| + | <html><font color=red>Caution: Be very careful with the serial interface! It is very fragile! Therefore never use the Vcc Pin. I destroyed my Buffalo by applying all four cables (works fine) and then unplug the main power supply. This will destroy the router electrically! So never ever use Vcc aka Pin1!!!</font></html> | ||
| ==== Flash ==== | ==== Flash ==== | ||
| Line 85: | Line 227: | ||
| mtd5: 00020000 00020000 "calibration" | mtd5: 00020000 00020000 "calibration" | ||
| </code> | </code> | ||
| + | |||
| + | ===== Remaining Problems ===== | ||
| + | |||
| + | <html><font color=red><del>JFFS2 builds won't work because of kernel panic at start up (no init found) as of r34578. See bug report #12596 and #12373.</del></font></html> | ||
| + | |||
| + | <del>Some models of the WBMR-HP-G300H need the jffs2 builds with 128K blocks. Specially those with erase size "0x0020000". Release >= r34578 works fine. | ||
| + | |||
| + | <html><font color=red>Warning: Since at least r34699 there is no support for this router anymore at all.</font></html> See [[https://dev.openwrt.org/ticket/12622|Ticket 12622]] The last one that worked for me was r34655. Maybe someone could figure it out what the highest working svn reslease version is.</del> | ||
| + | |||
| + | It is now possible to compile a new trunk version with the following profile: | ||
| + | |||
| + | **Target System (Lantiq GPON/XWAY/SVIP)** ---> **Subtarget (XWAY)** ---> **Target Profile (Buffalo WBMR-HP-G300H (A or B) - WBMR)** | ||
| + | |||
| + | ===== No DSL device (nas0) with precompiled openwrt 12.09 images ===== | ||
| + | <code> | ||
| + | /etc/init.d/br2684ctl enable | ||
| + | </code> | ||
| + | should fix it. | ||
| ===== Wired stations cannot ping each other ===== | ===== Wired stations cannot ping each other ===== | ||
| Line 104: | Line 264: | ||
| From **r34871** (more or less) this bug is fixed (VLAN is even possible!)Right know I'm using a r35047 build and it works fine. | From **r34871** (more or less) this bug is fixed (VLAN is even possible!)Right know I'm using a r35047 build and it works fine. | ||
| + | |||
| + | The following post https://forum.openwrt.org/viewtopic.php?pid=184969#p184969 reports that in Attitude Adjustment 12.9-rc1 the swconfig commands described above work, but the modification to /etc/config/network does not. The router starts fine, but the wired ports won't respond. Wifi still works if it is enabled. This is still the case in 12.9 final release. The solution to make the configuration permanent is not to change /etc/config/network but instead to add the swconfig commands to /etc/rc.local . | ||
| + | |||
| + | I found in Barrier Breaker **r36655** (experimental) the switch and VLAN appears setup by default in LUCI. But I believe it not to be working as attempts to setup a VLAN fail (you may have to debrick) and when issuing '/etc/init.d/network restart' from ssh/telnet the error 'Could not connect to switch' can be observed. | ||
| ===== How to recover from bricking ===== | ===== How to recover from bricking ===== | ||
| Line 119: | Line 283: | ||
| The OpenWRT version of the image is "Attitude Adjustment, r33838". No further packages have been added. | The OpenWRT version of the image is "Attitude Adjustment, r33838". No further packages have been added. | ||
| - | 2. Install and start a tftp server. For linux there is a package called tftpd-hpa and on MacOS X TftpServer Version 3.4.1 was used. | + | 2. Install and start a tftp server. For linux there is a package called <del>tftpd-hpa</del> and on MacOS X TftpServer Version 3.4.1 was used. |
| + | |||
| + | 2a. For Linux you **must not** use tftpd-hpa as it does not seem possible to debrick this way. Wireshark shows the server complaining 'must use absolute filename' and the transfer does not start. I found tftpd with the default configuration works fine. | ||
| 3. Copy openwrt-lantig-ar9-WBMR-uImage as firmware.ram into the root directory of your tftp server (e.g. /srv/tftp or /var/lib/tftp or your current directory depending on your software) | 3. Copy openwrt-lantig-ar9-WBMR-uImage as firmware.ram into the root directory of your tftp server (e.g. /srv/tftp or /var/lib/tftp or your current directory depending on your software) | ||
| 4. Setup your interface. It doesn't matter which port of the router you use. Set your IP to 192.168.11.2/24. It may be nessecary to set your gateway ip to 192.168.11.1 (confirmation needed) | 4. Setup your interface. It doesn't matter which port of the router you use. Set your IP to 192.168.11.2/24. It may be nessecary to set your gateway ip to 192.168.11.1 (confirmation needed) | ||
| + | |||
| + | 4a. Optional for Linux using tftpd. Confirm the server is available with: | ||
| + | |||
| + | <code> | ||
| + | nmap -p 69 192.168.11.2 | ||
| + | </code> | ||
| + | |||
| + | If running correctly you will see something like: | ||
| + | |||
| + | <code> | ||
| + | PORT STATE SERVICE | ||
| + | 69/tcp closed tftp | ||
| + | </code> | ||
| + | |||
| + | Otherwise try restarting inetd: | ||
| + | |||
| + | <code> | ||
| + | For Debian Wheezy | ||
| + | |||
| + | root@Hostname:~# /etc/init.d/openbsd-inetd restart | ||
| + | </code> | ||
| 5. Push the AOSS button and power on the router. Keep the AOSS button for about 5 seconds pushed. When the AOSS button is pushed the LED below power will also light up on start. You can verify with wireshark, if everything works as expected. There should be a tftp request from 192.168.11.1 to 192.168.11.2 for a file firmware.ram. Then This file will be transmitted and after that the ip 192.168.11.1 vanishs, because you see your computer asking to whom this ip belongs. | 5. Push the AOSS button and power on the router. Keep the AOSS button for about 5 seconds pushed. When the AOSS button is pushed the LED below power will also light up on start. You can verify with wireshark, if everything works as expected. There should be a tftp request from 192.168.11.1 to 192.168.11.2 for a file firmware.ram. Then This file will be transmitted and after that the ip 192.168.11.1 vanishs, because you see your computer asking to whom this ip belongs. | ||
| Line 154: | Line 341: | ||
| ===== Tags ===== | ===== Tags ===== | ||
| - | {{tag>GigabitEthernet 5Port 2PHY USB JTAG 64RAM 32Flash MIPS ADSL2plus}} | + | {{tag>GigabitEthernet 5Port 2PHY USB JTAG 64RAM 32Flash MIPS ADSL2+ lantiq ar9}} |
toh/buffalo/wbmr-hp-g300h.1359195280.txt.bz2 · Last modified: 2013/01/26 11:14 by billou
This text is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
