[svlug] parport & the parallel port
Eric Pretorious
epretorious at hotmail.com
Thu Mar 1 02:17:02 PST 2001
I'm stumped. I can't seem to configure parport to detect my parallel port
though /proc/sys/dev/parport/parport0/autoprobe correctly identifies my
printer. Any thoughts?
Eric P.
I've configured the BIOS (Award BIOS on a BP-6) :
I/O 0x3bc
IRQ 7
PORT MODE ECP+EPP
ECP DMA Mode 3
DPP Mode 1.7
I've compiled the kernel (v. 2.4.1):
Y Parallel port support
Y PC-Style hardware
Y Use FIFO/DMA if available
Y IEEE 1284 transfer mode
and, I've appended the lilo.conf (per the
/usr/src/linux/Documentation/partport.txt):
append = "parport=auto"
...but still receive the message "No such device" if I direct output to
/dev/lp0.
/var/log/messages contains the following:
1. *without* the kernel command line in lilo.conf:
parport0: PC-style at 0x3bc (px7bc) FIFO[PCSPP,TRISTATE,COMPAT,ECP]
parport0: irq 7 detected
parport0: legacy device
2. *with* the kernel command line in lilo.conf (append = "parport=auto"):
Kernel command line: auto BOOT_IMAGE=2.4.1c ro root=2108
BOOT_FILE=/boot/vmlinuz-2.4.1c parport=auto
parport0: PC-style at 0x3bc (px7bc), irq7 usring
FIFO[PCSPP,TRISTATE,COMPAT,ECP]
parport0: legacy device
In both instances, /proc/sys/dev/parport/parport0/ contains the following:
autoprobe
========
MODEL: HP;
MANUFACTURER: hewlett-packard;
COMMAND SET:HP;
autoprobeN # N = 1,2,3
=========
<all other autoprobe values were null>
base-addr
========
956 1980
devices/active
======/====
none
dma
===
-1
irq
===
-1
modes
=====
PCSPP,TRISTATE,COMPAT,ECP
spintime
=======
500
The device files' major and minor numbers all seem correct:
/dev/lp0 6, 0
/dev/lp1 6, 1
/dev/lp2 6, 2
...and the /proc/ioports are in-line:
03bc-03be: parport0
07bc-07be: parport0
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
More information about the svlug
mailing list