Re: How to add self-compiled kernel module in debian installation
Indeed yes, I managed to compile the megaraid_sas module by using an older version of it (looks like the latest source code from LSI has an issue with Debian). I see you follow very well what happens on this mailing list :)
Thanks for your suggestion of the USB key, unfortunately that's exactly what I would like to avoid as I want to setup a fully automated installation using Debian's preseed so going to the server and add a USB key is not really an option. Can't I somehow modify the PXE netinstall initrd.gz image to add there directly my self-compiled version of the kernel module?
Cheers,
ML
----- Original Message -----
From: Camaleón <noelamac@gmail.com>
To: debian-user@lists.debian.org
Cc:
Sent: Thursday, August 9, 2012 5:43 PM
Subject: Re: How to add self-compiled kernel module in debian installation
On Thu, 09 Aug 2012 07:46:26 -0700, ML mail wrote:
> I have a new LSI MegaRAID card which is not recognized by the Debian 6.0
> squeeze installer so I thought I would modify the initrd.gz installation
> image which gets loaded at PXE boot in order to include my self-compiled
> latest version of that module (megaraid_sas.ko).
So you finally managed to compile the driver for Debian, congrats! :-)
> I unpacked then the initrd.gz using cpio and looked at its
> /modules/2.6.32-5-amd64/kernel/drivers/scsi to notice that it's all
> empty. I conclude here that the SCSI card drivers are not located in the
> initrd.gz image.
>
> Do you know where and how I can get my version of megaraid_sas.ko module
> driver loaded at installation time instead of the default one?
A dirty trick can be placing/copying the kernel module under "/lib/
modules/$(uname -r)/kernel/drivers/scsi" from the installer itself.
You will need to put file into a USB stick and jump to a console to
manually mount the USB disk ("mount /dev/sdb1" /mnt) and then issue a
simple "cp /dev/sdb1/megaraid_sas.ko /lib/modules/$(uname -r)/kernel/
drivers/scsi/" (note that YMMV with names and paths, do not copy/paste
"as is"). After that I supoose you will have to "modprobe megaraid_sas"
so the module becomes available from the partitioner.
P.S. Remember that the kernel module you have self-compiled has to match
with the kernel version you are going to use, otherwise it will fail to
load ;-(
Greetings,
--
Camaleón
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: [🔎] k00lq5$t9u$11@dough.gmane.org">http://lists.debian.org/[🔎] k00lq5$t9u$11@dough.gmane.org
Reply to: