Installing HP4200C Scanner

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'am trying to setup a HP4200C Scanner , That is not supported under the standard
sane-backends in Fedora core1, I removed the sane-backend RPMS from Fedora,
and downloaded a sane-backend.tar.gz and the patch file and gzip the sane-backend
tar.gz and got the source files and then the patch file and you can see
what happen below.
I need help, Please!!


Thanks Jim Tate


These are the instructions to install sane-backends. ----------------------------------------------------

Installation

You will need a fairly new Linux kernel with USB and USB scanner support, either the 2.3.x or 2.4.x releases or the 2.2.x release with the USB backport. (Well, I have developed the backend using release 2.3.48 and above).

If you are using Linux 2.4.18 with sane 1.0.8 you will not have to modify your kernel if it's compiled with USB scanner support.

Important: If you are still using an old Linux kernel, you will need to uncomment the definition of the macro SCN_IOCTL in ``linux/drivers/usb/scanner.h'' as follows:

#define SCN_IOCTL

instead of

// #define SCN_IOCTL

This will remain until a unified access method to send and receive vendor-specific USB requests through the USB scanner driver or the USB filesystem is established.

Then read ``linux/Documentation/usb/usbscanner.txt'' and follow the instructions. By default the backend will look at the ``/dev/usbscanner'' device, but you can override this using the ``hp4200.conf'' file at the sane.d config directory.
How to apply the patches
Once you have downloaded any of the above patches and the right SANE source distribution, do the following steps:


1. Unpack the SANE source distribution. Let's assume you want to install revision 1.0.3. Execute the following command line:

  gzip -dc sane-1.0.3.tar.gz | tar xvf -

The directory `sane-1.0.3' will be created and the source files will be extracted.
2. Change the current working directory:


  cd sane-1.0.3

3. Apply the patch file. Let's assume the patch file is in the parent directory:

  gzip -dc ../sane-1.0.3-hp4200-0.2-p1.patch.gz | patch -p1

  4. If you get the following text

 patching file `backend/Makefile.in'
 patching file `backend/dll.conf'
 patching file `backend/hp4200.c'
 patching file `backend/hp4200.conf'
 patching file `backend/hp4200.desc'
 patching file `backend/hp4200.h'
 patching file `backend/lm983x.c'
 patching file `backend/lm983x.h'
 patching file `backend/pv8630.c'
 patching file `backend/pv8630.h'
 patching file `tools/hp4200offd.c'

     all was right, and you can now start the ordinary SANE installation.


This is the result of following the instructions ------------------------------------------------ [root@eddie sane]# gzip -dc backend-0.4.tar.gz | tar xvf - backend/ backend/hp4200.c backend/hp4200.conf backend/hp4200.desc backend/hp4200.h backend/hp4200offd.c backend/lm9830.c backend/lm9830.h


[root@eddie sane]# ls
backend backend-0.4.tar.gz sane4200 sane-backends-1.0.10-hp4200-0.4.patch.gz



[root@eddie sane]# cd backend

[root@eddie backend]# ls
hp4200.c hp4200.conf hp4200.desc hp4200.h hp4200offd.c lm9830.c lm9830.h


[root@eddie backend]# gzip -dc ../sane-backends-1.0.10-hp4200-0.4.patch.gz | pat ch -p1
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Naur sane-backends-1.0.10/backend/Makefile.in sane-backends-1.0.10-hp4200 /backend/Makefile.in
|--- sane-backends-1.0.10/backend/Makefile.in Mon Jan 13 21:38:09 2003
|+++ sane-backends-1.0.10-hp4200/backend/Makefile.in Sat Feb 22 19:29:28 2003
--------------------------
File to patch:




This is as far as I got to.




[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux