plustek: Problems load module w. SuSE7.3 @ Kernel 2.4.16


Previous by date: 18 Apr 2002 20:21:03 -0000 Re: Can't find pt_drv.o, Lauri J T Liuhto
Next by date: 18 Apr 2002 20:21:03 -0000 Mother`s Day - 12 th of May, design_your_website.yahoo.com
Previous in thread:
Next in thread: 18 Apr 2002 20:21:03 -0000 Re: Problems load module w. SuSE7.3 @ Kernel 2.4.16, Jaeger, Gerhard

Subject: Problems load module w. SuSE7.3 @ Kernel 2.4.16
From: ####@####.#### (Christof Bodner)
Date: 18 Apr 2002 20:21:03 -0000
Message-Id: <16yI2g-0qiRJQC@fwd05.sul.t-online.com>

Hello!

I own a Plustek OpticPro4800P and scanned with my elder SuSE system (7.2, 
IIRC) Now I want to plug it at my newer system, SuSE7.3 with Kernel 
2.4.16-4GB (the one upgraded from the SuSE homepage)

Compilation of the driver 0.41-6 gave warnings concerning deprecated 
linux/malloc.h. As the loading of the module failed, I changed the end of 
h/plustek_sysdep.h to 

#if LINUX_VERSION_CODE < VERSION_CODE(2,4,16)
#  include "linux/malloc.h"
#  define _GET_TIME get_fast_time
#else
#  include "linux/slab.h"
#  define _GET_TIME do_gettimeofday
#endif

Afterwards, the compilation gave no warnings, but modprobe failed, too.
The ouput of 'insmod -vs pt_drv.o' is

---snip---
pt_drv: init_module()
pt_drv : driver version 0.41-6
ProcFsInitialize()
ptdrvInit(0)
Init settings done
ScanData = 0xc69e4000
Using fast I/O
Requested port at 0x378
Requested port (0x378) found
Port mode reported: (0x0047)
Port for device 0 registered
ptdrvOpen(port=0x378)
Try to claim the parport
parport-modi: SPP PS/2 EPP EPP(ECP) PS/2(ECP)
Using EPP-mode
Starting Scanner-Autodetection
************ DETECTP48xx ************
ModelSet4800()
modelInitPageSettings()
A4 set
ModelSet4800() done.
P48xxInitAsic()
DacInitialize()
ImageInitialize()
IOFuncInitialize()
IOInitialize()
MotorInitialize()
Dataport = 0x0378
Ctrlport = 0x037a
Test 0x55
Test 0xAA
Compare data=0x7f and status=0xf, port=0x378
p48xxReadWriteTest()
Found a 96003 ASIC at Reg 0x13
ModelSet4830()
modelInitPageSettings()
A4 set
ModelSet4830() done.
p48xxDoTest()
Bank 0 overwritten
found 0 bytes of memory
No memory ! No scanner...
p48xxReadWriteTest()
Found a 96003 ASIC at Reg 0x13
ModelSet4830()
modelInitPageSettings()
A4 set
ModelSet4830() done.
p48xxDoTest()
Bank 0 overwritten
found 0 bytes of memory
No memory ! No scanner...
p48xxReadWriteTest()
Found a 96003 ASIC at Reg 0x13
ModelSet4830()
modelInitPageSettings()
A4 set
ModelSet4830() done.
p48xxDoTest()
Bank 0 overwritten
found 0 bytes of memory
No memory ! No scanner...
p48xxReadWriteTest()
Found a 96003 ASIC at Reg 0x13
ModelSet4830()
modelInitPageSettings()
A4 set
ModelSet4830() done.
p48xxDoTest()
Bank 0 overwritten
found 0 bytes of memory
No memory ! No scanner...
p48xxReadWriteTest()
Found a 96003 ASIC at Reg 0x13
ModelSet4830()
modelInitPageSettings()
A4 set
ModelSet4830() done.
p48xxDoTest()
Bank 0 overwritten
found 0 bytes of memory
No memory ! No scanner...
detectScannerConnection() returns -9020.
************* ASIC9800x *************
IOInitialize()
ASIC = 0xF0
Unknown ASIC-ID
*** DETECTION DONE, result: -9020 ***
ptdrvClose()
MiscRestorePort()
- no need to restore portmode !
Releasing parport
ptdrvShutdown()
cleanup device 0
Port unregistered
ProcFsShutdown()
pt_drv: proc del 'info' root='pt_drv'
pt_drv: proc del 'pt_drv' root='/proc'
pt_drv : no device(s) detected, (-9020)
---------------------------------------------
---snip---

So what's wrong (I assumed that the driver does not recognize the scanner 
model, so I changed the options to mov=6)?
Oh, my /etc/modules.conf

---snip---
alias char-major-40     pt_drv
pre-install pt_drv modprobe -k parport
options pt_drv lampoff=180 warmup=15 port=0x378 lOffonEnd=0 mov=6 slowIO=0 
forceMode=0
---snip---

TIA,Ch.

-- 
---------------------------------------------------------------------
Quote of the day:
"The identical is equal to itself, since it is different."
		-- Franco Spisani
---------------------------------------------------------------------
 Christof Bodner ####@####.####
   Linux - Life is too short for reboots
---------------------------------------------------------------------
email: ####@####.####
Tel.:  +43-676-7215383
SMS.:  ####@####.####
ICQ:   22085157
---------------------------------------------------------------------
PLEASE USE PGP! Public Key ID 0x8A265334 available at
                http://pgp.mit.edu/ 
---------------------------------------------------------------------


Previous by date: 18 Apr 2002 20:21:03 -0000 Re: Can't find pt_drv.o, Lauri J T Liuhto
Next by date: 18 Apr 2002 20:21:03 -0000 Mother`s Day - 12 th of May, design_your_website.yahoo.com
Previous in thread:
Next in thread: 18 Apr 2002 20:21:03 -0000 Re: Problems load module w. SuSE7.3 @ Kernel 2.4.16, Jaeger, Gerhard


Powered by ezmlm-browse 0.20.