Re: Setting up HP ScanJet 5P on Solaris 8 SPARC

From: Gregory Gulik (greg@gulik.org)
Date: Tue Feb 06 2001 - 14:35:56 PST

  • Next message: Gregory Gulik: "Re: Setting up HP ScanJet 5P on Solaris 8 SPARC"

    John Craig wrote:
    > I have some ideas that may or may not help much, but at least I have a
    > scanner that somewhat works on a Sun sparc. You will not see a device similar
    > to scg0e in /dev. If the generic driver is set up properly, you will just see
    > /dev/scg0, however, you have to specify something like /dev/scg0x in your
    > hp.conf file. The x is replaced by a letter "a" if the scanner is scsi id 0,
    > "b" if it is scsi id 1, etc. In my case, I have a scanner on scsi id 4, so
    > the device is /dev/scg0e. Of course, you have to make sure it is not
    > conflicting with any other device on your scsi chain, and adjust the scsi id
    > setting accordingly. In my case, the default scsi id for the scanner was 6,
    > but that conflicted with the cdrom, so I changed the setting to 4.

    John,

    Thanks for offering to help. I'm just about to give up on this whole
    idea and just keep using xvscan.

    What do you mean by your scanner "somewhat" working???
     
    > How can you tell the scsi id (or scsi target) settings of your drives? I am
    > running Solaris7, but as far as I know the only way to get a printout of the
    > scsi devices on a Solaris box is to halt the operating system with a "Stop a"
    > and type "probe-scsi" at the ok prompt, and they recommend you reboot after
    > doing that. Unfortunately, there is no /proc/scsi on Solaris like there is on
    > Linux.

    This is from a very recent "probe-scsi", nothing has changed hardware
    wise since then:

    ok probe-scsi
    Primary UltraSCSI bus:
    Target 1
      Unit 0 Disk SEAGATE ST318416W 0010
    Target 3
      Unit 0 Disk SEAGATE ST39173LW 6246
    Target 4
      Unit 0 Removable Tape Seagate STT20000N 6A51
    Target 6
      Unit 0 Removable Read Only device PLEXTOR CD-R PX-W124TS1.05

    Removeable-Media/External SCSI bus:
    Target 2
      Unit 0 Processor HP C5110A 3701
    Target 4
      Unit 0 Removable Disk iomega jaz 1GB J.83
    ok

    I know it's target two which means the trailing letter should be a 'c'.
    I've tried using /dev/sg0c as well as /dev/sg1c with no difference.

    > If you can see the scanner on the probe-scsi listing, you can then get the
    > "Target" number and set up the device setting is
    > /usr/local/etc/sane.d/hp.conf, an make sure hp is not commented in dll.conf.
    > If all that is done, you should see the scanner when you type "scanimage -L"
    > If so, let me know. I have other problems with my setup, maybe you can help
    > me with them.

    I check dll.conf and hp is in there and not commented out.
    My hp.conf file currently contains:
    scsi HP
    /dev/scg1c

    I've also tried /dev/scg0c. With the above scanimage -L gives me:
    # scanimage -L
    [sanei_debug] Setting debug level of sanei_scsi to 16.
    [sanei_debug] Setting debug level of sanei_scsi to 16.
    [sanei_debug] Setting debug level of sanei_scsi to 16.
    [sanei_debug] Setting debug level of sanei_scsi to 16.
    [sanei_scsi] sanei_scsi_open: open of `/dev/sga' failed: No such file or
    directory
    [sanei_debug] Setting debug level of sanei_scsi to 16.
    [sanei_debug] Setting debug level of sanei_scsi to 16.
    [sanei_debug] Setting debug level of sanei_scsi to 16.
    [sanei_debug] Setting debug level of sanei_scsi to 16.
    [sanei_debug] Setting debug level of sanei_scsi to 16.
    [sanei_scsi] sanei_scsi_open: open of `option dump 1' failed: No such file or
    directory
    [sanei_scsi] sanei_scsi_find_devices: not implemented for this platform
    [sanei_debug] Setting debug level of sanei_scsi to 16.
    [sanei_scsi] sanei_scsi_open: open of `option dump 1' failed: No such file or
    directory
    [sanei_debug] Setting debug level of sanei_scsi to 16.
    [sanei_debug] Setting debug level of hp to 16.
    [hp] init called
    [hp] get_devices called
    [hp] hp_read_config: hp backend v0.88 starts reading config file
    [hp] hp_read_config: processing line <scsi HP>
    [hp] hp_read_config: processing line </dev/scg1c>
    [hp] hp_read_config: attach scsi HP
    [hp] hp_read_config: attach /dev/scg1c
    [hp] hp_get_dev: New device /dev/scg1c, connect-scsi, scsi-request=1
    [sanei_debug] Setting debug level of sanei_scsi to 16.
    [sanei_scsi] sanei_scsi_open: open of `/dev/scg1c' failed: No such file or
    directory
    [hp] scsi_new: open failed (Invalid argument)
    [hp] /dev/scg1c: Can't open scsi device
    [sanei_debug] Setting debug level of sanei_scsi to 16.
    [sanei_scsi] sanei_scsi_open: open of `/dev/camera' failed: No such file or
    directory
    [sanei_debug] Setting debug level of sanei_scsi to 16.
    [sanei_debug] Setting debug level of sanei_scsi to 16.
    [sanei_debug] Setting debug level of sanei_scsi to 16.
    [sanei_debug] Setting debug level of sanei_scsi to 16.
    [sanei_debug] Setting debug level of sanei_scsi to 16.
    [sanei_debug] Setting debug level of sanei_scsi to 16.
    [sanei_debug] Setting debug level of sanei_scsi to 16.
    [hp] exit called
    #

    This is getting really frustrating. According to the SANE docs both Solaris
    and the HP 5P are supported, I just don't understand why it just won't work!

    If you notice above, scanimage still thinks the file /dev/scg1c should
    exist when everybody tells me the last letter is just used by the program
    to determine which SCSI id should be used on that SCSI bus.

    -- 
    Greg Gulik                                 http://www.drivingevents.com/
    greg@gulik.org or greg@gagme.com           http://www.gagme.com/~greg/
    

    -- 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 : Tue Feb 06 2001 - 14:36:47 PST