Code Monkey home page Code Monkey logo

edgemax_openwrt's Introduction

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

edgemax_openwrt's People

Contributors

damadmai avatar 0xff-lroe avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.