Re: Printer-device configuration problems

Eric S. Raymond (esr@thyrsus.com)
Thu, 10 Sep 1998 14:48:15 -0400


Eric S. Raymond <esr@thyrsus.com>:
> Tim Waugh wrote:
> > If you only have one parallel port, which I think is what you've
> > described, then you can expect /dev/lp0 to be the right device. To make
> > sure, you could try booting with:
> >
> > parport=0x378 lp=parport0
> >
> > on the kernel command line. (Or something like that - check
> > Documentation/parport.txt and drivers/char/lp.c.)
>
> No joy.
>
> I guess the thing to do next is to hack the port address to the standard
> lp0 value in NVRAM and see if that helps.

That didn't help either. dmesg now reports

parport0: PC-style at 0x3bc [SPP]

which is the standard lp0 address, but I get the same "Operation not
supported" message when I try to cat to /dev/lp0.

-- 
		<a href="http://www.tuxedo.org/~esr">Eric S. Raymond</a>

The following is a Python RSA implementation. According to the US Government these three lines are "munitions" and posting them makes me an international arms trafficker! Join me in civil disobedience; add these lines of code to your .sig block to help get this stupid and unconstitutional law changed. ============================================================================ from sys import*;from string import*;a=argv;[s,p,q]=filter(lambda x:x[:1]!= '-',a);d='-d'in a;e,n=atol(p,16),atol(q,16);l=(len(q)+1)/2;o,inb=l-d,l-1+d while s:s=stdin.read(inb);s and map(stdout.write,map(lambda i,b=pow(reduce( lambda x,y:(x<<8L)+y,map(ord,s)),e,n):chr(b>>8*i&255),range(o-1,-1,-1)))

Everything you know is wrong. But some of it is a useful first approximation.

- 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/faq.html