Jump to content
Sign in to follow this  
Guest Kosmik

PHY going UP and DOWN

Recommended Posts

Guest Kosmik

I have finally succeded in a working DVB-T USB stick with pcDuino8 UNO. I have used gstream to stream the channels to local network. But the streaming is unstable. Looking in dmesg i have found out that the obvious problem is the unstable phy (gmac) which quite often resets the ethernet connection. Example from dmesg:

 

[37693.870127] PHY: gmac0-0:00 - Link is Down
[37694.870115] PHY: gmac0-0:00 - Link is Up - 1000/Full
[38756.890344] PHY: gmac0-0:00 - Link is Up - 100/Full
 

Internet searching provided me with some issues on similar boards with the RTL8211E chip suggesting some tweaking with tx delay setting ( http://linux-sunxi.org/Ethernet). Yet I did not find a way how apply this tweak - putting it in config file during kernel compilation did not end with any improvement. I am not sure, if this issue is the case, maybe it is originated somewhere else (e.g. power saving options). I tried two ethernet "sources (NETIS router and TP-LINK switch) three different cables, 5 different power supplies, but nothing helped. Is there someone who can suggest what else can be tried to make the ethernet connection more stable?

Share this post


Link to post
Share on other sites
Guest Kosmik

Last week I found a workaround. It is not en external USB-ethernet adapteur (as someone might expect) as it reaches painfully low transmit speeds (btw. - is the USB port really 2.0?). Before compilation of new kernel, I exchanged the gmac related source files (sunxi_geth.h sunxi_geth.c sunxi_libgeth ; actually all differing files in the /linux-3,4/drivers/net/ethernet/sunxi/eth folder) by the files from the kernel source for Orange pi zero board ( http://www.orangepi.org/downloadresources/). With this kernel and when connected to a 100 Mbs router/switch, the ethernet link is stable (no phy going down or changing speed for four days at the time of writing) - which is a great improvement! Unfortunatelly when connected to a Gbs router, I am not able to ping the pcDuino at all (even though the port led is blinking and dmesg claims that it is connected at 1000 Mbs). Perhaps when the differing parts of the gmac source files will be analyzed in more details, the problematic code might be identified and corrected. So far, I am happy with the stable 100 Mbs connection!

Share this post


Link to post
Share on other sites
Guest
You are commenting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×