NI_USB_GPIB driver module issue on kernel 4.1.15

145 views
Skip to first unread message

malkowki_belgium

unread,
Apr 27, 2016, 5:41:30 AM4/27/16
to BeagleBoard
 Hi ,

I am running :
Linux beagle07 4.1.15 #2 SMP Tue Mar 22 16:57:57 CET 2016 armv7l GNU/Linux
PRETTY_NAME
="Debian GNU/Linux 8 (jessie)"
NAME
="Debian GNU/Linux"
VERSION_ID
="8"
VERSION
="8 (jessie)"
ID
=debian


I  am trying to install the GPIB-USB-HS Dongle from National Instrument on my BeagleBoardxM and I am having issue while launching a make from linux-gpib.4.0.2
source file. the ./bootstrap and ./configure scrip worked well.
What I did also is to dowload the linux headers :
apt-get install linux-headers-4.1.15-armv7-x6

and my kernel has a build symbolicc link pointing to the modules as:
:~/kernel# ls -ail
total
110432
136021 drwxr-xr-x  24 debian debian     4096 Apr 27 09:49 .
135756 drwx------   8 root   root       4096 Apr 22 12:44 ..
156792 drwxr-xr-x  32 debian debian     4096 Apr 22 12:30 arch
148699 drwxr-xr-x   3 debian debian     4096 Apr 26 17:51 block
197875 lrwxrwxrwx   1 root   root         34 Apr 27 09:49 build -> /lib/modules/4.1.15-armv7-x6/build
177196 -rw-r--r--   1 root   root     141295 Apr 26 14:32 .config
197962 -rw-r--r--   1 root   root     141295 Apr 26 14:31 .config.old
176143 -rw-r--r--   1 debian debian    18693 Apr 22 12:31 COPYING
176145 -rw-r--r--   1 debian debian    96960 Apr 22 12:31 CREDITS
146269 drwxr-xr-x   4 debian debian    20480 Apr 27 00:51 crypto
140369 drwxr-xr-x 109 debian debian    12288 Apr 22 12:29 Documentation
166542 drwxr-xr-x 123 debian debian     4096 Apr 26 22:26 drivers
175622 drwxr-xr-x  36 debian debian     4096 Apr 25 15:33 firmware
173730 drwxr-xr-x  76 debian debian    12288 Apr 27 01:24 fs
149119 -rw-r--r--   1 debian debian     1254 Apr 22 12:30 .gitignore
149120 drwxr-xr-x  30 debian debian     4096 Apr 22 12:30 include
173715 drwxr-xr-x   2 debian debian     4096 Apr 27 00:44 init
166527 drwxr-xr-x   2 debian debian     4096 Apr 26 17:34 ipc
175621 -rw-r--r--   1 debian debian     2163 Apr 22 12:31 Kbuild
173729 -rw-r--r--   1 debian debian      252 Apr 22 12:31 Kconfig
175808 drwxr-xr-x  16 debian debian    12288 Apr 26 15:15 kernel
148416 drwxr-xr-x  11 debian debian    20480 Apr 27 01:26 lib

I use the same gcc as for compiling the kernel on target:
cc (Debian 4.9.2-10) 4.9.2
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty
; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


but when running the make script under:
/home/linux-gpib-4.0.2# make
make  all
-recursive
make
[1]: Entering directory '/home/linux-gpib-4.0.2'
Making all in include
make
[2]: Entering directory '/home/linux-gpib-4.0.2/include'
make  all
-am
make
[3]: Entering directory '/home/linux-gpib-4.0.2/include'
make
[3]: Nothing to be done for 'all-am'.
make
[3]: Leaving directory '/home/linux-gpib-4.0.2/include'
make
[2]: Leaving directory '/home/linux-gpib-4.0.2/include'
Making all in lib
make
[2]: Entering directory '/home/linux-gpib-4.0.2/lib'
make  all
-recursive
make
[3]: Entering directory '/home/linux-gpib-4.0.2/lib'
Making all in .
make
[4]: Entering directory '/home/linux-gpib-4.0.2/lib'
make
[4]: Nothing to be done for 'all-am'.
make
[4]: Leaving directory '/home/linux-gpib-4.0.2/lib'
Making all in gpib_config
make
[4]: Entering directory '/home/linux-gpib-4.0.2/lib/gpib_config'
make
[4]: Nothing to be done for 'all'.
make
[4]: Leaving directory '/home/linux-gpib-4.0.2/lib/gpib_config'
make
[3]: Leaving directory '/home/linux-gpib-4.0.2/lib'
make
[2]: Leaving directory '/home/linux-gpib-4.0.2/lib'
Making all in examples
make
[2]: Entering directory '/home/linux-gpib-4.0.2/examples'
make
[2]: Nothing to be done for 'all'.
make
[2]: Leaving directory '/home/linux-gpib-4.0.2/examples'
Making all in test
make
[2]: Entering directory '/home/linux-gpib-4.0.2/test'
make
[2]: Nothing to be done for 'all'.
make
[2]: Leaving directory '/home/linux-gpib-4.0.2/test'
Making all in drivers
make
[2]: Entering directory '/home/linux-gpib-4.0.2/drivers'
Making all in gpib/include
make
[3]: Entering directory '/home/linux-gpib-4.0.2/drivers/gpib/include'
make
[3]: Nothing to be done for 'all'.
make
[3]: Leaving directory '/home/linux-gpib-4.0.2/drivers/gpib/include'
make
[3]: Entering directory '/home/linux-gpib-4.0.2/drivers'
make
-C /lib/modules/4.1.15/build/ V=1 modules\
    CC
="gcc -I/home/linux-gpib-4.0.2 -I/home/linux-gpib-4.0.2/drivers/gpib/include -I/home/linux-gpib-4.0.2/include" \
    CONFIG_GPIB_ISA
="no" \
    SUBDIRS
="/home/linux-gpib-4.0.2/drivers/gpib"
make
[4]: Entering directory '/usr/src/linux-headers-4.1.15-armv7-x6'
test
-e include/generated/autoconf.h -a -e include/config/auto.conf || (        \
echo
>&2;                            \
echo
>&2 "  ERROR: Kernel configuration is invalid.";        \
echo
>&2 "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo
>&2 "         Run 'make oldconfig && make prepare' on kernel src to fix it.";    \
echo
>&2 ;                            \
/bin/false)


I have copied also the .config file from the kernel source from my debian machine.

Is anyone can help on this?

Thanks in advance,



William Hermans

unread,
Apr 27, 2016, 10:03:52 AM4/27/16
to beagl...@googlegroups.com

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/d134935d-a79a-4576-bcab-26591b24f6a4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

malkowki_belgium

unread,
Apr 29, 2016, 11:25:26 AM4/29/16
to BeagleBoard
Thanks William,
But this didn't help me a lot.

I have notice that the gcc --version on the board was 4.9 while the gcc used to compile the Kernel was 5.2, so I need to upadte the gcc in order to compile the module.
Do you know how to to this?

Thanks,

malkowki_belgium

unread,
May 12, 2016, 9:02:04 AM5/12/16
to BeagleBoard
Hello,

I just wanted to say that the problem iwas solved with the kernel 4.5.x using the gpib-linux 4.0.3..
Thanks!
Reply all
Reply to author
Forward
0 new messages