plustek: Plustek driver - Suse 8.0
Subject:
Plustek driver - Suse 8.0
From:
Sébastien ####@####.####
Date:
6 Jul 2002 00:40:32 -0000
Message-Id: <200207060216.25201.smiguet@iht.tu-darmstadt.de>
Hi!
I solved my problems,
and I'd like to explain you how I did, in order to help
other SUSE 8.0 users.
First,
The BIOS setings, to avoid further errors:
Parallel port mode: EPP (this is really important!!!)
Parallel port IRQ: 7 (or whatever you have: 3 or 5)
Parallel port adress: 378 (or whatever you have: 278 or 3BC)
Second, the Suse kernel:
By default, the parallel port is not load by the kernel:
as root, in /usr/src/linux
-> cat /proc/version
Linux version 2.4.18-4GB ####@####.#### (gcc version 2.95.3 20010315
(SuSE)) #1 Wed May 29 15:47:24 UTC 2002
-> gcc -v
gcc version 2.95.3 20010315 (SuSE)
(if you have something different, set CC to the good version of gcc)
-> CC=/usr/bin/gcc
(warning with the gcc version mismatch - the SUSE 8.0 kernel is built with gcc
version 2.95.3 - this can cause problems as segmentation fault or kernel
crash if you don't care and use an other version such as gcc3.x for your
modules!!!)
-> make xconfig (or menuconfig)
in Parallel Port Support:
set "parallel port support" as module (m)
set "PC-style hardware" as module (m)
disable "IEEE 1284 Transfert Protocol" (n)
(as Gerhard Gjäger advises it!)
save & exit
-> make dep
-> make modules
-> make modules_install
in /etc/modules.conf:
uncomment the following lines:
alias parport_lowlevel parport_pc
options parport_pc io=0x378 irq=7
(you have to set io=0xXXX and irq=Y according to your BIOS settings)
If you have multiple parallel ports this is an example:
options parport_pc io=0x378,0x278 irq=none,none
Install sane:
as root:
remove all the old version of sane (because of conflicts with the RPM
database):
-> rpm -qa | grep sane
sane-1.0.7
-> rmp -e sane-1.0.7
(if you got a message as "sane is required by xsane" remove xsane and
reinstall it later)
Now, we assume that the archive of sane and plustek driver are in the same
directory for example in /tmp
as user:
-> cd /tmp
unpack the sane tar archive
-> gunzip < sane-backends-1.0.8.tar.gz | tar -xv
dive into the backend directory
-> cd sane-backends-1.0.8/backend
unpack the plustek driver
-> gunzip < ../../plustek-module-0_42_9.tar.gz | tar -xv
return in the sane-backends-1.0.8 directory
-> cd ..
then compile:
-> ./configure
-> make
as root: install sane
-> make install
Now, you can install the plustek driver:
as user:
dive into the plustek driver directory
-> cd backend/plustek_driver/
make the driver
-> make all
as root:
-> make install
Add the following lines into the file /etc/modules.conf:
alias char-major-40 pt_drv
pre-install pt_drv modprobe -k parport
options pt_drv forceMode=0 lOffonEnd=0 lampoff=180 mov=0 port=0x378 slowIO=0
warmup=15
load the driver
-> make load
Now, it should run!
I tried then to scan an image with Xsane,
and this is a total success!
Now, if you think that my experience is interessant,
please publish it on you web site, but before correct the gramatic errors
(excuse me for my poor english)
Send me please what you think about this e-mail...
I've got an other question:
How to load automatically the driver when I start Xsane?
Thank you for your help and your advices,
MIGUET Sébastien
####@####.####
####@####.####
--
__________________________
/ ___ ___ _ _ \
| / __\ _ \ \/ | |
| \__ \ __/ \/ | |
| \___/___/_||_| |
####@####.####
| ICQ # 1047 00 968 |
\__________________________/
+ 49 61 51 16 44 72 (Büro)
Institut für Halbleitertechnik (IHT)
-- TU Darmstadt --