15.10: Ethernet / Network gets lost after a few seconds

masand
Posts: 29
Joined: Thu Sep 03, 2015 2:48 am
languages_spoken: english, german
ODROIDs: ODroid XU4
Has thanked: 0
Been thanked: 0
Contact:

15.10: Ethernet / Network gets lost after a few seconds

Unread post by masand » Tue Feb 23, 2016 7:28 pm

Network issues with Ubuntu 15.10 have been discussed in different threads in this forum, like:
http://forum.odroid.com/viewtopic.php?f=95&t=18794
http://forum.odroid.com/viewtopic.php?f ... 89#p124189
http://forum.odroid.com/viewtopic.php?f ... 45#p126145

But after discussing and trying everything there, I still did not have a working ethernet connection.

So I started with a fresh 15.10 image again, from here: http://odroid.com/dokuwiki/doku.php?id= ... e_20160114
The only changes I did was (by using a WiFi stick) to updated the kernel, firmware and everything through the odroid utility. Now (after removing the WiFi stick again) I can see that the cable network connection actually gets established, but it gets lost again after 10-30 seconds or so.
After a reboot, the connection will be there again for another 10-30 s and then gets lost again.

In the moment the connection gets lost, there is the following entry appearing in "dmesg -w":

Code: Select all

[  181.026246] [c0] usb 6-1: USB disconnect, device number 2
If I do a "lsusb -t" before that point in time, "usb 6-1, device 2" is shown using the driver r8152:

Code: Select all

/:  Bus 06.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
    |__ Port 1: Dev 2, If 0, Class=Vendor Specific Class, Driver=r8152, 5000M
So this means that the ethernet device gets disconnected!??!

How can that be with a hardwired device?

This seems to be an issue in the driver then?
Or a hardware issue? (cold solder joint?)

Does anyone encounter similar issues?

Any ideas how to solve this? Or how to dig further? (debug the kernel module??)

Thanks for any help!

moon.linux
Posts: 1165
Joined: Thu Oct 02, 2014 11:42 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: 15.10: Ethernet / Network gets lost after a few seconds

Unread post by moon.linux » Tue Feb 23, 2016 9:30 pm

Odroid XU4 hardware is fine and strong, it's not a issue.
Up-till now few people have encounter this issue with this 15.10 image. Including my self.
I don't know what protocol has change for this abnormal behavior.
I try few trikes it seem to work steady for my setup. Why it is not working for you I don't know.

Even mainline kernel have this issue with USB3 protocol for exynos drivers. :oops:

Could you elaborate what all hardware is connected to the board route/swtich (speed of the lan).
what I mean is if it's 1000/100 MBs we can seen if the link layer handshake problem in the driver.
so that we could narrow down the issue.

Also provide you syslog and dmeg logs to verify.

masand
Posts: 29
Joined: Thu Sep 03, 2015 2:48 am
languages_spoken: english, german
ODROIDs: ODroid XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: 15.10: Ethernet / Network gets lost after a few seconds

Unread post by masand » Wed Feb 24, 2016 6:43 am

Ok, the hardware surrounding looks as follows:
- A mini USB keyboard is plugged into the XU4 via USB ("Rii RT-MWK01 Mini X1 2.4GHz Wireless Keyboard with Mouse Touchpad for Android TV Box/PC/IPTV" from here: http://www.miniinthebox.com/rii-mini-x1 ... 57077.html)
- Tested also without the keyboard: I was able to login via ssh if I did hit the right time window. So this should make no difference.
- The network cable plugged in the XU4 is connected to a TP-Link TL-SF1008D or a TPl-Link TL-SG1008D (tested both, same behaviour)
- The switch is then connected to a router (if you need more details on that as well, please ask me again - I will sent the information to you via PM)

That´s all.

Please find the syslog from the test run with the mini keyboard attached.
Attachments
syslog.txt
Syslog
(130.14 KiB) Downloaded 99 times
dmesg.txt
Dmesg
(57.23 KiB) Downloaded 98 times

moon.linux
Posts: 1165
Joined: Thu Oct 02, 2014 11:42 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: 15.10: Ethernet / Network gets lost after a few seconds

Unread post by moon.linux » Wed Feb 24, 2016 12:21 pm

From the syslog it's preety clear that Network Manager is trying to bring down the Interface, but what is the cause I am not able to guess.

Code: Select all

Feb 23 22:01:16 odroid avahi-daemon[906]: Interface eth0.IPv6 no longer relevant for mDNS.
Feb 23 22:01:16 odroid avahi-daemon[906]: Leaving mDNS multicast group on interface eth0.IPv6 with address fe80::21e:6ff:fe31:1df.
Feb 23 22:01:16 odroid avahi-daemon[906]: Interface eth0.IPv4 no longer relevant for mDNS.
Feb 23 22:01:16 odroid avahi-daemon[906]: Leaving mDNS multicast group on interface eth0.IPv4 with address 192.168.2.100.
Feb 23 22:01:16 odroid avahi-daemon[906]: IP_DROP_MEMBERSHIP failed: No such device
Feb 23 22:01:16 odroid avahi-daemon[906]: Withdrawing address record for fe80::21e:6ff:fe31:1df on eth0.
Feb 23 22:01:16 odroid avahi-daemon[906]: Withdrawing address record for 192.168.2.100 on eth0.
Feb 23 22:01:16 odroid avahi-daemon[906]: Withdrawing workstation service for eth0.
Feb 23 22:01:16 odroid whoopsie[839]: [22:01:16] Cannot reach: https://daisy.ubuntu.com
Feb 23 22:01:16 odroid whoopsie[839]: [22:01:16] offline
Feb 23 22:01:16 odroid systemd[1]: Stopping ifup for eth0...
Feb 23 22:01:16 odroid NetworkManager[852]: <info>  devices removed (path: /sys/devices/usb.2/12400000.dwc3/xhci-hcd.5.auto/usb6/6-1/6-1:1.0/net/eth0, iface: eth0)
Feb 23 22:01:17 odroid NetworkManager[852]: <info>  (eth0): device state change: activated -> unmanaged (reason 'removed') [100 10 36]
Feb 23 22:01:17 odroid dbus[916]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service'
Feb 23 22:01:17 odroid systemd[1]: Starting Network Manager Script Dispatcher Service...
Feb 23 22:01:17 odroid NetworkManager[852]: <info>  NetworkManager state is now DISCONNECTED
Feb 23 22:01:17 odroid dhclient: Killed old client process
Feb 23 22:01:17 odroid ifdown[1424]: Killed old client process
Feb 23 22:01:17 odroid dbus[916]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Feb 23 22:01:17 odroid nm-dispatcher: Dispatching action 'down' for eth0
Feb 23 22:01:17 odroid systemd[1]: Started Network Manager Script Dispatcher Service.
Feb 23 22:01:18 odroid dhclient: Internet Systems Consortium DHCP Client 4.3.1
Can you try some thing at your end.
Re configure Network Manage, try updating the MAC address, so that it gets updated.
Or reconfigure avahi-demon using following link https://wiki.archlinux.org/index.php/avahi

Strange why this new interface is coming into picture eth1

Code: Select all

Feb 23 21:50:07 odroid networking[386]: Failed to bring up eth1.
Feb 23 21:50:07 odroid networking[386]: ...done.
Feb 23 21:50:07 odroid systemd[1]: Started LSB: Raise network interfaces..

Code: Select all

Feb 23 21:50:07 odroid networking[386]: For info, please visit https://www.isc.org/software/dhcp/
Feb 23 21:50:07 odroid networking[386]: Cannot find device "eth1"
Feb 23 21:50:07 odroid dhclient: Error getting hardware address for "eth1": No such device
Feb 23 21:50:07 odroid dhclient: 
Feb 23 21:50:07 odroid dhclient: If you think you have received this message due to a bug rather
Feb 23 21:50:07 odroid dhclient: than a configuration issue please read the section on submitting
Feb 23 21:50:07 odroid dhclient: bugs on either our web page at www.isc.org or in the README file
Feb 23 21:50:07 odroid dhclient: before submitting a bug.  These pages explain the proper
Feb 23 21:50:07 odroid dhclient: process and the information we find helpful for debugging..

User avatar
XeoSal
Posts: 925
Joined: Sun Aug 30, 2015 11:21 pm
languages_spoken: English
ODROIDs: C1, C1+, C2 & XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: 15.10: Ethernet / Network gets lost after a few seconds

Unread post by XeoSal » Wed Feb 24, 2016 12:34 pm

moon.linux wrote: Strange why this new interface is coming into picture eth1
Try this:

Code: Select all

odroid:$ sudo -s
odroid:# rm  /etc/udev/rules.d/70-persistent-net.rules
odroid:# reboot
Then it should look for Ethernet interface as "eth0", if the kernel identifies the device in "/sys/class/bla/bla/eth0" which is the default behavior for the new kernel, it used to be "eth1" in older versions.

masand
Posts: 29
Joined: Thu Sep 03, 2015 2:48 am
languages_spoken: english, german
ODROIDs: ODroid XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: 15.10: Ethernet / Network gets lost after a few seconds

Unread post by masand » Wed Feb 24, 2016 11:49 pm

Hi again,

I tried to change the MAC address in the NetworkManager, but all that happened is that I had 2 Wired connections in the end. Please see the attached screen shot network_connections.png.

The eth1 thing came from a USB2Ethernet adapter I had used meanwhile to be able to work with the XU4... For the syslog created, I left the file /etc/network/interface.d/eth1 there by accident. Sorry for that! I again attached the syslog where I removed the file before testing. Also, I installed something which needs the "ntpd" meanwhile, so the time without network is set to Jan 1st, 01:00:00. And the syslog gets a bit lengthy with the ntpd messages...

I tried Wireshark yesterday to see which network packages do arrive from the odroid and found the have something todo with avahi. So I already uninstalled it completely yesterday, as I don´t need it. But it didn´t help.

I have no file /etc/udev/rules.d/70-persistent-net.rules.
Attachments
syslog2.txt
(499.11 KiB) Downloaded 77 times
network_connections.png
(15.08 KiB) Downloaded 5209 times

moon.linux
Posts: 1165
Joined: Thu Oct 02, 2014 11:42 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: 15.10: Ethernet / Network gets lost after a few seconds

Unread post by moon.linux » Thu Feb 25, 2016 12:32 am

First delete all the Network connection and then reconfigure the network connection.

Now from this syslog it seems to be that you have ipv6 and ipv4 + NETBDS. I observed from the logs.

Now when you have ipv6 nextwork, it is going to override you ipv4 connection.
ipv6 is using tunneling protocol in your case.

support for IPv6 need to be check on odroid kernel.
But could you turn off ipv6 on your route to narrow down the problem.

Also I see it searching for DNS request for ipv6 server are failing.

Code: Select all

Jan  1 01:00:16 odroid named[705]: running
Jan  1 01:00:16 odroid named[705]: error (network unreachable) resolving '0.ubuntu.pool.ntp.org/A/IN': 2001:7fe::53#53
Jan  1 01:00:16 odroid named[705]: error (network unreachable) resolving './DNSKEY/IN': 2001:7fe::53#53
Jan  1 01:00:16 odroid named[705]: error (network unreachable) resolving './NS/IN': 2001:7fe::53#53
Jan  1 01:00:16 odroid named[705]: error (network unreachable) resolving './DNSKEY/IN': 2001:503:c27::2:30#53
Jan  1 01:00:16 odroid named[705]: error (network unreachable) resolving './NS/IN': 2001:503:c27::2:30#53
Jan  1 01:00:16 odroid named[705]: error (network unreachable) resolving './DNSKEY/IN': 193.0.14.129#53
Jan  1 01:00:16 odroid named[705]: error (network unreachable) resolving './NS/IN': 193.0.14.129#53
Jan  1 01:00:16 odroid named[705]: error (network unreachable) resolving './DNSKEY/IN': 192.112.36.4#53
Jan  1 01:00:16 odroid named[705]: error (network unreachable) resolving './NS/IN': 192.112.36.4#53

briceb8e
Posts: 3
Joined: Thu Feb 25, 2016 12:47 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: 15.10: Ethernet / Network gets lost after a few seconds

Unread post by briceb8e » Thu Feb 25, 2016 12:49 am

Hi - new user here. Just wanted to say I have the same exact problem, that's how I just found this post. Thanks,

moon.linux
Posts: 1165
Joined: Thu Oct 02, 2014 11:42 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: 15.10: Ethernet / Network gets lost after a few seconds

Unread post by moon.linux » Thu Feb 25, 2016 1:00 am

I don't have ipv6 network on my side to test and verify the issue. :evil:

masand
Posts: 29
Joined: Thu Sep 03, 2015 2:48 am
languages_spoken: english, german
ODROIDs: ODroid XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: 15.10: Ethernet / Network gets lost after a few seconds

Unread post by masand » Thu Feb 25, 2016 4:36 am

Hi,

deleting all network connections - that´s what I did a few hours ago, but only now I am able to write back, sorry.

At first, it really seemed to work!

I deleted all files below "/etc/NetworkManager/system-connections", and then plugged in the network cable. After that, I could ping some host in the internet for > 10 minutes before I cancelled that test.

But then again, I wanted to create the file "/etc/network/interfaces.d/eth0" as described in the other posts mentioned above. I thought this would be necessary to have the ethernet connection directly after reboot. The XU4 will be used as a headless server, so the ethernet connection needs to be there right away. But after the next reboot, the connection was not there. I had to leave for some hours and will do further testing soon. I will share my results then.

masand
Posts: 29
Joined: Thu Sep 03, 2015 2:48 am
languages_spoken: english, german
ODROIDs: ODroid XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: 15.10: Ethernet / Network gets lost after a few seconds

Unread post by masand » Thu Feb 25, 2016 5:23 am

Ok, delete all the network connections in "Network connections" - that does it!

Leave away the file "/etc/network/interfaces.d/eth0", then it works fine. So in my configuration, below "/etc/network/interfaces.d" there is only "lo" to be found.

Thanks a lot for the help!

@briceb8e: Hope the problem is solved for you this way as well?

masand
Posts: 29
Joined: Thu Sep 03, 2015 2:48 am
languages_spoken: english, german
ODROIDs: ODroid XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: 15.10: Ethernet / Network gets lost after a few seconds

Unread post by masand » Thu Feb 25, 2016 5:46 am

Hi again,

sorry, but I have to row back partially...

Removing the network connections DOES help me as long as the XU4 is connected to the 100MBit Switch (TP-Link TL-SF1008D).
It does NOT help if the XU4 is connected to the Gigabit-Switch (TP-Link TL-SG1008D) :-(

The places I choose for testing and for final usage are different, meaning the XU4 is connected to different switches. So I only found this out at the very end.

So the whole story is somehow an emotional roller coaster :roll:

But then the Gigabit network seems to be the root cause.
@moon.linux: With that information, can you reproduce on your side?

briceb8e
Posts: 3
Joined: Thu Feb 25, 2016 12:47 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: 15.10: Ethernet / Network gets lost after a few seconds

Unread post by briceb8e » Thu Feb 25, 2016 6:12 am

@masand: working for me, thanks!

masand
Posts: 29
Joined: Thu Sep 03, 2015 2:48 am
languages_spoken: english, german
ODROIDs: ODroid XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: 15.10: Ethernet / Network gets lost after a few seconds

Unread post by masand » Thu Feb 25, 2016 7:10 am

I have to revoke my last statement ... again ...
Sorry, but this is really, really confusing...

There was another difference. In the test setup (100MBit switch) I always logged in at the console to test the connection from "within" the XU4.
In the final setup (Gigabit switch) I did NOT log in at the console or X, but via ssh instead.

So I ran another test in the _test_ setup where I did NOT login at the console but via ssh, and the connection got lost again.
And the other way round, I logged in via console in the final setup, and the connection is stable there now.

I also tested to just plugin the keyboard without logging in. As another USB device the keyboard might be disturbing the USB network device. But this does not make a difference.
The difference really is whether I´m logged in at the console (or X) or not.

But I still can´t really spot what could be the root cause then...

What is really different, concerning networking, whether I´m logged at in the console or not?

Will investigate further, but most probably only next week...

briceb8e
Posts: 3
Joined: Thu Feb 25, 2016 12:47 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: 15.10: Ethernet / Network gets lost after a few seconds

Unread post by briceb8e » Fri Feb 26, 2016 1:31 am

@masand: it has just happened again, I have lost ethernet connection. that happened after I have disabled X as my X4 was only meant to be an Ethereum node.

moon.linux
Posts: 1165
Joined: Thu Oct 02, 2014 11:42 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: 15.10: Ethernet / Network gets lost after a few seconds

Unread post by moon.linux » Fri Feb 26, 2016 2:07 am

Always share your syslogs so that we can analysis and share the inputs.

uDude
Posts: 65
Joined: Mon Sep 15, 2014 7:32 am
languages_spoken: english
ODROIDs: 3 U3's,
2 XU3's,
5 C1's,
26 XU4's,
3 HC-1s
Has thanked: 0
Been thanked: 0
Contact:

Re: 15.10: Ethernet / Network gets lost after a few seconds

Unread post by uDude » Fri Feb 26, 2016 3:03 pm

So, I upgraded an XU4 from 15.04 to 15.10 using ubuntu dist-upgrade. I now have my Gbic working but it is a little weird and I cannot guarantee consistency. (1) I unplugged my wifi adapter, (2) I removed the aforementioned udev rules, (3) I disabled IPv6, (4) I added r8152 and sms95xx to /etc/modules. I know that some of these should make no difference; nonetheless, I have GE.

End result is working but bizarre. The nic was *NOT* named eth0. It was named with the mac address, enx001e06301c48. ALSO, that mac address is decidedly not the mac passed to the kernel from boot.ini -- it is actually the mac from the disconnected wifi adapter. NOTE THIS WAS AFTER A FULL POWER OFF (REMOVAL OF POWER CORD FOR 10 Secs) . BIzarre. I suspect the artifacts are from the NetworkManager so I will clean that up and report back.

masand
Posts: 29
Joined: Thu Sep 03, 2015 2:48 am
languages_spoken: english, german
ODROIDs: ODroid XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: 15.10: Ethernet / Network gets lost after a few seconds

Unread post by masand » Wed Mar 02, 2016 11:44 pm

Success!! (hopefully this time for real...)

Before the weekend, with the 15.10 image installed, and the system connections removed from the network manager as described above, everything seemed to work fine.
I ran a ping to the odroid for the whole weekend - no dropouts.

But after the weekend I rebooted (a real _hard_ reboot: just pulled the power plug and plug it in again) and now the odroid wouldn´t start again fully. It froze somewhere in the boot messages before the graphical login screen occured.

So, instead of trying with the 15.10 image again, I thought I might also try the "update from 15.04" path.

Here is what I did:
- Installed the odroid ubuntu 15.04 image to the eMMC card -> ethernet was working fine.
- Updated all packages ("apt-get update; apt-get upgrade"), reboot -> ethernet still working fine.
- Upgraded to 15.10 via Software updater (about 2-4 hours), reboot -> ethernet _not_ working any more.
- Removed the /etc/udev/rules.d/70-persistent-net.rules file (I´m not sure whether this is necessary!)
- "uname -a" said the kernel is 3.10.92-xx -> wondered why the kernel is so old...
- found out that one apt source had been deactivated during upgrade -> edited /etc/apt/sources.list.d/odroid.list, the content should be like this in the end:

Code: Select all

deb http://deb.odroid.in/5422/ wily main
- Connected a USB2Ethernet adapter to have internet access (this worked out of the box...) -> secondary ethernet available for Upgrade
- Ran updates to get the new kernel (3.10.96-78):

Code: Select all

apt-get update
apt-get upgrade
apt-get autoremove
apt-get dist-upgrade
apt-get upgrade linux-image-xu3
- Reboot, removed USB2Ethernet adapter -> Primary Ethernet working, Gigabit velocity available.

I rebooted at least 5 times now, and then checked for at least 5 minutes that ethernet is working. It does.

Also, I set the governor from "performance" to "ondemand" in the /media/boot/boot.ini file in between. This has no negative effects (up to now).

So, due to the sporadic character of this error:
If you don´t hear from me within the next 7-10 days, the problem is most probably solved.

I still can´t recommend the 15.10 image though, but would rather advise the upgrade from 15.04 now.

js1234
Posts: 25
Joined: Thu Aug 13, 2015 5:08 pm
languages_spoken: english
ODROIDs: xu4
Has thanked: 0
Been thanked: 0
Contact:

Re: 15.10: Ethernet / Network gets lost after a few seconds

Unread post by js1234 » Tue Mar 08, 2016 4:06 am

I posted this under the older thread, but I've now tried some of the things listed here.

Summary: upgraded to 15.10 and the on-board ethernet controller disappeared.

root@odroid:/etc/init.d# lsusb -t
/: Bus 06.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
/: Bus 05.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/2p, 480M
|__ Port 2: Dev 3, If 0, Class=Vendor Specific Class, Driver=asix, 480M
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=exynos-ohci/3p, 12M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=s5p-ehci/3p, 480M

I checked under NetManager to see if there was a conflict. NetManager is not enabled.

I tried disconnecting from the Cisco gigabit switch and rebooting to see if an unconnected port would work. No.

I removed the eth0 I had in interfaces.d and rebooted. The previous eth1 USB controller showed up as eth[mac address] even though there is an eth1 file to control its startup. The rtl8153 still did not appear in dmesg or lsusb.

I removed eth1 and rebooted, assuming that whoever is starting the network was ignoring that file (wrong name for device) and starting the network anyway (using DHCP to get the address), and now there is NO working network. So, it appears that the network startup is seeing the file eth1, seeing a device, and using the info but not the name. And when there is no file with even the wrong name for the interface, it does nothing.

At no point does it appear to be seeing an eth0 device. The on-board gigabit controller is just gone. But it's there for 15.4.

User avatar
odroid
Site Admin
Posts: 31835
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 89 times
Been thanked: 252 times
Contact:

Re: 15.10: Ethernet / Network gets lost after a few seconds

Unread post by odroid » Tue Mar 08, 2016 10:51 am

Can you freshly install the 15.10 image? I think some portion of udev and systemd were corrupted and it might block the correct USB detection. :(
http://odroid.com/dokuwiki/doku.php?id= ... nux_ubuntu

js1234
Posts: 25
Joined: Thu Aug 13, 2015 5:08 pm
languages_spoken: english
ODROIDs: xu4
Has thanked: 0
Been thanked: 0
Contact:

Re: 15.10: Ethernet / Network gets lost after a few seconds

Unread post by js1234 » Tue Mar 08, 2016 4:17 pm

I have done this as both a full install from the Ubuntu 15.10 (20160114) image and as an upgrade to a working 15.4.

I just did it again from the full image. dmesg output attached.

root@odroid:/tmp# lsusb -t
/: Bus 06.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
/: Bus 05.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/2p, 480M
|__ Port 2: Dev 3, If 0, Class=Vendor Specific Class, Driver=asix, 480M
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=exynos-ohci/3p, 12M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=s5p-ehci/3p, 480M
Attachments
dmesg.txt
(55.6 KiB) Downloaded 81 times

bestondoa
Posts: 72
Joined: Tue Mar 05, 2013 9:04 pm
languages_spoken: english, portuguese, bulgarian
ODROIDs: U2, XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: 15.10: Ethernet / Network gets lost after a few seconds

Unread post by bestondoa » Tue Mar 08, 2016 10:36 pm

I can confirm that this is also a problem on my installation.

Sometimes onboard eth is not detected on boot, while other times it simply disconnects after some minutes.

moon.linux
Posts: 1165
Joined: Thu Oct 02, 2014 11:42 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: 15.10: Ethernet / Network gets lost after a few seconds

Unread post by moon.linux » Tue Mar 08, 2016 11:33 pm

Probably r8152 driver update should do the trick.

js1234
Posts: 25
Joined: Thu Aug 13, 2015 5:08 pm
languages_spoken: english
ODROIDs: xu4
Has thanked: 0
Been thanked: 0
Contact:

Re: 15.10: Ethernet / Network gets lost after a few seconds

Unread post by js1234 » Wed Mar 09, 2016 3:38 am

A driver upgrade would probably "do the trick". That is a true statement.

The driver is compiled into the kernel. It does not appear that a kernel upgrade is part of the apt-get upgrade process after loading the Odroid XU4 image. "linux-image-xu3" is "held back".

What's concerning is the appearance of an "unattended-upgrade" entry in the list of packages to be upgraded. Is this something new that will do upgrades without my asking?

However, after re-burning the same official image yet again, it appears that the on-board network device has appeared. This isn't supposed to be a random process. And how long it stays, I don't know.

User avatar
odroid
Site Admin
Posts: 31835
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 89 times
Been thanked: 252 times
Contact:

Re: 15.10: Ethernet / Network gets lost after a few seconds

Unread post by odroid » Wed Mar 09, 2016 12:45 pm

Try to "apt-get install linux-image-xu3" to force the kernel update. It is not harmful and we don't know exactly why the "held back" randomly happens.

BTW, we could reproduce the missing Ethernet issue randomly/rarely in the reboot process.
We will keep looking into the issue more carefully.

js1234
Posts: 25
Joined: Thu Aug 13, 2015 5:08 pm
languages_spoken: english
ODROIDs: xu4
Has thanked: 0
Been thanked: 0
Contact:

Re: 15.10: Ethernet / Network gets lost after a few seconds

Unread post by js1234 » Wed Mar 09, 2016 5:49 pm

Try to "apt-get install linux-image-xu3" to force the kernel update. It is not harmful and we don't know exactly why the "held back" randomly happens.
Did apt-get install linux-image-xu3. Was not harmful until I rebooted. Re-boot failed. The blue LED blinks once. When I examine the microSD card in /var/log there is nothing recorded about the failed boot.

Back to square one.

Also, the "unattended-update" package does, indeed, install an unattended, automated update system under /etc/cron.daily.

js1234
Posts: 25
Joined: Thu Aug 13, 2015 5:08 pm
languages_spoken: english
ODROIDs: xu4
Has thanked: 0
Been thanked: 0
Contact:

Re: 15.10: Ethernet / Network gets lost after a few seconds

Unread post by js1234 » Thu Mar 10, 2016 4:38 pm

Reburned the 15.10 image, apt-get upgrade, but NOT linux-image-xu3.

[ 28.387903] [c7] usb 6-1: USB disconnect, device number 2

At least it is waiting long enough for my USB network adapter to be identified as eth1 so it will get the correct address and I can talk to the XU4.

What is the status of a fix for this issue? Not having a gigabit network connection makes this board a bit unusable as a GigE camera controller.

bjerred
Posts: 1
Joined: Thu Mar 10, 2016 5:04 pm
languages_spoken: english
ODROIDs: XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: 15.10: Ethernet / Network gets lost after a few seconds

Unread post by bjerred » Thu Mar 10, 2016 5:18 pm

I have the same problem:

"I can confirm that this is also a problem on my installation.
Sometimes onboard eth is not detected on boot, while other times it simply disconnects after some minutes."
15.04 is ok in this aspect

zarcondeegrissom
Posts: 40
Joined: Sun Feb 28, 2016 11:33 pm
languages_spoken: english
ODROIDs: Odroid XU4
Location: New England
Has thanked: 0
Been thanked: 0
Contact:

Re: 15.10: Ethernet / Network gets lost after a few seconds

Unread post by zarcondeegrissom » Tue Mar 15, 2016 9:02 am

Seeing as Google lead me to this thread with a similar sounding problem. Some times there was a NIC detected, and sometimes there was nothing. Also nothing would talk to the network, not even the network load indicator "System Monitor" task bar thing. The network icon thing on the task bar would just show "No Network devices available" with no other options. Some times a VPN thing would be there.

After putting around with settings for a bit, I tried swapping some things plugged into the USB ports, and instantly (after a reboot) the NIC came to life. Now I'm sure we are all using different stuff, with different things plugged into different USB ports on the odroid. I initaly had a USB sound thing on the single plug next to the cat5 plug, and the keyboard and mouse plugged into the double-USB-plug on the front of the XU4. I swapped the sound and keyboard, and that appeared to do it for me (until the dynamically assigned IRQ-things gets swapped around, possibly).

It's been going for around an hour (far longer then a few minutes) without anything spontaneously stopping working, so far, so it may or may not be relevant to others here with similar sounding network issues.
Attachments
OdroidXu4_Running_IMG_4201qs.jpg
working so far
(283.08 KiB) Downloaded 4829 times
A computer is a Tool that is supposed to make our lives easier, not make our lives wait for the computer. - ZDG

js1234
Posts: 25
Joined: Thu Aug 13, 2015 5:08 pm
languages_spoken: english
ODROIDs: xu4
Has thanked: 0
Been thanked: 0
Contact:

Re: 15.10: Ethernet / Network gets lost after a few seconds

Unread post by js1234 » Tue Mar 15, 2016 1:37 pm

I have nothing plugged into the USB except an ASIX network adapter, and it doesn't matter if it is in one of the two combined jacks or the one next to the power plug.

bruno
Posts: 6
Joined: Tue Mar 15, 2016 7:42 pm
languages_spoken: french
ODROIDs: xu4
Has thanked: 0
Been thanked: 0
Contact:

Re: 15.10: Ethernet / Network gets lost after a few seconds

Unread post by bruno » Tue Mar 15, 2016 7:59 pm

Stable since 4 days with new install and all updates with odroid-utility.sh

Code: Select all

odroid@omega:~$ uname -a
Linux omega 3.10.96-78 #1 SMP PREEMPT Fri Feb 12 05:59:25 BRST 2016 armv7l armv7l armv7l GNU/Linux
odroid@omega:~$ lsusb -t
/:  Bus 06.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
    |__ Port 1: Dev 9, If 0, Class=Vendor Specific Class, Driver=r8152, 5000M
/:  Bus 05.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/2p, 5000M
        |__ Port 1: Dev 3, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/2p, 480M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=exynos-ohci/3p, 12M
    |__ Port 1: Dev 2, If 0, Class=Human Interface Device, Driver=usbhid, 12M
    |__ Port 1: Dev 2, If 1, Class=Human Interface Device, Driver=usbhid, 12M
    |__ Port 1: Dev 2, If 2, Class=Human Interface Device, Driver=usbhid, 12M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=s5p-ehci/3p, 480M
odroid@omega:~$ ifconfig
eth0      Link encap:Ethernet  HWaddr 00:1e:06:30:09:37  
          inet adr:192.168.1.126  Bcast:192.168.1.255  Masque:255.255.255.0
          adr inet6: ****:***:****:****:***:**:****:***/128 Scope:Global
          adr inet6: fe80::21e:6ff:fe30:937/64 Scope:Lien
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Packets reçus:12625 erreurs:0 :0 overruns:0 frame:0
          TX packets:11883 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:1000 
          Octets reçus:4158865 (4.1 MB) Octets transmis:1905881 (1.9 MB)

ip6tnl0   Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  
          UP RUNNING NOARP  MTU:1452  Metric:1
          Packets reçus:0 erreurs:0 :0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:0 
          Octets reçus:0 (0.0 B) Octets transmis:0 (0.0 B)

lo        Link encap:Boucle locale  
          inet adr:127.0.0.1  Masque:255.0.0.0
          adr inet6: ::1/128 Scope:Hôte
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          Packets reçus:71091 erreurs:0 :0 overruns:0 frame:0
          TX packets:71091 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:0 
          Octets reçus:6104885 (6.1 MB) Octets transmis:6104885 (6.1 MB)

sit0      Link encap:IPv6-dans-IPv4  
          UP RUNNING NOARP  MTU:1480  Metric:1
          Packets reçus:0 erreurs:0 :0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:0 
          Octets reçus:0 (0.0 B) Octets transmis:0 (0.0 B)

odroid@omega:~$ uptime 
 10:54:39 up 4 days, 18:22,  1 user,  load average: 0.06, 0.13, 0.09

zarcondeegrissom
Posts: 40
Joined: Sun Feb 28, 2016 11:33 pm
languages_spoken: english
ODROIDs: Odroid XU4
Location: New England
Has thanked: 0
Been thanked: 0
Contact:

Re: 15.10: Ethernet / Network gets lost after a few seconds

Unread post by zarcondeegrissom » Wed Mar 16, 2016 12:06 am

I'm sorry js1234, it was a thought based on former IRQs vs PCI cards. Some times you end up with a bad combination that just acts up. I've experienced it with PCI graphics cards vs many other kinds of PCI cards (56k modems, NIC, IDE cards, etc). I recently had similar happen between the USB sound vs the Rpi2 on-board sound conflicting for IRQs (or whatever the USB thing is called). It was worth bringing up.

I've also had some USB-to-RS232 devices not work with radio software to "key up" a radio. Some USB-to-RS232 adapter chips work every time, and others tend to be 'stubborn' at best. So, I don't know what chip the Xu4 NIC is based on, tho that in combination with whatever chip is in the ASIX network adapter may also have something to do with it. If you have anything else laying around (don't run out to buy one just yet) with a different chip in it to try (even if it is only a Tbase10 USB NIC).

I don't have any USB NICs here to try, so I'm unable to give dual NICs a try on the Xu4.

Bruno. Are you using the Xu4 on-board NIC, or a USB one? I'm new, however the one thing I don't see there, is the NIC adapter model number or manufacturer (or it's encoded in some Hexadecimal numbers somewhere and I'm just not understanding, lol).
A computer is a Tool that is supposed to make our lives easier, not make our lives wait for the computer. - ZDG

moon.linux
Posts: 1165
Joined: Thu Oct 02, 2014 11:42 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: 15.10: Ethernet / Network gets lost after a few seconds

Unread post by moon.linux » Wed Mar 16, 2016 2:30 am

Its bit tricky to fix this issue. :evil: But I got some pointers out of this.

bestondoa
Posts: 72
Joined: Tue Mar 05, 2013 9:04 pm
languages_spoken: english, portuguese, bulgarian
ODROIDs: U2, XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: 15.10: Ethernet / Network gets lost after a few seconds

Unread post by bestondoa » Wed Mar 16, 2016 3:30 am

I have only a wireless keyboard/mouse combo attached to a USB3 port and this happens.

Previously, I had it attached to the USB2 port through a USB hub and this happened too.

It's a weird issue. The good thing (if there is such) is that this issue doesn't happen in 15.04, so I'm back to that release. Pity that no updates were released to it for some time, so I had to recompile the kernel to get the r9p0 video drivers.

masand
Posts: 29
Joined: Thu Sep 03, 2015 2:48 am
languages_spoken: english, german
ODROIDs: ODroid XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: 15.10: Ethernet / Network gets lost after a few seconds

Unread post by masand » Fri Mar 18, 2016 4:58 am

Hey, feels kind of good to see that more and more people are encountering this issue. So hopefully the hints here will help the odroid developers to find a solution.

Meanwhile, more bad news... It didn´t take 7-10 days, but 15 days...
The system was running fine with ethernet, over several reboots and all upgrades since March, 2nd.
Then, 2 or 3 days ago, I stopped the system ("shutdown -h") and today, I wanted to boot again -> no ethernet available any more...

Sorry, I can´t invest any more time to dig further into this... I just accepted that I´ll have to use a USB2Ethernet-Adapter from now on.

js1234
Posts: 25
Joined: Thu Aug 13, 2015 5:08 pm
languages_spoken: english
ODROIDs: xu4
Has thanked: 0
Been thanked: 0
Contact:

Re: 15.10: Ethernet / Network gets lost after a few seconds

Unread post by js1234 » Tue Mar 22, 2016 7:05 am

No need to apologize zarcondeegrissom, it's a thought. I've seen others talking about what they have connected.

I wish I could go back to 15.4, but even though the network communicates under that version, I think there is an issue with jumbo frames that keeps it from working correctly with a GigE camera.

This board just seems flaky, and Hardkernel has no update on when it will be fixed.

User avatar
odroid
Site Admin
Posts: 31835
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 89 times
Been thanked: 252 times
Contact:

Re: 15.10: Ethernet / Network gets lost after a few seconds

Unread post by odroid » Tue Mar 22, 2016 5:03 pm

Give us a couple of days.
We will release a kernel update soon.

bryanr
Posts: 5
Joined: Mon Mar 21, 2016 10:42 am
languages_spoken: english
ODROIDs: C1 C2 UX4
Has thanked: 0
Been thanked: 0
Contact:

Re: 15.10: Ethernet / Network gets lost after a few seconds

Unread post by bryanr » Thu Mar 24, 2016 7:58 am

I'm getting the same thing, wired eth flaky. Then I did an upgrade, and now I can't seem to see eth0.

User avatar
odroid
Site Admin
Posts: 31835
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 89 times
Been thanked: 252 times
Contact:

Re: 15.10: Ethernet / Network gets lost after a few seconds

Unread post by odroid » Thu Mar 24, 2016 11:17 am

There is no Kernel update yet.

User avatar
odroid
Site Admin
Posts: 31835
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 89 times
Been thanked: 252 times
Contact:

Re: 15.10: Ethernet / Network gets lost after a few seconds

Unread post by odroid » Sat Mar 26, 2016 8:44 am

Update the Kernel to 3.10.96-79 via "apt-get dist-upgrade".
We've added this patch to fix the intermittent USB 3.0 & Ethernet initialization problem.
https://github.com/hardkernel/linux/com ... 7cc8713f9e

Try the new Kernel update and let us know the result.

bestondoa
Posts: 72
Joined: Tue Mar 05, 2013 9:04 pm
languages_spoken: english, portuguese, bulgarian
ODROIDs: U2, XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: 15.10: Ethernet / Network gets lost after a few seconds

Unread post by bestondoa » Sun Mar 27, 2016 5:06 pm

Thanks!

I updated yesterday and it's been up until today. It seems to be working, so far :)

Great work!

js1234
Posts: 25
Joined: Thu Aug 13, 2015 5:08 pm
languages_spoken: english
ODROIDs: xu4
Has thanked: 0
Been thanked: 0
Contact:

Re: 15.10: Ethernet / Network gets lost after a few seconds

Unread post by js1234 » Mon Mar 28, 2016 11:02 am

15 seconds into boot, USB 6-1 Disconnect device 2.

This update seems to have broken logging by changing the owner of syslog. Now that it has been reset:

Mar 28 02:22:44 odroid kernel: [ 4.335195] [c6] usb 6-1: new SuperSpeed USB device number 2 using xhci-hcd
Mar 28 02:22:44 odroid kernel: [ 4.440211] [c6] usb 3-1.1: new high-speed USB device number 3 using xhci-hcd
Mar 28 02:22:44 odroid kernel: [ 14.039751] [c5] usb 6-1: USB disconnect, device number 2

root@odroid:/var/log# uname -a
Linux odroid 3.10.96-79 #1 SMP PREEMPT Thu Mar 24 01:21:18 BRT 2016 armv7l armv7l armv7l GNU/Linux

I see from the github diffs, r8152 has been changed from kernel to module.

Code: Select all

root@odroid:/var/log# lsmod
Module                  Size  Used by
asix                   19620  0
cdc_ether               4667  0
usbnet                 22773  2 asix,cdc_ether
r8152                  53567  0
ina231_sensor           9040  0
spi_s3c64xx            14770  0
i2c_s3c2410             9407  0
ppdev                   6482  0
lp                      8869  0
parport                22257  2 lp,ppdev

User avatar
odroid
Site Admin
Posts: 31835
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 89 times
Been thanked: 252 times
Contact:

Re: 15.10: Ethernet / Network gets lost after a few seconds

Unread post by odroid » Mon Mar 28, 2016 4:13 pm

Remove the Asix USB Ethernet and let us know the status of the on-board Ethernet.
Also show us the output of "lsusb -t".

js1234
Posts: 25
Joined: Thu Aug 13, 2015 5:08 pm
languages_spoken: english
ODROIDs: xu4
Has thanked: 0
Been thanked: 0
Contact:

Re: 15.10: Ethernet / Network gets lost after a few seconds

Unread post by js1234 » Tue Mar 29, 2016 4:24 am

If I remove the only working internet interface I will not be able to talk to the board at all. The asix is on a different bus and is recognized after the onboard interface disconnects.

Code: Select all

Mar 28 02:22:44 odroid kernel: [   14.039751] [c5] usb 6-1: USB disconnect, device number 2
Mar 28 02:22:44 odroid kernel: [   14.039837] [c7] usbcore: registered new interface driver r8152
Mar 28 02:22:44 odroid kernel: [   14.044381] [c7] usbcore: registered new interface driver cdc_ether
Mar 28 02:22:44 odroid kernel: [   16.282354] [c5] asix 3-1.1:1.0 eth0: register 'asix' at usb-xhci-hcd.2.auto-1.1, ASIX AX88772 USB 2.0 Ethernet, 00:14:d1:b0:5e:77

In any case, it is still a problem if a second ethernet interface causes the primary on-board device to dissappear. That should not happen.

lsusb -t shows:

Code: Select all

root@odroid:~# lsusb -t
/:  Bus 06.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
/:  Bus 05.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/2p, 480M
        |__ Port 1: Dev 3, If 0, Class=Vendor Specific Class, Driver=asix, 480M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=exynos-ohci/3p, 12M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=s5p-ehci/3p, 480M

js1234
Posts: 25
Joined: Thu Aug 13, 2015 5:08 pm
languages_spoken: english
ODROIDs: xu4
Has thanked: 0
Been thanked: 0
Contact:

Re: 15.10: Ethernet / Network gets lost after a few seconds

Unread post by js1234 » Tue Mar 29, 2016 1:23 pm

Pulled asix. Rebooted. Let it sit for a bit. Plugged asix in. ssh'd in. No difference.

Code: Select all

[   14.437730] [c4] usb 6-1: USB disconnect, device number 2
[   14.437842] [c7] usbcore: registered new interface driver r8152
[   14.443192] [c4] usbcore: registered new interface driver cdc_ether
[  391.417974] [c0] usb 3-1.1: new high-speed USB device number 3 using xhci-hcd
[  393.885853] [c0] asix 3-1.1:1.0 eth0: register 'asix' at usb-xhci-hcd.2.auto-1.1, ASIX AX88772 USB 2.0 Ethernet, 00:14:d1:b0:5e:77
[  393.886319] [c0] usbcore: registered new interface driver asix

Code: Select all

root@odroid:/var/log# lsusb -t
/:  Bus 06.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
/:  Bus 05.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/2p, 5000M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/2p, 480M
        |__ Port 1: Dev 3, If 0, Class=Vendor Specific Class, Driver=asix, 480M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=exynos-ohci/3p, 12M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=s5p-ehci/3p, 480M

moon.linux
Posts: 1165
Joined: Thu Oct 02, 2014 11:42 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: 15.10: Ethernet / Network gets lost after a few seconds

Unread post by moon.linux » Wed Mar 30, 2016 11:17 am

Could you be specific with what type of network you have connected XU4, is it 100 /1000 MBS.
Do you see the issue with on cold boot ?
The way I see is it may be somewhere in tuning the interrupt might be getting missed.

Edited:
Can you create following file.

Code: Select all

odroid@odroidxu4:~$ cat /etc/network/interfaces.d/eth0
auto eth0
iface eth0 inet dhcp
odroid@odroidxu4:~$
Boot Logs:

Code: Select all

[  OK  ] Found device USB_10_100_1000_LAN.
[  OK  ] Started Wait for all "auto" /etc/ne...be up for network-online.target.
[  OK  ] Started LSB: Raise network interfaces..
[  OK  ] Reached target System Initialization.
Because some time network demon is waiting for interface information.

Code: Select all

odroid@odroidxu4:~$ systemctl status ifup-wait-all-auto.service
? ifup-wait-all-auto.service - Wait for all "auto" /etc/network/interfaces to be up for network-online.target
   Loaded: loaded (/lib/systemd/system/ifup-wait-all-auto.service; static; vendor preset: enabled)
   Active: failed (Result: timeout) since Tue 2016-03-01 11:24:15 UTC; 48s ago
     Docs: man:interfaces(5)
           man:ifup(8)
  Process: 386 ExecStart=/bin/sh -ec    for i in $(ifquery --list --exclude lo --allow auto); do INTERFACES="$INTERFACES$i "; done;    [ -n "$INTERFACES" ] || exit 0;    while ! ifquery --state $INTERFACES >/dev/null; do sleep 1; done;    for i in $INTERFACES; do while [ -e /run/network/ifup-$i.pid ]; do sleep 0.2; done; done (code=killed, signal=TERM)
 Main PID: 386 (code=killed, signal=TERM)

js1234
Posts: 25
Joined: Thu Aug 13, 2015 5:08 pm
languages_spoken: english
ODROIDs: xu4
Has thanked: 0
Been thanked: 0
Contact:

Re: 15.10: Ethernet / Network gets lost after a few seconds

Unread post by js1234 » Thu Mar 31, 2016 5:14 am

The onboard device is connected to a Cisco MS220 gigabit switch.
Yes, it happens at "cold boot".
Yes, I can create the eth0 file; the eth0 file is already there.

There are only two "Found device" entries in syslog:

Mar 29 04:11:22 odroid systemd[1]: Found device /dev/ttySAC2.
Mar 29 04:11:22 odroid systemd[1]: Found device /dev/disk/by-label/boot.

I don't know which "network demon" you are referring to.

The output for the systemctl command you show is as follows:

Code: Select all

root@odroid:/var/log# systemctl -l status ifup-wait-all-auto.service
● ifup-wait-all-auto.service - Wait for all "auto" /etc/network/interfaces to be up for network-online.target
   Loaded: loaded (/lib/systemd/system/ifup-wait-all-auto.service; static; vendor preset: enabled)
   Active: failed (Result: timeout) since Tue 2016-03-29 04:13:19 UTC; 1 day 15h ago
     Docs: man:interfaces(5)
           man:ifup(8)
  Process: 359 ExecStart=/bin/sh -ec    for i in $(ifquery --list --exclude lo --allow auto); do INTERFACES="$INTERFACES$i "; done;    [ -n "$INTERFACES" ] || exit 0;    while ! ifquery --state $INTERFACES >/dev/null; do sleep 1; done;    for i in $INTERFACES; do while [ -e /run/network/ifup-$i.pid ]; do sleep 0.2; done; done (code=killed, signal=TERM)
 Main PID: 359 (code=killed, signal=TERM)

Mar 29 04:11:19 odroid systemd[1]: Starting Wait for all "auto" /etc/network/interfaces to be up for network-online.target...
Mar 29 04:13:19 odroid systemd[1]: ifup-wait-all-auto.service: Start operation timed out. Terminating.
Mar 29 04:13:19 odroid systemd[1]: Failed to start Wait for all "auto" /etc/network/interfaces to be up for network-online.target.
Mar 29 04:13:19 odroid systemd[1]: ifup-wait-all-auto.service: Unit entered failed state.
Mar 29 04:13:19 odroid systemd[1]: ifup-wait-all-auto.service: Failed with result 'timeout'.
The device disconnects at the kernel level, 14 seconds into the boot.

Mar 29 04:11:22 odroid kernel: [ 14.437730] [c4] usb 6-1: USB disconnect, device number 2

moon.linux
Posts: 1165
Joined: Thu Oct 02, 2014 11:42 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: 15.10: Ethernet / Network gets lost after a few seconds

Unread post by moon.linux » Thu Mar 31, 2016 1:55 pm

Yes I have observed this issue. But I investigated using powertop.
So I tuned my Odroid XU4 for

Code: Select all

  Bad           Autosuspend for USB device Rapoo 2.4G Wireless Touch Desktop  [
>> Bad           Wake-on-lan status for device eth0
   Good          NMI watchdog should be turned off
   Good          VM writeback timeout
   Good          Autosuspend for USB device USB2.0 Hub [GenesysLogic]
   Good          Autosuspend for USB device USB3.0 Hub [GenesysLogic]
   Good          Autosuspend for USB device USB 10/100/1000 LAN [Realtek]
   Good          Autosuspend for USB device EHCI Host Controller [usb1]
   Good          Autosuspend for USB device EXYNOS OHCI Host Controller [usb2]
   Good          Autosuspend for USB device xHCI Host Controller [usb3]
   Good          Autosuspend for USB device xHCI Host Controller [usb4]
   Good          Autosuspend for USB device xHCI Host Controller [usb5]
   Good          Autosuspend for USB device xHCI Host Controller [usb6]
   Good          Autosuspend for USB device StoreJet Transcend [StoreJet Transce
   Good          Wake-on-lan status for device sit0
   Good          Wake-on-lan status for device ip6tnl0
By Adding following line in /etc/rc.local

Code: Select all

ethtool -s eth0 wol d
echo auto > /sys/bus/usb/devices/6-1/power/control
Lets see if it resolves this issue.

Edited :
Initially the xhci-hcd add it with new status but some how it reset then.

Code: Select all

[    4.211282] [c4] usb 6-1: new SuperSpeed USB device number 2 using xhci-hcd
[    4.226516] [c4] usb 6-1: Parent hub missing LPM exit latency info.  Power management will be impacted.
[   14.668912] [c7] usb 6-1: reset SuperSpeed USB device number 2 using xhci-hcd
[   14.681098] [c7] usb 6-1: Parent hub missing LPM exit latency info.  Power management will be impacted.
[   14.767184] [c7] r8152 6-1:1.0 eth0: v2.06.0 (2016/01/14)
[   14.767196] [c7] r8152 6-1:1.0 eth0: This product is covered by one or more of the following patents:

js1234
Posts: 25
Joined: Thu Aug 13, 2015 5:08 pm
languages_spoken: english
ODROIDs: xu4
Has thanked: 0
Been thanked: 0
Contact:

Re: 15.10: Ethernet / Network gets lost after a few seconds

Unread post by js1234 » Thu Mar 31, 2016 3:42 pm

Code: Select all

ethtool -s eth0 wol d
echo auto > /sys/bus/usb/devices/6-1/power/control
That's two lines. There is no /sys/bus/usb/devices/6-1. It's "usb6/power/control".

But I added the corrected version of both to rc.local, rebooted, and ...

Code: Select all

[    4.230076] [c4] usb 6-1: new SuperSpeed USB device number 2 using xhci-hcd
[    4.250340] [c4] usb 6-1: Parent hub missing LPM exit latency info.  Power management will be impacted.
[   14.409900] [c6] usb 6-1: USB disconnect, device number 2

moon.linux
Posts: 1165
Joined: Thu Oct 02, 2014 11:42 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: 15.10: Ethernet / Network gets lost after a few seconds

Unread post by moon.linux » Thu Mar 31, 2016 4:46 pm

Yes I see that. I am looking into this LPM feature.

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: Bing [Bot] and 2 guests