[PARPORT] [ppscsi,epst] scanner (hp5200c) works only in nybble mode

From: Andrea Pelli (ap72@softhome.net)
Date: Fri Jul 28 2000 - 01:04:34 EDT

  • Next message: Marc Billaud: "Re: [PARPORT] How to mount Zip100"

    hello,

    I have an HP 5200c scanner connected through a parallel port to my pc, which is
    a pII450 w/96mb mounted on a micronics C400 motherboard. An Iomega zip drive
    and an hp deskjet are connected to the scanner.
    BIOS settings for the port are 378/IRQ7, mode ECP+EPP, DMA 3, EPP Mode 1.7 (but
    1.9 is the same).
     I patched the kernel (2.2.14-15mdk) with ppscsi-0.91, then recompiled the
    kernel with static scsi generic support and module parport, ppscsi and the
    rest. I also compiled modules for the zip drive and for scsi cd emulation.
    Everything works fine, except for the scanner being stuck to nybble mode.
    I'm sending out some logs... please help me as I've tried some tweaking, but my
    experience with linux is a beginner's.

    [dmesg after boot]
    parport0: PC-style at 0x378 (0x778) [SPP,ECP,ECPEPP,ECPPS2]
    parport0: detected irq 7; use procfs to enable interrupt-driven operation.

    [dmesg after issuing insmod parport, parport_pc, ppscsi, epst verbose=3]
    ppSCSI 0.91 (0.91) installed
    epst.1: 0x378 is parport0
    epst.1: version code reads: 0xb2
    epst.1: Target 0, bl=36 us=0 bf=0 cm=12
    epst.1: Command to 0 (6): 12 0 0 0 24 0
    epst.1: slow read 36 bytes
    epst.1: Command status 00000000 last phase 37
    epst.1: Target 1, bl=36 us=0 bf=0 cm=12
    epst.1: Command status 00010000 last phase 0
    epst.1: Target 2, bl=36 us=0 bf=0 cm=12
    epst.1: Command status 00010000 last phase 0
    epst.1: Target 3, bl=36 us=0 bf=0 cm=12
    epst.1: Command status 00010000 last phase 0
    epst.1: Target 4, bl=36 us=0 bf=0 cm=12
    epst.1: Command status 00010000 last phase 0
    epst.1: Target 5, bl=36 us=0 bf=0 cm=12
    epst.1: Command status 00010000 last phase 0
    epst.1: Target 6, bl=36 us=0 bf=0 cm=12
    epst.1: Command status 00010000 last phase 0
    epst.1: Target 7, bl=36 us=0 bf=0 cm=12
    epst.1: Command status 00010000 last phase 0
    epst.1: port 0x378 mode 0 test passed (0,0,1)
    epst.1: version code reads: 0x52
    epst.1: port 0x378 mode 1 test failed (1,-1,0)
    epst.1: version code reads: 0x2b
    epst.1: port 0x378 mode 2 test failed (1,-1,0)
    epst.1: version code reads: 0xff
    epst.1: port 0x378 mode 3 test failed (1,-1,0)
    epst.1: version code reads: 0xff
    epst.1: port 0x378 mode 4 test failed (1,-1,0)
    epst.1: version code reads: 0xff
    epst.1: port 0x378 mode 5 test failed (1,-1,0)
    epst.1: epst 0.91 (0.91), Shuttle EPST at 0x378 mode 0 (Nybble) dly 1 nice 0 sg 16
    epst.2: version code reads: 0xff
    epst.2: port 0x278 mode 0 test failed (1,-1,0)
    epst.2: version code reads: 0xff
    epst.2: port 0x278 mode 1 test failed (1,-1,0)
    epst.2: version code reads: 0xff
    epst.2: port 0x278 mode 2 test failed (1,-1,0)
    epst.2: version code reads: 0xff
    epst.2: port 0x278 mode 3 test failed (1,-1,0)
    epst.2: version code reads: 0xff
    epst.2: port 0x278 mode 4 test failed (1,-1,0)
    epst.2: version code reads: 0xff
    epst.2: port 0x278 mode 5 test failed (1,-1,0)
    epst.3: version code reads: 0xff
    epst.3: port 0x3bc mode 0 test failed (1,-1,0)
    epst.3: version code reads: 0xff
    epst.3: port 0x3bc mode 1 test failed (1,-1,0)
    epst.3: version code reads: 0xff
    epst.3: port 0x3bc mode 2 test failed (1,-1,0)
    scsi1 : epst
    scsi : 2 hosts.
    epst.1: Target 0, bl=256 us=0 bf=0 cm=0
    epst.1: Command to 0 (6): 0 0 0 0 0 0
    epst.1: Command status 00000002 last phase 37
    epst.1: Target 0, bl=16 us=0 bf=0 cm=3
    epst.1: Command to 0 (6): 3 0 0 0 10 0
    epst.1: slow read 8 bytes
    epst.1: Sense key: 6 ASC: 0 ASCQ: 0
    epst.1: Command status 00000000 last phase 37
    epst.1: Target 0, bl=256 us=0 bf=0 cm=12
    epst.1: Command to 0 (6): 12 0 0 0 ff 0
    epst.1: slow read 36 bytes
    epst.1: Command status 00000000 last phase 37
      Vendor: HP Model: C7190A Rev: 3846
      Type: Processor ANSI SCSI revision: 02
    Detected scsi generic sgc at scsi1, channel 0, id 0, lun 0
    epst.1: Target 1, bl=256 us=0 bf=0 cm=0
    epst.1: Command status 00010000 last phase 0
    epst.1: Target 2, bl=256 us=0 bf=0 cm=0
    epst.1: Command status 00010000 last phase 0
    epst.1: Target 3, bl=256 us=0 bf=0 cm=0
    epst.1: Command status 00010000 last phase 0
    epst.1: Target 4, bl=256 us=0 bf=0 cm=0
    epst.1: Command status 00010000 last phase 0
    epst.1: Target 5, bl=256 us=0 bf=0 cm=0
    epst.1: Command status 00010000 last phase 0
    epst.1: Target 6, bl=256 us=0 bf=0 cm=0

    [result of cat /proc/scsi/epst/1]
    ident: epst 0.91 (0.91), Shuttle EPST
    base port: 0x378
    mode: 0
    mode name: Nybble
    delay: 1
    nice: 0
    verbose: 0
    quiet: 0
    tot_cmds: 16
    tot_bytes: 576
    tot_errs: 0
    parport device: parport0
    claimed: 0

    [result of cat /proc/parport/0/hardware]
    base: 0x378
    irq: none*
    dma: none
    modes: SPP,ECP,ECPEPP,ECPPS2
    * This is strange to me, so i've tried echoing 7 there before insmoding ppscsi
    and epst, but nothing changed: it gets turned back to none after i do insmod or
    modprobe.

    [result of cat /proc/scsi/scsi]
    Attached devices:
    Host: scsi0 Channel: 00 Id: 00 Lun: 00
      Vendor: LG Model: CD-ROM CRD-8400B Rev: 1.00
      Type: CD-ROM ANSI SCSI revision: 02
    Host: scsi0 Channel: 00 Id: 01 Lun: 00
      Vendor: ATAPI Model: CD-R/RW CRW6206A Rev: 1.2A
      Type: CD-ROM ANSI SCSI revision: 02
    Host: scsi1 Channel: 00 Id: 00 Lun: 00
      Vendor: HP Model: C7190A Rev: 3846
      Type: Processor ANSI SCSI revision: 02

    [content of /etc/conf.modules]
    alias scsi_hostadapter ide-scsi
    alias parport_lowlevel parport_pc
    pre-install plip modprobe parport_pc ; echo 7 > /proc/parport/0/irq
    pre-install pcmcia_core /etc/rc.d/init.d/pcmcia start
    post-install supermount modprobe scsi_hostadapter
    alias char-major-81 Server:3dfx
    alias soud sb
    options sb io=0x220 irq=5 dma=1 dma16=5

    Sorry if this msg was a bit long but i think all that info could help. If more
    are needed, pls tell me how to get it and i'll post everything.

    TIA
    Andrea Pelli

    -- To unsubscribe, send mail to: linux-parport-request@torque.net --
    -- with the single word "unsubscribe" in the body of the message. --



    This archive was generated by hypermail 2b29 : Fri Jul 28 2000 - 01:54:24 EDT