Re: [newbie] Installing a laserjet
- From: Shadow_7 <wwwShadow7@xxxxxxxxxxxxxxx>
- Date: Sun, 05 Nov 2006 14:36:26 GMT
I did not understand the "lp.ko" of your answer
and did not find any clue on the web ....
The linux kernel ( kernel.org ) creates modules for
selected usb options. If they are selected to
generate modules. If these modules are not already
loaded, they don't always load themselves when
you're requesting something which might use said
modules. So you have to load them manually with
modprobe, insmod, or putting them in your
/etc/modules so they load at boot time. The lp.ko
module is what it generated on my system for a
2.6.x version kernel. Actually it's usblp.ko on
my current kernel version.
$ modinfo usblp
filename: /lib/modules/2.6.18/kernel/drivers/usb/class/usblp.ko
description: USB Printer Device Class driver
license: GPL
vermagic: 2.6.18 SMP mod_unload K7 gcc-3.3
depends: usbcore
parm: proto_bias:Favourite protocol number (int)
$ find /lib/modules/`uname -r`/kernel/drivers/usb/ -name '*.*o'
/lib/modules/2.6.18/kernel/drivers/usb/class/usblp.ko
/lib/modules/2.6.18/kernel/drivers/usb/core/usbcore.ko
/lib/modules/2.6.18/kernel/drivers/usb/host/ehci-hcd.ko
/lib/modules/2.6.18/kernel/drivers/usb/host/ohci-hcd.ko
/lib/modules/2.6.18/kernel/drivers/usb/host/uhci-hcd.ko
For me, if the needed modules are not already loaded,
I need to do the following.
# modprobe usbcore
# modprobe ohci-hcd
# modprobe ehci-hcd
# modprobe usblp
Now your particular setup may use ohci-hcd or uhci-hcd,
but not likely both. And the names of these modules
might differ between kernel versions. Since I don't
know what distro, computer, and kernel version you're
using I can't get into actual specifics here.
Also for cups (package cupsys on debian) to have your
specific printer as a selectable item you'll probably
need to install other packages.
for debian:
cupsys
cupsys-bsd
cupsys-client
cupsys-driver-gimpprint
cupsys-driver-gimpprint-data
foomatic-bin
foomatic-db
foomatic-db-engine
foomatic-db-gimp-print
foomatic-db-hpijs
foomatic-filters
foomatic-filters-ppds
foomatic-gui
python-foomatic
hp-ppd
hplip
hplip-data
hpijs
pnm2ppa
hpoj
hpoj-xojpanel
You may or may not need all of those packages to
get your printer working. And some packages are
mutually exclusive, like hpijs and hpoj. You can
only have/use one or the other. And the distro
that you're using might use different names for
your packages. And different groupings of said
packages.
http://linuxprinting.org/
http://cups.org/
http://kernel.org/
For my 2.6.18 kernel, usb has the following .config
or /boot/config-2.6.18 options selected for USB.
CONFIG_VIDEO_USBVIDEO=m
CONFIG_USB_IBMCAM=m
CONFIG_USB_ARCH_HAS_HCD=y
CONFIG_USB_ARCH_HAS_OHCI=y
CONFIG_USB_ARCH_HAS_EHCI=y
CONFIG_USB=m
CONFIG_USB_DEVICEFS=y
CONFIG_USB_EHCI_HCD=m
CONFIG_USB_OHCI_HCD=m
CONFIG_USB_OHCI_LITTLE_ENDIAN=y
CONFIG_USB_UHCI_HCD=m
CONFIG_USB_PRINTER=m
CONFIG_USB_STORAGE=m
CONFIG_USB_STORAGE_DATAFAB=y
If your kernel does not include at least some of these,
you may need a different kernel version. Which may or
may not require you to compile your own kernel. Also
note that in the above examples "$ " means it can be
run as a user and "# " means it has to be run as root.
HTH,
S7
.
- Follow-Ups:
- Re: [newbie] Installing a laserjet
- From: Olivier
- Re: [newbie] Installing a laserjet
- References:
- [newbie] Installing a laserjet
- From: Olivier
- Re: [newbie] Installing a laserjet
- From: Shadow_7
- Re: [newbie] Installing a laserjet
- From: Olivier
- [newbie] Installing a laserjet
- Prev by Date: Re: [newbie] Installing a laserjet
- Next by Date: Re: [newbie] Installing a laserjet
- Previous by thread: Re: [newbie] Installing a laserjet
- Next by thread: Re: [newbie] Installing a laserjet
- Index(es):
Relevant Pages
|