Lpt driver broken?
I have been trying to talk to a laserprinter but whenever I try cat file /dev/lpt0 the system panics (if the printer is online) Feb 12 02:36:56 jules /boot/kernel/kernel: kernel trap 9 with interrupts disable d Feb 12 02:36:56 jules /boot/kernel/kernel: Feb 12 02:36:56 jules /boot/kernel/kernel: Feb 12 02:36:56 jules /boot/kernel/kernel: Fatal trap 9: general protection faul t while in kernel mode Feb 12 02:36:56 jules /boot/kernel/kernel: instruction pointer = 0x8:0xc0252ebc Feb 12 02:36:56 jules /boot/kernel/kernel: stack pointer= 0x10:0 xccca4f50 Feb 12 02:36:56 jules /boot/kernel/kernel: frame pointer= 0x10:0 xccca4f64 Feb 12 02:36:56 jules /boot/kernel/kernel: code segment = base 0x0, limi t 0xf, type 0x1b Feb 12 02:36:56 jules /boot/kernel/kernel: = DPL 0, pres 1, def32 1, gran 1 Feb 12 02:36:56 jules /boot/kernel/kernel: processor eflags = resume, IOPL = 0 Feb 12 02:36:56 jules /boot/kernel/kernel: current process = 288 (i rq7: lpt0) it seems to be in the fork trampoline code when it crashes. This was with kernels from Feb 1 and Feb 6. I'm going to try absolutely current now but have seen nothing about such a problem in the last 2 weeks in the lists. Is everyone using ethernet attached printers? -- __--_|\ Julian Elischer / \ [EMAIL PROTECTED] ( OZ) World tour 2000-2001 --- X_.---._/ v To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: Lpt driver broken?
On Mon, Feb 12, 2001 at 03:49:04AM -0800, Julian Elischer wrote: I'm going to try absolutely current now but have seen nothing about such a problem in the last 2 weeks in the lists. Is everyone using ethernet attached printers? This system prints fine for me: FreeBSD cicely8.cicely.de 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Wed Feb 7 14:25:42 CET 2001 [EMAIL PROTECTED]:/var/d9/src-2001-02-05/src/sys/compile/CICELY8 i386 ppc0: Parallel port at port 0x378-0x37f irq 7 on isa0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/16 bytes threshold ppbus0: IEEE1284 device found /NIBBLE Probing for PnP devices on ppbus0: ppbus0: Canon BJC-4550 PRINTER BJ,LQ,BJL,BJRaster,BSCC -- B.Walter COSMO-Project http://www.cosmo-project.de [EMAIL PROTECTED] Usergroup [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: Lpt driver broken?
Julian Elischer wrote: I have been trying to talk to a laserprinter but whenever I try cat file /dev/lpt0 the system panics (if the printer is online) Feb 12 02:36:56 jules /boot/kernel/kernel: kernel trap 9 with interrupts disable d Feb 12 02:36:56 jules /boot/kernel/kernel: Feb 12 02:36:56 jules /boot/kernel/kernel: Feb 12 02:36:56 jules /boot/kernel/kernel: Fatal trap 9: general protection faul t while in kernel mode Feb 12 02:36:56 jules /boot/kernel/kernel: instruction pointer = 0x8:0xc0252ebc Feb 12 02:36:56 jules /boot/kernel/kernel: stack pointer= 0x10:0 xccca4f50 Feb 12 02:36:56 jules /boot/kernel/kernel: frame pointer= 0x10:0 xccca4f64 Feb 12 02:36:56 jules /boot/kernel/kernel: code segment = base 0x0, limi t 0xf, type 0x1b Feb 12 02:36:56 jules /boot/kernel/kernel: = DPL 0, pres 1, def32 1, gran 1 Feb 12 02:36:56 jules /boot/kernel/kernel: processor eflags = resume, IOPL = 0 Feb 12 02:36:56 jules /boot/kernel/kernel: current process = 288 (i rq7: lpt0) it seems to be in the fork trampoline code when it crashes. This was with kernels from Feb 1 and Feb 6. following up to myself: the dmesg shows: ppc0: ECP parallel printer port at port 0x378-0x37f,0x778-0x77f irq 7 drq 3 on isa0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/7 bytes threshold lpt0: Printer on ppbus0 lpt0: Interrupt-driven port and the config has; # parallel port device ppc device ppbus device lpt The hints have no entry.. -- __--_|\ Julian Elischer / \ [EMAIL PROTECTED] ( OZ) World tour 2000-2001 --- X_.---._/ v To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: Lpt driver broken?
On 12 Feb, Julian Elischer wrote: the system panics (if the printer is online) Same here. Feb 12 02:36:56 jules /boot/kernel/kernel: kernel trap 9 with interrupts disable d Feb 12 02:36:56 jules /boot/kernel/kernel: Feb 12 02:36:56 jules /boot/kernel/kernel: Feb 12 02:36:56 jules /boot/kernel/kernel: Fatal trap 9: general protection faul t while in kernel mode Feb 12 02:36:56 jules /boot/kernel/kernel: instruction pointer = 0x8:0xc0252ebc Feb 12 02:36:56 jules /boot/kernel/kernel: stack pointer= 0x10:0 xccca4f50 Feb 12 02:36:56 jules /boot/kernel/kernel: frame pointer= 0x10:0 xccca4f64 Feb 12 02:36:56 jules /boot/kernel/kernel: code segment = base 0x0, limi t 0xf, type 0x1b Feb 12 02:36:56 jules /boot/kernel/kernel: = DPL 0, pres 1, def32 1, gran 1 Feb 12 02:36:56 jules /boot/kernel/kernel: processor eflags = resume, IOPL = 0 Feb 12 02:36:56 jules /boot/kernel/kernel: current process = 288 (i rq7: lpt0) it seems to be in the fork trampoline code when it crashes. Same here. This was with kernels from Feb 1 and Feb 6. I've a kernel from Feb 6 too (and one from Feb 8, but I think the sources are from Feb 6). But I remember some posts about a lpt panic some days ago. I tried to compile a new kernel because I think this is resolved, but I have to solve some problems with my system at the moment. Sorry, no dmesg at the moment. Bye, Alexander. -- Speak softly and carry a cellular phone. http://www.Leidinger.net Alexander @ Leidinger.net GPG fingerprint = C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7 To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: Lpt driver broken?
But I remember some posts about a lpt panic some days ago. I tried to compile a new kernel because I think this is resolved, but I have to solve some problems with my system at the moment. My -CURRENT used to crash every time lpr has been used but the panic went away when John Baldwin committed his ithread cleanup megapatch: jhb 2001/02/09 09:47:47 PST Modified files: sys/i386/i386nexus.c sys/i386/isa intr_machdep.c intr_machdep.h ithread.c Log: Use the MI ithread helper functions in the x86 interrupt code. The kernel from Feb 9 worked just fine for me, but then the following commit has been made and the system started to crash again: jhb 2001/02/09 18:41:51 PST Modified files: sys/i386/isa ithread.c Log: Re-enable preemption on interrupts. My last commit accidentally reverted it as I was playing with some other ways of doing kernel preemption. Revision ChangesPath 1.14 +9 -2 src/sys/i386/isa/ithread.c If you badly need your printer to work, you can simply revert this patch. To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: Lpt driver broken?
"Alexander N. Kabaev" wrote: But I remember some posts about a lpt panic some days ago. I tried to compile a new kernel because I think this is resolved, but I have to solve some problems with my system at the moment. My -CURRENT used to crash every time lpr has been used but the panic went away when John Baldwin committed his ithread cleanup megapatch: jhb 2001/02/09 09:47:47 PST Modified files: sys/i386/i386nexus.c sys/i386/isa intr_machdep.c intr_machdep.h ithread.c Log: Use the MI ithread helper functions in the x86 interrupt code. The kernel from Feb 9 worked just fine for me, but then the following commit has been made and the system started to crash again: jhb 2001/02/09 18:41:51 PST Modified files: sys/i386/isa ithread.c Log: Re-enable preemption on interrupts. My last commit accidentally reverted it as I was playing with some other ways of doing kernel preemption. Revision ChangesPath 1.14 +9 -2 src/sys/i386/isa/ithread.c If you badly need your printer to work, you can simply revert this patch. I booted with -c and set the irq and drq to -1 so that the driver is running in polled mode. it's now printing, slowly, but I am going to bed now so as long as it's done by the morning, I'm happy :-) I'll try your suggestion tomorrow. (I'm not interrupting this print run for anything, after spending most of the afternoon trying to get it to print at all.) :-) To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message -- __--_|\ Julian Elischer / \ [EMAIL PROTECTED] ( OZ) World tour 2000-2001 --- X_.---._/ v To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message