On 30.06.2011 01:51, Stu Statman wrote:
> 
> After the repeated failures on Ubuntu, we decided to try to get SocketCAN to
> work on CentOS, using kernel-ml to get the latest kernel
> (2.6.39-2.el5.elrepo-i686). That failed too :
> 
> [root@localhost 2.6]# pwd
> /home/wgn/socketcan/trunk/kernel/2.6
> 
> [root@localhost 2.6]# make KERNELDIR=/usr/src/kernels/2.6.39-2.el5.elrepo-i686
> make -C /usr/src/kernels/2.6.39-2.el5.elrepo-i686
> M=/home/wgn/socketcan/trunk/kernel/2.6 modules
> TOPDIR=/home/wgn/socketcan/trunk/kernel/2.6
> make[1]: Entering directory `/usr/src/kernels/2.6.39-2.el5.elrepo-i686'
> CC [M] /home/wgn/socketcan/trunk/kernel/2.6/drivers/net/can/mcp251x.o
> /home/wgn/socketcan/trunk/kernel/2.6/drivers/net/can/mcp251x.c: In function
> ‘mcp251x_can_probe’:
> /home/wgn/socketcan/trunk/kernel/2.6/drivers/net/can/mcp251x.c:1009: error:
> implicit declaration of function ‘create_freezeable_workqueue’
> /home/wgn/socketcan/trunk/kernel/2.6/drivers/net/can/mcp251x.c:1009: warning:
> assignment makes pointer from integer without a cast
> make[3]: *** [/home/wgn/socketcan/trunk/kernel/2.6/drivers/net/can/mcp251x.o]
> Error 1
> make[2]: *** [/home/wgn/socketcan/trunk/kernel/2.6/drivers/net/can] Error 2
> make[1]: *** [_module_/home/wgn/socketcan/trunk/kernel/2.6] Error 2
> make[1]: Leaving directory `/usr/src/kernels/2.6.39-2.el5.elrepo-i686'
> make: *** [modules] Error 2
> 
> Any suggestions? Or should we give up on SocketCAN?

Hello Stu,

the things you try to compile are already part of the Linux mainline Kernel.

The SocketCAN SVN ist currently only used for the can-utils and some
development for new PF_CAN based networking protocols.

There's no need to compile the modules from
"socketcan/trunk/kernel/2.6/drivers/net/can/" as almost most of these things
are inside the mainline kernel 2.6.39. If you would have a 2.6.'29' kernel
some parts of these source files would have been interesting for you - but not
for the 2.6.39 :-)

For your special case:

- use the original 2.6.39 CAN modules from your 2.6.39-2.el5.elrepo-i686
- build the stuff from socketcan/trunk/can-utils

Regards,
Oliver

_______________________________________________
Socketcan-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/socketcan-users

Reply via email to