plustek: Trouble making and installing driver with Mandrake 8.0


Previous by date: 11 Jun 2001 14:56:07 -0000 Re: Trouble making and installing driver with Mandrake 8.0, Dave Croal
Next by date: 11 Jun 2001 14:56:07 -0000 Strange behaviour of sane and BTTV card, Vasileios Zografos
Previous in thread: 11 Jun 2001 14:56:07 -0000 Re: Trouble making and installing driver with Mandrake 8.0, Dave Croal
Next in thread: 11 Jun 2001 14:56:07 -0000 Re: Trouble making and installing driver with Mandrake 8.0, Dave Croal

Subject: Re: Trouble making and installing driver with Mandrake 8.0
From: "Jaeger, Gerhard" ####@####.####
Date: 11 Jun 2001 14:56:07 -0000
Message-Id: <01061117013100.05093@gja>

Hi there,

in version 0.39, I removed the stuff with the delay issue. Instead
of that there's a module switch called slowIO which might be set
to 1 to use the delayed I/O operations.

Dave can you please enable the debug messages (see makefile of the driver) and
send the output to the list?
I think you might have some problems with the IEEE1284 autodetection
of parport devices, which is now part of the 2.4.x kernel.
To work around this problem, you have to disable this stuff in your
kernel-configuration (see parport menu entry).

Hope this helps
Gerhard

On Mon, 11 Jun 2001, Dave Croal wrote:
> >>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<
> 
> On 6/8/01, 4:44:50 PM, kevin ####@####.#### wrote regarding Re: 
> Trouble making and installing driver with Mandrake 8.0:
> 
> 
> > Dave Croal wrote:
> > >
> > >
> > > I checked that parport_pc is loaded.
> > > Proc fs is enabled and mounted too.
> > >
> > > I don't get unresolved symbols today, now I get:
> > >
> > > [root@croalnotebook plustek_driver]# make load
> > > /sbin/modprobe pt_drv || exit 1
> > > /lib/modules/2.4.3-20mdk-win4lin/misc/pt_drv.o: init_module: Success
> > > Hint: insmod errors can be caused by incorrect module parameters,
> > > including invalid IO or IRQ parameters
> > > /lib/modules/2.4.3-20mdk-win4lin/misc/pt_drv.o: insmod
> > > /lib/modules/2.4.3-20mdk-win4lin/misc/pt_drv.o failed
> > > /lib/modules/2.4.3-20mdk-win4lin/misc/pt_drv.o: insmod pt_drv failed
> > > make: *** [load] Error 1
> > >
> > > IIRC it is after a reboot that the  unresolved symbols happen. BTW I did
> > > update my modules.conf and did run depmod.
> > >
> > > I also noticed that make load fails to create the /dev/pt_drv* nodes,
> > > guess it doesn't make it that far.
> > >
> > > Are you willing to send me a copy of your pt_drv.o to try? I am running
> > > gcc 2.96,  kernel 2.4.3mdk stock on an AMD K6-450 (i586).
> > >
> > > Am willing to try any and all legal suggestions. Thanks for your help.
> > >
> > > Dave Croal
> 
> 
> > I will send it to you if you want, but I have the debug turned on
> > so it is large (~2 MB). I will first rebuild it with debug off so
> > it is smaller and check that that works. The other thing you could
> > check is in the ../h/plustek_scan.h file, near the beginning. Just
> > before the
> 
> >  #define _OUTB_CTRL..      outb_p...
> 
> > statements there is an
> 
> > #if 1 or #if 0 statement.
> 
> > If it is 0, change it to 1 and rebuild the driver. I would also be
> > sure the outb (lower case on right hand side of statement) is
> > outb_p (same for inb -> inb_p). There seem to be timing issues
> > involved here; I have only had consistent success with the outb_p
> > statements (they put in a slight delay). Since the /dev/pt_drv do
> > not seem to be created by the install, you might want to create
> > them by hand (mknod /dev/pt_drv c 40 0 at least).
> 
> >       Kevin
> 
> I believe ../h/plustek_scan.h is compliant with your suggestions in the 
> original tarball (see below) but no luck yet. Will keep trying, thanks 
> for your help. For now I have hooked my OpticPro 4800P up to another box 
> running 2.2.17mdk, no problems there at all.
> 
> Regards,
> Dave Croal
> 
> #if 1
> 
> #define _OUTB_CTRL(pSD,port_value)       
> _OPF(port_value,pSD->IO.pbControlPort)
> #define _OUTB_DATA(pSD,port_value)       
> _OPF(port_value,pSD->IO.pbSppDataPort)
> #define _OUTB_ECTL(pSD,port_value)       
> _OPF(port_value,(pSD->IO.portBase+0x402))
> #define _OUTB_STATUS(pSD,port_value) 
> _OPF(port_value,pSD->IO.pbStatusPort)
> 
> #define _INB_CTRL(pSD)                          
> _IPF(pSD->IO.pbControlPort)
> #define _INB_DATA(pSD)                          
> _IPF(pSD->IO.pbSppDataPort)
> #define _INB_EPPDATA(pSD)                       
> _IPF(pSD->IO.pbEppDataPort)
> #define _INB_STATUS(pSD)                        
> _IPF(pSD->IO.pbStatusPort)
> #define _INB_ECTL(pSD)                          
> _IPF((pSD->IO.portBase+0x402))
> 
> #else
> 
> #define _OUTB_CTRL(pSD,port_value)       
> parport_pc_write_control(pSD->pp, port_value)
> #define _OUTB_DATA(pSD,port_value)       parport_pc_write_data(pSD->pp, 
> port_value)
> #define _OUTB_STATUS(pSD,port_value) parport_pc_write_status(pSD->pp, 
> port_value)
> 
> #define _INB_CTRL(pSD)                          
> parport_pc_read_control(pSD->pp)
> #define _INB_DATA(pSD)                          
> parport_pc_read_data(pSD->pp)
> #define _INB_STATUS(pSD)                        
> parport_pc_read_status(pSD->pp)
> 
> #ifdef LINUX_24
> # define _OUTB_ECTL(pSD,port_value)     
> outb_p(port_value,(pSD->IO.portBase+0x402))
> # define _INB_EPPDATA(pSD)                      
> inb_p(pSD->IO.pbEppDataPort)
> # define _INB_ECTL(pSD)                         
> inb_p((pSD->IO.portBase+0x402))
> #else
> # define _OUTB_ECTL(pSD,port_value)     
> parport_pc_write_econtrol(pSD->pp, port_value)
> # define _INB_EPPDATA(pSD)                      
> parport_pc_read_epp(pSD->pp)
> # define _INB_ECTL(pSD)                         
> parport_pc_read_econtrol(pSD->pp)
> #endif
> 
> #endif
> 

Previous by date: 11 Jun 2001 14:56:07 -0000 Re: Trouble making and installing driver with Mandrake 8.0, Dave Croal
Next by date: 11 Jun 2001 14:56:07 -0000 Strange behaviour of sane and BTTV card, Vasileios Zografos
Previous in thread: 11 Jun 2001 14:56:07 -0000 Re: Trouble making and installing driver with Mandrake 8.0, Dave Croal
Next in thread: 11 Jun 2001 14:56:07 -0000 Re: Trouble making and installing driver with Mandrake 8.0, Dave Croal


Powered by ezmlm-browse 0.20.