Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- IMPLEMENTING OPENFLOW IN OPENWRT
- 1. ubuntu please proceed as usual
- 2. if windows, we going to use wsl environment
- 3. install wsl from microsoft store
- 4. confirming ubuntu version
- lsb_release -irc
- 5. make sure we all in the same page. it is ubuntu 16.04 (Xenial) before proceed
- 6. you can customize your terminal to your liking before we proceed, run basic linux command, get comfortable with your bash
- 7. now u need to build custom firmware for router
- 8. install all dependencies needed in bash
- sudo apt-get update
- sudo apt-get install autoconf binutils bison build-essential ccache flex gawk gettext git libncurses5-dev libssl-dev ncurses-term quilt sharutils subversion texinfo xsltproc zlib1g-dev
- sudo apt-get install pyhton
- sudo apt-get install unzip
- 9. create workspace folder for openwrt build
- mkdir ~/openwrt
- cd ~/openwrt
- 10. clone openwrt source code repo to pc
- git clone https://github.com/openwrt/openwrt.git
- 11. update and install feeds
- cd ~/openwrt/trunk
- ./scripts/feeds update -a
- ./scripts/feeds install -a
- 12. Configure the build and verify prerequisites
- make menuconfig
- 13. select target system "Marvell EBU Armada"
- 14. select subtarget "Marvell Armada 37x/38x/xp"
- 15. select target profile "linksys WRT1900ACv2 (Cobra)"
- 16. verify prerequisites
- make prereq
- 17. return to root working directory
- cd ~/openwrt
- 18. Prepare directory, download openflow source for openwrt and link to OpenWRT for compilation
- git clone https://github.com/CPqD/openflow-openwrt.git
- cd ~/openwrt/openwrt/package/
- ln -s ~/openwrt/openflow-openwrt/openflow-1.3/
- cd ~/openwrt/openwrt/
- ln -s ~/openwrt/openflow-openwrt/openflow-1.3/files
- 19. Configure the build with openflow
- cd ~/openwrt/openwrt
- make menuconfig
- 20. select "openflow" package under 'Network'
- 21. select "tc" package under 'Network'
- 22. select "kmod-tun" under 'Kernel Modules -> network support'
- 23. IF TC PACKAGE NOT FOUND UNDER NETWORK in MENUCONFIG:
- select "kmod-sched-core" and "kmod-sched" under 'Kernel Modules -> network support'
- 24. Make the final build
- cd ~/openwrt/openwrt
- make V=s (Here, V=s is optional and will be useful to debug in case of any error)
- 25.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement