On 03/09/2011 08:49 PM, Kurt Van Dijck wrote:
> On Wed, Mar 09, 2011 at 09:38:55AM -0800, Charles H wrote:
>>
>> Charles H wrote:
>>>
>>> Hello:
>>> according th the documentation tha came with my SPEAR 320 demo board I
>>> should be able to configure the CAN interface thus:
>>>
>>> ip link set can0 type can bitrate 125000
>>> but I get :
>>> RTNETLINK Answers : operation not supported
>>> It sounds like the kernel is not configured properly for IPROUTE2 support
>>> but I cant find what is missing in the  config. default .config for board
>>> is attached http://old.nabble.com/file/p31101885/spear320_defconfig
> 
> I see
> CONFIG_CAN_DEV_SYSFS=y
> 
> CAN configuration is still done via the sysfs.
> see /sys/class/net/can0/can_bittiming/...
> I'm not aware how familiar you are with the deprecated
> sysfs method.

You can use pengutronix canutils 3.x series:

http://www.pengutronix.de/software/socket-can/download/canutils/v3.0/canutils-3.0.2.tar.bz2

        "canconfig can0 bitrate 125000"

cheers, Marc

-- 
Pengutronix e.K.                  | Marc Kleine-Budde           |
Industrial Linux Solutions        | Phone: +49-231-2826-924     |
Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |

Attachment: signature.asc
Description: OpenPGP digital signature

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

Reply via email to