From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4FBD3BC9.7070506@grandegger.com> Date: Wed, 23 May 2012 21:34:33 +0200 From: Wolfgang Grandegger MIME-Version: 1.0 References: <623784B6C75D274389918D358E89E8BB0B7FD420@OPTELIAN5.optelian.local> In-Reply-To: <623784B6C75D274389918D358E89E8BB0B7FD420@OPTELIAN5.optelian.local> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai] MDIO on Freescale MX35. List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Chris Stone Cc: "xenomai@xenomai.org" 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.