Hi Daniel,

Sorry it's taken me so long to get back to you on this. When you're enabling 
it, that's not quite what you should be trying to do. If you're still using 
dora then follow these 
instructions:https://community.freescale.com/docs/DOC-96367
The main part you're wanting to do is modify the mmcargs's console line to have 
'can0' at the end of it, so that it's passed to the kernel.


Now if you're using daisy, it might be a bit different. You'll might have to 
ask whether it's still using the old kernel or if it's on 3.10.17 by default (I 
think it's 3.10.17 default but I may be wrong). If it's using 3.10.17 you have 
to tell it to use a different .dtb file which loads up the board specification 
telling it to use the second can port. Ask about how to do that from the u-boot 
prompt; I believe it's possible but as I said i don't have a board to test it 
out right now. What I had done I told you earlier, but that involves adding a 
recipe which patches the kernel to have a different default (probably 
completely overboard, but does work without having to fiddle around in u-boot.)
 

I hope that makes it a little clearer...

Morgan


Subject: RE: [meta-freescale] CAN Supprt
Date: Wed, 15 Oct 2014 15:21:57 +0530
From: [email protected]
To: [email protected]

Hi Morgan,      As per your reply i’m trying to add can0 in the kernel command 
line(U-boot). Since I'm a fresher to deal with this, 1. could you help me to 
add can0 in kernel command line? When I give,       U-boot > can0       It says 
can0 device not found       2. My intention is to work both CAN0 and CAN1 in 
the 'i.mx6qsabreauto' EVK, please help me in this regard? Thanks and 
regards,Daniel  From: [email protected] 
[mailto:[email protected]] On Behalf Of Morgan McKenzie
Sent: 10 October 2014 13:35
To: [email protected]
Subject: Re: [meta-freescale] CAN Supprt Hi, I'm assuming you mean this board 
by EVK for automotive? 
http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=RDIMX6SABREAUTOOtherwise,
 it should be similar (ignore the u-boot stuff) but the imx6q Sabre Auto is the 
one I'm familiar with.  In my config I had+= canutils 

which isn't absolutely necessary to use can, but for debug purposes is very 
useful. And for u-boot I had (but this could probably just be done in u-boot 
prompt - I don't have access to a board right now so I can't tell you for 
sure), which enables the second can bus at the expense of having no ethernet 
connection; up to you whether you want to do it.:--- 
include/configs/mx6qsabreauto.h | 2 +- 1 file changed, 1 insertion(+), 1 
deletion(-) diff --git a/include/configs/mx6qsabreauto.h 
b/include/configs/mx6qsabreauto.h index dbbb6f0..51fcb58 100644 --- 
a/include/configs/mx6qsabreauto.h +++ b/include/configs/mx6qsabreauto.h @@ 
-12,7 +12,7 @@ #define CONFIG_MACH_TYPE 3529 #define CONFIG_MXC_UART_BASE 
UART4_BASE #define CONFIG_CONSOLE_DEV "ttymxc3" -#define 
CONFIG_DEFAULT_FDT_FILE "imx6q-sabreauto.dtb" +#define CONFIG_DEFAULT_FDT_FILE 
"imx6q-sabreauto-flexcan1.dtb" #define CONFIG_MMCROOT "/dev/mmcblk0p2" #define 
PHYS_SDRAM_SIZE (2u * 1024 * 1024 * 1024) -- 



And in my board's kernel config I had: CONFIG_CAN_VCAN=yCONFIG_CAN_SLCAN=y(But 
I believe these aren't absolutely necessary - VCAN is virtual can which is 
incredibly useful for testing by setting it to loop back, and SLCAN I believe 
is for USB to Serial converters which aren't really needed here. But thought it 
might be useful info) 

These three things may not have all been necessary - that's just what I did to 
have it working. That was a while ago (may/june), but using the master branch 
at the time so much more recent than dora, or daisy for that matter.. but daisy 
should do the trick.

Once you have the board booted up try using the command 'canconfig'. If you've 
included canutils, you'll have candump and cansend which are very helpful for 
debugging, and maybe canecho as well.



To get the can buses set up this is what I had in my boot script (first a 
high-speed bus, second a low-speed bus):canconfig can0 bitrate 500000ifconfig 
can0 up canconfig can1 bitrate 33333ifconfig can1 up

And finally, this is where you can find 
documentation:https://www.kernel.org/doc/Documentation/networking/can.txthttp://en.wikipedia.org/wiki/SocketCAN

I hope that helps and if you need some clarification let me know and I'll do my 
best!





Morgan McKenzie

 > Date: Thu, 9 Oct 2014 18:49:57 -0300
> From: [email protected]
> To: [email protected]
> CC: [email protected]
> Subject: Re: [meta-freescale] CAN Supprt
> 
> On Wed, Oct 8, 2014 at 5:01 AM, Daniel C. A (NESTIT)
> <[email protected]> wrote:
> > Presently im working on i.mx6 EVK for Automotive
> > application. I have used ‘fsl-image-gui’ which was Bitbaked using Yocto-dora
> > release. Since I’m worked on CAN interfaces, I got the following queries.
> >
> > 1. How to make CAN interfaces up on EVK?
> >
> > 2. Is there anything that I have to consider when I Bitbake
> > fsl-image-gui?
> >
> > 3. Has fsl-image-gui got support for basic drivers like CAN,I2c,gpio
> > driver., etc?
> >
> > 4. My intention is to test CAN Tx/Rx using CAN Analyzer and EVK, what
> > all are the steps for the same? Is there any document that I can follow?
> 
> Please check the archive, some people has posted some guidance abou
> CAN. Also I advise you to go do Daisy as Dora is very old and has a
> very old BSP release.
> 
> -- 
> Otavio Salvador O.S. Systems
> http://www.ossystems.com.br http://code.ossystems.com.br
> Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
> -- 
> _______________________________________________
> meta-freescale mailing list
> [email protected]
> https://lists.yoctoproject.org/listinfo/meta-freescale                        
>                   
-- 
_______________________________________________
meta-freescale mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-freescale

Reply via email to