plustek: insmod pt_drv problem
Subject:
insmod pt_drv problem
From:
Roy Wood ####@####.####
Date:
2 Nov 2001 16:39:02 -0000
Message-Id: <1207403229-99517473@mail.centricsystems.ca>
I'm trying to get a Plustek FBIVP (9630?) scanner working on my RedHat
7.1 box (kernel 2.4.2-2), and am having some trouble. I know the scanner
works, since I've tested under Windows98.
Building and installing pt_drv it was fine, but loading the module causes
problems.
First of all, I definitely have the parport/parport_pc modules loaded
too, so that's not the problem.
When I try to load the pt_drv module, either directly (insmod pt_drv) or
via the "make load" in the pt_drv Makefile, I get this:
/lib/modules/2.4.2-2/misc/pt_drv.o: init_module: Success
Hint: insmod errors can be caused by incorrect module parameters,
including invalid IO or IRQ parameters
It doesn't help to specify that the port is 0x378 and the IRQ is 7
either-- I tried. And yes, the parallel port is set to 0x378 and IRQ 7,
EPP 1.9 mode. And yes, I've tried hinting pt_drv with "mov=1".
I've enabled debug messages in pt_drv, and get the following, which is
hopeful, since it indicates that pt_drv is finding the scanner ("Found a
96003 ASIC at Reg 0x13"), and the scanner light comes on.
Nov 2 09:35:21 roy-6100 kernel:
*********************************************
Nov 2 09:35:21 roy-6100 kernel: pt_drv: init_module()
Nov 2 09:35:21 roy-6100 kernel: pt_drv : driver version = 0.36-39
Nov 2 09:35:21 roy-6100 kernel: ptdrvInit(0)
Nov 2 09:35:21 roy-6100 kernel: Init settings done
Nov 2 09:35:21 roy-6100 kernel: ScanData = 0xc4b80000
Nov 2 09:35:21 roy-6100 kernel: Requested port at 0x378
Nov 2 09:35:21 roy-6100 kernel: Requested port (0x378) found
Nov 2 09:35:21 roy-6100 kernel: Port mode reported: (0x0047)
Nov 2 09:35:21 roy-6100 kernel: Port for device 0 registered
Nov 2 09:35:21 roy-6100 kernel: ptdrvOpen(port=0x378)
Nov 2 09:35:21 roy-6100 kernel: Try to claim the parport
Nov 2 09:35:21 roy-6100 kernel: Using EPP-mode
Nov 2 09:35:21 roy-6100 kernel: Starting Scanner-Autodetection
Nov 2 09:35:21 roy-6100 kernel: ************ DETECTP48xx ************
Nov 2 09:35:21 roy-6100 kernel: ModelSet4800()
Nov 2 09:35:21 roy-6100 kernel: modelInitPageSettings()
Nov 2 09:35:21 roy-6100 kernel: A4 set
Nov 2 09:35:21 roy-6100 kernel: ModelSet4800() done.
Nov 2 09:35:21 roy-6100 kernel: P48xxInitAsic()
Nov 2 09:35:21 roy-6100 kernel: DacInitialize()
Nov 2 09:35:21 roy-6100 kernel: ImageInitialize()
Nov 2 09:35:21 roy-6100 kernel: IOInitialize()
Nov 2 09:35:21 roy-6100 kernel: MotorInitialize()
Nov 2 09:35:21 roy-6100 kernel: Dataport = 0x0378
Nov 2 09:35:21 roy-6100 kernel: Ctrlport = 0x037a
Nov 2 09:35:21 roy-6100 kernel: Test 0x55
Nov 2 09:35:21 roy-6100 kernel: Test 0xAA
Nov 2 09:35:21 roy-6100 kernel: Compare data=0x70 and status=0x0,
port=0x378
Nov 2 09:35:21 roy-6100 kernel: p48xxReadWriteTest()
Nov 2 09:35:21 roy-6100 kernel: Found a 96003 ASIC at Reg 0x13
Nov 2 09:35:21 roy-6100 kernel: ModelSet4830()
Nov 2 09:35:21 roy-6100 kernel: modelInitPageSettings()
Nov 2 09:35:21 roy-6100 kernel: A4 set
Nov 2 09:35:21 roy-6100 kernel: ModelSet4830() done.
Nov 2 09:35:21 roy-6100 kernel: p48xxDoTest()
Nov 2 09:35:21 roy-6100 kernel: Bank 0 overwritten
Nov 2 09:35:21 roy-6100 kernel: found 0 bytes of memory
Nov 2 09:35:21 roy-6100 kernel: No memory ! No scanner...
Nov 2 09:35:21 roy-6100 kernel: detectScannerConnection() returns
-9020.
Nov 2 09:35:21 roy-6100 kernel: ************ DETECTP9636 ************
Nov 2 09:35:21 roy-6100 kernel: ModelSet9636()
Nov 2 09:35:21 roy-6100 kernel: ModelSet9360()
Nov 2 09:35:21 roy-6100 kernel: modelInitPageSettings()
Nov 2 09:35:21 roy-6100 kernel: A4 set
Nov 2 09:35:21 roy-6100 kernel: ModelSet9630() done.
Nov 2 09:35:21 roy-6100 kernel: modelInitPageSettings()
Nov 2 09:35:21 roy-6100 kernel: A4 set
Nov 2 09:35:21 roy-6100 kernel: ModelSet9636() done.
Nov 2 09:35:21 roy-6100 kernel: P9636InitAsic()
Nov 2 09:35:21 roy-6100 kernel: DacInitialize()
Nov 2 09:35:21 roy-6100 kernel: ImageInitialize()
Nov 2 09:35:21 roy-6100 kernel: IOInitialize()
Nov 2 09:35:21 roy-6100 kernel: MotorInitialize()
Nov 2 09:35:21 roy-6100 kernel: AsicID = 0x20
Nov 2 09:35:21 roy-6100 kernel: ptdrvClose()
Nov 2 09:35:21 roy-6100 kernel: MiscRestorePort()
Nov 2 09:35:21 roy-6100 kernel: - no need to restore portmode !
Nov 2 09:35:21 roy-6100 kernel: Releasing parport
Nov 2 09:35:21 roy-6100 kernel: ptdrvShutdown()
Nov 2 09:35:21 roy-6100 kernel: cleanup device 0
Nov 2 09:35:21 roy-6100 kernel: Lamp-Timer stopped !
Nov 2 09:35:21 roy-6100 kernel: Try to claim the parport
Nov 2 09:35:21 roy-6100 kernel: Releasing parport
Nov 2 09:35:21 roy-6100 kernel: Port unregistered
Nov 2 09:35:21 roy-6100 kernel: pt_drv: init failed - ret = -9020
Nov 2 09:35:21 roy-6100 kernel:
---------------------------------------------
So, anyone have any ideas? I'm close, but not quite there....
-Roy