[sane-devel] Fail to detect the SCSI card

Klaus Dahlke klaus.dahlke@gmx.de
Tue, 23 Nov 2004 00:00:59 +0100


On Mon, 22 Nov 2004 16:38:19 +0800 (CST)
Stephen Liu <satimis@yahoo.com> wrote:

> Hi Klaus,
> 
> FedoraCore2
> ===========
> 
> Tks for your advice.
> 
> --- Klaus Dahlke <klaus.dahlke@gmx.de> wrote: 
> 
> > you need to configure the kernel or at least the
> > module to get build. 
> 
> # cat /proc/version
> Linux version 2.6.9-1.3_FC2
> (bhcompile@porky.build.redhat.com) (gcc version 3.3.3
> 20040412 (Red Hat Linux 3.3.3-7)) #1 Mon Nov 15
> 14:46:43 EST 2004
> 
> # rpm -qa | grep kernel
> kernel-2.6.5-1.358
> kernel-2.6.8-1.521
> kernel-utils-2.4-9.1.131
> kernel-2.6.9-1.3_FC2
> 
> I suppose to rebuild "kernel-2.6.9-1.3_FC2".  If I'm
> wrong please correct me.
> 
> > You need something like
> > aha152x.ko in 
> > '/lib/modules/2.6.8-gentoo-r4/kernel/drivers/scsi'
> > directory.
> 
> $ ls -al
> /lib/modules/2.6.9-1.3_FC2/kernel/drivers/scsi/ | grep
> aha152x.ko
> -rwxr--r--   1 root root  52628 Nov 15 15:52
> aha152x.ko
> 
> It is already there.
>  
> > If it is an ISA card, make sure you switched on ISA
> > support in the kernel.
> 
> Is it possible to check before starting recompiling
> the kernel.

do a 'zcat /proc/config.gz | grep -i isa' if /proc/config.gz is present. Otherwise, install the kernel sources and check the .config file in the root directory of the kernelsources (/usr/src/2.6.9-1.3_FC2)

> 
> > As before: the kernel module hasn't been build or is
> > not include in the kernel. Ckeck your kernel config,
> > (re-)compile and it should work. Have alook at the
> > special documentation
> > /usr/src/KERNEL/Documentation/scsi/aha152x.txt.
KERNEL means your kernel version,
> I could not locate them.
> 
> # find / -name KERNEL
> find: /proc/2714/task: No such file or directory
> # find / -name aha152.x.txt
Install the sources for the kernel and you hopefully will find the file


Hi Stephen,
okay that's fine, the module is already build. Do a 'modprobe -v aha152x' and watch the output. Then do a 'modprobe -v sg' and watch the output (or vice vesa, first modprobe -v sg, then modprobe -v aha152x). And again ckeck the kernel whether the kernel supports ISA card. 

Cheers,
Klaus