[meta-xilinx] Ethernet PHY problems

Alan Hughes alanhughes at e2eservices.co.uk
Thu Sep 10 04:59:45 PDT 2015


Nathan

 
Added ethtool to the BSP just tried it out:

 
root at sdu:~# ethtool eth0
Settings for eth0:
Cannot get device settings: No such device
        Supports Wake-on: umag
        Wake-on: d
        Link detected: no

I guess this is indicating that the PHY is not present (consistent with what else we have seen).

 
I'll put together a patch to add DEBUG to the EMACPS driver and see what that turns up.

 
Alan

-----Original message-----
From:Nathan Rossi <nathan at nathanrossi.com>
Sent:Thu 10-09-2015 10:11
Subject:Re: [meta-xilinx] Ethernet PHY problems
To:Alan Hughes <alanhughes at e2eservices.co.uk>; 
CC:meta-xilinx at yoctoproject.org; 
On Thu, Sep 10, 2015 at 6:19 PM, Alan Hughes
<alanhughes at e2eservices.co.uk> wrote:
> I am trying to build a BSP for a custom ZYNQ-7000 based board using Yocto
> 1.8 ("Fido") with the 3.19 Linux kernel based on the sources provided by
> Analogue Devices (2015.1 branch, see
> https://github.com/analogdevicesinc/linux/tree/2015_R1). The board has
> Marvell 88E1518 Gigabit PHY connected to one of theZYNQ's Ethernet
> controllers.
>
>
>
> We do not see any unexpected messages when we boot the board; all devices
> seem to start up correctly. However during the kernel boot the PHY's
> indicator lights start to flash, which I assume means that there is some
> problem, although the kernel does not generate any error messages (even when
> debug output is enabled). Logging in to the BSP and entering the command "ip
> link set dev eth0 up" does not generate any error messages in the
> application or the kernel, however the interface remains in a "down" state.
>
>
>
> We have confirmed that the PHY works by accessing it when in U-Boot; we've
> used DHCP to assign an address to the interface and ping'ed other devices on
> the local network. Also the PHY works with a test BSP provided by our board
> supplier; however the Linux kernel used by the supplier does not have the
> necessary device drivers available in it,
>
>
>
> I have attached  BSP boot log and our device tree; both have been compressed
> to save bandwidth.
>
>
>
> I would greatly appreciate any suggests as to what the problem might be, or
> alternately any ideas of approaches I can take to further diagnose the
> problem. I'm currently tearing my hair out on this one, which is a a bit of
> problem since I don't have a lot to tear out :-).

I dont see any issues in the device-tree and your boot log looks fine.

For further diagnosis setup debug output for the emacps driver, adding
"#define DEBUG" to the top of the file should be enough:
https://github.com/analogdevicesinc/linux/blob/2015_R1/drivers/net/ethernet/xilinx/xilinx_emacps.c

Also it is worth adding the program ethtool to your rootfs, this is
very useful for getting info about the link status and phy info of the
device.

Regards,
Nathan


This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to which they are addressed. If you have received this email in error please notify the sender immediately and then delete the email from your system. 

Internet communications are not secure and therefore e2E Services Ltd does not accept any liability for the contents of this message. Any views or opinions presented are solely those of the author and do not necessarily represent those of e2E Services Ltd.

Although this email and any attachments have been scanned for viruses, the success of scanning products is not guaranteed.  The recipient(s) should therefore carry out any checks that they believe to be appropriate in this respect.

e2E Services Ltd. is a limited company registered in the UK, No. 3878701. Registered Office: e2E Services Ltd, George Court, Bartholomews Walk,  Ely, Cambridgeshire, CB7 4JW 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-xilinx/attachments/20150910/13a76369/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 5137 bytes
Desc: not available
URL: <http://lists.yoctoproject.org/pipermail/meta-xilinx/attachments/20150910/13a76369/attachment.bin>


More information about the meta-xilinx mailing list