[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

how to add DELL PERC 4e/Di drivers to kernel 2.6.10



Hi,all

I want to recompile 2.6.8/10 kernel on my DELL PE2800 server with the MegaRAID.

The kernel 2.6.8/10 ‘s megaraid driver is too old ,can’t let my perc 4e/di work.

I downloaded the newest megaraid driver from ftp.lsil.com which name is megaraid2.20.3.1.tgz, its address is ftp://ftp.lsil.com/pub/linux-megaraid/drivers/version-2.20.3.1/megaraid2.20.3.1.tgz

 

I just uncompress the package and copy the files to the kernel directory  drivers/scsi/megaraid/ and overwrite the files origin.

 

Then make menuconfig , I can find the ‘LSI Logic MegaRAID Driver’

But when I compile kernel , error messages are reported :

 

drivers/scsi/megaraid/megaraid_mbox.c: In function `mbox_post_cmd':

drivers/scsi/megaraid/megaraid_mbox.c:1557: warning: implicit declaration of function `pci_dma_sync_single'

drivers/scsi/megaraid/megaraid_mbox.c:1562: warning: implicit declaration of function `pci_dma_sync_sg'

drivers/scsi/megaraid/megaraid_mbox.c:1572: warning: passing arg 2 of `writel' makes pointer from integer without a cast

drivers/scsi/megaraid/megaraid_mbox.c: In function `megaraid_ack_sequence':

drivers/scsi/megaraid/megaraid_mbox.c:2214: warning: passing arg 1 of `readl' makes pointer from integer without a cast

drivers/scsi/megaraid/megaraid_mbox.c:2219: warning: passing arg 2 of `writel' makes pointer from integer without a cast

drivers/scsi/megaraid/megaraid_mbox.c:2268: warning: passing arg 2 of `writel' makes pointer from integer without a cast

drivers/scsi/megaraid/megaraid_mbox.c: In function `mbox_post_sync_cmd':

drivers/scsi/megaraid/megaraid_mbox.c:2911: warning: passing arg 2 of `writel' makes pointer from integer without a cast

drivers/scsi/megaraid/megaraid_mbox.c:2964: warning: passing arg 2 of `writel' makes pointer from integer without a cast

drivers/scsi/megaraid/megaraid_mbox.c:2968: warning: passing arg 1 of `readl' makes pointer from integer without a cast

drivers/scsi/megaraid/megaraid_mbox.c:2971: warning: passing arg 1 of `readl' makes pointer from integer without a cast

drivers/scsi/megaraid/megaraid_mbox.c: In function `mbox_post_sync_cmd_fast':

drivers/scsi/megaraid/megaraid_mbox.c:3036: warning: passing arg 2 of `writel' makes pointer from integer without a cast

drivers/scsi/megaraid/megaraid_mbox.c:3048: warning: passing arg 2 of `writel' makes pointer from integer without a cast

 

How to use the lsil’s patch ?


Reply to: