I seem to be failing miserably at my first attempt to print with a 2.6
kernel and udev. I've tried building parport and parport_pc modularly
and non-modularly, with and without ieee1284 support and with and
without FIFO/DMA support. I've also tried forcing the base address and
IRQ. I've triple checked that the printer port is enabled in the BIOS
(as an ECP-capable port). With parport and parport_cp built
non-modularly and with no kernel args, dmesg gives:

parport0: PC-style at 0x378 (0x778) [PCSPP,TRISTATE]
parport0: irq 7 detected
parport0: Printer, HEWLETT-PACKARD OFFICEJET R80XI

However, udev does not make any parport or lp device files. I've tried
creating both manually. Echoing anything to them gives me:

bash: /dev/lp0: No such device or address

I've tried lp0 to 4 and parport0 to 4. I've verified that the udev rules
have both parport and lp rules. Cups claims the URI to the printer is:

Device URI: parallel:/dev/unknown-parallel0

This is the first time I've ever attempted to use a printer on this
computer, so I'm not even sure if the port is screwed up or not. I only
know that the dmesg output is confusing at best.
/proc/sys/dev/parport/parport0/irq seems to suggest that the IRQ is
wrong. So I switched to a modular parport so I could try different
options. I explicitly passed modprobe parport_pc io=0x378 irq=7 and got:

parport0: PC-style at 0x378 (0x778), irq 7, dma 7 
[PCSPP,TRISTATE,COMPAT,ECP,DMA]
parport0: Printer, HEWLETT-PACKARD OFFICEJET R80XI

This time /proc/sys/dev/parport/parport0/{dma,irq} show something other
than -1 so it would seem that all is good. However, after deleting the
printers and trying again I'm not even given the chance to choose the
parallel port. Trying with lpadmin gives:

lpadmin: add-printer (set device) failed: client-error-not-possible

So I guess my question is which part of the puzzle is responsible for
creating the devices?

-- 
Archaic

Want control, education, and security from your operating system?
Hardened Linux From Scratch
http://www.linuxfromscratch.org/hlfs

-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to