jwb361 wrote:
> hi,
>     I have some problem with mcp251x module driver. I'm using kernel 2.6.29
> on s3c2440, and my CAN controller is mcp2515. I have successfully add the
> mcp251x module into the linux kernel(build-in), and on the start up I can
> see someting like this:
> ...
> 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)
> ...
> I type command cat /proc/net/can/stats it return:
> 

(..)

> and cat /proc/net/can/version :
> rev 20090105 abi 8

All this is the CAN networklayer stuff that has nothing to do with the CAN
netdevice.

That's fine - but it's like checking if TCP/IP is available ;-)
And your problem is the "ethernet driver" ...

> 
> ip link set can0 up type can bitrate 125000:
> ip: either "dev" is duplicate, or "type" is garbage

This is because of your "ip" is too old and does not support CAN devices setup.

http://git.kernel.org/?p=network/iproute2/iproute2.git;a=summary

Get & build the latest "ip" from

git://git.kernel.org/pub/scm/network/iproute2/iproute2.git


> ifconfig can0 up:
> ifconfig: SIOCGIFFLAGS: No such device

Please check for CAN driver stuff in the kernel log (e.g. with dmesg)
search for "CAN device driver interface"

Or check

cat /proc/net/dev | grep can

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

Reply via email to