From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f52.google.com (mail-pa0-f52.google.com [209.85.220.52]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id C3AB6E011C5 for ; Fri, 11 Oct 2013 11:41:23 -0700 (PDT) Received: by mail-pa0-f52.google.com with SMTP id kl14so4752158pab.39 for ; Fri, 11 Oct 2013 11:41:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=FTbAAz3oKLNAQ6GDkV64qL4pf/AGn8rL/RfBfcUEJT0=; b=YVdDK+MOfojY1BhOdWYJWGJGJoifHrqVu9sNt28nVSDB+PAE4xEB16gFjgTLX/k2Hk E63lVOC1C4t4DwxjmGkFdUXendbSG/uXVy1RE09/NNLb6qEeQh0clMl4K9zZ3TPgBDx4 uGL/+RnEtz8dBZpGTTRVPYyWAtrOY2HtGRJfIwm56HF3NIwMwHoqaRM+cTF4U7RiKwEu Bx/D2JkoN+QswEQN2yGhAUpTdiZMm6SkZ+ixnBzNmZLwxKLV4dE8Td2jTJn5APWzXFjA /a01/VIl2Tf+xeZ2mvQ1R8w9xUcdvq+YVLNRvl1gouvFEbVjcKpJfjMA6SxFR9wEjgeJ Xzyg== X-Gm-Message-State: ALoCoQk2ih+cAf1WHfhAjpwg1bvAsPsyiD/cquHJE3C0M/XlGX4p+Kcj+tDriyYW6ZWdpbWAmayw X-Received: by 10.68.132.33 with SMTP id or1mr21149773pbb.143.1381516883754; Fri, 11 Oct 2013 11:41:23 -0700 (PDT) Received: from [29.6.1.4] ([70.96.116.236]) by mx.google.com with ESMTPSA id yo2sm71977984pab.8.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 11 Oct 2013 11:41:22 -0700 (PDT) Message-ID: <52584650.3040201@boundarydevices.com> Date: Fri, 11 Oct 2013 11:41:20 -0700 From: Eric Nelson User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.0 MIME-Version: 1.0 To: =?UTF-8?B?Sm9zZSBNwqogRmVycmVpcm8=?= , meta-freescale@yoctoproject.org References: <5257E0EE.80802@horus.es> <5258163C.6050705@boundarydevices.com> <5258403F.5070000@horus.es> In-Reply-To: <5258403F.5070000@horus.es> Subject: Re: FlexCAN not working 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: Fri, 11 Oct 2013 18:41:26 -0000 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hi Jose, On 10/11/2013 11:15 AM, Jose Mª Ferreiro wrote: > > El 11/10/2013 17:16, Eric Nelson escribió: >> Hi Diego, >> >> On 10/11/2013 04:28 AM, diego wrote: >>> Hello everybody, >>> >>> I'm trying to test FlexCAN on Sabrelite imx6 board without success. >>> Those are the steps followed : >>> >>> 1) Comprobed that linux-imx has CAN drivers enable >>> 2) Added on the image the packages:canutils,libsocketcan and iproute2 >>> 3) Tested the Flex can with canconfig and cantest. >>> >>> Everything seems ok, even I can see transmitted frames incremented. >>> However there's not singnal on the oscilloscope. >>> >>> I don't now why is not working. Any ideas or suggestions? >>> >> >> Can you forward your kernel version (/proc/version) and output >> of /proc/cpuinfo? >> >> Some early versions of SABRE Lite used a discontinued Freescale >> CAN PHY, and there's some code in board-mx6_nitrogen6x.c to >> detect which is in use. If you're using the old board-mx6_sabrelite.c, >> that detection code isn't present. > Hi Eric > > Below are the outputs you asked. But I compared board-...nitro to > board-..sabrelite sources. Certainly nitrogen is configured for two > transceivers while sabrelite is fixed to one of them. Our board, from > Farnell element 14, has the TJA1040 transceiver. I think Sabrelite code > is working like the other transceiver. However I am not finding the > transceiver detection code :( . I keep trying :) > The detection code is defined in the link I forwarded earlier: https://github.com/boundarydevices/linux-imx6/blob/boundary-imx_3.0.35_4.1.0/arch/arm/mach-mx6/board-mx6_nitrogen6x.c#L1382 This board file can be used for both SABRE Lite and Nitrogen6X boards. I suspect this includes those produced by Farnell. The board-mx6_sabrelite.c file is essentially un-maintained and contains a reference to the old mc33902 PHY. > Thanks > > This is yocto master + linux-imx > You'll really want to use linux-boundary. Regards, Eric