From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ea0-f170.google.com (mail-ea0-f170.google.com [209.85.215.170]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id D6320E006AD for ; Mon, 2 Sep 2013 03:26:22 -0700 (PDT) Received: by mail-ea0-f170.google.com with SMTP id h14so2253008eak.15 for ; Mon, 02 Sep 2013 03:26:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:in-reply-to:mime-version:content-type:message-id :content-transfer-encoding:from:subject:date:to; bh=UlhnQFh+Tu3iUPKO6ElFTJK9FZunAcmRQ3jDJUhUX8w=; b=Wf2szGT5tGQlokjoeVug2y1AwJvyX4qCpmhs2+S136KlP+FEkJIpYQuTxzo2HrKx6B hS1l9z17tmc8/O5RWj5qdRnyDXjR5QhNyPgwTfVY59wnK6OmW6K7MW7cd72HiJFFOIkd xefuKrymcwhTrEJY6+ouPXElQkyn7lMoh5IVbL6wYAP+JWOsZUuqEATg+bRWVUn3GOxA BKXRMv5tGHjKs+Rxm222EKzy2tPgrOgKPToJufsm18Mu437hBl9075C/Hbv4n5CUZvWS 48fC5FGE2R8FSi1DMMqxJlrfxkZtJKbNhe+2U3PSZGSZaEyRsiIMsQ1/SciIZbiw1SGG tHrA== X-Received: by 10.14.184.3 with SMTP id r3mr3470007eem.49.1378117581854; Mon, 02 Sep 2013 03:26:21 -0700 (PDT) Received: from [1.192.15.57] ([2.156.108.74]) by mx.google.com with ESMTPSA id m54sm20870701eex.2.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 02 Sep 2013 03:26:21 -0700 (PDT) References: <018e01cea7c2$7cd87e60$76897b20$@cjb.it> In-Reply-To: <018e01cea7c2$7cd87e60$76897b20$@cjb.it> Mime-Version: 1.0 (1.0) Message-Id: X-Mailer: iPhone Mail (10B329) From: Simone Date: Mon, 2 Sep 2013 12:26:09 +0200 To: "" Subject: canbus interface issue on imx536 X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Sep 2013 10:26:24 -0000 Content-Type: multipart/alternative; boundary=Apple-Mail-068AC672-F810-4D3C-8768-E00047AE2D1D Content-Transfer-Encoding: 7bit --Apple-Mail-068AC672-F810-4D3C-8768-E00047AE2D1D Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Dear All, I=E2=80=99m trying to build an image with CAN support for imx536 processor. I=E2=80=99ve added canutils and libsocketcan to my =E2=80=9C.bb=E2=80=9D ima= ge file and re built the image successfully. =20 Now, I=E2=80=99m trying to test the interface, but I=E2=80=99m encountering s= ome problems. Here below the results of the setup functions: =20 CMD: ip link set can0 type can bitrate 500000 RESULT: ip: either "dev" is duplicate, or "bitrate" is garbage =20 CMD: ifconfig can0 up RESULT: ifconfig: SIOCGIFFLAGS: No such device =20 I saw that =E2=80=9Cip=E2=80=9D command is under /bininstead of /sbin where i= s actually located busybox. Is this correct? I=E2=80=99ve already copied the symlink to ip in /sbinbut with no difference= . Anyone have experience with canbus on imx53? =20 Thanks Regards =20= --Apple-Mail-068AC672-F810-4D3C-8768-E00047AE2D1D Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable

Dear All,

I=E2=80=99m trying to build an image with CAN support for imx5= 36 processor.

I=E2=80=99ve added canutils a= nd libsocketcan to my =E2=80=9C.bb=E2=80=9D image file and re built the imag= e successfully.

 

= Now, I=E2=80=99m trying to test the interface, but I=E2=80=99m encountering s= ome problems.

Here below the results of th= e setup functions:

 

CMD:           =      ip link set can0 type can bitrate 500000=
RESULT:  &n= bsp;        ip: either "dev" is duplicate= , or "bitrate" is garbage

&= nbsp;

CMD:     &nbs= p;          ifconfig can0 up
RESULT: &= nbsp;         ifconfig: SIOCGIFFLAGS= : No such device

 

<= p class=3D"MsoNormal" style=3D"margin: 0cm 0cm 0.0001pt; ">I saw that =E2=80=9Cip=E2=80=9D command is under&nbs= p;/bininstead of /sbin where is actually located bus= ybox. Is this correct?

I=E2=80=99ve alread= y copied the symlink to ip in /sbinbut with no d= ifference.

Anyone have experience w= ith canbus on imx53?

 

Thanks

Regards

 

= --Apple-Mail-068AC672-F810-4D3C-8768-E00047AE2D1D-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from db9outboundpool.messaging.microsoft.com (mail-db9lp0253.outbound.messaging.microsoft.com [213.199.154.253]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id CE2FFE0073F for ; Mon, 2 Sep 2013 05:34:04 -0700 (PDT) Received: from mail38-db9-R.bigfish.com (10.174.16.232) by DB9EHSOBE004.bigfish.com (10.174.14.67) with Microsoft SMTP Server id 14.1.225.22; Mon, 2 Sep 2013 12:34:03 +0000 Received: from mail38-db9 (localhost [127.0.0.1]) by mail38-db9-R.bigfish.com (Postfix) with ESMTP id 0461B600F2; Mon, 2 Sep 2013 12:34:03 +0000 (UTC) X-Forefront-Antispam-Report: CIP:70.37.183.190; KIP:(null); UIP:(null); IPV:NLI; H:mail.freescale.net; RD:none; EFVD:NLI X-SpamScore: -4 X-BigFish: VS-4(zzbb2dI98dI9371I1432Izz1f42h208ch1ee6h1de0h1fdah2073h1202h1e76h1d1ah1d2ah1fc6hzz1de098h186068h8275dh1de097hz2dh2a8h839h946hd25he5bhf0ah1288h12a5h12a9h12bdh137ah13b6h1441h1504h1537h153bh162dh1631h1758h1765h18e1h190ch1946h19b4h19c3h1ad9h1b0ah1b2fh1fb3h1d0ch1d2eh1d3fh1dfeh1dffh1f5fh1fe8h1ff5h209eh1155h) Received: from mail38-db9 (localhost.localdomain [127.0.0.1]) by mail38-db9 (MessageSwitch) id 1378125240455191_25508; Mon, 2 Sep 2013 12:34:00 +0000 (UTC) Received: from DB9EHSMHS026.bigfish.com (unknown [10.174.16.238]) by mail38-db9.bigfish.com (Postfix) with ESMTP id 6A7DF46006E; Mon, 2 Sep 2013 12:34:00 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by DB9EHSMHS026.bigfish.com (10.174.14.36) with Microsoft SMTP Server (TLS) id 14.16.227.3; Mon, 2 Sep 2013 12:34:00 +0000 Received: from tx30smr01.am.freescale.net (10.81.153.31) by 039-SN1MMR1-003.039d.mgd.msft.net (10.84.1.16) with Microsoft SMTP Server (TLS) id 14.3.158.2; Mon, 2 Sep 2013 12:33:58 +0000 Received: from [10.29.244.63] ([10.29.244.63]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id r82CXvKx011043; Mon, 2 Sep 2013 05:33:57 -0700 Message-ID: <522484D3.6040100@freescale.com> Date: Mon, 2 Sep 2013 09:30:11 -0300 From: Daiane Angolini User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130803 Thunderbird/17.0.8 MIME-Version: 1.0 To: Simone References: <018e01cea7c2$7cd87e60$76897b20$@cjb.it> In-Reply-To: X-OriginatorOrg: freescale.com X-FOPE-CONNECTOR: Id%0$Dn%*$RO%0$TLS%0$FQDN%$TlsDn% Cc: "" Subject: Re: canbus interface issue on imx536 X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Sep 2013 12:34:05 -0000 Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: quoted-printable On 09/02/2013 07:26 AM, Simone wrote: > Dear All, > > I=92m trying to build an image with CAN support for imx536 processor. > > I=92ve added canutils and libsocketcan to my =93.bb=94 image file and r= e built > the image successfully. > > Now, I=92m trying to test the interface, but I=92m encountering some pr= oblems. > > 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 garba= ge > > ** > > *CMD: ifconfig can0 up** > *RESULT: ifconfig: SIOCGIFFLAGS: No such device > > I saw that =93*ip=94 *command is under */bin*instead of */sbin* where i= s > actually located busybox. Is this correct? I *almost* remember something regarding the package iproute2 and can. Do=20 you have this package into your image? Could you, please take a look on=20 this? Do you know if you need to re-configure buxybox to include some can suppo= rt? > > I=92ve already copied the symlink to *ip* in */sbin*but with no differe= nce.__ > > Anyone have experience with canbus on imx53? I'm sorry, I don't have any experience with can.... all my mental links=20 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 > --=20 Daiane From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ea0-f174.google.com (mail-ea0-f174.google.com [209.85.215.174]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id EAD7DE01358 for ; Mon, 2 Sep 2013 10:15:03 -0700 (PDT) Received: by mail-ea0-f174.google.com with SMTP id z15so2488747ead.33 for ; Mon, 02 Sep 2013 10:15:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:references:in-reply-to:subject:date:message-id :mime-version:content-type:content-transfer-encoding:thread-index :content-language:importance; bh=Nh0QxkC1ewk/nQfILGnUeblDM7Gv2w8owf6qm7yHuQU=; b=cfxifzGFSE327vXzUT4BZ282fhofC50b84BCGh7C/kEqlH6NyF3OSAKnE1pUguDbV+ tA97IWcC3bNvAWDbIPqMPxXRc1zKQy119Ix+xzXR6x5wJmZF8G16GYaO1uXHkMFM7VRk Y3lmoSqojOTMAlwFwqvm8bAPsQ9QZAK1OXZyPDVa+X40bfr4+ZBtxARSfR6teJv+4lvZ G6gLdBnuqrjvEnDchze2ewKsC+s0cFW33MfhBzndVNBneUW4sHMaT1YwzeJ5sw+UuIse CA/ubyz8mahWlc+iZZkMmTa9d08nYt52/VhsHLI8PQSuZGaoSquhap0njou9z0DZ0hrU Heow== X-Received: by 10.14.180.73 with SMTP id i49mr5239432eem.55.1378142102442; Mon, 02 Sep 2013 10:15:02 -0700 (PDT) Received: from SIMONENB (88-149-150-170.v4.ngi.it. [88.149.150.170]) by mx.google.com with ESMTPSA id r48sm23901387eev.14.1969.12.31.16.00.00 (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 02 Sep 2013 10:15:01 -0700 (PDT) From: "Simone" To: "'Daiane Angolini'" References: <018e01cea7c2$7cd87e60$76897b20$@cjb.it> <522484D3.6040100@freescale.com> In-Reply-To: <522484D3.6040100@freescale.com> Date: Mon, 2 Sep 2013 19:14:59 +0200 Message-ID: <021201cea7ff$f57e0960$e07a1c20$@gmail.com> MIME-Version: 1.0 X-Priority: 1 (Highest) X-MSMail-Priority: High X-Mailer: Microsoft Outlook 15.0 Thread-Index: AQMa5y+voRrKvy83sCxdeOPNXL28+wHdqbrWAhzzaSyW+ls74A== Importance: High Cc: meta-freescale@yoctoproject.org Subject: Re: canbus interface issue on imx536 X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Sep 2013 17:15:07 -0000 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Language: it 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]=20 Inviato: luned=EC 2 settembre 2013 14:30 A: Simone Cc: Oggetto: Re: [meta-freescale] canbus interface issue on imx536 On 09/02/2013 07:26 AM, Simone wrote: > Dear All, > > I=92m trying to build an image with CAN support for imx536 processor. > > I=92ve added canutils and libsocketcan to my =93.bb=94 image file and = re=20 > built the image successfully. > > Now, I=92m trying to test the interface, but I=92m 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 =93*ip=94 *command is under */bin*instead of */sbin* where = is=20 > 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=92ve already copied the symlink to *ip* in */sbin*but with no=20 > 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-bk0-f45.google.com (mail-bk0-f45.google.com [209.85.214.45]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id CA819E00715 for ; Tue, 3 Sep 2013 07:05:05 -0700 (PDT) Received: by mail-bk0-f45.google.com with SMTP id mx11so2210699bkb.32 for ; Tue, 03 Sep 2013 07:05:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:reply-to:organization:user-agent:mime-version :to:cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=uysPnWtHQlKXG7a6gqTTdvYJ+GPoDGOxovCVd5Y8v5I=; b=CTK3TbzglmBfM0pTt/2efHvGW+h9G73Aq20OqyaiZ975FyjK5fZyw1GrZPyQILJD+m D99KWlZpVy/cKSy6XJ5vMYdPsBzUL5kMnSEtOhsB2rRzjkp81HGL0FTG10mBznw3c8G2 2Wjx85uOemSTozWwoEqCIGZ2lXHztopXXQJOpo9CMJus+cQ9YYQzkYIKBMisGDwLMM0m yB9Xwhqtoe6no2SizWMxrcbI3cyz7IXp4YwuAxhWgScoMILqKB47eQ5jQXUv0QTtZPv8 yrhb0inZbvSLkDffuYlBw5TjcJ0QfRINZGy7BanSEnKQQ8JKOukCl41o3QXdtYHq504X yOrw== X-Received: by 10.205.65.17 with SMTP id xk17mr12750715bkb.19.1378217104150; Tue, 03 Sep 2013 07:05:04 -0700 (PDT) Received: from [192.168.0.5] (host56-7-static.30-87-b.business.telecomitalia.it. [87.30.7.56]) by mx.google.com with ESMTPSA id jt14sm4721369bkb.0.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 03 Sep 2013 07:05:03 -0700 (PDT) Message-ID: <5225EC8C.2090603@gmail.com> Date: Tue, 03 Sep 2013 16:05:00 +0200 From: Marco Organization: MC User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130803 Thunderbird/17.0.8 MIME-Version: 1.0 To: Simone References: <018e01cea7c2$7cd87e60$76897b20$@cjb.it> <522484D3.6040100@freescale.com> <021201cea7ff$f57e0960$e07a1c20$@gmail.com> In-Reply-To: <021201cea7ff$f57e0960$e07a1c20$@gmail.com> Cc: meta-freescale@yoctoproject.org Subject: Re: canbus interface issue on imx536 X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: koansoftware@gmail.com List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Sep 2013 14:05:12 -0000 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ee0-f52.google.com (mail-ee0-f52.google.com [74.125.83.52]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 6D6DFE01206 for ; Tue, 3 Sep 2013 23:49:23 -0700 (PDT) Received: by mail-ee0-f52.google.com with SMTP id c41so3432417eek.39 for ; Tue, 03 Sep 2013 23:49:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:references:in-reply-to:subject:date:message-id :mime-version:content-type:content-transfer-encoding:thread-index :content-language:importance; bh=S/wFjoahMdy0dZ5WhLJ1AHrKo2qv3ugPo5YiXVLRe+8=; b=GBUIVoLvwL2EnMV60nD3eD152V01+i6+6sZah4E3GAVrxWnhxCOsI1LRvXBsGtnQay 52qZZUoz37HXbktU2HOTWJqKnDkEDliQHxZyQGF3xoZCuWxGveDyycxL0C6FrFqfhvj+ zLaBVNRkNlg5CXVakhv8ROU3tJnL15/p9J68dBi1VrztTqrGSIMW1ezTRxIQV6dkPLGz xgKhA39may/sV0ekot0EwK1GalUFcUHCx+a+bjgbfiZhFTvd07RsAemCge6raOHyrago 35nxeaxfaeWEG0TqTG5EpAfZf4hZ7yWNKoghsYTaDPOdZdce5OHC06IENhLQ1CABgX57 3QPA== X-Received: by 10.14.108.9 with SMTP id p9mr2332912eeg.8.1378277362161; Tue, 03 Sep 2013 23:49:22 -0700 (PDT) Received: from SIMONENB (88-149-150-170.v4.ngi.it. [88.149.150.170]) by mx.google.com with ESMTPSA id j7sm37365860eeo.15.1969.12.31.16.00.00 (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 03 Sep 2013 23:49:21 -0700 (PDT) From: "Simone" To: References: <018e01cea7c2$7cd87e60$76897b20$@cjb.it> <522484D3.6040100@freescale.com> <021201cea7ff$f57e0960$e07a1c20$@gmail.com> <5225EC8C.2090603@gmail.com> In-Reply-To: <5225EC8C.2090603@gmail.com> Date: Wed, 4 Sep 2013 08:49:17 +0200 Message-ID: <013901cea93a$e27c7e50$a7757af0$@gmail.com> MIME-Version: 1.0 X-Priority: 1 (Highest) X-MSMail-Priority: High X-Mailer: Microsoft Outlook 15.0 Thread-Index: AQMa5y+voRrKvy83sCxdeOPNXL28+wHdqbrWAhzzaSwBe6/wpQHUBbHKluJT9KA= Importance: High Cc: meta-freescale@yoctoproject.org Subject: Re: canbus interface issue on imx536 X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Sep 2013 06:49:28 -0000 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Language: it 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]=20 Inviato: marted=EC 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