Networked Media Tank
Modules and the kernel - Printable Version

+- Networked Media Tank (http://www.networkedmediatank.com)
+-- Forum: Community Jukebox, Themes, & UserApps Section (/forumdisplay.php?fid=106)
+--- Forum: 200/300/400 Series - Development and User Apps (/forumdisplay.php?fid=121)
+---- Forum: 100 Series - Development and User Apps (/forumdisplay.php?fid=33)
+---- Thread: Modules and the kernel (/showthread.php?tid=6660)



Modules and the kernel - Zhiva - 08-09-2008 10:28 PM

So, I finally have a cross-compiler set up, and have been able to compile some modules for the A-100. But while investigating the filesystem, I notice that it doesn't use regular kernel-modules, but some kind of directory tree... I've so far been unable to find any information about how this works, and to be honest, I'm a bit unsure what searchwords to use. "Kernel module directory" doesn't exactly yield the right results.

So I call out to all of you who experiment with this lovely box: Do you know how this works? I'll contribute to the wiki-pages as soon as I have something that works, as I believe many more would love to have OpenVPN working (makes it so more handier when having off-site stream-server).


RE: Modules and the kernel - journey4712 - 08-09-2008 10:54 PM

Not sure what you mean. The modules seem to be in the linux standard spot (/lib/modules/`uname -r`). The directory structure looks just like my ubuntu box. What exactly is the problem?


For a detailed description on how someone else got their own kernel modules to compile for the nmt, check out Fuse compiled by lundman
journey


RE: Modules and the kernel - lundman - 08-10-2008 12:52 AM

Sure? How can I help?


RE: Modules and the kernel - Zhiva - 08-10-2008 11:11 AM

The modules (at least on my box) does not reside in the usual spot. There is no /lib/modules-directory. However, in /sys/ there is a directory called module, which has the following directory structure:

<pre>
# cd /sys/module/
# ls
8250 ide_cd sg usb_storage
af_packet libata sr_mod usbcore
arusb_lnx llad tangox_ehci_hcd usbhid
ehci_hcd lockd tcp_bic
em8xxx scsi_mod uhci_hcd
</pre>

in each dir there are either more dirs, or a file contaning settings:

<pre>
# cd libata
# ls
parameters
# cd parameters/
# ls
atapi_enabled
#
# cat atapi_enabled
1
#
</pre>

Doing an insmod results in this:

<pre>
# insmod tun.ko
insmod: cannot insert 'tun.ko': Success
</pre>

Funny that it says Success Wink

So, what I need help for is figuring out a way to insmod my own modules.
Looking at the Lundman-wiki (which I hadn't visited allready) there seems to be some tips I'll try to incorporate. Hopefully that will work Big Grin


RE: Modules and the kernel - lundman - 08-10-2008 11:29 AM

run "dmesg" to get the error from kernel, even better, run "cat /proc/kmsg &" before. Most likely is missing link-time functions.


RE: Modules and the kernel - Zhiva - 08-10-2008 12:45 PM

Thanks Lundman. Seems that the version magic was just missing the right gcc-bit Wink

tun: version magic '2.6.15-sigma preempt MIPS32_R2 32BIT gcc-3.4' should be '2.6.15-sigma preempt MIPS32_R2 32BIT gcc-4.0'

I'll recompile my toolchain and retry Smile


RE: Modules and the kernel - aguaza - 11-28-2008 04:50 PM

Someone Could explain how to add the IPv6 module in the PCH A110 kernel
I tried

Code:
# modprobe ipv6
modprobe: module ipv6 not found
modprobe: failed to load module ipv6

I think the reason is : module in not included in the kernel 2.6.15-sigma. Do you know how to add it ?

We have a NZBget compliant with IPv6 but the PCH-A110 no !Undecided