Re: [PARPORT] vmware, EPP, ECP, ZIP drive, printer port

From: IgoR (IgorF@ix.netcom.com)
Date: Sat May 20 2000 - 02:14:55 EDT

  • Next message: Kenneth Murphy: "[PARPORT] newbie build"

    Tim,

    I tried it (with your additional patch to the original patch)
    and... it does not work...

    Here is the output from "dmesg"

    ppa: Version 2.03 (for Linux 2.2.x)
    ppa: Found device at ID 6, Attempting to use EPP 32 bit
    ppa: Found device at ID 6, Attempting to use ECP PS/2
    ppa: Communication established with ID 6 using ECP PS/2
    scsi0 : Iomega VPI0 (ppa) interface
    scsi : 1 host.
      Vendor: IOMEGA Model: ZIP 100 Rev: N*32
      Type: Direct-Access ANSI SCSI revision: 02
    Detected scsi removable disk sda at scsi0, channel 0, id 6, lun 0
    SCSI device sda: hdwr sector= 512 bytes. Sectors= 196608 [96 MB] [0.1 GB]
    sda: Write Protect is off
     sda: sda4

    --------------
    and this is the output after I tried to mount
    the zip drive
    --------------

    [tina@tina tina]$ mount /mnt/zip
    [MS-DOS FS Rel. 12,FAT 0,check=n,conv=b,uid=503,gid=503,umask=002,bmap]
    [me=0x0,cs=0,#f=0,fs=0,fl=0,ds=0,de=0,data=0,se=0,ts=0,ls=0,rc=0,fc=4294967295]

    Transaction block size = 512
    VFS: Can't find a valid MSDOS filesystem on dev 08:04.

    mount: wrong fs type, bad option, bad superblock on /dev/sda4,
           or too many mounted file systems

    Igor is still open to perform additional
    experiments

    Sincerely

    Igor

    Tim Waugh wrote:

    > On Tue, May 16, 2000 at 09:35:54PM -0700, IgoR wrote:
    >
    > > is there any workaround for my problem ??
    >
    > Can you try this patch out and see if it helps? I don't _think_ it
    > should be necessary, so it might not help, but you never know..
    >
    > Tim.
    > */
    >
    > --- linux/drivers/scsi/ppa.h~ Thu Apr 20 14:32:54 2000
    > +++ linux/drivers/scsi/ppa.h Thu May 18 14:23:11 2000
    > @@ -83,6 +83,7 @@
    > #define PPA_EPP_16 4 /* EPP mode, 16 bit */
    > #define PPA_EPP_32 5 /* EPP mode, 32 bit */
    > #define PPA_UNKNOWN 6 /* Just in case... */
    > +#define PPA_ECPPS2 7 /* PS/2 mode in ECP */
    >
    > static char *PPA_MODE_STRING[] =
    > {
    > --- linux/drivers/scsi/ppa.c~ Fri May 7 18:57:42 1999
    > +++ linux/drivers/scsi/ppa.c Thu May 18 14:23:11 2000
    > @@ -163,7 +163,7 @@
    >
    > if (modes & PARPORT_MODE_PCECPPS2) {
    > w_ecr(ppb, 0x20);
    > - ppa_hosts[i].mode = PPA_PS2;
    > + ppa_hosts[i].mode = PPA_ECPPS2;
    > }
    > if (modes & PARPORT_MODE_PCECPEPP)
    > w_ecr(ppb, 0x80);
    > @@ -180,6 +180,7 @@
    > case PPA_NIBBLE:
    > ports = 3;
    > break;
    > + case PPA_ECPPS2:
    > case PPA_PS2:
    > ports = 3;
    > break;
    > @@ -399,6 +400,7 @@
    > }
    > switch (ppa_hosts[host_no].mode) {
    > case PPA_NIBBLE:
    > + case PPA_ECPPS2:
    > case PPA_PS2:
    > /* 8 bit output, with a loop */
    > r = ppa_byte_out(ppb, buffer, len);
    > @@ -449,6 +451,8 @@
    > w_ctr(ppb, 0xc);
    > break;
    >
    > + case PPA_ECPPS2:
    > + w_ecr(ppb, 0x20);
    > case PPA_PS2:
    > /* 8 bit input, with a loop */
    > w_ctr(ppb, 0x25);
    >
    > ------------------------------------------------------------------------
    > Part 1.2Type: application/pgp-signature

    -- 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 : Sat May 20 2000 - 02:15:32 EDT