2001-03-16 23:52:56

by Michael B Allen

[permalink] [raw]
Subject: parport not detected


The parallel port is not being detected on my ABIT KT7A KT133 w/ Athlon
900 running 2.2.17 w/ Hendricks IDE patches and RH 6.2. I tried most of
the settings in the bios.

BIOS options are:

728/IRQ5
378/IRQ7
3BC/IRQ7

with the possible modes:

Normal
EPP
1.9 or 1.7
ECP
DMA 3 or 1
ECP+EPP
1.9 or 1.7 and DMA 3 or 1

Of the above what's optimal?

[miallen@nano /etc]$ cat conf.modules
alias eth0 3c59x
alias char-major-6 parport_pc
alias parport_lowlevel parport_pc

Also, the module is loading with depmod:

[miallen@nano 0]$ for i in /proc/parport/0/*; do echo $i; cat $i; done
/proc/parport/0/autoprobe
/proc/parport/0/devices
/proc/parport/0/hardware
base: 0x3bc
irq: none
dma: none
modes: SPP
/proc/parport/0/irq
none

I also tried an options line in modules.conf. I believe it was:

options parport_pc io=0x3bc irq=7

That was reflected in /proc but no difference in actually "detecting"
the parallel port. I did see the light come on on the printer once
though. Also, if I build parpart into the kernel I get nothing but a
hard lockup on 'Starting kswapd v 1.5'.

Any ideas?

Thanks,
Mike


2001-03-17 02:01:11

by Tim Moore

[permalink] [raw]
Subject: Re: parport not detected

> The parallel port is not being detected on my ABIT KT7A KT133 w/ Athlon

Also try comp.os.linux.hardware.

BIOS
----
278/irq5
378/irq7
EPP 1.9

.config
-------
CONFIG_PARPORT=y
CONFIG_PARPORT_PC=y
CONFIG_PNP=y
CONFIG_PNP_PARPORT=y
CONFIG_PRINTER=y
CONFIG_PRINTER_READBACK=y

kernal boot params
------------------
append="parport=0x378,7 parport=0x278,5"

options for /etc/rc.d/rc.local
------------------------------
# abort on error, careful error check, trust IRQ.
# see tunelp(8) & /usr/src/linux/drivers/misc/lp.c

/usr/sbin/tunelp /dev/lp0 -a on -o on -T on
/usr/sbin/tunelp /dev/lp1 -a on -o on -T on

looks like this (lp1 was powered down at boot time)

Feb 25 02:57:39 dell kernel: parport0: PC-style at 0x378, irq 7
[SPP,PS2,EPP]
Feb 25 02:57:39 dell kernel: parport0: Printer, Hewlett-Packard HP
LaserJet 1100
Feb 25 02:57:39 dell kernel: parport1: PC-style at 0x278, irq 5
[SPP,PS2,EPP]
Feb 25 02:57:39 dell kernel: parport1: no IEEE-1284 device present.
Feb 25 02:57:40 dell kernel: lp0: using parport0 (interrupt-driven).
Feb 25 02:57:40 dell kernel: lp1: using parport1 (interrupt-driven).


--

2001-03-17 06:05:50

by Michael B Allen

[permalink] [raw]
Subject: Re: parport not detected

Yup!

nano kernel: parport0: PC-style at 0x378, irq 7 [SPP,PS2,EPP]
nano kernel: parport0: Printer, Hewlett-Packard HP LaserJet 6L

I setup everything as you describe below. I don't remember having to
do all this stuff before(on other machines anyway). I guess I'm used to
RH's fluffed-up stock kernels.

Thanks,
Mike

On Fri, Mar 16, 2001 at 06:00:07PM -0800, Tim Moore wrote:
> > The parallel port is not being detected on my ABIT KT7A KT133 w/ Athlon
>
> Also try comp.os.linux.hardware.
>
> BIOS
> ----
> 278/irq5
> 378/irq7
> EPP 1.9
>
> .config
> -------
> CONFIG_PARPORT=y
> CONFIG_PARPORT_PC=y
> CONFIG_PNP=y
> CONFIG_PNP_PARPORT=y
> CONFIG_PRINTER=y
> CONFIG_PRINTER_READBACK=y
>
> kernal boot params
> ------------------
> append="parport=0x378,7 parport=0x278,5"
>
> options for /etc/rc.d/rc.local
> ------------------------------
> # abort on error, careful error check, trust IRQ.
> # see tunelp(8) & /usr/src/linux/drivers/misc/lp.c
>
> /usr/sbin/tunelp /dev/lp0 -a on -o on -T on
> /usr/sbin/tunelp /dev/lp1 -a on -o on -T on
>
> looks like this (lp1 was powered down at boot time)
>
> Feb 25 02:57:39 dell kernel: parport0: PC-style at 0x378, irq 7
> [SPP,PS2,EPP]
> Feb 25 02:57:39 dell kernel: parport0: Printer, Hewlett-Packard HP
> LaserJet 1100
> Feb 25 02:57:39 dell kernel: parport1: PC-style at 0x278, irq 5
> [SPP,PS2,EPP]
> Feb 25 02:57:39 dell kernel: parport1: no IEEE-1284 device present.
> Feb 25 02:57:40 dell kernel: lp0: using parport0 (interrupt-driven).
> Feb 25 02:57:40 dell kernel: lp1: using parport1 (interrupt-driven).
>
>
> --

2001-03-17 11:24:10

by Tim Waugh

[permalink] [raw]
Subject: Re: parport not detected

On Sat, Mar 17, 2001 at 01:05:51AM -0500, Michael B. Allen wrote:

> I setup everything as you describe below. I don't remember having to
> do all this stuff before(on other machines anyway). I guess I'm used to
> RH's fluffed-up stock kernels.

Which stock kernel didn't work for you?

Tim.
*/

2001-03-17 11:22:30

by Tim Waugh

[permalink] [raw]
Subject: Re: parport not detected

On Fri, Mar 16, 2001 at 06:52:53PM -0500, Michael B. Allen wrote:

> The parallel port is not being detected on my ABIT KT7A KT133 w/ Athlon

Need dmesg output to see what parport is being told and what is
finding out for itself.

> BIOS options are:
>
> 728/IRQ5
^^^ 278, probably

> 378/IRQ7
> 3BC/IRQ7

But which one is it actually set to?

> Of the above what's optimal?

It depends what you're doing, really.

> I also tried an options line in modules.conf. I believe it was:
>
> options parport_pc io=0x3bc irq=7

Take that out and see what happens.

> That was reflected in /proc but no difference in actually "detecting"
> the parallel port.

I don't know what you mean really. Are you saying that you can't
print, or just that the device ID probe (to get the printer name)
isn't working?

> Also, if I build parpart into the kernel I get nothing but a
> hard lockup on 'Starting kswapd v 1.5'.

That's quite strange.

Which kernel version are you using? Take a look at the
'troubleshooting' section of Documentation/parport.txt.

Tim.
*/