Skip to content

Instantly share code, notes, and snippets.

@marbu
Last active February 28, 2018 22:25
Show Gist options
  • Save marbu/3237b5cda8f07061d6ee71108fc00bd9 to your computer and use it in GitHub Desktop.
Save marbu/3237b5cda8f07061d6ee71108fc00bd9 to your computer and use it in GitHub Desktop.
openwrt-upgrade

Upgrading old OpenWrt system on my backup router

Quick status update on OpenWrt

Status of my router

My device: TL-WR741ND v4.25, Atheros AR9330 rev 1 (via /proc/cpuinfo)

Old OpenWrt version: Barrier Breaker, 2014-06-15 (bleeding edge), firstboot setup done, next step "init setup" hasn't been started.

Command opkg list-changed-conffiles confirms this:

/etc/shadow
/etc/config/system
/etc/config/dhcp
/etc/dropbear/* keys

New version

Suggested version:

See the release:

Upgrade path

Based on:

we need to:

  • use ar71xx directory, images with tl-wr741nd-v4 in it's name
  • use -sysupgrade.bin file(s)
  • download the file into /tmp/ on the router (which is in ram)

So:

$ wget https://downloads.lede-project.org/releases/17.01.4/targets/ar71xx/generic/lede-17.01.4-ar71xx-generic-tl-wr741nd-v4-squashfs-sysupgrade.bin
$ cat lede-17.01.4-ar71xx-generic-tl-wr741nd-v4-squashfs-sysupgrade.bin.sha256 
286a7fbad37d2b2c509261d03a22762dfbf373eee9a7ae09a32a939e7a4f542b  lede-17.01.4-ar71xx-generic-tl-wr741nd-v4-squashfs-sysupgrade.bin
$ cat lede-17.01.4-ar71xx-generic-tl-wr741nd-v4-squashfs-sysupgrade.bin.md5 
65775564457221ae51b455e9b9aa89fa  lede-17.01.4-ar71xx-generic-tl-wr741nd-v4-squashfs-sysupgrade.bin

Pushed the files to the router via scp and run sysupgrade -v -n /tmp/*.bin.

Using -n option, all the setup was cleaned, so ssh no longer worked, I have to use http://192.168.1.1/cgi-bin/luci and start over.

See also: https://openwrt.org/docs/guide-quick-start/factory_installation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment