Advertisement

Linux and USB

Started by February 12, 2002 11:47 AM
6 comments, last by stefu 22 years, 11 months ago
Hi, I have Lexmark E322 printer and I want to setup it for Linux. The problem is that I can''t get my usb working (I think that''s the problem). I compiled kernel with usb with usb-printer support. But it is not working. Actually I don''t know how I know it is not working, lol At least /proc/bus/usb doesn''t exist. What to do? It''s frustrating to search tens of thousands of words of docs of usb because I don''t know what to do and what information do I need. Thanks for any help. I''ll kontinue compiling my kernel. If I''m lucky I''ll notice suddenly that it''s working :D
A few things could be the problem. Did you compile in usb proc support? if not, then nothing will show up under /proc/bus/sub. After that, if you compiled usb as a module (as i would most likely suggest you do) as root, type lsmod to see which modules are loaded. look for a module name uhci or ohci, and usb-printer, stuff like that. you might want to check out www.linux-usb.org (i think that''s it) to find out what modules you need loaded to get the printer to work. just to clarify about the uhci and ohci modules: uhci and ohci are different usb controllers. you have one or the other depending on your motherboard manufacturer. i think all pentium compatible motherboards use uhci, via also uses uhci. other amd compatible motherboards usually use ohci i think. correct me if i''m wrong someone. basically you have to compile either one of these controllers drivers as a module and load them, along with the other driver modules for the printer itself. ok, hope i didn''t totally confuse you
Bob
Advertisement
i forgot to mention. if lsmod shows that the modules are not loaded, once again as root you can try to load them with the modprobe command.
I didn''t compile usb proc, is it the usb device filesystem?
I have VIA and installed (kernel 2.4.17) uhci VIA (not the alternate Driver (JE)). I have VIA motherboard.

This is the result for lsmod:
Module Size Used by Tainted: P
printer 5632 0 (unused)
usbcore 29728 0 [printer]
NVdriver 818912 14 (autoclean)

Seems ok to me, what do you think?

maybe the usb was already working because now I can select "USB Printer #1" as printer device in the printer-setup (http://localhost:631/admin).

But still there''s error in printer state:
Printer State: idle, accepting jobs.
"Unable to open USB port device file "/dev/usb/lp0": No such device"
Device URI: usb:/dev/usb/lp0

Actually, might it be because I don''t yet have drivers for my printer, I tried other Lexmark drivers. I need to download it from Lexmark and find out how to install rpm-package in Debian.

Btw, yesterday I created the /dev/usb directory by mkdir and then used mknod to create lp0 (a friend adviced that).

It looks to me like you don''t have the device file (lp0). Make sure it exists. If it doesn''t, you''ll have to make it yourself (check out the mknod command). Sorry I don''t know the major-minor values, but a search on google will probably help. I guess a printer is a buffered character device, so that would be ''mknod -c /dev/usb/lp0 MAJOR MINOR''. You''ll have to replace ''MAJOR'' and ''MINOR'' with the appropriate values.

Sorry if I can''t help more but my printer is plugged into a OpenBSD machine and it''s not USB.

I hope this is of some use for you.
That will teach me to read until the end of the post.

Sorry, I didn''t see you had created the device. Try to ''cat'' the device node as root. If you get a ''no such device'' error, then the printer was not found and you''ll want to look for the correct values for the modes, and maybe try to find updated drivers (also make sure that kernel has no known problem with that printer).

Again, sorry..
Advertisement
This link oughta help some:

http://www.linuxprinting.org

rm -rf /bin/laden
Thanks everybody, I can linuxprint now

This topic is closed to new replies.

Advertisement