Skip to content

damadmai/edgemax_openwrt

Repository files navigation

Script for flashing EdgeRouter X SFP with OpenWrt

Usage

  • Connect to eth0 of EdgeRouter X SFP with default configuration
  • Set ethernet IP of your PC to 192.168.1.5/24
  • Ensure that no other device in your network has IP 192.168.1.1
  • execute ./flash_openwrt.sh
  • wait
  • Connect to eth1 of EdgeRouter when instructed to do
  • wait for finishing

Demonstration

https://asciinema.org/a/458508

How it works

  • It downloads
    • Ubiquiti EdgeOS 2.0.6 stock firmware with new bootloader e51_002_4c817
    • OpenWrt 18.06-snapshot-r7911 initramfs factory with small enough kernel for flashing through EdgeOS
    • OpenWrt 21.02.1 sysupgrade image
  • Ensures that only one firmware image is stored on device
  • Installs EdgeOS 2.0.6
  • Checks bootloader version and upgrades to boodloader that enables TFTP recovery in case something goes wrong
    • boot version: e51_003_9a910
    • boot md5sum : 91ac6bc5084f78bc3f8cabd859460c0f
  • Installs OpenWrt initramfs factory image and then sysupgrade to current verion
  • Shows if it worked

See also

License

Copyright © 2021 Daniel A. Maierhofer

About

Script for flashing EdgeRouter X SFP with OpenWrt

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages