Hi Nick,

please do not drop the CC to the Socket-CAN mailing list.

Nick Droogh wrote:
> Hi Wolfgang,
> 
> This is my current level of configuration:
> 
> -bash-3.2# ifconfig -a can0
> can0      Link encap:UNSPEC  HWaddr 
> 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  
>           NOARP  MTU:16  Metric:1
>           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:10 
>           RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
>           Interrupt:145 
> 
> -bash-3.2# 
> 
> -bash-3.2# ifconfig can0 up
> [34966.146599] mpc5xxx_can f0000900.mscan: bit-timing not yet defined
> SIOCSIFFLAGS: Invalid argument
> -bash-3.2# 
> 
> I need to set the bit-timing and I saw others using the canconfig utility 
> program.  What else do I need to do to get the interface up?

It's documented in the kernel's "Documentation/networking/can.txt",
chapter 6.5. You need a decent version of iproute2 [1]. If you are
looking for something lighter, the CAN utils and libs from Pengutronix
[2,3] might be more attractive.

Wolfgang.

[1] http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2
[2] git clone git://git.pengutronix.de/git/tools/canutils
[3] git clone git://git.pengutronix.de/git/tools/libsocketcan 
_______________________________________________
Socketcan-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/socketcan-users

Reply via email to