plustek: plustek-driver/Suse 7.1/Kernel 2.4.


Previous by date: 26 Mar 2001 10:12:16 -0000 Re: Scanner, Paul Boniol
Next by date: 26 Mar 2001 10:12:16 -0000 doh, burgy
Previous in thread: 26 Mar 2001 10:12:16 -0000 Re: plustek-driver/Suse 7.1/Kernel 2.4., Thomas Mandl
Next in thread: 26 Mar 2001 10:12:16 -0000 Re: plustek-driver/Suse 7.1/Kernel 2.4., Jaeger, Gerhard

Subject: Re: plustek-driver/Suse 7.1/Kernel 2.4.
From: "Jaeger, Gerhard" ####@####.####
Date: 26 Mar 2001 10:12:16 -0000
Message-Id: <01032609150601.00501@gja>

Hey Thomas,

so if this link seems to be correct, your environment
must be broken somewhere else!

I'll try to explain, how the different kernel-versions where detected
in the driver code:
If you have a closer look to the file plustek_driver/h/sysdep-2.1.h
you'll find, that here we try to detect the kernel version by including
the file /usr/src/linux/include/linux/version.h
This file MUST include the correct version code, please check.

For example the file for kernel 2.4.1 looks as follows:
#define UTS_RELEASE "2.4.1"
#define LINUX_VERSION_CODE 132097
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c)) 

After decoding this we set some defines, like LINUX_24.
This definition is responsible for choosing the correct PARPORT_MODE_XXX
definitions in file plustek_drivers/src/misc.c (around line 68)...

I'm not sure about your programming skills, but you might have to track
down the problem on your own. I think it must have been something
wrong with your setup. It has been reported, that in some
cases, the kernel headers where not correct etc. Please check
that.

Gerhard


On Fre, 23 Mär 2001, Thomas Mandl wrote:
> Hi Gerhard,
> 
> > 
> > this is a common problem which appears when not having
> > set the link /usr/src/linux correctly. Please make sure, that
> > this link points to your kernel 2.4 sources (or at least to
> > its header files). The problem was, that the definitions for
> > PARPORT_MODE_xxx changed between the two kernel releases...
> 
> Sorry,
> the symbolic link link /usr/src/linux points correctly to
> /usr/src/linux-2.4.0.SuSE
> 
> I have to do anything something else
> 
> Greetinx
> Thomas

Previous by date: 26 Mar 2001 10:12:16 -0000 Re: Scanner, Paul Boniol
Next by date: 26 Mar 2001 10:12:16 -0000 doh, burgy
Previous in thread: 26 Mar 2001 10:12:16 -0000 Re: plustek-driver/Suse 7.1/Kernel 2.4., Thomas Mandl
Next in thread: 26 Mar 2001 10:12:16 -0000 Re: plustek-driver/Suse 7.1/Kernel 2.4., Jaeger, Gerhard


Powered by ezmlm-browse 0.20.