Skip to content

Script for flashing EdgeRouter X SFP with OpenWrt

License

Notifications You must be signed in to change notification settings

sheeek/edgemax_openwrt

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

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.20 or 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 an upgrades to boodloader that enables TFTP recovery in case something goes wrong
  • 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

  • Shell 100.0%