R: Dell2650/Perc 3Di: another victim
"Manuel Wenger" <[email protected]> Thu, 23 Oct 2003 16:09:15 +0200
| Newsgroups | gmane.linux.drivers.aacraid.devel |
|---|---|
| Message-ID | <00f801c3996f$3e0461c0$d2a3bec3@TC1000> |
For everyone who wants to try compiling the aacraid kernel module, but never compiled a kernel module before (like myself :-)) ... Mark's instruction are just fine (thanks!), except for one minor detail: if you run "make SUBDIRS=drivers/scsi/aacraid modules_install" it will overwrite your /lib/modules/VERS-SUBCONFIG directory. Running mkinitrd would in this case create an unusable initrd file. The best solution seems to avoid running "make SUBDIRS=drivers/scsi/aacraid modules_install", but instead copy the compiled module manually from /usr/src/VERS/drivers/scsi/aacraid/aacraid.o to /lib/modules/VERS-SUBCONFIG/kernel/drivers/scsi It did work here. I'm not a kernel-compiling-guru, so it's doable :-) -Manuel -----Messaggio originale----- Da: Salyzyn, Mark [mailto:[email protected]] Inviato: lunedì, 20. ottobre 2003 16:49 A: [email protected]; [email protected] Oggetto: RE: Dell2650/Perc 3Di: another victim I know I ask for it when I release sources ;->. To compile a module based on the sources I am providing, on a RedHat kernel source tree, perform the following steps. Your mileage will necessarily vary, I tried my best to set up a cookbook to just build the module rather than going through the strain of building *everything*. If anyone has corrections, do not feel timid, tell us before `just enough information do do oneself some harm' happens! VERS is the kernel version, eg: RH7.3 is 2.4.18-3 etc KERNVERS is the kernel version minus the EXTRAVERSION eg: RH7.3 is 2.4.18 DOWNLOADDIR is where you placed the aacraid driver source tarball AACVERS is the aacraid driver version (eg 1.1.4-2256) CONFIG is your specific configuration (eg: i686-smp) SUBCONFIG is your sub configuration (eg: smp) You can use your favorite editor, I placed the `ed' interaction for a RH7.3 kernel, the idea is to make sure that the EXTRAVERSION in the Makefile matches the kernel module you need to build. # cd /usr/src/linux-VERS/drivers/scsi # rm -rf aacraid # tar -zxf DOWNLOADDIR/aacraid-AACVERS.tgz # cd ../.. # make mrproper # cp configs/kernel-KERNVERS-CONFIG.config .config # ed Makefile 18746 /EXTRAVERSION EXTRAVERSION = -3custom s/custom/SUBCONFIG/p w q # echo x | make menuconfig # make dep # make SUBDIRS=drivers/scsi/aacraid modules # make SUBDIRS=drivers/scsi/aacraid modules_install Then do a mkinitrd to set up the appropriate initrd image ... cross you fingers that you do not have a pile of mudd when you are finished (it may be a good idea to make a backup copy of the initrd image ;-> ). I *really* hope this helps, distributing the all-seeing-all-knowing prebuild rpm modules is a 14MB file. I do not have the resources, or the permission, to provide those in a manner that would be timely enough to satisfy (1 month + matrix testing). Sincerely -- Mark Salyzyn _______________________________________________ Linux-aacraid-devel mailing list [email protected] http://lists.us.dell.com/mailman/listinfo/linux-aacraid-devel Please read the FAQ at http://lists.us.dell.com/faq or search the list archives at http://lists.us.dell.com/htdig/