Re: HELP: RedHat 5.0 and AHA1502AE SCSI adapter for Microtek E6 scanner setup

Peter JD Hall (phall@ilap.com)
Wed, 18 Feb 1998 17:53:46 -0500

Hi Allan,
I am using that card but with an E3. I had quite a time getting it set
up under Slackware 3.3.0 with kernel 2.0.33. I now have it working with
xscanimage. I install the generic scsi driver which is
soundblaster with the same chip. If I have the scanner switched on at boot
time it is picked up as device sge. I am not sure why but I use four other
scsi devices which use the ncr card. Anyhow I also use the alias optoion
that you use.
The main problem I had was getting the correct group and permissions on
the sg devices in /dev directory. I also managed to mislink the scanner to
sge. I then had deleted this file and did not relize that you must use mknod
or the device builder script file. Once I had htis all sorted out the sge as
a special character file and the correct link to scanner from sge I was able
to start up xscanimage with the adaptectcard and the E3 scanner.
In /etc/rc.modules I have the following lines uncommented
/sbin/modprobe aha152x=0x140,10,7,1
/sbin/modprobe sg
In /etc/conf.modules I have the following
alias scsi_hostadapter aha152x

Please bear in mind that I just hacked away at it until presto it worked.
The first thing seems to be to get the kernel to recognize the card and
thenonce you have that to get sane to recognize the device.
I hope this is of some help
Cheers,
Peter Hall
Allen Wilkinson wrote:

> Please e-mail any replies to <awr@stratos.net> as well as the linux-scsi
> list.
>
> I am working on an INTEL 200 MHz Pentium with IDE drives and CDROM.
>
> I have read SCSI-HOWTO, man sane-scsi. I have searched dejanews,
> comp.os.linux.hardware, comp.os.linux.setup, and the redhat-list archives.
> No solution is obvious to me. The last I checked Microtek offered no linux
> help.
>
> I am not succeeding in getting the SCSI host adapter recognized. My RedHat
> install is out of the box and I believe SCSI modular support is enabled in
> the kernel since I get the following from 'modprobe'
>
> aw@teq:~>modprobe -l -t scsi
> /lib/modules/2.0.31/scsi/wd7000.o
> /lib/modules/2.0.31/scsi/ultrastor.o
> /lib/modules/2.0.31/scsi/u14-34f.o
> /lib/modules/2.0.31/scsi/t128.o
> /lib/modules/2.0.31/scsi/st.o
> /lib/modules/2.0.31/scsi/sg.o
> /lib/modules/2.0.31/scsi/seagate.o
> /lib/modules/2.0.31/scsi/qlogicisp.o
> /lib/modules/2.0.31/scsi/qlogicfas.o
> /lib/modules/2.0.31/scsi/ppa.o
> /lib/modules/2.0.31/scsi/pas16.o
> /lib/modules/2.0.31/scsi/ncr53c8xx.o
> /lib/modules/2.0.31/scsi/in2000.o
> /lib/modules/2.0.31/scsi/gdth.o
> /lib/modules/2.0.31/scsi/g_NCR5380.o
> /lib/modules/2.0.31/scsi/fdomain.o
> /lib/modules/2.0.31/scsi/eata_pio.o
> /lib/modules/2.0.31/scsi/eata_dma.o
> /lib/modules/2.0.31/scsi/eata.o
> /lib/modules/2.0.31/scsi/dtc.o
> /lib/modules/2.0.31/scsi/aic7xxx.o
> /lib/modules/2.0.31/scsi/aha1740.o
> /lib/modules/2.0.31/scsi/aha1542.o
> /lib/modules/2.0.31/scsi/aha152x.o
> /lib/modules/2.0.31/scsi/advansys.o
> /lib/modules/2.0.31/scsi/NCR53c406a.o
> /lib/modules/2.0.31/scsi/BusLogic.o
> /lib/modules/2.0.31/scsi/53c7,8xx.o
>
> I then do
>
> root@teq:>insmod sg
>
> to enable the generic scsi module per the man page 'sane-scsi'
>
> After that
>
> aw@teq:~>lsmod
> Module Pages Used by
> sg 1 0
> autofs 2 1 (autoclean)
> ipx 3 9 (autoclean)
> vfat 3 1 (autoclean)
>
> tells me the generic scsi module 'sg' is loaded.
>
> Running RedHat's 'kernelcfg' program gives errors.
>
> Hence, I manually edited /etc/conf.modules to include a line like
>
> alias scsi_host aha152x aha152x=0x140,9,7
>
> ( NOTE ioport=140 HEX IRQ=9 and card scsiid=7 )
>
> ALTERNATIVELY I tried a line like
>
> alias scsi_host sg
>
> to no avail. I could not find any syntax hints to tell sg the ioport etc.
>
> Running SANE's
>
> root@teq:/dev>scanimage --list-devices
> [snapscan] add_device: failed to open scsi device "/dev/scanner".
> File open error: Operation not supported by device
> [snapscan] sane_snapscan_init: failed to add device "/dev/scanner"
> device `pnm:0' is a Noname PNM file reader virtual device
> device `pnm:1' is a Noname PNM file reader virtual device
>
> where I have tried all of the following
>
> /dev/scanner -> /dev/sga, sgb, sgc, sgd, sge, sdf, sgg, sgh
>
> I am assuming since my scanner is at scsiid=1 that /dev/sgb should be the
> correct generic scsi device.
>
> Any help is appreciated, Allen
> --
> Address:
>
> Allen Wilkinson (phone) (216) 382-7613
> 1036 Pembrook Road (work) (216) 433-2075
> Cleveland Heights, OH 44121 USA (INTERNET) awr@stratos.net
>
> --
> Source code, list archive, and docs: http://www.mostang.com/sane/
> To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com

--
Source code, list archive, and docs: http://www.mostang.com/sane/
To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com