Messages in this thread | | | From | Gerhard Fuellgrabe <> | Subject | Re: [patch] parport problems | Date | Fri, 22 Jan 1999 15:34:53 +0100 |
| |
Tim Waugh wrote: > > Okay, I'm now quite hopeful that this patch will fix the problems that > people are seeing. I ran into "insmod parport_pc wouldn't work" just now, > and this sorted everything out. > > This is called patch-2.2.0-pre9-parportpc, and is also available at > ftp://ftp.torque.net/pub/parport. > > Tim.
Tim,
I have problems since upgrading from 2.2.0-pre7 to -pre8, and also with 2.2.0-final and your patch. In 2.2.0-pre7, all ran fine.
I am running a new glibc-based SuSE-Linux 6.0 with plp 4.1.2. Hardware is Gigabyte 686BX, 128M RAM, Parallel port ist configured with EPP/ECP, (Ox378, irq 7). Printer is a Laserjet 6L.
Can you help me, please?
Regards,
Gerry
----------------------------------------------------------------------------------
dogmatix:/usr/src/linux/Documentation # vi /etc/conf.modules
alias parport_lowlevel parport_pc # options parport io=0x378 irq=7 dogmatix:/usr/src/linux/Documentation # modprobe lp
Jan 22 15:07:52 dogmatix kernel: parport0: PC-style at 0x378 [SPP,ECP,ECPEPP,ECPPS2] Jan 22 15:07:52 dogmatix kernel: parport0: detected irq 7; use procfs to enable interrupt-driven operation. Jan 22 15:07:52 dogmatix kernel: parport0: no IEEE-1284 device present. Jan 22 15:07:52 dogmatix kernel: lp0: using parport0 (polling).
dogmatix:/usr/src/linux/Documentation # cat /proc/modules
parport_probe 2884 0 (autoclean) parport_pc 5012 1 (autoclean) lp 5116 0 (unused) parport 6788 1 [parport_probe parport_pc lp]
dogmatix:/usr/src/linux/Documentation # /sbin/init.d/lpd start
Starting lpdPLP lpd-daemon, version 4.1.2
dogmatix:/usr/src/linux/Documentation # lpr /home/gerd/netscape.ps
Your print job has been sent to printer 'lp', job 44, rank: active.
Jan 22 15:09:46 dogmatix lpd[508]: local_dojob: lp: printing job 44 for root@dogmatix.fuenet, 18154 bytes Jan 22 15:09:46 dogmatix lpd[508]: lp: 1 copy of /home/gerd/netscape.ps, 18154 bytes
[nothing happens...]
dogmatix:/usr/src/linux/Documentation # lpc status lp
lp: queuing is enabled printing is enabled no entries no daemon present
dogmatix:/usr/src/linux/Documentation # ls -l /var/spool/lpd/ljet4l-a4-auto-mono-300/
total 5 drwxr-xr-x 2 lp lp 1024 Jan 22 15:09 . drwxr-xr-x 7 lp lp 1024 Jan 4 17:53 .. -rw------- 1 lp staff 19 Jan 22 15:09 .seq.dogmatix.fuenet -rw-r----- 1 lp lp 0 Jan 4 17:52 acct -rw-r----- 1 lp lp 0 Jan 22 15:09 lock -rw-r----- 1 lp lp 1017 Jan 22 15:09 log -rw-r----- 1 lp lp 38 Jan 22 15:09 status
dogmatix:/usr/src/linux/Documentation # less /var/spool/lpd/ljet4l-a4-auto-mono-300/log
%%[ Error: invalidfileaccess; OffendingCommand: .outputpage ]%%
Unexpected interpreter error -9. Error object: (f80)op(342:.outputpage)0x80847bc Operand stack at 0x81542a0: 0x8157a74: 0x0b int --F------ 0x0000 0x00000001 = 1 0x8157a7c: 0x01 bool --F------ 0x0000 0x08120001 = true Execution stack at 0x8154300: 0x81593dc: 0x0f oper --F---e-- 0x0000 0x08070664 = %interp_exit 0x81593e4: 0x12 str --F-rxe-- 0x0000 0x00000000 = 0x81593ec: 0x03 file --L-rxe-- 0x0001 0x08188478 0x81593f4: 0x0e null --F---e-- 0x0000 0x0807b114 0x81593fc: 0x03 file --S-rxe-- 0x0001 0x0815d3a8 0x8159404: 0x0f oper --F---e-- 0x0000 0x0807b0d0 = %runexec_finish 0x815940c: 0x03 file --S-rxe-- 0x0001 0x0815d3a8 0x8159414: 0x05 mpry --G-rxe-- 0x0002 0x0817805a 0x815941c: 0x05 mpry --G-rxe-- 0x0003 0x08178040 0x8159424: 0x05 mpry --G-rxe-- 0x0039 0x081786c6 Dictionary stack at 0x8154200: 0x8159c0c: 0x02 dict --Gwrx--- 0x0000 0x0816dddc 0x8159c14: 0x02 dict --Gwrx--- 0x0000 0x081c16f8 0x8159c1c: 0x02 dict --Lwrx--- 0x0000 0x081866c0
dogmatix:/usr/src/linux/Documentation # ls -l /dev/lp0 crw-rw--w- 1 root lp 6, 0 Dec 11 18:20 /dev/lp0
------------------------------------------------------------
Next try:
options parport io=0x378 irq=7
dogmatix:/usr/src/linux/Documentation # modprobe lp
/lib/modules/2.2.0-final/misc/parport.o: invalid parameter io parport: No such file or directory
Next try:
options parport irq=7
dogmatix:/usr/src/linux/Documentation # modprobe lp /lib/modules/2.2.0-final/misc/parport.o: invalid parameter irq parport: No such file or directory
dogmatix:/usr/src/linux/Documentation # less parport.txt
[...] KMod ----
If you use kmod, you will find it useful to edit /etc/conf.modules. Here is an example of the lines that need to be added:
alias parport_lowlevel parport_pc options parport_pc io=0x378,0x278 irq=7,auto
KMod will then automatically load parport_pc (with the options "io=0x378,0x278 irq=7,auto") whenever a parallel port device driver (such as lp) is loaded.
Uh?
-- Gerhard Fuellgrabe Phone: +49.5323.96788 Fax: 962044 Arnikaweg 34 E-mail: gerd@cacofonix.harz.de D-38678 Clausthal-Zellerfeld Ham-Radio: DK3NZ@DB0NHM.#NDS.DEU.EU http://www.harz.de/home/fuellgrabe
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |