[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: cannot open '/dev/lp0' - 'No such device'



David Densmore hat gesagt: // David Densmore wrote:

> here is an exerpt from the status.lp file in the spool dir:
> 
> opening device '/dev/lp0' at 1999-12-20-04:28:07.270
> cannot open '/dev/lp0' - 'No such device', attempt 1...
> 
> I see this in the boot messages:
> 
> parport0: PC-style at 0x378 [SPP,ECP,ECPPS2]
> 
> I have these files on my system:
> 
> /proc/parport/0/autoprobe
> /proc/parport/0/devices
> /proc/parport/0/hardware
> /proc/parport/0/irq
> 
> but they are all zero bytes.  Should they contain some information?

Yes, if the parport and the lp modules are loaded.

> If so could someone please send me examples of these files so I can
> configure them?

They get filled with some info by the kernel if it finds the devices or
the hardware. You do not edit them.

> Did I not compile something into the kernel that I should have?
> I did not add plug and play support, should I have?

Do you have the lp.o, parport.o, parport_pc.o and parport_probe.o (last one
is maybe not needed, the others are essential) in /lib/modules/2.2.12/misc ?
 
> Can anyone tell me how to fix this?

Hope so.


Check your modules settings. You need to have:

alias parport_lowlevel parport_pc

in /etc/modules.conf and maybe:

options parport_pc io=0x378,0x278

also. 

If you load the parport module, lsmod should show something like this:

Module                  Size  Used by
parport_probe           3204   0 (autoclean)
parport_pc              5828   2 (autoclean)
lp                      4644   0 (autoclean)
parport                 7048   2 (autoclean) [parport_probe parport_pc lp]

-- 
                                                 __    __
 Frank Barknecht       ____ ______   ____ __ trip\ \  / /wire ______
                      / __// __  /__/ __// // __  \ \/ /  __ \\  ___\	
                     / /  / ____/  / /  / // ____// /\ \\  ___\\____ \	
                    /_/  /_____/  /_/  /_//_____// /  \ \\_____\\_____\
                                                /_/    \_\ 


Reply to: