On my Buffalo WZR-HP-AG300H I thought it was time to upgrade from Attitude Adjustment to Barrier Breaker. (See below for upgrading to 14.07-rc3).
So I downloaded image openwrt-ar71xx-generic-wzr-hp-ag300h-squashfs-sysupgrade.bin and uploaded that to the router using the LuCI web interface on the router (System -> Backup/Flash Firmware -> Flash new firmware image).
Well the router rebooted. But there was a problem. No web server. No LuCI web configuration application. The latest OpenWRT firmware wiki page states that:
Prebuilt trunk images do not come with any web interface or GUI. You will need to be comfortable using a command line and remote shell to install one yourself: LuCI Essentials
Fortunately the Ethernet networking was still functioning. So I had to install LuCI. But it wasn’t so simple.
user@home# ssh firstname.lastname@example.org
BusyBox v1.22.1 (2014-07-21 23:44:00 CEST) built-in shell (ash)
Enter 'help' for a list of built-in commands.
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
BARRIER BREAKER (14.07-rc2, r41815)
* 1/2 oz Galliano Pour all ingredients into
* 4 oz cold Coffee an irish coffee mug filled
* 1 1/2 oz Dark Rum with crushed ice. Stir.
* 2 tsp. Creme de Cacao
root@myrouter:~# opkg update
Updated list of available packages in /var/opkg-lists/barrier_breaker.
root@myrouter:~# opkg install luci-ssl # should but doesn't get all we need
root@myrouter:~# opkg install luci-base
root@myrouter:~# opkg install luci-i18n-english
root@myrouter:~# opkg install luci-lib-httpclient # needed for CGI to work
root@myrouter:~# opkg install luci-lib-proto-ppp # needed for PPPoE to my ISP in LuCI
root@myrouter:~# opkg install luci-app-firewall # needed for port forwards in LuCI
root@myrouter:~# /etc/init.d/uhttpd enable # needed to auto-start webserver on boot
root@myrouter:~# reboot # restart router to take new packages
Now if I haven’t skipped any steps you should be able to use your web browser to configure the router.
If you want to know what packages are available from the command line type:
opkg update; opkg list
If you want to know what packages are installed on the router type:
It seems that, at the moment, Barrier Breaker comes with a limited set of packages on default install.
Ethernet Switch Disabled by Default
Ticket #11143 documents a very real problem when upgrading to Barrier Breaker. The 4-port Gigabit Ethernet switch on the back of the router will pass traffic between router and ports, but not between ports.
The fix is to edit your /etc/config/network file and ensure the switch and switch_vlan sections are as follows:
option name 'switch0'
option enable_vlan '1'
option reset '1'
option vlan '3'
option device 'switch0'
option ports '0 1 2 3 4'
You can set vlan to any number from 1 to 15 (not zero). If you specify the ports string wrong the switch will silently fail (I was mistakenly trying to set it to 0 1 2 3 4 5 but that was one too many digits and the switch simply didn’t configure.
What this does: is turn on VLAN functionality in the switch. However we specify each port to be untagged (i.e. normal) and all the ports share the same VLAN (in this case I chose number 3 but any number except zero would do).
You can confirm that the switch is named switch0 by ssh’ing into the router and typing:
root@myrouter:~# swconfig list
Found: switch0 - ag71xx-mdio.0
Warning: if you can only access your router via wired Ethernet (and not radio) then you may disable access to your router – and have to TFTP flash it all over from scratch. So back up your configuration first!
You can also see what port numbers to use in the “option ports” configuration setting by issuing the following command:
root@myrouter:~# swconfig dev switch0 show |grep Port
Port 0: MAC 10:6f:3f:a7:2d:54
Because there are ports 0, 1, 2, 3, 4 listed then the “options ports” configuration value should be set to “0 1 2 3 4”. Note that port zero will usually be the router itself (internal).
When you are confident enter the command /etc/init.d/network restart – disconnect from the router and re-connect (or just reboot the router).
The LuCI GUI has a helpful page on the switch that lets you see which switch ports have been connected to (and what link speeds):
Barrier Breaker LuCI Switch Page
Upgrading to Release Candidate 3
2014-08-17: I upgraded my router to rc3 by downloading the firmware image openwrt-ar71xx-generic-wzr-hp-ag300h-squashfs-sysupgrade.bin.
I had to install LuCI again:
root@myrouter:~# opkg install luci-ssl
Installing luci-ssl (svn-r10471-1) to root...
Installing libustream-polarssl (2014-03-25-fc0b5ec804ee43c532978dd04ab0509c34baefb0) to root...
Installing libpolarssl (1.3.7-1) to root...
Installing px5g (1) to root...
root@myrouter:~# opkg install luci-i18n-english
Installing luci-i18n-english (svn-r10471-1) to root...
root@myrouter:~# opkg install luci-lib-httpclient
Installing luci-lib-httpclient (svn-r10471-1) to root...
root@myrouter:~# opkg install luci-proto-ppp
Upgrading luci-proto-ppp on root from svn-r10467-1 to svn-r10471-1...
root@myrouter:~# opkg install luci-app-firewall
Upgrading luci-app-firewall on root from svn-r10467-1 to svn-r10471-1...
root@myrouter:~# /etc/init.d/uhttpd enable
First observation: the LuCI GUI has a completely different style. Not sure if I like it, yet; the layout is less compact than previously.