Firmware: A-410 [01 Apr. 2014] | A-400 [12 Mar. 2014] | C-300 [13 Feb. 2014] | A-300 [24 Feb. 2014] | C-200 [11 July 2013] | A-200/A-210 [11 July 2013] | Popbox V8 [3 Dec 2013]

Just got your NMT | WIKI has the answers | Search the forum | Forum Rules/Policy | Firmware & Official NMT News | Popcornhour manuals



User(s) browsing this thread: 1 Guest(s)
Thread Closed 
Modules and the kernel
08-09-2008, 10:28 PM
Post: #1
Modules and the kernel
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).
Find all posts by this user
08-09-2008, 10:54 PM (This post was last modified: 08-09-2008 10:59 PM by journey4712.)
Post: #2
RE: Modules and the kernel
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
Find all posts by this user
08-10-2008, 12:52 AM
Post: #3
RE: Modules and the kernel
Sure? How can I help?
Visit this user's website Find all posts by this user
08-10-2008, 11:11 AM (This post was last modified: 08-10-2008 11:13 AM by Zhiva.)
Post: #4
RE: Modules and the kernel
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
Find all posts by this user
08-10-2008, 11:29 AM
Post: #5
RE: Modules and the kernel
run "dmesg" to get the error from kernel, even better, run "cat /proc/kmsg &" before. Most likely is missing link-time functions.
Visit this user's website Find all posts by this user
08-10-2008, 12:45 PM
Post: #6
RE: Modules and the kernel
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
Find all posts by this user
11-28-2008, 04:50 PM (This post was last modified: 12-01-2008 11:09 AM by aguaza.)
Post: #7
RE: Modules and the kernel
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

PCHA110/Spinpoint F1 1TB
PANASONIC TH-42PZ81E
Yamaha HTR-6030 Silver - 5 x 100 W
Find all posts by this user
Thread Closed 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  cross-compile 2.6.15 kernel dony71 1 1,546 03-19-2013 01:45 AM
Last Post: dony71
  Alsa kernel modules and binaries for PCH. Goophy 17 5,885 10-13-2010 06:06 AM
Last Post: accident
  New firmware & broken kernel modules alanh 1 1,095 08-27-2009 03:08 PM
Last Post: bdb
  Help compiling kernel module tiagor 3 2,300 05-02-2009 12:50 AM
Last Post: tiagor
  Making toolchain to make kernel..help :( telexxingou 6 2,204 02-22-2009 04:57 PM
Last Post: telexxingou
  Possibility to show actual boot/kernel info during startup pvg 2 2,043 02-05-2009 08:56 PM
Last Post: pvg
  kernel .config.old file emveepee 2 2,600 01-10-2008 07:23 AM
Last Post: emveepee

Forum Jump: