rtdm can on mpc5121e - no rtcan devices detected
Von: Wolfgang Grandegger
Gesendet: Montag, 9. Dezember 2013 20:10
Quoted 17 lines
Quoted 14 lines · Andreas Gareis
Von: Tom Evans
Gesendet: Sonntag, 8. Dezember 2013 23:07Quoted 4 lines
Did the CAN devices work before you installed Xenomai? Get them working there first.
Yes, the CAN devices worked before Xenomai installation. They were shown in
ifconfig and communication with other CAN-devices was possible.When I select normal (non rt) CAN-support and xenomai kernel (without RT-CAN) in the kernelconfig, working CAN devices are also available.
Quoted 8 lines
Quoted 6 lines
Now I want to use RT-CAN with xenomai. So, I activated "RT-Socket-CAN" and "MSCAN driver for MPC52xx and MPC512x" in the kernelconfig. When "normal" CAN support (Networking support => CAN bus
subsystem support => CAN Device Drivers Freescale MPC5xxx
onboard CAN controller) is disabled, the xenomai module "xeno_can_mscan.ko" isn't able to start. When "normal" CAN supportThat's the real problem. What happen's if you want to start the CAN device?
First I call "insmod xeno_can.ko". dmesg shows:
RT-Socket-CAN 0.90.2 - (C) 2006 RT-Socket-CAN Development Team
Then I call "insmod xeno_can_mscan.ko".
This operation gets stuck (the insmod doesn't return).
In dmesg there are no messages.
lsmod shows that xeno_can is running and xeno_can_mscan is still loading.
Quoted 5 lines
Quoted 4 lines
is
enabled, the xenomai module "xeno_can_mscan.ko" can be loaded without errors in dmesg, but there are no rtcan devices.
Quoted 7 lines
But the device are not probed because they are already bound to a the Linux CAN driver. You can unbind them before loading the RTCAN driver but then you will run into the same problem then reported above.
Wolfgang.
Andreas
On Mon, 9 Dec 2013 20:35:12 +0100, "Andreas Gareis"
Quoted 39 lines · <[email protected]> wrote:
Von: Wolfgang Grandegger
Gesendet: Montag, 9. Dezember 2013 20:10
Quoted 35 lines
On Mon, 9 Dec 2013 19:17:47 +0100, "Andreas Gareis"
Quoted 29 lines · <[email protected]> wrote:
Von: Tom Evans
Gesendet: Sonntag, 8. Dezember 2013 23:07
Quoted 7 lines
Did the CAN devices work before you installed Xenomai? Get them
working there first.
Yes, the CAN devices worked before Xenomai installation. They were
shown in
ifconfig and communication with other CAN-devices was possible.
When I select normal (non rt) CAN-support and xenomai kernel (without
RT-CAN) in the kernelconfig, working CAN devices are also available.
Now I want to use RT-CAN with xenomai. So, I activated
"RT-Socket-CAN"
Quoted 24 lines
Quoted 8 lines
Quoted 7 lines
and "MSCAN driver for MPC52xx and MPC512x" in the kernelconfig.
When "normal" CAN support (Networking support => CAN bus
subsystem support => CAN Device Drivers Freescale MPC5xxx
onboard CAN controller) is disabled, the xenomai module
Quoted 7 lines
Quoted 1 line
"xeno_can_mscan.ko" isn't able to start. When "normal" CAN support
That's the real problem. What happen's if you want to start the CAN
device?
First I call "insmod xeno_can.ko". dmesg shows:
RT-Socket-CAN 0.90.2 - (C) 2006 RT-Socket-CAN Development Team
Quoted 7 lines
Then I call "insmod xeno_can_mscan.ko".
This operation gets stuck (the insmod doesn't return).
In dmesg there are no messages.
lsmod shows that
xeno_canis running andxeno_can_mscanis still
loading.
Add some pr_info/printk to the drivers probe function to see where it
hangs.
Wolfgang.