RE: [PARPORT] Redhat 7.1 & HP 5300C scanner

From: Fernando Pando (
Date: Sun Jul 01 2001 - 19:02:47 EDT

  • Next message: Eric Lamarque: "Re: [PARPORT] Redhat 7.1 & HP 5300C scanner"

    hi again,

      first, I appologize for the repeat posting of the original message.

       second, thanks for the help in recompiling the kernel with ppscsi module
    support. This is now working! yippee!....

       thirdly, I am having problems getting the scanner to register. I've
    think i've read all available documentation (please let me know if there are
    other resources) and i am a bit stuck. the scanner does not seem to show

    no scsi devices appear to register. should they be?
    do i need to manually echo the scsi/parallel device into this file?
    if so, what should that device be?

    [root@oort sane-backends-1.0.5]# cat /proc/scsi/scsi
    Attached devices: none


    [root@oort log]# sane-find-scanner # Note that sane-find-scanner will find any scanner that is connected # to a SCSI bus. It will even find scanners that are not supported # at all by SANE. It won't find a scanner that is connected to a # parallel, USB or other non-SCSI port.

    # If your scanner uses SCSI, you must have a driver for your SCSI # adaptor and support for SCSI Generic (sg) in your Operating System # in order for the scanner to be used with SANE. If your scanner is # NOT listed above, check that you have installed the drivers. ---------------------------------------------------------------------------- -

    scanimage -L has no output!

    [root@oort log]# scanimage --list-devices [root@oort log]# ---------------------------------------------------------------------------- --

    these are the instructions on the page: insmod scsi_mod insmod sg insmod parport insmod parport_pc insmod ppscsi insmod epst

    they all work except the last:

    [root@oort sane-backends-1.0.5]# insmod epst Using /lib/modules/2.4.2-2/kernel/drivers/scsi/epst.o /lib/modules/2.4.2-2/kernel/drivers/scsi/epst.o: init_module: No such device Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters

    is these irrelavent because i have an HP scanner and the epst module is only for epson scanners?


    here is some log file output:

    [root@oort log]# dmesg|grep parport parport0: PC-style at 0x378 [PCSPP,TRISTATE] parport0: Found 1 daisy-chained devices parport0: No more nibble data (0 bytes) parport0: faking semi-colon parport0 probe: warning, class 'IMAGE' not understood. parport0 (addr 0): Unknown device, Hewlett-Packard Hewlett-Packard ScanJet 5300C

    [root@oort log]# tail -6 messages Jul 1 22:34:38 oort kernel: Winbond Super-IO detection, now testing ports 3F0,370,250,4E,2E ... Jul 1 22:34:38 oort kernel: SMSC Super-IO detection, now testing Ports 2F0, 370 ... Jul 1 22:34:38 oort kernel: parport0: PC-style at 0x378 [PCSPP,TRISTATE] Jul 1 22:34:38 oort kernel: parport0 probe: warning, class 'IMAGE' not understood. Jul 1 22:34:38 oort kernel: parport0 (addr 0): Unknown device, Hewlett-Packard Hewlett-Packard ScanJet 5300C Jul 1 22:35:12 oort modprobe: modprobe: Can't locate module char-major-81


    I tried to 'echo "verbose=4"> /proc/scsi/ppscsi/0', but there is no such file: is this the correct way to create more thourough logging? is it an error that the file is missing?

    [root@oort sane-backends-1.0.5]# ls -al /proc/scsi total 0 dr-xr-xr-x 2 root root 0 Jul 1 22:38 . dr-xr-xr-x 45 root root 0 Jun 30 15:26 .. -r--r--r-- 1 root root 0 Jul 1 22:38 scsi ---------------------------------------------------------------------------- ---

    I tried to load this when loading the module, as stated in ppscsi.c comments, but i get the following error:

    [root@oort log]# modprobe ppscsi verbose=4 /lib/modules/2.4.2-2/kernel/drivers/scsi/ppscsi.o: invalid parameter parm_verbose /lib/modules/2.4.2-2/kernel/drivers/scsi/ppscsi.o: insmod /lib/modules/2.4.2-2/kernel/drivers/scsi/ppscsi.o failed /lib/modules/2.4.2-2/kernel/drivers/scsi/ppscsi.o: insmod ppscsi failed

    [root@oort log]# insmod ppscsi verbose=4 Using /lib/modules/2.4.2-2/kernel/drivers/scsi/ppscsi.o /lib/modules/2.4.2-2/kernel/drivers/scsi/ppscsi.o: invalid parameter parm_verbose ---------------------------------------------------------------------------- --------------------

    I am really stuck and would really appreaciate help with this. The reason I need this to work is because i would like to write a PHP web app that would execute command line scanimage and write the image to a tmp file, convert to jpg & write to mysql database (along with other info). My only hurdle is getting the hardware and command line scanimage to work. (the scanner would be connected to the webserver, the DB on another linux machine, and the webbrowser would be platform independent).

    If anyone is intrested in this program, i would be happy to share my code. I have never written anything that i think would be useful on any sort of big scale, so any guidence on releasing this to the open source, linux community would also be helpful :)

    -thanks, fernando pando

    ============================================================================ == PS ... some other possibly useful debugging info?

    [root@oort /proc]# cat modules ppscsi 11984 0 (unused) parport_pc 17872 0 parport 25664 0 [ppscsi parport_pc] sg 26560 0 (autoclean) (unused) scsi_mod 93728 1 (autoclean) [ppscsi sg] eepro100 16496 1 (autoclean)

    [root@oort /proc]# cat version Linux version 2.4.2-2 (root@oort) (gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-81)) #1 Sat Jun 30 11:05:46 EDT 2001

    [root@oort /proc]# cat ioports 0000-001f : dma1 0020-003f : pic1 0040-005f : timer 0060-006f : keyboard 0070-007f : rtc 0080-008f : dma page reg 00a0-00bf : pic2 00c0-00df : dma2 00f0-00ff : fpu 01f0-01f7 : ide0 02f8-02ff : serial(auto) 0378-037a : parport0 03c0-03df : vga+ 03f6-03f6 : ide0 03f8-03ff : serial(auto) 0cf8-0cff : PCI conf1 5000-50ff : VIA Technologies, Inc. VT82C586B ACPI 6800-681f : Intel Corporation 82557 [Ethernet Pro 100] 6800-681f : eepro100 6c00-6cff : Rendition Verite V2000/V2100/V2200 7000-703f : Intel Corporation 82557 [Ethernet Pro 100] (#2) 7000-703f : eepro100 e000-efff : PCI Bus #01 f000-f00f : VIA Technologies, Inc. Bus Master IDE f000-f007 : ide0 f008-f00f : ide1

    ============================================================================ =====================

    -----Original Message----- From: []On Behalf Of Tim Waugh Sent: Friday, June 29, 2001 9:34 PM To: Fernando Pando Cc: Subject: Re: [PARPORT] Redhat 7.1 & HP 5300C scanner

    On Fri, Jun 29, 2001 at 03:03:19PM +0100, Fernando Pando wrote:

    > 1) why is "make modules" breaking? any clues?

    Use 'make mrproper' first, then copy a config file (from the configs directory) to .config, and run make oldconfig.

    > 2) am I on the right path? do i need to recompile the kernel? > 3) the HP5300C is connected to the parallel port. am on on the right track > with the ppscsi patch?


    Tim. */

    -- To unsubscribe, send mail to: -- -- with the single word "unsubscribe" in the body of the message. --

    This archive was generated by hypermail 2b29 : Sun Jul 01 2001 - 23:45:17 EDT