All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wolfgang Grandegger <wg@grandegger.com>
To: Chris Stone <chris.stone@optelian.com>
Cc: "xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: Re: [Xenomai] MDIO on Freescale MX35.
Date: Wed, 23 May 2012 21:34:33 +0200	[thread overview]
Message-ID: <4FBD3BC9.7070506@grandegger.com> (raw)
In-Reply-To: <623784B6C75D274389918D358E89E8BB0B7FD420@OPTELIAN5.optelian.local>

On 05/23/2012 05:43 PM, Chris Stone wrote:
> I am using Xenomai 2.6.0. We wish to run Xenomai on two different target boards, one uses the Freescale MPC8378 CPU,
> which is powerpc, the other uses the Freescale MX35 which is arm11. This is for real products that are under development, 
> so there are some factors that affect our choices. For instance, to simplify maintenance of these cards for many 
> years to come, we want to use the same kernel version on the MPC8378 as we do on the MX35. For this reason, we 
> chose to use kernel 3.0.13, because there are Adeos patches against kernel 3.0.13 for both arm and powerpc. However, 
> I know that the Adeos patches and kernel 3.0.13 are not really supported by Xenomai 2.6.0 because they are only in the 
> Git tree and not in the official tarball download. Nonetheless, the powerpc target has been running with no problem 
> for some time now, and the card is actually in product verification now, which means that testing has not discovered 
> any problems with Xenomai 2.6.0 on that target. I am now attempting bring Xenomai up on the mx35 card.
> 
> I am using the adeos patch adeos-ipipe-3.0.13-arm-1.18.08.patch. I tried following the README for the MXC, but the 
> Freescale IMX git has no tag rel_imx_3.0.15_12.03.00. The denx tree has the tag, but the mxc patches as described in 

The Freescale git repository has moved some time ago, you can find it
now here::

http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/refs/tags

DENX just fetches from that tree from time to time.

> the README do not apply without errors. Even after fixing the patch rejects, I ended up with compilation errors, so I 
> lost confidence in that approach. So, I applied the adeos-ipipe-3.0.13-arm-1.18.08.patch to the kernel.org 3.0.13 

Yes, that is true, unfortunately. A few other patches are required (for
the mx53) before applying the ADOES patches mentioned above.

> kernel, without the pre and post patches, which went without error. The kernel boots, and many things work, but the 
> FEC Ethernet is broken with an MDIO read timeout. 

That's a known issue in the FEC driver (on the mx53).

> I would like to debug this issue and provide whatever fixes back to the community. I don't really know where to 
> start. I am looking for some guidance on what I should do to debug the issue.

We have that working for the mx6q and mx53 and we can send the patches
if you like. But the Freescale kernel is in general a bad choice. It is
branched, adapted and tests usually just for *one* target platform. For
the tree above it's the mx6q. It does not compile for the mx53 and
that's why we need the patches and it might be worse for the mx35. If
you can, you should therefore use a mainline kernel and the mx35 is well
supported in 3.0.x, IIRC. What board do you need to support?

Wolfgang.


      parent reply	other threads:[~2012-05-23 19:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-23 15:43 [Xenomai] MDIO on Freescale MX35 Chris Stone
2012-05-23 16:29 ` Gilles Chanteperdrix
2012-05-23 16:34   ` Chris Stone
2012-05-23 16:37     ` Gilles Chanteperdrix
2012-05-23 18:56       ` Chris Stone
2012-05-23 19:34 ` Wolfgang Grandegger [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4FBD3BC9.7070506@grandegger.com \
    --to=wg@grandegger.com \
    --cc=chris.stone@optelian.com \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.