--- In "Phil" <> wrote:
>
> --- In "Yan Seiner" <yan@> wrote:
> > There are apparently 2 versions of jiffies.h - one resides in
> > /usr/include/linux and the other should live in
> > linux*/include/linux. For whatever reason, the one in the
kernel
> > includes was missing on my system.
> >
> > So now I have it copied over from my toolchain and adc.o builds
-
> > but it fails to load with:
> >
> > adc.o: couldn't find the kernel version the module was compiled
for
> >
> > I get this if I build it with the native gcc or with my
toolchain.
> >
> > :adc-0.0.2# modinfo adc
> > filename: /lib/modules/2.4.26-ts11/kernel/adc.o
> > description: <none>
> > author: <none>
> > license: <none>
> > parm: adc_major int
> > parm: adc_debug int
> >
> > Can someone shed some light on this?
> >
>
> Hi Yan,
>
> Interestingly, I looked through the kernel sources that I build
the
> driver against and there are no jiffies.h in there anyway, only
the
> only in the includes from the cross toolchain, so I don't think
just
> copying over that file is your problem. I noticed from some of
> the 'make' output that you posted that you are using a different
> version of gcc to me. I am using the cross compiler (gcc-3.3.4-
glibc-
> 2.3.2) and the toolchain that came from the file called 'crosstool-
> linux-0.28rc39.tar.bz2'.
>
> Are you able to try using that cross toolchain with a clean,
> configured kernel source and see how you go?
>
> Cheers
> Phil
>
FWIW I used this version from the debian tarball.
:linux# gcc -v
Reading specs from /usr/lib/gcc-lib/arm-linux/3.3.5/specs
Configured with: ../src/configure -v --enable-
languages=c,c++,java,f77,pascal,objc,treelang --prefix=/usr --mandir=/
usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/
include/c++/3.3 --enable-shared --enable-__cxa_atexit --with-system-
zlib --enable-nls --without-included-gettext --enable-clocale=gnu --
enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-
objc-gc arm-linux
Thread model: posix
gcc version 3.3.5 (Debian 1:3.3.5-13)
sadly I cant run find to check if/where the jiffies are because of
more unresolved issues in the tarball.
:linux# find . -iname jiffies.h
find: .: Value too large for defined data type :?
IIRC I had to create a simlink to /usr/src/linux.
/js
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|