Hi Michael,
On 11/17/2011 09:08 AM, Michael A. Purwoadi wrote:
>
>
> Wolfgang Grandegger wrote:
>>
>>
>> You can still get it from our BerliOS SVN repository (soon we will
>> switch to github):
>>
>> http://developer.berlios.de/svn/?group_id=6475
>>
>> In the README is described how to build the relevant kernel modules. Be
>> aware that for that old version only the old SysFS interface is
>> available to setup the bit-timing parameters (bitrate, etc.).
>>
>> Wolfgang.
>>
>>
>
> Hi Wolfgang,
>
>
> Thank you for the info. I've downloaded all files from trunk/linux-2.6/
> but still an error when compiling the source code as below :
>
> [[email protected]]# make ARCH=arm
> CROSS_COMPILE=arm-linux- modules
> CHK include/linux/version.h
> make[1]: `include/asm-arm/mach-types.h' is up to date.
> CHK include/linux/utsrelease.h
> CC [M] drivers/net/can/dev.o
I recommend to build the Socket-CAN kernel modules out-of-tree as
described in the README mentioned in my previous mail, at least for
getting started (less error prune).
> drivers/net/can/dev.c:37:2: #error "CAN sysfs interface not support by this
> kernel version"
>
> ---------------- dev.c -----------------
>
> #ifndef CONFIG_CAN_DEV_SYSFS
> #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24)
> #error "CAN netlink interface not support by this kernel version"
> #endif
> #include <socketcan/can/netlink.h>
> #include <net/rtnetlink.h>
> #else
> #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,21)
> #error "CAN sysfs interface not support by this kernel version"
> #endif
>
> -------------------------------------------
>
> Regarding part of code above, it is impossible to use socketcan
> for linux-2.6.20. Is there any way to around the problem ?
As written in my previous mail, you need to use the old SysFS interface
enabling CONFIG_CAN_DEV_SYSFS:
config CAN_DEV_SYSFS
bool "Support for sysfs interface (deprecated)"
Wolfgang.
_______________________________________________
Socketcan-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/socketcan-users