UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Visitor rizwin
Visitor
3,463 Views
Registered: ‎10-07-2013

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
Scholar rfs613
Scholar
3,450 Views
Registered: ‎05-28-2013

Re: can4linux not building for GIMME-2 board

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
Visitor rizwin
Visitor
3,436 Views
Registered: ‎10-07-2013

Re: can4linux not building for GIMME-2 board

Thanks!! :)

0 Kudos