Marc,

Thanks for your quick response. I reverted to my old kernel/file
system and did a simple test just to make sure there are no hardware
problems, everything seems ok, and the single packet is received. But
with the new configuration, no packet is received. I did the following
command to set up the can:

/sbin/ip link set can0 type can bitrate 500000

And then I run my application, which listens for a message, and on my
pc I send a single packet. Actually in ifconfig now it shows no
packets received or transmitted and no errors, not sure what caused
the errors before, but I can be certain that it is a software problem
now.

Mark

On Wed, May 18, 2011 at 9:31 AM, Marc Kleine-Budde <[email protected]> wrote:
> On 05/18/2011 02:16 PM, Mark Slicker wrote:
>> Hello,
>>
>> I recently upgraded my kernel from linux 2.6.27 to linux 2.6.38.3,
>> this is compiled for an atmel at91sam9263-ek board. Before I had
>> compiled SocketCAN separately and loaded it as a kernel module, and
>> with the new linux it is built into the kernel. Before I had no
>> problems with the SocketCAN, but now the drivers appears to be
>> accumulating only errors, if I check the interface with ifconfig I see
>> several thousands of errors on the tx and rx queues, even when nothing
>> is sent or received. I need the new kernerl because an application I
>> have uses the netlink interface to set can parameters. Just wondering
>> where I should start to try to debug this problem.
>
> Check your cabling, don't start that application. Use the ip utility or
> canconfig[1] to set your bitrate. Then send a single frame from one
> station to another.
>
> cheers, Marc
>
> [1]
> http://www.pengutronix.de/software/libsocketcan/download/libsocketcan-0.0.8.tar.bz2
> +
> http://www.pengutronix.de/software/socket-can/download/canutils/v4.0/canutils-4.0.6.tar.bz2
>
> --
> 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   |
>
>
_______________________________________________
Socketcan-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/socketcan-users

Reply via email to