Re: 2 SCSI cards

From: abel deuring (a.deuring@satzbau-gmbh.de)
Date: Wed May 02 2001 - 10:44:31 PDT

  • Next message: Henning Meier-Geinitz: "Re: [dev] Problems with dynamic loading on AIX"

    fenaille@fr.ibm.com wrote:
    >
    > I have a Guillemot "Color Flatbedscanner_9" installed on an SCSI AEC 67D
    > card. I have also an
    > INITIO scsi card for cd brner and disks. If I run Xscanimage with the
    > scanner connected to the external
    > port of the INITIO it works as a snapscan.
    > If I connect the scanner to the AEC card, Xscanimage crash.
    > The scanner and the AEC card are well recognized during Mandrake 8 bootup.
    > find-scanner finds the beast also.
    > How could I tell Xscanimage how to find the scanner ?

    If you use the atp870u driver for your SCSI card, you'll need to patch
    that driver. It limits the data length for the SCSI command INQURIY to
    36 bytes, while several backends, including the Snapscan und the Umax
    backend, need to read more data for this command.

    In the driver's source file (linux/driver/scsi/atp870u.c) you'll find
    either these lines:

            if (ata_cdbu[h][0] == 0x12) {
                    if (workrequ->request_bufflen > 0x24) {
                            workrequ->request_bufflen = 0x24;
                            ata_cdbu[h][4] = 0x24;
                    }
            }

    or these lines:

            /*
             * Why limit this ????
             */
            if (dev->ata_cdbu[0] == INQUIRY) {
                    if (workrequ->request_bufflen > 0x24) {
                            workrequ->request_bufflen = 0x24;
                            dev->ata_cdbu[4] = 0x24;
                    }
                  }

    If you comment them out and install the newly compiled driver, your
    scanner should be accessible via the atp870u driver. (Disclaimer: I'm
    not a kernel hacker and did not read the file atp870u.c very carefully,
    so I can't guarantee that this patch is completely side effect free. But
    it seems to work a few people.)

    Abel

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



    This archive was generated by hypermail 2b29 : Wed May 02 2001 - 09:27:17 PDT