This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM335x DCAN driver compile issues

Hi everybody,

I’m following this guide in order to add CAN driver to my custom BSP:

http://processors.wiki.ti.com/index.php/AM335X_DCAN_Driver_Guide#CAN_Utilities

I’m using Ubuntu 10.04 LTS and the arago toolchain provided with SDK 05.06.00.00

I’ve exported all the needed variables but I'm having problems building libsocketcan:

After a successfully configuration and make (see log files)

8688.configure.log

8561.make.log

I get this error:

marco@sheldon:~/temp/can/libsocketcan-0.0.8$ make install
Making install in include
make[1]: Entering directory `/home/marco/temp/can/libsocketcan-0.0.8/include'
make[2]: Entering directory `/home/marco/temp/can/libsocketcan-0.0.8/include'
make[2]: Nothing to be done for `install-exec-am'.
test -z "/home/marco/temp/can/libsocketcan-0.0.8/include" || /bin/mkdir -p "/home/marco/temp/can/libsocketcan-0.0.8/include"
 /usr/bin/install -c -m 644  libsocketcan.h can_netlink.h '/home/marco/temp/can/libsocketcan-0.0.8/include/.'
/usr/bin/install: `libsocketcan.h' and `/home/marco/temp/can/libsocketcan-0.0.8/include/./libsocketcan.h' are the same file
/usr/bin/install: `can_netlink.h' and `/home/marco/temp/can/libsocketcan-0.0.8/include/./can_netlink.h' are the same file
make[2]: *** [install-nobase_includeHEADERS] Error 1
make[2]: Leaving directory `/home/marco/temp/can/libsocketcan-0.0.8/include'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/home/marco/temp/can/libsocketcan-0.0.8/include'
make: *** [install-recursive] Error 1
marco@sheldon:~/temp/can/libsocketcan-0.0.8$

Where am I wrong?

Thanks!
Marco.