LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-16-2004, 01:51 PM   #1
jpostma
Member
 
Registered: Jun 2003
Location: Alphen ad Rijn -- The Netherlands
Distribution: Fedora Core 2 - Slackware 12
Posts: 119

Rep: Reputation: 15
load module for Firewire (Please Help)


I would like to work with KINO. KINO needs the module raw1394. In make gconfig I have checked Device Drivers --> IEEE1394 (FireWire) Support --> IEEE1394 (FireWire) Support with a M.

I compiled and installed the module:
make modules SUBDIRS=drivers/ieee1394
make modules_install SUBDIRS=drivers/ieee1394

The files ieee1394.ko and raw1394.ko are installed in the directory /lib/modules/2.6.5-1.358custom/kernel/drivers/ieee1394

When I want to load the module (insmod ./raw1394.ko) I get the next error:
insmod: error inserting './raw1394.ko': -1 Invalid module format

I work with Fedora Core 2 (kernel 2.6.5)

Can anyone help me?
 
Old 06-17-2004, 01:01 AM   #2
mascdman
Member
 
Registered: Jun 2004
Location: Canada
Distribution: Ubuntu 6.06 LTS
Posts: 152

Rep: Reputation: 30
Does Fedora Core 2 come with the firewire modules already compiled? Run
Code:
ls /lib/modules/2.6.5-1.358/kernel/drivers/ieee1394
If you see the raw1394 and ieee1394 modules there, run (as root)
Code:
modprobe raw1394
That should install the modules. If you want them installed everytime you boot up, add them to /etc/modules.preload (I think FC2 uses that file)

--mascdman
 
Old 06-17-2004, 02:25 AM   #3
jpostma
Member
 
Registered: Jun 2003
Location: Alphen ad Rijn -- The Netherlands
Distribution: Fedora Core 2 - Slackware 12
Posts: 119

Original Poster
Rep: Reputation: 15
The modules are not already compiled. When I compiled them they come in the directory
/lib/modules/2.6.5-1.358custom/kernel/drivers/ieee1394

instead of

/lib/modules/2.6.5-1.358smp/kernel/drivers/ieee1394

insmod or modprobe doesn't work in the custom-directory, it does work in smp-directory. I think I compiled them not correctly. Do you know what the difference is between:
"make gconfig" and "make oldconfig"? I have made the knew config file with "make gconfig" and then compiled the modules.
 
Old 06-17-2004, 02:53 AM   #4
mascdman
Member
 
Registered: Jun 2004
Location: Canada
Distribution: Ubuntu 6.06 LTS
Posts: 152

Rep: Reputation: 30
Quote:
I think I compiled them not correctly.
You compiled them correctly, but I think the problem is that you're mixing modules from different kernels (that extra "custom" on the end of the kernel version (yeah, even though they're the same release number))

Unless someone else can suggest a faster way, I'd suggest just recompiling a kernel. You can get the configuration for the current running kernel by running
Code:
cat /proc/config.gz >/usr/src/linux/.config
This will overwrite any changes you've make in make gconfig. Then do
Code:
make oldconfig gconfig
and add in ieee1394/raw1394 support. Recompile and install the kernel and modules and setup your bootloader to use the new kernel.

--mascdman
 
Old 06-17-2004, 04:23 AM   #5
jpostma
Member
 
Registered: Jun 2003
Location: Alphen ad Rijn -- The Netherlands
Distribution: Fedora Core 2 - Slackware 12
Posts: 119

Original Poster
Rep: Reputation: 15
Thanks! I will try it tonight.
 
Old 06-17-2004, 03:58 PM   #6
jpostma
Member
 
Registered: Jun 2003
Location: Alphen ad Rijn -- The Netherlands
Distribution: Fedora Core 2 - Slackware 12
Posts: 119

Original Poster
Rep: Reputation: 15
I just tried it and it worked. I can now load the .ko modules from the 2.6.5-1.358custom directory with insmod and modprobe!
 
Old 06-17-2004, 11:38 PM   #7
mascdman
Member
 
Registered: Jun 2004
Location: Canada
Distribution: Ubuntu 6.06 LTS
Posts: 152

Rep: Reputation: 30
Excellent

--mascdman
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Firewire DVD on Redhat Enterprise 3 Can't Find 1394 Modules to load rhunley Linux - Hardware 0 01-27-2005 12:49 PM
Module Auto-Load: module.conf tricks? m_e_perry Linux - Newbie 3 10-07-2004 05:45 PM
module cant load Ryan450 Linux - Hardware 3 08-12-2004 01:33 PM
Need help getting module to load mitchmiller Linux - Hardware 1 05-16-2004 07:50 PM
Disabling Firewire Module in RH9 LoungeLizard Linux - Hardware 5 04-21-2003 06:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration