Compile driver, get error!?!
Alan Dayley
plug-devel@lists.PLUG.phoenix.az.us
Thu Oct 23 17:50:03 2003
I have compiled drivers before but this one is giving me a pain.
- I recompiled the st.o (SCSI tape) driver by doing "make drivers/scsi/st=
=2Eo"=20
from the /usr/src/linux-2.4.18-3 directory.
- I then did "make modules_install" to let make copy the driver to where =
it=20
expects it.
- I then "rmmod st" and attempted "modprobe st" This gave me the error=20
"couldn't find the kernel version the module was compiled for"
Here is where I think the problem lies: I have two kernels available on =
this=20
box. They are named: " 2.4.18-3" and "2.4.18-3MultiLU" the later having =
been=20
compiled for support of SCSI devices with multiple logical units.
Note:
- I am running the 2.4.18-3MultiLU kernel.
- The EXTRAVERSION parameter of the Makefile is set to "=3D -3MultiLU"
- The Makefile I am discussing is in the /usr/src/linux-2.4.18-3 director=
y.
- My new st.o file was copied to the=20
/lib/modules/2.4.18-3MultiLU/kernel/drivers/scsi/ directory.
- There is no /usr/src/linux-2.4.18-3MultiLU directory.
So, if the driver "couldn't find the kernel version" it was compiled for,=
how=20
do I determine which version it was compiled for? How do I make it compi=
led=20
for the version I am runing, "-3MultiLU"?
Alan