cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Anonymous
Not applicable
3,519 Views

can4linux not building for GIMME-2 board

Hi,

I have to install can4linux driver in the Linux installed on the ZynQ platform. I have already linux (3.6.0-xilinx) running up in the ZynQ on the GIMME-2 board. I have set the sources accordingly in the cross-zedboard file:

---------------------------------------------------------------------------------------------------------------------------------------------------------

ARCH=arm
CROSS_COMPILE=arm-xilinxa9-linux-gnueabi-
CROSS_TOOL_PATH=/root/CodeSourcery/Sourcery_G++_Lite/bin
PATH=$PATH:$CROSS_TOOL_PATH
CC=${CROSS_TOOL_PATH}/arm-xilinxa9-linux-gnueabi-gcc
AR=${CROSS_TOOL_PATH}/arm-xilinxa9-linux-gnueabi-ar
LD=${CROSS_TOOL_PATH}/arm-xilinxa9-linux-gnueabi-ld
RANLIB=${CROSS_TOOL_PATH}/arm-xilinxa9-linux-gnueabi-ranlib
DEPMOD=/sbin/depmod

[ ${KDIR} ] || KDIR=/home/naiad/Desktop/linux-xlnx-xilinx-v14.4
DEPLOYDIR=
DESTDIR=$(dirname $(pwd))/install/arm
LD_LIBRARY_PATH=${DEPLOYDIR}/lib/

....

-----------------------------------------------------------------------------------------------------------------------------------------------------------

 

But when I build the module, it is showing error as shown in red.

 

root@naiad:/home/naiad/Desktop/can4linux-4.1/can4linux# make TARGET=ZEDBOARD
CURDIR = /home/naiad/Desktop/can4linux-4.1/can4linux
CC = /root/CodeSourcery/Sourcery_G++_Lite/bin/arm-xilinxa9-linux-gnueabi-gcc
test ! -d /home/naiad/Desktop/linux-xlnx-xilinx-v14.4 || make -C /home/naiad/Desktop/linux-xlnx-xilinx-v14.4 M=/home/naiad/Desktop/can4linux-4.1/can4linux TARGET=ZEDBOARD modules
make[1]: Entering directory `/home/naiad/Desktop/linux-xlnx-xilinx-v14.4'
  CC [M]  /home/naiad/Desktop/can4linux-4.1/can4linux/core.o
  CC [M]  /home/naiad/Desktop/can4linux-4.1/can4linux/open.o
  CC [M]  /home/naiad/Desktop/can4linux-4.1/can4linux/read.o
  CC [M]  /home/naiad/Desktop/can4linux-4.1/can4linux/write.o
  CC [M]  /home/naiad/Desktop/can4linux-4.1/can4linux/ioctl.o
  CC [M]  /home/naiad/Desktop/can4linux-4.1/can4linux/select.o
  CC [M]  /home/naiad/Desktop/can4linux-4.1/can4linux/debug.o
  CC [M]  /home/naiad/Desktop/can4linux-4.1/can4linux/error.o
  CC [M]  /home/naiad/Desktop/can4linux-4.1/can4linux/util.o
  CC [M]  /home/naiad/Desktop/can4linux-4.1/can4linux/sysctl.o
  CC [M]  /home/naiad/Desktop/can4linux-4.1/can4linux/async.o
  CC [M]  /home/naiad/Desktop/can4linux-4.1/can4linux/close.o
  CC [M]  /home/naiad/Desktop/can4linux-4.1/can4linux/xcanpsfuncs.o
  CC [M]  /home/naiad/Desktop/can4linux-4.1/can4linux/zedboard.o
/home/naiad/Desktop/can4linux-4.1/can4linux/zedboard.c: In function 'CAN_VendorInit':
/home/naiad/Desktop/can4linux-4.1/can4linux/zedboard.c:262:3: error: 'IRQF_SAMPLE_RANDOM' undeclared (first use in this function)
/home/naiad/Desktop/can4linux-4.1/can4linux/zedboard.c:262:3: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [/home/naiad/Desktop/can4linux-4.1/can4linux/zedboard.o] Error 1
make[1]: *** [_module_/home/naiad/Desktop/can4linux-4.1/can4linux] Error 2
make[1]: Leaving directory `/home/naiad/Desktop/linux-xlnx-xilinx-v14.4'
make: *** [all] Error 2

What am I doing wrong here?

 

Thanks in advance,

Rizwin

0 Kudos
2 Replies
Highlighted
Scholar
Scholar
3,506 Views
Registered: ‎05-28-2013

IRQF_SAMPLE_RANDOM has been removed from the linux kernel. Just remove this symbol and replace it with 0.

http://sourceforge.net/p/can4linux/discussion/1013311/thread/07dd52cf/
0 Kudos
Highlighted
Anonymous
Not applicable
3,492 Views

Thanks!! :)

0 Kudos