Re: [Xenomai-core] Bug - Can 2 devices.

2010-09-02 Thread Rodolfo Oliveira
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 rodolforo...@gmail.com

 hmm... it's really... ok !

 thnks

 2010/8/16 Wolfgang Grandegger w...@grandegger.com

  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 w...@grandegger.com
 
  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: rodolforo...@gmail.com
 ===




-- 

[]´s



===
Rodolfo R. de O. Neto, Eng. , MBA
Engenheiro de computação
MBA - Governança em TI
E-mail: rodolforo...@gmail.com
===
___
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core


Re: [Xenomai-core] Bug - Can 2 devices.

2010-07-29 Thread Wolfgang Grandegger
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.



___
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core


Re: [Xenomai-core] Bug - Can 2 devices.

2010-07-29 Thread Wolfgang Grandegger
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.


___
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core


Re: [Xenomai-core] Bug - Can 2 devices.

2010-07-29 Thread Wolfgang Grandegger
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.

___
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core


Re: [Xenomai-core] Bug - Can 2 devices.

2010-07-29 Thread Wolfgang Grandegger
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.

___
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core