2010/4/8 christian pellegrin <[email protected]>

> On Thu, Apr 8, 2010 at 4:58 PM, Lei Luo <[email protected]> wrote:
>
> > I added can definitions into board-dk.c. When I "modprobe mcp251x", it
> shows
> > "CAN device driver interface" in console, mcp251x modules is loaded as
> can
> > be seen from "lsmod". But I can't find can device files such as "can0,
> can1,
> > ..." and there is no can infomation in "ip link show".
> > Is something I did wrong? Or the device files of can should not created
> > automaticly as they are connected with spi?
>
> If you don't see "probed" or "not probed" the mcp251x probe code is
> not called. So, have you done an at91_add_device_spi of the
> dk_spi_devices you defined? Do you have a working SPI master driver?
>
>
Yes, I just call
at91_add_device_spi(dk_spi_device,ARRAY_SZIE(dk_spi_device)) without
at91_set_gpio_output; spi is registed in kernel and "153 spi" can be seen
when "cat /proc/devices".However, it does not show "probed" too when
modprobe vcan.

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

Reply via email to