plustek: pt_drv doesn't load with kernel 2.4


Previous by date: 10 Feb 2001 15:29:45 -0000 Re: Errors compiling on kernel 2.4.1, Miguel Angel Vilela
Next by date: 10 Feb 2001 15:29:45 -0000 Need help, David Imre
Previous in thread: 10 Feb 2001 15:29:45 -0000 Re: pt_drv doesn't load with kernel 2.4, Johannes Kaiser
Next in thread:

Subject: Re: pt_drv doesn't load with kernel 2.4
From: "G. Jaeger" ####@####.####
Date: 10 Feb 2001 15:29:45 -0000
Message-Id: <14Ra8J-1nmNc0C@fmrl00.sul.t-online.com>

Hi Johannes,

sorry for the late response, I'm "under water" currently...
First of all, the model override switch has nothing to do with the
parport I/O, this switch simply allows to adjust geometric stuff
which can't be detected automatically by the driver.

The test with the preloaded parport seems to confirm the problem
with the IEEE1284 autodetection. The driver won't load okay, but your
ASIC 96003 is recognized.
Please reconfigrue your parport driver that way, that the IEEE1284
stuff will no be used (you can do that in the kerneconfiguration) then
recomiple the parport sources.

Good luck
Gerhard 

On Sat, 3 Feb 2001 14:53:00 +0100 (CET), Johannes Kaiser wrote:

>Hi Gerhard,
>
>first of all I have to thank you for your prompt response.
>
>> You might try and load the parport stuff manually. Your scanner
>> shouldn't be attached during this action. After that, plug in the
>> scanner and try to load the driver.
>
>Okay, that's my terminal:
>
>[root@elvis johnny]# insmod parport
>Using /lib/modules/2.4.0/kernel/drivers/parport/parport.o
>[root@elvis johnny]# insmod parport_pc io=0x278 irq=5 dma=3
>Using /lib/modules/2.4.0/kernel/drivers/parport/parport_pc.o
>[root@elvis johnny]# dmesg
>[...]
>0x278: FIFO is 16 bytes
>0x278: writeIntrThreshold is 9
>0x278: readIntrThreshold is 9
>0x278: PWord is 8 bits
>0x278: Interrupts are ISA-Pulses
>0x278: ECP port cfgA=0x10 cfgB=0x78
>0x278: ECP settings irq=5 dma=<none or set by other means>
>parport0: PC-style at 0x278 (0x678), irq 5, dma 3
>[PCSPP,TRISTATE,COMPAT,EPP,ECP,DMA]
>parport0: cpp_daisy: aa5500ff(38)
>parport0: assign_addrs: aa5500ff(38)
>parport0: cpp_daisy: aa5500ff(38)
>parport0: assign_addrs: aa5500ff(38)
>
>Now I plug in the scanner and turn its power on.
>
>[root@elvis johnny]# insmod pt_drv lampoff=180 warmup=15 port=0x278
>lOffonEnd=0 mov=1
>Using /lib/modules/2.4.0/misc/pt_drv.o
>/lib/modules/2.4.0/misc/pt_drv.o: init_module: Success
>Hint: insmod errors can be caused by incorrect module parameters,
>including invalid IO or IRQ parameters
>
>[root@elvis johnny]# dmesg
>[...]
>*********************************************
>pt_drv: init_module()
>pt_drv : driver version 0.37-24
>ptdrvInit(0)
>Init settings done
>ScanData = 0xc21c8000
>Requested port at 0x278
>Requested port (0x278) found
>Port mode reported: (0x007f)
>Port for device 0 registered
>ptdrvOpen(port=0x278)
>Try to claim the parport
>parport-modi: SPP PS/2 EPP ECP EPP(ECP) PS/2(ECP)
>Using EPP-mode
>Trying faster mode...
>Starting Scanner-Autodetection
>************ DETECTP48xx ************
>ModelSet4800()
>modelInitPageSettings()
>A4 set
>ModelSet4800() done.
>P48xxInitAsic()
>DacInitialize()
>ImageInitialize()
>IOFuncInitialize()
>IOInitialize()
>MotorInitialize()
>Dataport = 0x0278
>Ctrlport = 0x027a
>Test 0x55
>Test 0xAA
>Compare data=0x7f and status=0xf, port=0x278
>p48xxReadWriteTest()
>Found a 96003 ASIC at Reg 0x13
>ModelSet4830()
>modelInitPageSettings()
>A4 set
>ModelSet4830() done.
>p48xxDoTest()
>IODELAY = 0
>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()
>IODELAY = 1
>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()
>IODELAY = 2
>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()
>IODELAY = 3
>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()
>IODELAY = 4
>Bank 0 overwritten
>found 0 bytes of memory
>No memory ! No scanner...
>detectScannerConnection() returns -9020.
>************ DETECTP9636 ************
>ModelSet9636()
>ModelSet9360()
>Model Override --> 9630PL
>modelInitPageSettings()
>Legal set
>ModelSet9630() done.
>modelInitPageSettings()
>A4 set
>ModelSet9636() done.
>P9636InitAsic()
>DacInitialize()
>ImageInitialize()
>IOFuncInitialize()
>IOInitialize()
>MotorInitialize()
>AsicID = 0xf0
>ptdrvClose()
>MiscRestorePort()
>- no need to restore portmode !
>Releasing parport
>ptdrvShutdown()
>cleanup device 0
>Lamp-Timer stopped !
>Try to claim the parport
>Releasing parport
>Port unregistered
>pt_drv: proc del 'info' root='pt_drv'
>pt_drv: proc del 'pt_drv' root='/proc'
>pt_drv : no device(s) detected, (-9020)
>---------------------------------------------
>
>The same thing happens if I leave the model override switch untouched.
>
>Greetings!
>
>Johannes
>




----------------------------------------
####@####.####
----------------------------------------



Previous by date: 10 Feb 2001 15:29:45 -0000 Re: Errors compiling on kernel 2.4.1, Miguel Angel Vilela
Next by date: 10 Feb 2001 15:29:45 -0000 Need help, David Imre
Previous in thread: 10 Feb 2001 15:29:45 -0000 Re: pt_drv doesn't load with kernel 2.4, Johannes Kaiser
Next in thread:


Powered by ezmlm-browse 0.20.