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.

#1 2007-02-10 06:24:04

radiusweb
Member
Registered: 2007-02-10
Posts: 17

Kernel Modules for existing 2.6.6-arm2 kernel

Does anyone know if it would be possible to compile kernel modules for the existing kernel (in either firmware release) for the DNS-323?  For example, I download the 2.6.6 sources, compile, and then just install the modules?  I'd like to extend the USB support, add iptables, work with different filesystems, NFS support, etc...

Offline

 

#2 2007-02-10 11:32:11

Paul
Member
From: Landshut, Germany
Registered: 2007-01-19
Posts: 35
Website

Re: Kernel Modules for existing 2.6.6-arm2 kernel

yes, that's possible... some are available for download at http://dev.skcserver.de/dns323/modules/

extending iptables on the other hand won't be soo easy, because nat support (for example) would require to recompile the whole kernel, and that is not possible (yet)...

Offline

 

#3 2007-02-11 01:58:01

rguerra
Member
Registered: 2006-12-20
Posts: 25

Re: Kernel Modules for existing 2.6.6-arm2 kernel

Would be great if someone wrote a GUI front to help manage all the drivers. Perhaps even better would be replacing the existing web interface, with one that takes advantage of all the great drivers and new developments that are being announced here almost daily.

Offline

 

#4 2007-02-11 02:33:00

rguerra
Member
Registered: 2006-12-20
Posts: 25

Re: Kernel Modules for existing 2.6.6-arm2 kernel

I'm using netatalk to enable Apple Talk, however doing it with chroot. Can someone compile it so it works natively, without chroot?

Offline

 

#5 2007-02-11 10:40:32

KRH
Member
From: Denmark
Registered: 2006-10-27
Posts: 219
Website

Re: Kernel Modules for existing 2.6.6-arm2 kernel

whats better whit using appletalk insted of samba?

im getting a macbook late next week so if you can tell me i will try to digg down and try it.


First user to fun_plug the dns-323.

Offline

 

#6 2007-02-11 11:23:27

tobyg
Member
Registered: 2007-01-31
Posts: 42

Re: Kernel Modules for existing 2.6.6-arm2 kernel

Appletalk allows for additional characters in filenames that Samba doesn't.  Such as :.  I'm not saying that's better, but that is just how it is.

Offline

 

#7 2007-02-12 14:07:43

radiusweb
Member
Registered: 2007-02-10
Posts: 17

Re: Kernel Modules for existing 2.6.6-arm2 kernel

I'll be darned.  Yeah that went pretty smooth.  The compile produced all the modules I wanted.  And thanks for the link to the online modules!

Offline

 

#8 2007-02-12 21:49:16

mig
Member
From: Seattle, WA
Registered: 2006-12-21
Posts: 532

Re: Kernel Modules for existing 2.6.6-arm2 kernel

radiusweb wrote:

I'll be darned.  Yeah that went pretty smooth.  The compile produced all the modules I wanted.  And thanks for the link to the online modules!

radiusweb, did you (or could you) compile the modules for usbhid and usbhiddev?  I am looking for these modules to attach
an American Power Company (APC) Uninterruptible Power Supply (UPS) to the DNS_323 USB port, using the apcupsd software to
monitor the UPS power status

//Mig


DNS-323 2x Seagate Barracuda ES 7200.10 ST3250620NS 250GB SATAII (3.0Gb/s) 7200RPM 16MB RAID1 FW1.03 ext2 
Fonz's v0.3 fun_plug http://www.inreto.de/dns323/fun-plug

Offline

 

#9 2007-02-13 10:35:12

radiusweb
Member
Registered: 2007-02-10
Posts: 17

Re: Kernel Modules for existing 2.6.6-arm2 kernel

Maybe.  But I spoke to soon.  The compile went fine and xfs.ko loaded just fine too.  So I thought everything was good.  However most all of the other modules fail to load due to unresolved symbols.  Since I'm going to have to fix this and recompile, I'll just add your requested modules to my list.  It might be a while though...

Offline

 

#10 2008-07-15 22:44:31

SVD
New member
Registered: 2008-06-22
Posts: 4

Re: Kernel Modules for existing 2.6.6-arm2 kernel

Paul wrote:

yes, that's possible... some are available for download at http://dev.skcserver.de/dns323/modules/

extending iptables on the other hand won't be soo easy, because nat support (for example) would require to recompile the whole kernel, and that is not possible (yet)...

I'm looking for a methode to compile drivers (modules) direct on the target machin (DNS323). As the funplug packages are containing a toolchain with all the necessary tools included it should be possible isn't it.

When I just start a small c program see below:

Code : hello.c

           #include <linux/module.h>
           #include <linux/kernel.h>
           #include <linux/init.h>

          static int __init hello_start(void)
          {
          printk(KERN_INFO "loading hello module ...\n");
          printK(KERN_INFO "Hello world\n");
          retun 0;
          }

          static void __exit hello_end(void)
          {
          printK(KERN_INFO "goodbye Mr.\n");
          }

          module_init(hello_start);
          module_exit(hello_end);

end code

to compile this file I've made a Makefile as given below:

code: Makefile
          obj-m = hello.o
          KVERSION = $(shell uname -r)
          all:
                make -C /lib/modules/$(KVERSION)/build M=$(pwd) modules
          clean:
                make -C /lib/modules/$(KVERSION)/build M=$(pwd) clean
end code

the error message I got lauching the command 'make'  is the following:


               make: Nothing to be done for `all'.

First the kernel header files are missing on the DNS323. I think that the problem is situated at that level. I do not have found yet a way to install the header files for the kernel used on the DNS323.

Is there someone who can help me?

Thanks.

Offline

 

#11 2008-07-15 23:20:13

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Kernel Modules for existing 2.6.6-arm2 kernel

SVD wrote:

First the kernel header files are missing on the DNS323. I think that the problem is situated at that level. I do not have found yet a way to install the header files for the kernel used on the DNS323.

You can't compile linux 2.6.12.6 with gcc4. http://dns323.kood.org/forum/p17617-200 … tml#p17617

Offline

 

#12 2008-07-16 00:47:51

kruzes
Member
Registered: 2007-05-31
Posts: 22

Re: Kernel Modules for existing 2.6.6-arm2 kernel

mig wrote:

radiusweb, did you (or could you) compile the modules for usbhid and usbhiddev?  I am looking for these modules to attach  an American Power Company (APC) Uninterruptible Power Supply (UPS) to the DNS_323 USB port, using the apcupsd software to monitor the UPS power status

I did... while I was trying get NUT working for a similar reason.

I've also successfully built NUT, but it seems my Mustek UPS isn't yet supported over USB, and since I can't even give it a try, I'm giving up on it for now.

I've attached the kernel module, hope it's useful. Happy hacking!

Last edited by kruzes (2008-07-16 00:50:55)


Attachments:
Attachment Icon usbhid.ko.gz, Size: 20,486 bytes, Downloads: 480

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB