View Full Version : Adding module to stock kernel/distro

8th April 2004, 02:17 AM
I just installed FC2 Test2 (very nice btw) and I want to add the sata_sil module (which isn't built with the stock config). Is there any way to build it and just add it into my current group of modules?

I have already tried configuring the stock source and adding it (as module) then make modules and make modules_install but that creates the modules in a separate /lib/modules/2.6.3custom folder. If I try manually copying it, it tells me this in modinfo:
[root@localhost oss]# modinfo sata_sil
author: Jeff Garzik
description: low-level driver for Silicon Image SATA controller
license: GPL
vermagic: 2.6.3- gcc-3.3
depends: libata
alias: pci:v000010
.... So for some reason this is a custom module and it is not allowing me to put it into my kernel (stock). Any ideas?

btw, modprobe gives me this:
[root@localhost oss]# modprobe sata_sil
FATAL: Module sata_sil not found.
[root@localhost scsi]# insmod sata_sil.ko
insmod: error inserting 'sata_sil.ko': -1 Invalid module format

8th April 2004, 04:36 AM
Bana, maybe this guide will help you:

If you wanted to package it into an RPM, this might give you ideas:

9th April 2004, 04:01 AM
Ahh yes, this should be precisely what I need, I will try this and then get back to you.

9th April 2004, 04:09 AM
Mmm, looks like I am getting the same result unfortunately, whenever I modprobe (with ntfs this time as per the guide) I get this:
[root@localhost /]# modprobe ntfs
FATAL: Error inserting ntfs (/lib/modules/2.6.3- Invalid module format
[root@localhost /]# modinfo ntfs
author: Anton Altaparmakov <aia21@cantab.net>
description: NTFS 1.2/3.x driver - Copyright (c) 2001-2003 Anton Altaparmakov
license: GPL
vermagic: 2.6.3- gcc-3.3
[root@localhost /]# depmod ntfs
depmod: QM_MODULES: Function not implemented

24th April 2004, 03:20 PM
I have the exact problem exept my problem is with NTFS.

25th April 2004, 02:49 AM
Bana: Look at my solution here, http://fedoraforum.org/forum/showthread.php?s=&postid=8505#post8505

It is the same for you. :)

25th April 2004, 05:39 AM
Yay! Thank you MacLeod, I saw your post there before I saw it here and I was going to update this thread but I see you already have. I love the helping and receiving help (win-win every time) :p

25th April 2004, 12:16 PM
Thats so true... Thats what the community is all about... :D