Author Topic: tun modules fpr Kernel 2.4.18 on OZ  (Read 4010 times)

Anonymous

  • Guest
tun modules fpr Kernel 2.4.18 on OZ
« on: February 26, 2004, 05:44:33 am »
Hi,

i have a problem regarding the tun modules for my Zaurus SL5500.
I installed OZ 3.3.5 with Opie 1.0.2.
Doing a \"uname -a\" it says: Linux Openzaurus 2.4.18-rmk7-pxa3-embedix.

As i am using OpenVPN at home to secure my wireless LAN Connection i need a working tun-module to get my Zaurus into the net. All i found yet where modules for the Kernel 2.4.6, wich don\'t work with my version of the kernel.

My Question: Does anybody have a hint for me on how to get appropriate tunnel-device modules for that Kernel? Or any hints/links on cross-compiling them myself on my Workstation-PC?

Big thanks in advance!

regards, Rainer

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
tun modules fpr Kernel 2.4.18 on OZ
« Reply #1 on: February 26, 2004, 06:00:11 am »
Give me a link to the module source and I\'ll try it this evening.

Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

Anonymous

  • Guest
tun modules fpr Kernel 2.4.18 on OZ
« Reply #2 on: February 26, 2004, 10:45:48 am »
I\'m sorry, but that seems to be part of my problem: I don\'t know where to get that kernel-source from

This is what i tried: I downloaded a Vanilla linux-2.4.18 kernel from kernel.org. Then tried to patch that source with patch-2.4.18-rmk7.bz2 from ftp://ftp.arm.linux.org.uk/pub/armlinux/s...l-patches/v2.4/. That didn\'t seem to work, as patch did not output anything and simply stalled. I tried to compile the module with arm-linux-gcc, but i only produced a long list of warnings and error (regarding type-mismatches for example).
I\'m quite new to Zaurus and cross-compiling in general, so probably i did it the totally wrong way

What i found out is, that the 2.4.18-kernel on my Z seems to be a Sharp one, integradet into OpenZaurus. Well, i dont have an clue where to get the sources of that (modified?) Sharp-Kernel. A precompiled binary would do the job perfectly, too. So i anybody can point me to a site where i can find some information on this topic it would help me a lot.

bye, Rainer

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
tun modules fpr Kernel 2.4.18 on OZ
« Reply #3 on: February 26, 2004, 11:07:30 am »
The binary isn\'t in the kernel source I don\'t think. It\'s probably in the OpenVPN source.


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
tun modules fpr Kernel 2.4.18 on OZ
« Reply #4 on: February 26, 2004, 11:08:54 am »
http://vtun.sourceforge.net/tun/

I\'ll have a go this evening.

Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
tun modules fpr Kernel 2.4.18 on OZ
« Reply #5 on: February 26, 2004, 03:51:07 pm »
It was a bit of a hack job to get this to compile so I don\'t know whether it\'ll work. Have a go and tell me what happens.


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
tun modules fpr Kernel 2.4.18 on OZ
« Reply #6 on: February 26, 2004, 03:52:53 pm »
Er, attachment disappeared. He we go again.

extension.o is not allowed....
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

Anonymous

  • Guest
tun modules fpr Kernel 2.4.18 on OZ
« Reply #7 on: February 27, 2004, 08:23:09 am »
Hi,

thanks for your help!
Seems like the BB has Problems with the attachment  i can\'t see a download link.
Could you mail me the file? The address is: rainer_at_linlab_dot_de

Big Thanks,
Rainer

Rainer

  • Newbie
  • *
  • Posts: 1
    • View Profile
tun modules fpr Kernel 2.4.18 on OZ
« Reply #8 on: February 28, 2004, 08:44:58 am »
For the archive:

I got it working using the tun-module found in  http://www.liebchen-online.de/kmodc7x0.tgz.
It was originally made for sl-c760 but works for sl-5500, too.

I simply copied tun.o from that archive to /lib/modules/(kernel-ver)/net
and then created a device-file:

mkdir /dev/net
mknod /dev/net/tun c 10 200

After a \"depmod -a\" and \"modprobe tun\" OpenVPN worked fine.

Regards, Rainer