All of lore.kernel.org
 help / color / mirror / Atom feed
* canbus interface issue on imx536
       [not found] <018e01cea7c2$7cd87e60$76897b20$@cjb.it>
@ 2013-09-02 10:26 ` Simone
  2013-09-02 12:30   ` Daiane Angolini
  0 siblings, 1 reply; 5+ messages in thread
From: Simone @ 2013-09-02 10:26 UTC (permalink / raw)
  To: <meta-freescale@yoctoproject.org>

[-- Attachment #1: Type: text/plain, Size: 809 bytes --]

Dear All,
I’m trying to build an image with CAN support for imx536 processor.
I’ve added canutils and libsocketcan to my “.bb” image file and re built the image successfully.
 
Now, I’m trying to test the interface, but I’m encountering some problems.
Here below the results of the setup functions:
 
CMD:                ip link set can0 type can bitrate 500000
RESULT:           ip: either "dev" is duplicate, or "bitrate" is garbage
 
CMD:                ifconfig can0 up
RESULT:           ifconfig: SIOCGIFFLAGS: No such device
 
I saw that “ip” command is under /bininstead of /sbin where is actually located busybox. Is this correct?
I’ve already copied the symlink to ip in /sbinbut with no difference.
Anyone have experience with canbus on imx53?
 
Thanks
Regards
 

[-- Attachment #2: Type: text/html, Size: 4594 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: canbus interface issue on imx536
  2013-09-02 10:26 ` canbus interface issue on imx536 Simone
@ 2013-09-02 12:30   ` Daiane Angolini
  2013-09-02 17:14     ` Simone
  0 siblings, 1 reply; 5+ messages in thread
From: Daiane Angolini @ 2013-09-02 12:30 UTC (permalink / raw)
  To: Simone; +Cc: <meta-freescale@yoctoproject.org>

On 09/02/2013 07:26 AM, Simone wrote:
> Dear All,
>
> I’m trying to build an image with CAN support for imx536 processor.
>
> I’ve added canutils and libsocketcan to my “.bb” image file and re built
> the image successfully.
>
> Now, I’m trying to test the interface, but I’m encountering some problems.
>
> Here below the results of the setup functions:
>
> *CMD:                ip link set can0 type can bitrate 500000**
> *RESULT:           ip: either "dev" is duplicate, or "bitrate" is garbage
>
> **
>
> *CMD:                ifconfig can0 up**
> *RESULT:           ifconfig: SIOCGIFFLAGS: No such device
>
> I saw that “*ip” *command is under */bin*instead of */sbin* where is
> actually located busybox. Is this correct?

I *almost* remember something regarding the package iproute2 and can. Do 
you have this package into your image? Could you, please take a look on 
this?

Do you know if you need to re-configure buxybox to include some can support?

>
> I’ve already copied the symlink to *ip* in */sbin*but with no difference.__
>
> Anyone have experience with canbus on imx53?

I'm sorry, I don't have any experience with can.... all my mental links 
are from what I heard from imx-community threads.

>
> Thanks
>
> Regards
>
>
>
> _______________________________________________
> meta-freescale mailing list
> meta-freescale@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-freescale
>


-- 
Daiane



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: canbus interface issue on imx536
  2013-09-02 12:30   ` Daiane Angolini
@ 2013-09-02 17:14     ` Simone
  2013-09-03 14:05       ` Marco
  0 siblings, 1 reply; 5+ messages in thread
From: Simone @ 2013-09-02 17:14 UTC (permalink / raw)
  To: 'Daiane Angolini'; +Cc: meta-freescale

Hello Daiane,
thanks for your reply.
I have checked and my configuration already have package iproute2.
I've checked in defconfig and all config related to FLEXCAN are setted to
"yes"
I don't know where to look.

There are someone with can experience on imx5?

Thanks so much!




-----Messaggio originale-----
Da: Daiane Angolini [mailto:daiane.angolini@freescale.com] 
Inviato: lunedì 2 settembre 2013 14:30
A: Simone
Cc: <meta-freescale@yoctoproject.org>
Oggetto: Re: [meta-freescale] canbus interface issue on imx536

On 09/02/2013 07:26 AM, Simone wrote:
> Dear All,
>
> I’m trying to build an image with CAN support for imx536 processor.
>
> I’ve added canutils and libsocketcan to my “.bb” image file and re 
> built the image successfully.
>
> Now, I’m trying to test the interface, but I’m encountering some problems.
>
> Here below the results of the setup functions:
>
> *CMD:                ip link set can0 type can bitrate 500000**
> *RESULT:           ip: either "dev" is duplicate, or "bitrate" is garbage
>
> **
>
> *CMD:                ifconfig can0 up**
> *RESULT:           ifconfig: SIOCGIFFLAGS: No such device
>
> I saw that “*ip” *command is under */bin*instead of */sbin* where is 
> actually located busybox. Is this correct?

I *almost* remember something regarding the package iproute2 and can. Do you
have this package into your image? Could you, please take a look on this?

Do you know if you need to re-configure buxybox to include some can support?

>
> I’ve already copied the symlink to *ip* in */sbin*but with no 
> difference.__
>
> Anyone have experience with canbus on imx53?

I'm sorry, I don't have any experience with can.... all my mental links are
from what I heard from imx-community threads.

>
> Thanks
>
> Regards
>
>
>
> _______________________________________________
> meta-freescale mailing list
> meta-freescale@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-freescale
>


--
Daiane




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: canbus interface issue on imx536
  2013-09-02 17:14     ` Simone
@ 2013-09-03 14:05       ` Marco
  2013-09-04  6:49         ` Simone
  0 siblings, 1 reply; 5+ messages in thread
From: Marco @ 2013-09-03 14:05 UTC (permalink / raw)
  To: Simone; +Cc: meta-freescale

Il 02/09/2013 19:14, Simone ha scritto:
> Hello Daiane,
> thanks for your reply.
> I have checked and my configuration already have package iproute2.
> I've checked in defconfig and all config related to FLEXCAN are setted to
> "yes"
> I don't know where to look.
>
> There are someone with can experience on imx5?
>
> Thanks so much!
>
>

Hi Simone,
are you sure your kernel has a can driver properly set?
Please post that portion of dmesg showing can is up and running.

Ciao
-- 
Marco Cavallini | KOAN sas | Bergamo - Italia
  embedded and real-time software engineering
Phone:+39-035-255.235 - Fax:+39-178-22.39.748
       http://www.KoanSoftware.com


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: canbus interface issue on imx536
  2013-09-03 14:05       ` Marco
@ 2013-09-04  6:49         ` Simone
  0 siblings, 0 replies; 5+ messages in thread
From: Simone @ 2013-09-04  6:49 UTC (permalink / raw)
  To: koansoftware; +Cc: meta-freescale

Hello Marco,
yesterday I finally made the Flexcan work.
I had forgotten to initialize the device, and then the driver was not
loaded.

Later I cloned the initialization from mx53_ard.c platform and now it works!

Thanks so much
Regards


-----Messaggio originale-----
Da: Marco [mailto:koansoftware@gmail.com] 
Inviato: martedì 3 settembre 2013 16:05
A: Simone
Cc: meta-freescale@yoctoproject.org
Oggetto: Re: [meta-freescale] R: canbus interface issue on imx536

Il 02/09/2013 19:14, Simone ha scritto:
> Hello Daiane,
> thanks for your reply.
> I have checked and my configuration already have package iproute2.
> I've checked in defconfig and all config related to FLEXCAN are setted 
> to "yes"
> I don't know where to look.
>
> There are someone with can experience on imx5?
>
> Thanks so much!
>
>

Hi Simone,
are you sure your kernel has a can driver properly set?
Please post that portion of dmesg showing can is up and running.

Ciao
--
Marco Cavallini | KOAN sas | Bergamo - Italia
  embedded and real-time software engineering
Phone:+39-035-255.235 - Fax:+39-178-22.39.748
       http://www.KoanSoftware.com



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-09-04  6:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <018e01cea7c2$7cd87e60$76897b20$@cjb.it>
2013-09-02 10:26 ` canbus interface issue on imx536 Simone
2013-09-02 12:30   ` Daiane Angolini
2013-09-02 17:14     ` Simone
2013-09-03 14:05       ` Marco
2013-09-04  6:49         ` Simone

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.