Hervé Lemoine (lemoine@multimania.com)
Wed, 11 Aug 1999 22:18:58 +0200
Hello,
l have an old 486 DX2 66 VLB motherboard that l'm using as a print
server.l recently upgraded from 2.0.36 to 2.2.7 kernel and Linux can no
longer see the printer. Spooler seems to be busy but printer (Epson
Stylus Color ESCP/2) does not work !!
This works fine in 2.0.36 with /dev/lp1
Kernel 2.2.7 has been compiled with options :
CONFIG_KMOD=Y
CONFIG_PARPORT=M
CONFIG_PARPORT_PC=M
CONFIG_PARPORT_OTHER=Y
CONFIG_PARIDE=N
CONFIG_PRINTER=M
CONFIG_PRINTER_READBACK=Y
My kernel config is using modules
/etc/conf.modules
alias parport_lowlevel parport_pc
options parport_pc io=0x378 irq=7
When l try a lp comand, modules are loaded successfully
$ tunelp /dev/lp0
/dev/lp0 using IRQ 7
$ lsmod
Module Size Used by
parport_pc 5484 1 (autoclean)
parport 7132 1 (autoclean) [parport_pc]
lp 5220 0 (autoclean)
and in /proc, l had
$ cat /proc/devices
Character devices:
1 mem
2 pty
3 ttyp
4 ttyS
5 cua
6 lp
7 vcs
10 misc
36 netlink
128 ptm
136 pts
Block devices:
3 hd
$ ls /proc/parport/0/* | xargs -t -i cat {}
cat /proc/parport/0/autoprobe
cat /proc/parport/0/devices
lp
cat /proc/parport/0/hardware
base: 0x378
irq: 7
dma: none
modes: SPP
cat /proc/parport/0/irq
7
$ tail -f /var/log/messages
Aug 11 22:04:15 pluton kernel: parport0: PC-style at 0x378, irq 7 [SPP]
Aug 11 22:04:15 pluton kernel: lp0: using parport0 (interrupt-driven).
$ cat /etc/printcap
lp:\
:sd=/var/spool/lpd/lp0:\
:mx#0:\
:sh:\
:lp=/dev/lp0:\
:if=/var/spool/lpd/lp0/filter:
lp1:\
:sd=/var/spool/lpd/lp0:\
:mx#0:\
:sh:\
:lp=/dev/lp1:
epson:\
:lp=/dev/null:\
:sh:\
:sd=/var/spool/lpd/lp0:\
:rm=zeus.perdigal.net:\
:rp=epson:
smbesc:\
:lp=/dev/null:\
:sh:\
:sd=/var/spool/lpd/lp0:\
:rm=zeus.perdigal.net:\
:rp=smbprinter:
epson, smbesc are not used
$ strace lpr -Plp /tmp/cmd.txt
execve("/usr/bin/lpr", ["lpr", "-Plp", "/tmp/cmd.txt"], [/* 22 vars */])
= 0
brk(0) = 0x804f6e8
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat(3, {st_mode=0, st_size=0, ...}) = 0
mmap(0, 6381, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4000b000
close(3) = 0
open("/lib/libc.so.6", O_RDONLY) = 3
mmap(0, 4096, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4000d000
munmap(0x4000d000, 4096) = 0
mmap(0, 672712, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4000d000
mprotect(0x4009e000, 78792, PROT_NONE) = 0
mmap(0x4009e000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
0x90000) = 0x4009e000
mmap(0x400a6000, 46024, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x400a6000
close(3) = 0
munmap(0x4000b000, 6381) = 0
personality(PER_LINUX) = 0
getpid() = 736
sigaction(SIGHUP, {SIG_IGN}, {SIG_DFL}) = 0
sigaction(SIGHUP, {0x8049ed0, [], 0}, {SIG_IGN}) = 0
sigaction(SIGINT, {SIG_IGN}, {SIG_DFL}) = 0
sigaction(SIGINT, {0x8049ed0, [], 0}, {SIG_IGN}) = 0
sigaction(SIGQUIT, {SIG_IGN}, {SIG_DFL}) = 0
sigaction(SIGQUIT, {0x8049ed0, [], 0}, {SIG_IGN}) = 0
sigaction(SIGTERM, {SIG_IGN}, {SIG_DFL}) = 0
sigaction(SIGTERM, {0x8049ed0, [], 0}, {SIG_IGN}) = 0
uname({sys="Linux", node="pluton", ...}) = 0
open("/etc/printcap", O_RDONLY) = 3
read(3, "# /etc/printcap\n#\n# Please don"..., 8192) = 642
close(3) = 0
getuid() = 0
brk(0) = 0x804f6e8
brk(0x804fb00) = 0x804fb00
brk(0x8050000) = 0x8050000
open("/etc/nsswitch.conf", O_RDONLY) = 3
fstat(3, {st_mode=0, st_size=0, ...}) = 0
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x4000b000
read(3, "#\n# /etc/nsswitch.conf\n#\n# An"..., 4096) = 1208
brk(0x8051000) = 0x8051000
read(3, "", 4096) = 0
close(3) = 0
munmap(0x4000b000, 4096) = 0
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat(3, {st_mode=0, st_size=0, ...}) = 0
mmap(0, 6381, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4000b000
close(3) = 0
open("/lib/libnss_files.so.1", O_RDONLY) = 3
mmap(0, 4096, PROT_READ, MAP_PRIVATE, 3, 0) = 0x400b2000
munmap(0x400b2000, 4096) = 0
mmap(0, 32784, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x400b2000
mprotect(0x400b9000, 4112, PROT_NONE) = 0
mmap(0x400b9000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
0x6000) = 0x400b9000
mmap(0x400ba000, 16, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x400ba000
close(3) = 0
munmap(0x4000b000, 6381) = 0
open("/etc/passwd", O_RDONLY) = 3
fcntl(3, F_GETFD) = 0
fcntl(3, F_SETFD, FD_CLOEXEC) = 0
fstat(3, {st_mode=0, st_size=0, ...}) = 0
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x4000b000
read(3, "root:yvjVW4vfM863E:0:0:root:/roo"..., 4096) = 573
close(3) = 0
munmap(0x4000b000, 4096) = 0
open("/var/spool/lpd/lp0/.seq", O_RDWR|O_CREAT, 0661) = 3
flock(3, LOCK_EX) = 0
read(3, "016\n", 8192) = 4
getpid() = 736
stat("/var/spool/lpd/lp0/cfA016Aa00736", 0xbfffbba8) = -1 ENOENT (No
such file or directory)
lseek(3, 0, SEEK_SET) = 0
write(3, "017\n", 4) = 4
close(3) = 0
umask(0) = 022
open("/var/spool/lpd/lp0/tfA016Aa00736", O_WRONLY|O_CREAT|O_TRUNC, 0660)
= 3
umask(022) = 0
fchown(3, 0, 4294967295) = 0
fchown(3, 1, 4294967295) = 0
write(3, "Hpluton\n", 8) = 8
write(3, "Proot\n", 6) = 6
write(3, "Jcmd.txt\n", 9) = 9
write(3, "Cpluton\n", 8) = 8
write(3, "Lroot\n", 6) = 6
access("/tmp/cmd.txt", R_OK) = 0
stat("/tmp/cmd.txt", {st_mode=0, st_size=0, ...}) = 0
open("/tmp/cmd.txt", O_RDONLY) = 4
close(4) = 0
open("/tmp/cmd.txt", O_RDONLY) = 4
write(3, "fdfA016Aa00736\n", 15) = 15
write(3, "UdfA016Aa00736\n", 15) = 15
write(3, "N/tmp/cmd.txt\n", 14) = 14
umask(0) = 022
open("/var/spool/lpd/lp0/dfA016Aa00736", O_WRONLY|O_CREAT|O_TRUNC, 0660)
= 5
umask(022) = 0
fchown(5, 0, 4294967295) = 0
read(4, "gs -sDEVICE=stcolor -sOutputFile"..., 8192) = 59
write(5, "gs -sDEVICE=stcolor -sOutputFile"..., 59) = 59
read(4, "", 8192) = 0
close(5) = 0
close(4) = 0
close(3) = 0
open("/var/spool/lpd/lp0/tfA016Aa00736", O_RDWR) = 3
read(3, "H", 1) = 1
lseek(3, 0, SEEK_SET) = 0
write(3, "H", 1) = 1
close(3) = 0
link("/var/spool/lpd/lp0/tfA016Aa00736",
"/var/spool/lpd/lp0/cfA016Aa00736") = 0
unlink("/var/spool/lpd/lp0/tfA016Aa00736") = 0
socket(PF_UNIX, SOCK_STREAM, 0) = 3
connect(3, {sun_family=AF_UNIX, sun_path="/dev/printer"}, 14) = 0
write(3, "\1lp\n", 4) = 4
read(3, "\0", 1) = 1
close(3) = 0
_exit(0) = ?
Thanks for your help
Hervé
-- 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 2.0b3 on Wed 11 Aug 1999 - 16:28:38 EDT