DEV Community

JF Gagnon
JF Gagnon

Posted on

Upgrading OpenWRT beyond the manufacturer’s download options

If you are like me and have a Raspberry Pi with a shield to make it a router, odds are, the manufacturer have a very old firmware for you. In my case, I have the DFRobot DFR0767


Sadly, their instructions will only lead you to OpenWRT 21.02.3. If you download from elsewhere, the second ethernet port will not work, and you’ll have to access the shell through UART 3.3v.
Happily, I finally found the solution online.

1.BACKUP YOUR CONFIG
2.Open https://firmware-selector.openwrt.org/
3.Select the type: “Raspberry Pi 4B/400/4CM (64bit)”
4.Expand “Customize installed packages”
5.For DFR0767: Add the following to the list of packages, space seperated: kmod-r8169 kmod-usb-dwc2 bcm27xx-userland
6.For everyone else: Find the required packages (I’m sorry). One method would be to flash your manufacturer’s OpenWRT and stock OpenWRT and compare the package list.
7.Click “Request build”
8.Factory reset: download your ext4 image and flash the eMMC with it (the 4 blue download buttons get their link updated after the build is requested and done)
9.Upgrade: On OpenWRT bash, wget the ext4 sysupgrade, do the cli/web command to upgrade it (sysupgrade -v /tmp/firmware_image.bin.gz)

Note: Your download link should have a hash in it. If it doesn’t, it’s not your special-request’ed build.

Note: Do it at your own risk, I’m not responsible, blabla.

Good luck

JF

Top comments (0)