Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade APs to latest firmware #34

Closed
14 tasks done
mitar opened this issue Apr 11, 2015 · 7 comments
Closed
14 tasks done

Upgrade APs to latest firmware #34

mitar opened this issue Apr 11, 2015 · 7 comments

Comments

@mitar
Copy link
Member

mitar commented Apr 11, 2015

Currently we have a firmware from October 2014 April 2015.

  • FamilyRoom
  • W3J
  • E2J
  • W2C
  • W3A
  • Hackerspace
  • E3StudyRoom
  • GreatHall
  • E2D
  • W2H
  • C2P
  • C2C
  • W1E
  • C3K
@mitar
Copy link
Member Author

mitar commented Apr 12, 2015

Using the openwrt-builder Docker image, tag v329c551_bb_ar71xx (see documentation), I run a docker container with it, and exec into it:

docker exec -t -i builder-openwrt-v329c551-bb-ar71xx bash

Then to compile the images:

cd /builder/imagebuilder
su builder

make image PROFILE="UAPPRO" PACKAGES="wireless-tools wpad-mini kmod-netem kmod-pktgen ntpclient qos-scripts iperf horst wireless-info cronscripts iwinfo nodewatcher-agent nodewatcher-agent-mod-general nodewatcher-agent-mod-resources nodewatcher-agent-mod-interfaces nodewatcher-agent-mod-wireless nodewatcher-agent-mod-keys_ssh nodewatcher-agent-mod-clients uhttpd ip-full"

make image PROFILE="TLWR1043" PACKAGES="wireless-tools wpad-mini kmod-netem kmod-pktgen ntpclient qos-scripts iperf horst wireless-info cronscripts iwinfo nodewatcher-agent nodewatcher-agent-mod-general nodewatcher-agent-mod-resources nodewatcher-agent-mod-interfaces nodewatcher-agent-mod-wireless nodewatcher-agent-mod-keys_ssh nodewatcher-agent-mod-clients uhttpd ip-full"

cd bin/ar71xx

The files we want are:

  • openwrt-ar71xx-generic-ubnt-uap-pro-squashfs-factory.bin
  • openwrt-ar71xx-generic-ubnt-uap-pro-squashfs-sysupgrade.bin
  • openwrt-ar71xx-generic-tl-wr1043nd-v1-squashfs-factory.bin
  • openwrt-ar71xx-generic-tl-wr1043nd-v1-squashfs-sysupgrade.bin
  • openwrt-ar71xx-generic-tl-wr1043nd-v2-squashfs-factory.bin
  • openwrt-ar71xx-generic-tl-wr1043nd-v2-squashfs-sysupgrade.bin

You use factory image when you are installing OpenWrt for the first time. And sysupgrade when you are upgrading an existing OpenWrt installation.

From the Docker host:

docker cp builder-openwrt-v329c551-bb-ar71xx:/builder/imagebuilder/bin/ar71xx/openwrt-ar71xx-generic-ubnt-uap-pro-squashfs-factory.bin .
docker cp builder-openwrt-v329c551-bb-ar71xx:/builder/imagebuilder/bin/ar71xx/openwrt-ar71xx-generic-ubnt-uap-pro-squashfs-sysupgrade.bin .
docker cp builder-openwrt-v329c551-bb-ar71xx:/builder/imagebuilder/bin/ar71xx/openwrt-ar71xx-generic-tl-wr1043nd-v1-squashfs-factory.bin .
docker cp builder-openwrt-v329c551-bb-ar71xx:/builder/imagebuilder/bin/ar71xx/openwrt-ar71xx-generic-tl-wr1043nd-v1-squashfs-sysupgrade.bin .
docker cp builder-openwrt-v329c551-bb-ar71xx:/builder/imagebuilder/bin/ar71xx/openwrt-ar71xx-generic-tl-wr1043nd-v2-squashfs-factory.bin .
docker cp builder-openwrt-v329c551-bb-ar71xx:/builder/imagebuilder/bin/ar71xx/openwrt-ar71xx-generic-tl-wr1043nd-v2-squashfs-sysupgrade.bin .

These now are from March 2015.

Added them to this git repository.

When you are upgrading firmware, you have to make sure that you are using the right firmware. You can get device model of the AP you are logged on with:

cat /proc/cpuinfo | grep machine

You copy the firmware file over:

scp openwrt-ar71xx-generic<...>sysupgrade.bin root@<ip>:/tmp

And on the device you should first check that /etc/sysupgrade.conf contains:

/etc/config/system
/etc/config/dhcp
/etc/config/network
/etc/config/wireless
/etc/hotplug.d/iface/30-bitrates

And then upgrade:

cd /tmp
sysupgrade -v openwrt-ar71xx-generic<...>sysupgrade.bin

After the AP reboots, you should SSH into it and see in the banner (or /etc/version) the new firmware version string. You should run:

/etc/init.d/dnsmasq disable
/etc/init.d/firewall disable
reboot

And the AP is now upgraded.

@mitar
Copy link
Member Author

mitar commented Apr 12, 2015

I updated only the Hackerspace AP, but the issue with nodewatcher-agent crashing is not resolved. So I will wait for first that to be resolved before upgrading others.

@mitar
Copy link
Member Author

mitar commented Apr 12, 2015

I opened a ticket here.

@mitar
Copy link
Member Author

mitar commented Apr 13, 2015

Upgrade on UniFi worked without problems as well.

@mitar
Copy link
Member Author

mitar commented Apr 20, 2015

Upgraded firmware images in the repository to April 2015 versions. Proceeding upgrading all APs to it.

@mitar
Copy link
Member Author

mitar commented Apr 20, 2015

All APs upgraded.

@mitar mitar closed this as completed Apr 20, 2015
@mitar
Copy link
Member Author

mitar commented Apr 27, 2015

The upgrade brought up some issues described in #35. (Or maybe it was just that I broke the script.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant