Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-31-2004, 11:40 PM   #1
LQ Newbie
Registered: Jan 2004
Posts: 12

Rep: Reputation: 0
Kernel 2.6.x usb scanner support

I notice that with kernel 2.6, "usb scanner support" is identified as obsolete. The option appears in .config through kernel 2.6.2, but beginning with kernel 2.6.3 this .config option is dropped.

I have an hp5470 scanner for which there is a non-libusb sane backend available. I have no idea how to convert/rewrite this backend to use libusb. So, to continue having support for my scanner, I've devised a way to bring usb scanner support forward into kernel 2.6.3 and kernel 2.6.4. Here is the procedure:

1) copy scanner.o and scanner.h from /usr/src/linux-2.6.2/drivers/usb/image/ to the corresponding place in the linux-2.6.3 build tree.

2) copy the text from the section defining "config USB_SCANNER" from /usr/src/linux-2.6.2/drivers/usb/image/Kconfig into an appropriate place in /usr/src/linux-2.6.3/drivers/usb/image/Kconfig.

3) in the file /usr/src/linux-2.6.3/drivers/usb/Makefile, add the line obj-$(CONFIG_USB_SCANNER) += image/

4) in the file /usr/src/linux-2.6.3/drivers/usb/image/Makefile, add the line obj-$(CONFIG_USB_SCANNER) += scanner.o

5) add the line CONFIG_USB_SCANNER=m to the .config file.

From here on, one can run "make xconfig" and be presented with the option to set CONFIG_USB_SCANNER. When set, the following "make", "make modules_install", and "make install" will create a viable scanner.ko in /lib/modules/2.6.3/kernel/drivers/usb/image.

I'm aware that the kernel folks will probably take a dim view of the above. I do wish however that support for my (fairly common, I think) scanner hadn't been summarily dropped in kernel 2.6.3. I hope nothing changes in future kernel build trees anytime soon that makes my carrying forward CONFIG_USB_SCANNER impossible.
Old 04-01-2004, 06:34 AM   #2
Registered: Dec 2003
Distribution: Slackware 9.1
Posts: 309

Rep: Reputation: 30
I don't even know how to get my scanner working with usbscanner, mknod and modprobe and all. What is the replacement anyway?

And devfs for lilo? The successor isn't mentioned in the config either, save for the name, and I can't compile its successor because there's no option for it, and now, lilo gets all confused...
Old 04-01-2004, 10:42 AM   #3
LQ Newbie
Registered: Jan 2004
Posts: 12

Original Poster
Rep: Reputation: 0
Greetings! I forgot to mention that I'm running RH9 with updates and KDE-3.2.1. Not sure what scanner you're using. Sounds like you may be having several issues. If you'd care to email me at I'll do my best to help out. Mind you, I'm no expert--never used Slackware although I'd enjoy experimenting with it. --Jim


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
USB scanner or printer worked with kernel 2.6.7 but not recognized with and a postb99 Linux - Hardware 0 03-05-2005 01:21 PM
Help needed with USB scanner and Linux 2.6.6 kernel tomdkat Linux - Hardware 3 05-24-2004 11:12 AM
mandrake linux 10.0 kernel 2.6.3 usb scanner, webcam not working grolon Mandriva 2 04-28-2004 09:56 PM
Kernel 2.6.3 scanner and printer USB ?? frenchi Linux - Hardware 1 04-11-2004 12:00 PM
USB scanner support/software milos Linux - Software 3 05-19-2002 11:25 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:17 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration