Re: [newbie] Installing a laserjet



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

.



Relevant Pages

  • Re: usb stick not aumounting and no icon on desktop
    ... Earlier today I upgraded a bunch of packages and now USB stick ... I belong to the plugdev group and I am using 2.6.12 kernel. ... No packages found matching plugdev. ...
    (Debian-User)
  • Several OOPSes in net/sched/sch_generic.c, kernel/softirq.c (and other places)
    ... I have witnessed several kernel oopses in a vanilla 2.6.32 kernel of different patch levels. ... As I have no idea how I can trigger this oops -- it just happens after a few hours of running -- I'll list what I'm using the machine for: it's running Debian squeeze with a custom built kernel, vanilla 2.6.32.7 (.config attached). ... A WLAN AP is running over the USB wireless stick, which is bridged with the LAN side of the one NIC. ... # Device Drivers ...
    (Linux-Kernel)
  • PROBLEM: Oops when using emi62 with 2.6.28
    ... With kernel 2.6.28 (and I don't really know which version of the kernel ... emi62 soundcard usb firmware oops ... 2000-2fff: PCI Bus 0000:02 ... # Infrared-port device drivers ...
    (Linux-Kernel)
  • problem with linux-2.6.28
    ... ACPI: Local APIC address 0xfee00000 ... Allocating PCI resources starting at cc000000 ... 3243604k/3276480k available (3222k kernel code, 31608k reserved, 1142k data, 312k init, 23 ... USB 2.0 'Enhanced' Host Controller Driver ...
    (Linux-Kernel)
  • unsubscribe
    ... > Subject: debian newbie... ... If I need to recompile the kernel, ... Also, what other additional packages, ... >> The package you're trying to install presumably ...
    (Debian-User)