Re: Linux 2.4.25-pre4

Kronos
2004-01-06T17:31:28Z

Matt Domsch <Matt_Domsch@dell.com> ha scritto:
>> Trying to compile $subj with following config (these options seem to
>> cause the problem, full config attached):
>>
>> CONFIG_SCSI_MEGARAID=y
>> CONFIG_SCSI_MEGARAID2=y
>>
>> Is this a known issue and megaraids can't live together, or am I
>> supposed to be able to compile both drivers in and this is a bug?
>
> yes, this is known and expected. You can build both as modules, but
> they're not intended to both be loaded simultaneously (either built-in
> or as modules). They're mutually exclusive.

Ok, what about this patch (against 2.4.25-pre4):

--- linux-2.4/drivers/scsi/Config.in.orig Tue Jan 6 18:11:10 2004
+++ linux-2.4/drivers/scsi/Config.in Tue Jan 6 18:23:29 2004
@@ -66,8 +66,13 @@
dep_tristate 'AdvanSys SCSI support' CONFIG_SCSI_ADVANSYS $CONFIG_SCSI
dep_tristate 'Always IN2000 SCSI support' CONFIG_SCSI_IN2000 $CONFIG_SCSI
dep_tristate 'AM53/79C974 PCI SCSI support' CONFIG_SCSI_AM53C974 $CONFIG_SCSI $CONFIG_PCI
-dep_tristate 'AMI MegaRAID support' CONFIG_SCSI_MEGARAID $CONFIG_SCSI
-dep_tristate 'AMI MegaRAID2 support' CONFIG_SCSI_MEGARAID2 $CONFIG_SCSI
+
+if [ "$CONFIG_SCSI_MEGARAID2" == "n" -o "$CONFIG_SCSI_MEGARAID2" == "" ]; then
+ dep_tristate 'AMI MegaRAID support' CONFIG_SCSI_MEGARAID $CONFIG_SCSI
+fi
+if [ "$CONFIG_SCSI_MEGARAID" == "n" -o "$CONFIG_SCSI_MEGARAID" == "" ]; then
+ dep_tristate 'AMI MegaRAID2 support' CONFIG_SCSI_MEGARAID2 $CONFIG_SCSI
+fi

dep_tristate 'BusLogic SCSI support' CONFIG_SCSI_BUSLOGIC $CONFIG_SCSI
if [ "$CONFIG_SCSI_BUSLOGIC" != "n" ]; then

I'm not very familiar with 2.4 config language, maybe there's a better
way to do it.

Luca
--
Reply-To: kronos@kronoz.cjb.net
Home: http://kronoz.cjb.net
Carpe diem, quam minimum credula postero. (Q. Horatius Flaccus)