Please disregard the pcan problem, Peak support replied to me with the
correct command to change the bitrate on that driver. They do not
support the netlink way, but use a character device.

The problem with vcan, instead, is still there.

On Wed, Aug 04, 2010 at 10:14:33AM +0200, Daniele Venzano wrote:
> Hello,
> 
> I'm having problems setting up CAN interfaces on my desktop machine, a
> fairly standard Debian unstable install on a i386 PC.
> 
> I'm using kernel 2.6.35 and the latest socketcan userspace utilities 
> available from svn.
> For iproute I'm using the one in Debian, version iproute2-ss100519.
> 
> All modules load fine:
> Module                  Size  Used by
> pcan                   37141  0 
> vcan                    1334  0 
> can_bcm                11062  0 
> can_raw                 4828  0 
> can                    20691  2 can_bcm,can_raw
> can_dev                 7658  0
> 
> If I try to create a vcan0 interface I get:
> # ip link add dev vcan0 type can
> RTNETLINK answers: Operation not supported
> 
> If I try to change the pcan bitrate (Peak CAN USB, driver available out of 
> tree), I get again the same error:
> # ip link set can0 type can bitrate 250000
> RTNETLINK answers: Operation not supported
> 
> The can0 device (the pcan one) works otherwise, sending and receiving at
> 500kbit.
> On dmesg there are no clues:
> 
> CAN device driver interface
> can: controller area network core (rev 20090105 abi 8)
> NET: Registered protocol family 29
> can: raw protocol (rev 20090105)
> can: broadcast manager protocol (rev 20090105 t)
> vcan: Virtual CAN interface driver
> usbcore: deregistering interface driver pcan
> pcan: removed.
> pcan: Release_20100131_n
> pcan: driver config [mod] [isa] [pci] [dng] [par] [usb] [net] 
> pcan: usb hardware revision = 28
> pcan: registered netdevice can0 for pcan usb hw (minor 0)
> pcan: usb device minor 0 found
> usbcore: registered new interface driver pcan
> pcan: major 253.
> 
> 
> I'm quite sure I'm missing something obvious, but it is two days of
> banging my head on the desk with no results.
> 
> Thank you,
> Daniele
> 
> --
> Daniele Venzano
> http://www.brownhat.org
> 
> _______________________________________________
> Socketcan-users mailing list
> [email protected]
> https://lists.berlios.de/mailman/listinfo/socketcan-users
_______________________________________________
Socketcan-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/socketcan-users

Reply via email to