Documenting Problems That Were Difficult To Find The Answer To

Upgrading OpenWRT to Barrier Breaker 14.07-rc2

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 root@

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:

opkg list-installed

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:

config switch
        option name 'switch0'
        option enable_vlan '1'
        option reset '1'

config switch_vlan
        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!

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

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...
Configuring libpolarssl.
Configuring libustream-polarssl.
Configuring px5g.
Configuring luci-ssl.

root@myrouter:~# opkg install luci-i18n-english
Installing luci-i18n-english (svn-r10471-1) to root...
Configuring luci-i18n-english.

root@myrouter:~# opkg install luci-lib-httpclient
Installing luci-lib-httpclient (svn-r10471-1) to root...
Configuring luci-lib-httpclient.

root@myrouter:~# opkg install luci-proto-ppp
Upgrading luci-proto-ppp on root from svn-r10467-1 to svn-r10471-1...
Configuring luci-proto-ppp.

root@myrouter:~# opkg install luci-app-firewall
Upgrading luci-app-firewall on root from svn-r10467-1 to svn-r10471-1...
Configuring luci-app-firewall.

root@myrouter:~# /etc/init.d/uhttpd enable
root@myrouter:~# reboot

First observation: the LuCI GUI has a completely different style. Not sure if I like it, yet; the layout is less compact than previously.

One response to “Upgrading OpenWRT to Barrier Breaker 14.07-rc2

  1. warnesj August 26, 2014 at 5:04 am

    I just did my upgrade from Attitude Adjustment (12.09) to Barrier Breaker (14.03-rc3) on a pair of TP-Link WDR-3600’s and I didn’t have to re-install LuCI. Perhaps the default packages chosen for the build included it for my particular router.

    If you wish, you can change to the LuCI theme you’re familiar with from Attitude Adjustment by reinstalling the luci-theme-openwrt package. It should configure itself automatically, but if it doesn’t navigate to System -> System and choose the “Language and Style” tab. From there you should be able to choose OpenWrt as the Design.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: