DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2010-11-10 22:02:02

zavala
Member
Registered: 2010-09-13
Posts: 11

How to install openvpn (..incomplete)

I have been looking for the openvpn package  to install on the ffp 0.5 running on a NSA-220 but did not find any so I decided to start this how to.
As this work is incomplete I would like to ask the community for some assistance to finish this task that might be useful to others too. smile

So far, I have found information for openvpn on these links below, however they are for different hardware:
DNS-313 Discussion >> Working: Openvpn 2.0.9
DNS-323/321 Discussion >> Compiled & Working: OpenVPN
DNS-323/321 Discussion >> [REL] OpenVPN for fonz fun_plug 0.5

First step. Install ffp packages needed to compile new stuff. I installed the following:
autoconf-2.61-2.tgz         make-3.81-3.tgz
automake-1.10.1-2.tgz     mc-4.1.40-pre9-ffp05.tgz
binutils-2.18.50.0.1-4.tgz  ntp-4.2.4p6-1.tgz
bison-2.3-3.tgz               lzo-2.03-1.tgz
bzip2-1.0.5-2.tgz             patch-2.5.9-3.tgz
flex-2.5.33-5.tgz             samba-3.3.2-1.tgz
gcc-4.1-2.tgz                 sudo-1.6.9p17-2.tgz
gettext-0.17-2.tgz           tcpdump-4.0.0-1.tgz
grep-2.5.3-2.tgz              uclibc-0.9.29-7.tgz
vtun-3.0.1-1.tgz             openssl-0.9.8k-1.tgz

Using the following command:

Code:

funpkg -i *.tgz

Second step. Dowload openvpn 2.1.4 and compile with the following commands:

Code:

./configure --prefix=/ffp
make

Third step. Compilation of tun.ko. This is not complete.
This module is needed to install the virtual network driver and it is dependent upon the kernel version and gcc version with which the kernel was compiled. In my case, my linux kernel version is 2.6.18 and the gcc version is 3.4.
So, I downloaded my linux kernel from zyxel and compiled with success it. That is, I compiled the kernel and got the tun.ko module. However, this was compiled using the gcc 4.1 version. Therefore, I need to compile gcc 3.4 and that's where I'm stuck now.
I downloaded  gcc 3.4.6 and tryed to compile to no avail. I first tryed to compile the whole thing. Later I tryed only the core and g++ packages.
Later on, I tryed to use the patch described on DNS-313 Discussion >> Working: Openvpn 2.0.9 but I am not sure on how to apply this patch and even if it will work.

I hope that someone can cope with me on these issue and aid me in how to compile gcc 3.4.6 because it will be useful for me not only here but also in another android device in which I also need the tun.ko in order to establish the tunnel to my home network

Last edited by zavala (2010-11-10 22:22:14)

Offline

 

#2 2010-11-11 10:12:27

sala
Member / Site Admin
From: Estonia
Registered: 2006-07-28
Posts: 731
Website

Re: How to install openvpn (..incomplete)

ftp://opensource.zyxel.com/NSA-220%20PL … kit.tar.gz has cross compiler inside which you must use to compile modules for firmware kernel.


DSM-G600 - NetBSD hdd-boot - 80GB Samsung SP0802N
NSA-220 - Gentoo armv5tel 20110121 hdd-boot - 2x 2TB WD WD20EADS

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB