I use iMX28 + BSP L2.6.35_10.12.01. I configured kernel for using FlexCAN with CAN0 interface. I also added cantest and can4linux packages. I can powe up can device via ip command:
echo 250000 >> /sys/devices/platform/FlexCAN.0/bitrate
ip link set can0 up
and I am able to send and receive messages using cantest command:
cantest can0 71E#DEADBEEF --> send
cantest can0 & --> wait for message
but I don't have can0 device under /dev. So I cannot use, for example, utilities like can_send:
root@freescale ~$ can_send -Dcan0
open error 2;/dev/can0: No such file or directory
How can I add can0 device under /dev?
Thanks.
Emanuele, have you posted your question to netdev ye and got answer? If yes, we may close your DI.
Thanks, Yixing
I’m sorry but I’m not able to change the position of this question. I select “Move” (in the right side) and in “Community Area” (I see italian version, I don’t know the English tyranslation…) I don’t see “netdev” o something similar. How can I move this thread and where?
Thanks
Emanuele Coli
Research & Development
Da: Yixing Kong mailto:admin@community.freescale.com
Inviato: martedì 26 febbraio 2013 9.00
A: Coli Emanuele
Oggetto: Re: i.MX Community - Adding /dev/canX in filesystem (iMX28 - Linux 2.6.35)
http://community.freescale.com/themes/freescale_theme/images/logo.png<https://community.freescale.com/index.jspa>
Adding /dev/canX in filesystem (iMX28 - Linux 2.6.35)
creato da Yixing Kong<https://community.freescale.com/people/YixingKong> ini.MX Community - Visualizza l'intera discussione<https://community.freescale.com/message/317178#317178>
My suggestion was for you to post to the following mailing lists:
linux-arm-kernel: linux-arm-kernel@lists.infradead.org
netdev:netdev@vger.kernel.org
OK! Thanks for all! I’m closing this thread in imxcommunity.
Emanuele Coli
Research & Development
Da: Fabio Estevam mailto:admin@community.freescale.com
Inviato: martedì 26 febbraio 2013 13.42
A: Coli Emanuele
Oggetto: Re: i.MX Community - Adding /dev/canX in filesystem (iMX28 - Linux 2.6.35)
http://community.freescale.com/themes/freescale_theme/images/logo.png<https://community.freescale.com/index.jspa>
Adding /dev/canX in filesystem (iMX28 - Linux 2.6.35)
creato da Fabio Estevam<https://community.freescale.com/people/FabioEstevam> ini.MX Community - Visualizza l'intera discussione<https://community.freescale.com/message/317214#317214>
I am not a CAN expert, but I would suggest you to post this question to the arm kernel and netdev mailing lists.
Regards,
Fabio Estevam