* [Xenomai-core] Bug - Can 2 devices.
[not found] <AANLkTikTyH5R8oMS-f-1jcJqryAwT-DKfzxNf1YROALK@mail.gmail.com>
@ 2010-07-28 18:15 ` Rodolfo Oliveira
2010-07-29 6:39 ` Wolfgang Grandegger
0 siblings, 1 reply; 6+ messages in thread
From: Rodolfo Oliveira @ 2010-07-28 18:15 UTC (permalink / raw)
To: xenomai
[-- Attachment #1: Type: text/plain, Size: 1046 bytes --]
Hello friends,
I am developing a project and I'm using two CAN. The Can one is working, but
the CAN 2 is not, i 'm recompile the kernel enabled the can 2, but I can not
make it work.
Scenario:
- I can print the frames in CAN 2, I get in the kernel log (dmesg) and the
frames are correct.
- CAN 2 works normally if I disable the CAN 1 and recompile the kernel.
Problem:
In the "rtcan_raw.c" in function "void rtcan_rcv (struct rtcan_device * dev,
struct rtcan_skb * skb)" there is a verification "while (recv_listener! =
NULL) " and the problem is that the variable "recv_listener" is equal to
NULL . This variable comes from the function "static int
rtcan_mscan_interrupt (rtdm_irq_t irq_handle *)" (which is on file
rtcan_mscan.c) this function passes a struct as a parameter "dev = (struct
rtcan_device *) rtdm_irq_get_arg (irq_handle, void)" to "rtcan_rcv" and it
contains the recv_listener = dev-> recv_list.
Soon the CAN2 is working but there are some configuration issues in this
code.
Can anyone help me with this problem?
Thank you.
[-- Attachment #2: Type: text/html, Size: 3131 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Xenomai-core] Bug - Can 2 devices.
2010-07-28 18:15 ` [Xenomai-core] Bug - Can 2 devices Rodolfo Oliveira
@ 2010-07-29 6:39 ` Wolfgang Grandegger
[not found] ` <AANLkTikib3KYn-m7owo83LKUUMdfPP3=p_g7BPqgb-Gh@domain.hid>
0 siblings, 1 reply; 6+ messages in thread
From: Wolfgang Grandegger @ 2010-07-29 6:39 UTC (permalink / raw)
To: Rodolfo Oliveira; +Cc: xenomai
Hello,
On 07/28/2010 08:15 PM, Rodolfo Oliveira wrote:
> Hello friends,
>
> I am developing a project and I'm using two CAN. The Can one is working, but
> the CAN 2 is not, i 'm recompile the kernel enabled the can 2, but I can not
> make it work.
> Scenario:
> - I can print the frames in CAN 2, I get in the kernel log (dmesg) and the
> frames are correct.
> - CAN 2 works normally if I disable the CAN 1 and recompile the kernel.
>
> Problem:
> In the "rtcan_raw.c" in function "void rtcan_rcv (struct rtcan_device * dev,
> struct rtcan_skb * skb)" there is a verification "while (recv_listener! =
> NULL) " and the problem is that the variable "recv_listener" is equal to
> NULL . This variable comes from the function "static int
> rtcan_mscan_interrupt (rtdm_irq_t irq_handle *)" (which is on file
> rtcan_mscan.c) this function passes a struct as a parameter "dev = (struct
> rtcan_device *) rtdm_irq_get_arg (irq_handle, void)" to "rtcan_rcv" and it
> contains the recv_listener = dev-> recv_list.
>
> Soon the CAN2 is working but there are some configuration issues in this
> code.
>
> Can anyone help me with this problem?
Are you speaking about the MSCAN driver for the MPC5200? The routing of
the second CAN port is configurable. Maybe it's not using the right I/O
pins. What CPU and Linux version are you using?
Wolfgang.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Xenomai-core] Bug - Can 2 devices.
[not found] ` <AANLkTim4HheofHzPvJkMaCtYp49egWmJAzWLM2o3AXJo@domain.hid>
@ 2010-07-29 15:05 ` Wolfgang Grandegger
[not found] ` <AANLkTi=s+24Sravpy=r91M9bRoNdKzafopTcngV7rLLv@domain.hid>
0 siblings, 1 reply; 6+ messages in thread
From: Wolfgang Grandegger @ 2010-07-29 15:05 UTC (permalink / raw)
To: Rodolfo Oliveira; +Cc: Xenomai core
Hello,
please do not drop the CC to the mailing list.
On 07/29/2010 04:33 PM, Rodolfo Oliveira wrote:
> Sure, the answers follow:
>
> 1 - What version of Xenomai do you use?
> A: "Xenomai 2.2.91
Puh, that's very old code and I can't identify the MSCAN sources for
that version. Could you please send your mscan.c?
Wolfgang.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Xenomai-core] Bug - Can 2 devices.
[not found] ` <4C51D317.9020103@domain.hid>
@ 2010-07-29 20:24 ` Wolfgang Grandegger
[not found] ` <AANLkTikNB7c3E58Q1kxg99TPUVo3E_deojtzgDvW5asL@mail.gmail.com>
0 siblings, 1 reply; 6+ messages in thread
From: Wolfgang Grandegger @ 2010-07-29 20:24 UTC (permalink / raw)
To: Rodolfo Oliveira; +Cc: xenomai-core
Hello,
again, please don't drop the CC to the ml.
On 07/29/2010 09:14 PM, Wolfgang Grandegger wrote:
> On 07/29/2010 06:34 PM, Rodolfo Oliveira wrote:
>> Sure ,
>>
>> I am also sending other related files.
>
> I'm still puzzled. Another question: What does the command "# rtcanrecv
> -e 0xfff" list when you send or receive messages on both MSCAN controllers.
What Kconfig value of XENO_DRIVERS_CAN_MAX_DEVICES do you use?
Wolfgang.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Xenomai-core] Bug - Can 2 devices.
[not found] ` <AANLkTikNB7c3E58Q1kxg99TPUVo3E_deojtzgDvW5asL@mail.gmail.com>
@ 2010-07-29 21:10 ` Wolfgang Grandegger
[not found] ` <AANLkTiktuJ1G6-ELngAsd7kNAR+WtMC7XWcP=-0USZS1@domain.hid>
1 sibling, 0 replies; 6+ messages in thread
From: Wolfgang Grandegger @ 2010-07-29 21:10 UTC (permalink / raw)
To: Rodolfo Oliveira; +Cc: xenomai-core
Hello,
On 07/29/2010 10:37 PM, Rodolfo Oliveira wrote:
> I copied the command "# rtcanrecv 0xFFF-e" for my microcontroller and I can
> not run it, this appeared the following message "/
> opt/denx/xenomai_2_2_91/src/utils/can: No such file or directory."
> Microcontroller shipped with Linux 2.4 with Xenomai is cross compiled on
> Linux on my desktop computer, so he will not find the directory that the
> rtcanrecv are trying to access.
> Is there another way to do?
I usually mount the root filesystem of the ELDK via NFS and install the
Xenomai libraries and utilities into it.
> CONFIG_XENO_DRIVERS_CAN_MAX_DEVICES=4
OK, I checked your sources and realized, that you use a very very early
version of RT-Socket-CAN. Any chance to switch to a more recent version
of Xenomai 2.3? If not, please check the related commits of the
xenomai-2.3 or xenomai-2.4 git repositories. I spotted a few fixes which
may help.
Wolfgang.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Xenomai-core] Bug - Can 2 devices.
[not found] ` <AANLkTimUrZpJMzbMWN=T3rEr=FmxbiVbHYfzviXy08CF@mail.gmail.com>
@ 2010-09-02 11:29 ` Rodolfo Oliveira
0 siblings, 0 replies; 6+ messages in thread
From: Rodolfo Oliveira @ 2010-09-02 11:29 UTC (permalink / raw)
To: Wolfgang Grandegger, xenomai
[-- Attachment #1: Type: text/plain, Size: 2254 bytes --]
Hello Worlfgang,
Thank you for your help, I discovered that the problem was in my SOCK
application in user space, not in the kernel. You were very thoughtful,
thank you.
Rodolfo Romao.
Computer Engineer
MBA - IT Governance
2010/8/16 Rodolfo Oliveira <rodolforomao@domain.hid>
> hmm... it's really... ok !
>
> thnks
>
> 2010/8/16 Wolfgang Grandegger <wg@domain.hid>
>
> On 08/16/2010 08:32 PM, Rodolfo Oliveira wrote:
>> > Hi Wolfgang!
>> > I ran the rtcanrecv but this showing the following message:
>> > #. / Rtcanrecv
>> > / Home / testing / can.libs / lt-rtcanrecv: error while loading shared
>> > libraries: libnative.so.0: can not open shared object file: No such file
>> or
>> > directory
>> > # Find. Z grep rtcanrecv
>> > . / Can / .svn / text-base / base rtcanrecv.c.svn
>> > . / Can / .deps / rtcanrecv.Po
>> > . / Can / .libs / rtcanrecv
>> > . / Can / .libs / lt-rtcanrecv
>> > . / Can / rtcanrecv
>> > . / Can / rtcanrecv.c
>> > . / Can / rtcanrecv.o
>> >
>> > You know what means this?
>>
>> I did already answer this question. See below.
>>
>> Wolfgang.
>>
>> > 2010/8/10 Wolfgang Grandegger <wg@domain.hid>
>> >
>> >> On 08/10/2010 08:22 PM, Rodolfo Oliveira wrote:
>> >>> Hello Wolf,
>> >>>
>> >>> When trying to run the program rtcanrecv is the following message:
>> >>> . / Rtcanrecv
>> >>> / Home / test / can /. / Libs / lt-rtcanrecv: error while loading
>> shared
>> >>> libraries: libnative.so.0: can not open shared object file: No such
>> file
>> >> or
>> >>> directory.
>> >>>
>> >>> Can you help me?
>> >>
>> >> Either set LD_LIBRARY_PATH pointing to the Xenomai libraries or
>> properly
>> >> install the utilities as described in README.INSTALL.
>> >>
>> >> Wolfgang.
>> >>
>> >
>> >
>> >
>>
>>
>
>
> --
>
> []´s
>
>
>
> ===================================
> Rodolfo R. de O. Neto, Eng. , MBA
> Engenheiro de computação
> MBA - Governança em TI
> E-mail: rodolforomao@domain.hid
> ===================================
>
>
--
[]´s
===================================
Rodolfo R. de O. Neto, Eng. , MBA
Engenheiro de computação
MBA - Governança em TI
E-mail: rodolforomao@domain.hid
===================================
[-- Attachment #2: Type: text/html, Size: 4377 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2010-09-02 11:29 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <AANLkTikTyH5R8oMS-f-1jcJqryAwT-DKfzxNf1YROALK@mail.gmail.com>
2010-07-28 18:15 ` [Xenomai-core] Bug - Can 2 devices Rodolfo Oliveira
2010-07-29 6:39 ` Wolfgang Grandegger
[not found] ` <AANLkTikib3KYn-m7owo83LKUUMdfPP3=p_g7BPqgb-Gh@domain.hid>
[not found] ` <4C517FF1.1040902@domain.hid>
[not found] ` <AANLkTim4HheofHzPvJkMaCtYp49egWmJAzWLM2o3AXJo@domain.hid>
2010-07-29 15:05 ` Wolfgang Grandegger
[not found] ` <AANLkTi=s+24Sravpy=r91M9bRoNdKzafopTcngV7rLLv@domain.hid>
[not found] ` <4C51D317.9020103@domain.hid>
2010-07-29 20:24 ` Wolfgang Grandegger
[not found] ` <AANLkTikNB7c3E58Q1kxg99TPUVo3E_deojtzgDvW5asL@mail.gmail.com>
2010-07-29 21:10 ` Wolfgang Grandegger
[not found] ` <AANLkTiktuJ1G6-ELngAsd7kNAR+WtMC7XWcP=-0USZS1@domain.hid>
[not found] ` <4C61A995.3030906@domain.hid>
[not found] ` <AANLkTi=Xbz4jQp4hWz38f1rwA=LKJyqcaK=oqBhsYAMY@mail.gmail.com>
[not found] ` <4C698A2E.7060300@domain.hid>
[not found] ` <AANLkTimUrZpJMzbMWN=T3rEr=FmxbiVbHYfzviXy08CF@mail.gmail.com>
2010-09-02 11:29 ` Rodolfo Oliveira
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.