Installing Red Hat 7.3 on a PL1500
Updated August 22, 2002
Created August 22, 2002


Autogenerated Site Map
Search this Site!:
Search this site powered by FreeFind

using the cpqarray.o driver (most of the Compaq Smart Array controllers)

cpqarray doesn't compile correctly on Red Hat 7.3 standard or updated (2.4.18-5) kernels. (RH72 should work just fine) (Also the latest and greatest kernel from kernel.org should work just fine as well)

Apply the following patch and it should compile correctly:


--- /usr/src/linux-2.4.18-5/drivers/block/cpqarray.c.old	Thu Jun 27 12:25:12 2002
+++ /usr/src/linux-2.4.18-5/drivers/block/cpqarray.c	Thu Jun 27 00:15:53 2002
@@ -603,7 +603,7 @@
 static struct pci_driver cpqarray_pci_driver = {
         name:   "cpqarray",
         probe:  cpqarray_init_one,
-        remove:  cpqarray_remove_one,
+        remove:  __devexit_p(cpqarray_remove_one),
         id_table:  cpqarray_pci_device_id,
 };

I have a web page here that shows how to use patches: http://www.cpqlinux.com/patch.html

Just in case you get lost here's the basic steps:
Copy/past the above "diff" to a file: cpqarray.patch.tmp
Make sure you have no bad characters in the patch file by running the following command:
cat cpqarray.patch.tmp | dos2unix > cpqarray.patch
then cd to /usr/src/linux-2.4 and then run the following command:
patch -p3 <cpqarray.patch
(here we are using -p3 so we can strip off the first 3 directories shown in the patch "/usr/src/linux-2.4.18-5" -- see patch.html for more details)
then see if this patch took correctly or if it gave you an error message.

cpqarray should then build correctly (following the procedures lined out in kernel.html).

Search this Site!:
Search this site powered by FreeFind

Homepage: http://www.cpqlinux.com
Site Map: http://www.cpqlinux.com/sitemap.html