[PARPORT] Problem with 2 parallel ports

From: Diego Muñoz Pérez \(Trevenque Sistemas de Información S.L.\) (munoz@trevenque.es)
Date: Fri Oct 05 2001 - 19:36:37 EDT

  • Next message: Nicolás García-Pedrajas: "[PARPORT] printer does not work with kernel 2.4"

    Hi people,

    I've got a problem (who doesn´t :D ). I have Linux Red Hat 7.1 with 2
    parallel ports, one on the same mainboard and the other one is an PCI card.
    I wish connect two printers on those different LPT's.

    Here is the /proc/pci log:

    Bus 0, device 17, function 0:
        Communication controller: PCI device 9710:9805 (rev 1).
          IRQ 12.
          Master Capable. Latency=64.
          I/O at 0xd400 [0xd407].
          I/O at 0xd000 [0xd007].
          I/O at 0xcc00 [0xcc07].
          I/O at 0xc800 [0xc807].
          I/O at 0xc400 [0xc407].
          I/O at 0xc000 [0xc00f].

    Following the steps I do:

    # insmod parport
    # insmod parport_pc io=0xd400,0xd000,0xcc00,0xc800,0xc400,0xc000 irq=12
    (I cannot execute parport_probe because it doesn't exists ...)
    #lsmod
    Module Size Used by
    parport_pc 17968 3
    parport 25952 3 [lp parport_pc]
    autofs 11264 1 (autoclean)
    3c59x 25344 1 (autoclean)
    (the modules are ready)

    I get the next messages on /var/log/messages:

    Oct 5 17:24:28 servidor kernel: parport0: PC-style at 0xd400, irq 12
    [PCSPP,TRISTATE,EPP]
    Oct 5 17:24:28 servidor kernel: parport0: irq 12 in use, resorting to
    polled operation
    Oct 5 17:24:28 servidor kernel: parport1: PC-style at 0xd000
    [PCSPP,TRISTATE,EPP]
    Oct 5 17:24:28 servidor kernel: parport2: PC-style at 0xcc00
    [PCSPP,TRISTATE,EPP]
    Oct 5 17:24:28 servidor kernel: parport3: PC-style at 0xc800
    [PCSPP,TRISTATE,EPP]
    Oct 5 17:24:28 servidor kernel: parport4: PC-style at 0xc400
    [PCSPP,TRISTATE,EPP]
    Oct 5 17:24:28 servidor kernel: parport5: PC-style at 0xc000
    [PCSPP,TRISTATE,EPP]
    Oct 5 17:25:23 servidor kernel: lp0: using parport0 (polling).
    Oct 5 17:25:23 servidor kernel: lp1: using parport1 (polling).
    Oct 5 17:25:23 servidor kernel: lp2: using parport2 (polling).
    Oct 5 17:25:23 servidor kernel: lp: ignoring parallel port (max. 3)

    and finally I send a simple ls tag to the differents /dev/lp:
    # ls -la . > /dev/lp0
    # ls -la . > /dev/lp1
    # ls -la . > /dev/lp2

    The response on messages is:
    Oct 5 17:26:18 servidor kernel: lp0 off-line
    Oct 5 17:26:22 servidor kernel: lp1 off-line
    Oct 5 17:26:40 servidor kernel: lp2 off-line

    I even tried to send something to /dev/par? and /dev/parport? without a good
    response. So ... what should I do? Did I make something wrong?.

    Thanks a lot in advance

    Best regards from Spain ... good sun ... good girls ... good alcohol,
    hehehehe ... the paradise

    ____________________________________________________________
    Diego Muñoz Pérez
    Network administrator & Web developer
    Trevenque Sistemas de Informacion S.L.
    Pza Gertrudis Gomez de Avellaneda,6
    18008 Granada (Spain)
    Tfno. 34 958183030
    Fax: 34 958134402
    E-mail. munoz@trevenque.es

    -- 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 Oct 05 2001 - 12:37:03 EDT