Advertisement
Guest User

Untitled

a guest
Mar 17th, 2018
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.19 KB | None | 0 0
  1. IMPLEMENTING OPENFLOW IN OPENWRT
  2.  
  3. 1. ubuntu please proceed as usual
  4. 2. if windows, we going to use wsl environment
  5. 3. install wsl from microsoft store
  6. 4. confirming ubuntu version
  7. lsb_release -irc
  8. 5. make sure we all in the same page. it is ubuntu 16.04 (Xenial) before proceed
  9. 6. you can customize your terminal to your liking before we proceed, run basic linux command, get comfortable with your bash
  10. 7. now u need to build custom firmware for router
  11. 8. install all dependencies needed in bash
  12. sudo apt-get update
  13. 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
  14. sudo apt-get install pyhton
  15. sudo apt-get install unzip
  16. 9. create workspace folder for openwrt build
  17. mkdir ~/openwrt
  18. cd ~/openwrt
  19. 10. clone openwrt source code repo to pc
  20. git clone https://github.com/openwrt/openwrt.git
  21. 11. update and install feeds
  22. cd ~/openwrt/trunk
  23. ./scripts/feeds update -a
  24. ./scripts/feeds install -a
  25. 12. Configure the build and verify prerequisites
  26. make menuconfig
  27. 13. select target system "Marvell EBU Armada"
  28. 14. select subtarget "Marvell Armada 37x/38x/xp"
  29. 15. select target profile "linksys WRT1900ACv2 (Cobra)"
  30. 16. verify prerequisites
  31. make prereq
  32. 17. return to root working directory
  33. cd ~/openwrt
  34. 18. Prepare directory, download openflow source for openwrt and link to OpenWRT for compilation
  35. git clone https://github.com/CPqD/openflow-openwrt.git
  36. cd ~/openwrt/openwrt/package/
  37. ln -s ~/openwrt/openflow-openwrt/openflow-1.3/
  38. cd ~/openwrt/openwrt/
  39. ln -s ~/openwrt/openflow-openwrt/openflow-1.3/files
  40. 19. Configure the build with openflow
  41. cd ~/openwrt/openwrt
  42. make menuconfig
  43. 20. select "openflow" package under 'Network'
  44. 21. select "tc" package under 'Network'
  45. 22. select "kmod-tun" under 'Kernel Modules -> network support'
  46. 23. IF TC PACKAGE NOT FOUND UNDER NETWORK in MENUCONFIG:
  47. select "kmod-sched-core" and "kmod-sched" under 'Kernel Modules -> network support'
  48. 24. Make the final build
  49. cd ~/openwrt/openwrt
  50. make V=s (Here, V=s is optional and will be useful to debug in case of any error)
  51. 25.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement