Subject: Re: pint
To: Carl S Shapiro <cshapiro@sparky.ic.sunysb.edu>
From: David Maxwell <david@fundy.ca>
List: port-i386
Date: 06/15/1997 03:07:25
Carl S Shapiro wrote:
> 
> I hope this is the correct mailing list to ask this question...
> 
> I am trying to get a Hewlett Packard ScanJet to work with my NetBSD i386
> machine running 1.2.1.  Unfortunately, I am having a few problems.
> 
> I added the "ss" driver to my kernel config file, and rebooted my machine,
> [...]
> Do I have to do anything special to have this devices recognized as a scanner
> as opposed to an unknown SCSI device?  What happened to the scanning apps
> off of the PINT web page?

Hi Carl, you don't mention which HP scanjet you have, but it isn't in
the
ss_scanjet.c file, or the ss.c file, both found in /usr/src/sys/scsi

Find the two sections below and add an entry using the infomation from
the
boot messages...

> uk0 at scsibus0 targ 5 lun 0: <HP, C2520A, 3503> SCSI2 3/processor fixed
> uk0: unknown device

excerpt from ss_scanjet.c

        if (!bcmp(sa->sa_inqbuf->product, "C1750A", 6)) {
                ss->sio.scan_scanner_type = HP_SCANJET_IIC;
                printf("HP ScanJet IIc");
        }
        if (!bcmp(sa->sa_inqbuf->product, "C2500A", 6)) {
                ss->sio.scan_scanner_type = HP_SCANJET_IIC;
                printf("HP ScanJet IIcx");
        }
        if (!bcmp(sa->sa_inqbuf->product, "C1130A", 6)) {
                ss->sio.scan_scanner_type = HP_SCANJET_IIC;
                printf("HP ScanJet 4p");
        }

excerpt from ss.c


struct scsi_inquiry_pattern ss_patterns[] = {
        {T_SCANNER, T_FIXED,
         "",         "",                 ""},
        {T_SCANNER, T_REMOV,
         "",         "",                 ""},
        {T_PROCESSOR, T_FIXED,
         "HP      ", "C1750A          ", ""},
        {T_PROCESSOR, T_FIXED,
         "HP      ", "C2500A          ", ""},
        {T_PROCESSOR, T_FIXED,
         "HP      ", "C1130A          ", ""},
};

And then build a new kernel, boot it, and you should be set.
(make sure to makedev /dev/scan0 or other device name)

As far as PINT tools go, if they aren't on the site you used to use,
ftpsearch (http://ftpsearch.unit.no/ftpsearch) should turn up an
alternative.

								David