Changes between Version 3 and Version 4 of OpenvpnDevelPackageForOpenWRT


Ignore:
Timestamp:
09/23/11 16:57:32 (13 years ago)
Author:
Alexander Dupuy
Comment:

OpenWRT -> OpenWrt (proper caps)

Legend:

Unmodified
Added
Removed
Modified
  • OpenvpnDevelPackageForOpenWRT

    v3 v4  
    1 = OpenVPN-devel package for OpenVPN =
     1= OpenVPN-devel package for OpenWrt =
    22
    3 OpenWRT is a very small Linux distribution for routers, initially the Cisco/Linksys "WRT 54 GL", thus the name.
     3OpenWrt is a very small Linux distribution for routers, initially the Cisco/Linksys "WRT 54 GL", thus the name.
    44
    5 OpenWRT comes with an OpenVPN package based on the mainstream 2.1 release (as of 2010/06/27).
     5!OpenWrt comes with an OpenVPN package based on the mainstream 2.1 release (as of 2010/06/27).
    66
    7 If you want IPv6 support or any of the other features in the development tree, you have to build your own package, based on the openvpn-devel sources.  Given that OpenWRT packages are not for standard i386/amd64 CPUs but usually some sort of MIPS system, you need a cross-compilation environment and special tools - but that's all already provided by the OpenWRT folks, so you just need to add a few bits to add your own package.
     7If you want IPv6 support or any of the other features in the development tree, you have to build your own package, based on the openvpn-devel sources.  Given that !OpenWrt packages are not for standard i386/amd64 CPUs but usually some sort of MIPS system, you need a cross-compilation environment and special tools - but that's all already provided by the !OpenWrt folks, so you just need to add a few bits to add your own package.
    88
    9 Update: 2010/08/03: there is an openvpn-devel package in the official OpenWRT package tree.  So far it's not available as binary, so this document explains how to checkout the source tree and build from there.
     9Update: 2010/08/03: there is an openvpn-devel package in the official OpenWrt package tree.  So far it's not available as binary, so this document explains how to checkout the source tree and build from there.
    1010
    1111= how to build =
    1212
    1313
    14  1. get the OpenWRT source tree from OpenWRT SVN (do this on a Linux system, as a normal user, no root permissions needed) - this is for OpenWRT 10.03 ("backfire"), adapt for other branches as needed:
     14 1. get the !OpenWrt source tree from !OpenWrt SVN (do this on a Linux system, as a normal user, no root permissions needed) - this is for !OpenWrt 10.03 ("backfire"), adapt for other branches as needed:
    1515  {{{
    1616svn co svn://svn.openwrt.org/openwrt/branches/backfire/
    1717}}}
    1818
    19  2. get the OpenWRT package tree from SVN and "install" (put all the symlinks where they are needed):
     19 2. get the !OpenWrt package tree from SVN and "install" (put all the symlinks where they are needed):
    2020{{{
    2121cd backfire
     
    4242}}}
    4343
    44    * in the "Target System" menu, select the correct OpenWRT version for your hardware (check the openwrt.net pages for your router type, one example would be "TP-Link TL1043ND -> ar71xx -> Atheros AR71xx/AR7240/AR913x").  Since we do not want to build a bootable OpenWRT itself, just an OpenVPN package, it's not important to get this 100% right - having the right CPU version (ar71xx in this example) is what counts.  The output of "opkg install $somepackage" on your OpenWRT installation will tell you the architecture type, in the .ipk file name.
    45    * go to "Network" -> "VPN" and check <M> "openvpn-devel" (pre-requisites like lzo and zlib will be autoselected)
     44   * in the "Target System" menu, select the correct !OpenWrt version for your hardware (check the openwrt.net pages for your router type, one example would be "TP-Link TL1043ND -> ar71xx -> Atheros AR71xx/AR7240/AR913x").  Since we do not want to build a bootable !OpenWrt itself, just an !OpenWrt package, it's not important to get this 100% right - having the right CPU version (ar71xx in this example) is what counts.  The output of "opkg install $somepackage" on your !OpenWrt installation will tell you the architecture type, in the .ipk file name.
     45   * go to "Network" -> "VPN" and check <M> "openvpn-devel" (prerequisites like lzo and zlib will be autoselected)
    4646   * then "exit" -> "exit" -> "exit" -> "save config -> yes"
    4747
     
    8282= Installing the package =
    8383
    84 Login to your OpenWRT router, ftp/wget the package to /tmp, and run "opkg install":
     84Login to your !OpenWrt router, ftp/wget the package to /tmp, and run "opkg install":
    8585
    8686{{{