compiling module GPIB for Portux920t

Hello,

I am trying to install the GPIB module for Portux920t. I have the ARM kernel configured (Taskit configuration) and built, a cross-compiling toolchain to compile (Taskit configuration), as well as the driver's sources of GPIB.
The trouble :
When i compiling the GPIB module by entering this

"BUILD_CC=gcc CC=arm-linux-3.4.2-gcc ./configure --build=x86_64-pc-linux-gnu --host=arm-linux --with-linux-srcdir=/home/dc/CD-Portux/CD_V1.4/linux/linux-2.6.12/ & make"
that'is OK

BUT when i enter
"make install"
the module is install for the host but not for the card Portux920t.

Question:
How build and install a module kernel for the board Portux920t ??

Regards

PMC

Re: compiling module GPIB for Portux920t

no idea ?

Re: compiling module GPIB for Portux920t

You can simply copy the .ko file to Portux920T and use insmod.

Re: compiling module GPIB for Portux920t

Dear all,

To compile the GPIB module, i need a toolchain with possibility to cross compile PERL from x86 to ARM.

Question:

I don't know how i can do that because i looking for in the taskit's toolchain without any result ?
Maybe, i search in a wrong way ?

Regards

Re: compiling module GPIB for Portux920t

Can you give a link to the GPIB sources (if it is online somewhere) so that we can have a look? Otherwise it is hard to help you if we do not know, what the problem really is.

Re: compiling module GPIB for Portux920t

hello,

this is the URL

http://sourceforge.net/project/downloading.php?group_id=42378&filename=l...

i add more precision to compile the package by entering this:

./configure \
BUILD_CC=gcc \
CC=arm-linux-3.4.2-gcc \
CXX=arm-linux-3.4.2-g++ \
STRIP=arm-linux-3.4.2-strip \
AR=arm-linux-3.4.2-ar \
RANLIB=arm-linux-3.4.2-ranlib\
LD=arm-linux-3.4.2-ld \
DEPMOD=/lib/modules/2.6.12 \
--build=x86_64-pc-linux-gnu \
--host=arm-linux \
--target=arm-linux \
--with-linux-srcdir=/home/dc/CD-Portux/CD_V1.4/linux/linux-2.6.12 \
--prefix=/lib/modules/2.6.12

When i enter make, i have this error:

LD_RUN_PATH="/home/dc/CD-Portux/CD_V1.4/linux/linux-gpib-3.2.11/language/perl/../../lib/.libs"
cc -shared -O2 -g -L/usr/local/lib LinuxGpib.o -o blib/arch/auto/LinuxGpib/LinuxGpib.so \

-L/home/dc/CD-Portux/CD_V1.4/linux/linux-gpib-3.2.11/language/perl/../../lib/.libs -lgpib -lpthread \

/usr/bin/ld: skipping incompatible /usr/local/lib/libgpib.so when searching for -lgpib
/usr/bin/ld: skipping incompatible

/home/dc/CD-Portux/CD_V1.4/linux/linux-gpib-3.2.11/language/perl/../../lib/.libs/libgpib.so
when searching for -lgpib

Thanks

PMC

Re: compiling module GPIB for Portux920t

Can you try to disable the perl binding with "--disable-perl-binding"? I don't think, you really need it.

Re: compiling module GPIB for Portux920t

Thanks to your response.

I disable perl binding and other (PHP, Guile, Python and TCL) but i have always the same message in entering make:

> LD_RUN_PATH="/home/dc/CD-Portux/CD_V1.4/linux/linux-gpib-3.2.11/language/perl/../../lib/.libs"
> cc -shared -O2 -g -L/usr/local/lib LinuxGpib.o -o
> blib/arch/auto/LinuxGpib/LinuxGpib.so
> -L/home/dc/CD-Portux/CD_V1.4/linux/linux-gpib-3.2.11/language/perl/../../lib/.libs
> -lgpib -lpthread

> /usr/bin/ld: skipping incompatible /usr/local/lib/libgpib.so when searching
> for -lgpib
>
> /usr/bin/ld: skipping incompatible
> /home/dc/CD-Portux/CD_V1.4/linux/linux-gpib-3.2.11/language/perl/../../lib/.libs/libgpib.so
> when searching for -lgpib

I don't know why here precisely that's doesn't cross-compile ?

Regards

Re: compiling module GPIB for Portux920t

Did you really add "--disable-perl-binding"? At least here this problem vanishes when using this option, although there is an additional problem later. I could successfully build the library by using the 2.6.22 Linux sources and the following configure line:

./configure -host=arm-linux CC=arm-linux-3.4.2-gcc --disable-perl-binding --with-linux-srcdir=/path/to/linux-2.6.22

Re: compiling module GPIB for Portux920t

I try to compile with this definition very long:

./configure CC=arm-linux-3.4.2-gcc CXX=arm-linux-3.4.2-g++ STRIP=arm-linux-3.4.2-strip AR=arm-linux-3.4.2-ar RANLIB=arm-linux-3.4.2-ranlib \
--build=x86_64-pc-linux-gnu \
--host=arm-linux \
--target=arm-linux \
--with-linux-srcdir=/home/dc/CD-Portux/CD_V1.4/linux/linux-2.6.12 \
--prefix=/home/dc/fs_portux \
--disable-perl-binding \
--disable-php-binding \
--disable-python-binding \
--disable-tcl-binding \
--disable-guile-binding

That's solve plenty of error.

I due to comment the variable "mutex" in these files:
linux-gpib-3.2.11/drivers/gpib/include/gpib_types.h
linux-gpib-3.2.11/drivers/gpib/sys/osfuncs.c
linux-gpib-3.2.11/drivers/gpib/sys/osinit.c
linux-gpib-3.2.11/drivers/gpib/sys/autopoll.c

After that that's compile well. At last, i get the modules ni_usb_gpib.ko and gpib_common.ko

I don't try to compile with the kernel 2.6.22. I suppose it's the same procedure...

So thanks to your responses

PMC

Re: compiling module GPIB for Portux920t

I success to cross-compile with the new kernel 2.6.22 (by taskit) without error and without comment anything:

./configure \
CC=arm-linux-3.4.2-gcc \
CXX=arm-linux-3.4.2-g++ \
STRIP=arm-linux-3.4.2-strip \
AR=arm-linux-3.4.2-ar \
RANLIB=arm-linux-3.4.2-ranlib \
--build=x86_64-pc-linux-gnu \
--host=arm-linux \
--target=arm-linux \
--with-linux-srcdir=/home/dc/portux/linux-2.6.22-taskit3/ \
--prefix=/home/dc/fs_portux \
--disable-perl-binding \
--disable-php-binding \
--disable-python-binding \
--disable-tcl-binding \
--disable-guile-binding

That's compile and work very well !!

By carefull, to cross-compile with kernel 2.6.12, that compile by commenting some error in makefile but that doesn't work well after.

I hope that can help somebody else.

Regards

PMC

Syndicate content