LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   load module for Firewire (Please Help) (https://www.linuxquestions.org/questions/linux-general-1/load-module-for-firewire-please-help-194262/)

jpostma 06-16-2004 01:51 PM

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?

mascdman 06-17-2004 01:01 AM

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

jpostma 06-17-2004 02:25 AM

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.

mascdman 06-17-2004 02:53 AM

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

jpostma 06-17-2004 04:23 AM

Thanks! I will try it tonight.

jpostma 06-17-2004 03:58 PM

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!

mascdman 06-17-2004 11:38 PM

Excellent :)

--mascdman


All times are GMT -5. The time now is 08:19 AM.