SnapScan 1236S & included AVA 1505 SCSI controller

From: Marcel Martin (mmar@mail.com)
Date: Sat Dec 23 2000 - 10:49:40 PST

  • Next message: Doug X: "Re: Configure not finding SANE"

    Hi folks and merry christmas to those who celebrate it!

    Some time ago I had the problem of getting a SnapScan 1236S scanner to work
    with a 2.4.0-test kernel.
    It finally works thanks to Abel Deuring who did the work of contacting kernel
    developers, runnig tests and pointing me into the right direction.

    Maybe I can help others using the same combination of hard- and software to
    get their scanner to work. These are the steps required to make it work:

    - get kernel 2.4.0-test12
    - get latest reiserfs-patch
      (filename: linux-2.4.0-test12-reiserfs-3.6.23-patch.gz) and apply it
    - edit the file linux/drivers/scsi/aha152x.c (lines 1470+):

    int aha152x_queue(Scsi_Cmnd *SCpnt, void (*done)(Scsi_Cmnd *))
    {
    #if 0 /* insert this line */
         if(*SCpnt->cmnd == REQUEST_SENSE) {
                    SCpnt->result = 0;
                    done(SCpnt);
     
                    return SUCCESS;
            }
    #endif /* and this one, too */

            return aha152x_internal_queue(SCpnt, 0, 0, 0, done);
    }

    - configure, compile, install your kernel as usual and reboot to test
    - get sane-backends-1.0.4 and untar
    - get the most recent snapscan backend from snapscan.sourceforge.net
    - untar snapscan backend and copy files from the resulting snapscan/
    directory into sane-backends-1.0.4/backend. The existing - outdated -
    snapscan.* files will be overwritten. (This makes e.g. color scans work, btw.)
    - configure, compile, and install sane-backend as usual
    - get, compile, and install most recent XSane (0.68)

    These aren't really step-by-step instructions and perhaps something is wrong
    (haven't really double-checked), but it should point you into the right
    direction.

    Summary:
    - Linux 2.4.0-test12 + linux-2.4.0-test12-reiserfs-3.6.23-patch
    - patch to aha152x.c
    - sane-backends-1.0.4
    - snapscan-xxxxxxxx.tar.gz (I have snapscan-11282000.tar.gz)
    - XSane 0.68

    Marcel

    -- 
     _ _
    / V / Marcel Martin    ICQ #83647876
    \   \ mmar@mail.com
    

    -- 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 : Sat Dec 23 2000 - 11:25:23 PST