PLIP: not detected. My system, or bug in 1.2.13?

PLIP: not detected. My system, or bug in 1.2.13?

Post by Andrea Controz » Tue, 28 Nov 1995 04:00:00



: (Apologies for the long lines)

: Last week I decided to configure PLIP on my system and I recompiled my 1.2.13
: kernel with PLIP enabled, but it is not detected on startup.

Perhaps I say something REALLY stupid, but the first time I tried PLIP it
was not recognazed because I compiled the kernel with parallel printer
enabled.
You did the same error?

: Nov 19 14:02:03 jsm-net kernel: lp1 at 0x0378, using polling driver
: ....
: Nov 19 14:02:03 jsm-net kernel: CSLIP: code copyright 1989 Regents of the University of California
: (Plip is probed here)
: Nov 19 14:02:03 jsm-net kernel: Checking 386/387 coupling... Ok, fpu using exception 16 error reporting.

: The parallel port is there (lp.c finds it) but plip_init does not find it.

: After a number of attempts, I added some debugging printks to plip.c to see
: why the probe was failing, the results were as follows:

: Nov 22 00:01:17 jsm-net kernel: CSLIP: code copyright 1989 Regents of the University of California
: Nov 22 00:01:17 jsm-net kernel: plip0: Check_region for 0x3bc was 0
: Nov 22 00:01:17 jsm-net kernel: plip0: Plip could not find a port at 0x3bc, data was 255
: Nov 22 00:01:17 jsm-net kernel: plip1: Check_region for 0x378 was -16
: Nov 22 00:01:17 jsm-net kernel: plip2: Check_region for 0x278 was 0
: Nov 22 00:01:17 jsm-net kernel: plip2: Plip could not find a port at 0x278, data was 255
: Nov 22 00:01:17 jsm-net kernel: Checking 386/387 coupling... Ok, fpu using exception 16 error reporting.

: check_region is returning -16 at the correct address, but this is rejected by
: plip.c (with my additions)

:         printk("%s: Check_region for %#3lx was %d\n", dev->name,
:                dev->base_addr, check_region(PAR_DATA(dev), 3));

:       if (check_region(PAR_DATA(dev), 3) < 0)
:                 return -ENODEV;

: So (on my system) the correct port is rejected, the incorrect ports pass
: through to second probe stage:

:         /* Check that there is something at base_addr. */
:         outb(0, PAR_DATA(dev));
:         udelay(1000);
:         if (inb(PAR_DATA(dev)) != 0) {
:                 printk("%s: Plip could not find a port at %#3lx, data was %d\n",
:                        dev->name, dev->base_addr, inb(PAR_DATA(dev)) );
:                 return -ENODEV;
:         }

:         printk(version);

: Looking at the skeleton packet driver it _seemed_ that the check_region logic
: might be in error, so I reversed the sense:

: /*      jsm reversed the sense to: */
:         if (check_region(PAR_DATA(dev), 3) >= 0)
:                 return -ENODEV;

: Then it is detected ok:

: Nov 23 19:35:26 jsm-net kernel: plip0: Check_region for 0x3bc was 0
: Nov 23 19:35:26 jsm-net kernel: plip1: Check_region for 0x378 was -16

: Nov 23 19:35:26 jsm-net kernel: plip1: Parallel port at 0x378, using assigned IRQ 7.
: Nov 23 19:35:26 jsm-net kernel: plip2: Check_region for 0x278 was 0

: I have yet to actually connect up a plip cable (!) but I am now able to
: ifconfig plip1

: Is this a genuine bug in plip.c or am I being very stupid ?
: Note the same check_region coding exists in 1.3.35 which is the latest source
: code I have, I am running 1.2.13 as noted above however.

: Any comments appreciated

: jsm

--
Andrea Controzzi - Student of Computer Science at University of Pisa - Italy

My home page: http://www.cli.di.unipi.it/~controzz/intro.html
StarBlazers home page: http://rose-hulman.edu/~scroggkw/Yamato/yamato.html

Proud member of...

+-------------------------------------------------------------+
|                                    .                  * .   |
|           .        __         .             .               |
|                oq  |    po               _ _                |
|              /  #==>>>==#            ,-' (_)\               |
|              |  ,-|~\\       ///_ ,()  ,_____}              |
|              |  |/|~]]] /// ,-~'  .,~   /   \|      .       |
|              |\_|_|_\_\~~----~~'   \   (    /|    .         |
| .            /~ \___/           [m] \   \__//               |
|             _bo..__             //   `-,.~~                 |
|          _-~ 0000000000000ooooo.__    (         .           |
|         \      000000000000000000000000o  .                 |
|      .          (_)0000000000000000000000                   |
|    .         \~~~*,,,* ~000000000000000000                  |
|                            ~0000000000000             .     |
|                               ~~~---~~                      |
|                   .*                                        |
+-------------------------------------------------------------+
|     An e-mail network of Space Cruiser Yamato and           |
|                      StarBlazers Fans                       |
+-------------------------------------------------------------+

 
 
 

PLIP: not detected. My system, or bug in 1.2.13?

Post by M.Buchenried » Fri, 01 Dec 1995 04:00:00




>: (Apologies for the long lines)
>: Last week I decided to configure PLIP on my system and I recompiled my 1.2.13
>: kernel with PLIP enabled, but it is not detected on startup.
>Perhaps I say something REALLY stupid, but the first time I tried PLIP it
>was not recognazed because I compiled the kernel with parallel printer
>enabled.
>You did the same error?
>: Nov 19 14:02:03 jsm-net kernel: lp1 at 0x0378, using polling driver

Yep. Seems so.

--

**************************************************************************
* Our continuing mission: To seek out knowledge of C, to explore strange *
* UNIX commands and to boldly code where no one has manpage 4...         *

 
 
 

1. 3com 509 not being detected by Linux 1.2.13

Hi,

        I got sections A, AP, N, D from the slackware distribution
        from tsx-11.mit.edu. I installed all of them and ran
        'netconfig' to configure the computer's address, etc.

        I rebooted and while rebooting, the computer shows some
        TIOC/SIO..... variables as not being defined and when I try
        telnetting to a host I added in /etc/hosts, the computer
        says 'Network unreachable'. I can telnet to localhost.

        My 3com 509 is set at 310h, interrupt 15.

        Can anyone tell me what the problem is? I also read the
        NET-2-HOWTO doc and the Ethernet-HOWTO and it says there
        the 3com 509 is supported.

        Pls. email or post. Thanks!

John
--
- J -

2. isapnp question

3. strange problems 1.2.13 --> 2.0.0 --> 1.2.13

4. Partitioner

5. Linux 1.2.13 ELF not detecting SoundBlaster CDROM drive

6. Red Hat 6.2, Highpoint HPT366: installs fine, won't boot stopping at 'LI'

7. LibXt.so.6 not found (java setup for 1.2.13 system)

8. Talk, ntalk, and company

9. Is PLIP broken in 1.2.13 ?

10. PLIP 1.2.13 <==> 2.0.30

11. plip between 1.2.13 and 1.3.99

12. Kernel 1.2.13 Failed to Detect NE2000 Card

13. Bug in 1.2.13 kernel w. IP_MASQUERADE?