[SOLVED] N2 ethernet only works reliably at 100M

Post Reply
lambdadelta
Posts: 7
Joined: Wed Apr 10, 2019 4:39 pm
languages_spoken: english
ODROIDs: odroid-n2, odroid-c1, odroid-c1+, odroid-c2, odroid-xu3, odroid-xu4
Has thanked: 0
Been thanked: 0
Contact:

[SOLVED] N2 ethernet only works reliably at 100M

Unread post by lambdadelta » Wed Apr 10, 2019 7:05 pm

I ordered 8 odroid-n2 devices and they arrived today, but I'm having troubles with the onboard ethernet under Ubuntu 18.04. I've been troubleshooting them via the serial console.

For 7 of the 8 devices, the networking is very spotty. With default configuration, a couple of them cannot even receive any packets - "ifconfig eth0" always shows "RX packets 0".
On others, pinging the default gateway results in packet loss of between 12 and 50%.

So with the default auto-negotiation settings:

Code: Select all

root@odroid:~# ping 192.168.1.1 -f -c 1000
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
.............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................E...........E...........E...........E...........E...........E...........E...........E...........E...........E...........E...........E...........E...........E...........E...........E...........E...........E...........E...........E...........E...........E...........E.E
--- 192.168.1.1 ping statistics ---
1000 packets transmitted, 0 received, +278 errors, 100% packet loss, time 84066ms
ethtool eth0 looks like this:

Code: Select all

root@odroid:~# ethtool eth0
Settings for eth0:
        Supported ports: [ TP MII ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Supported pause frame use: No
        Supports auto-negotiation: Yes
        Supported FEC modes: Not reported
        Advertised link modes:  10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Advertised pause frame use: No
        Advertised auto-negotiation: Yes
        Advertised FEC modes: Not reported
        Link partner advertised link modes:  10baseT/Half 10baseT/Full
                                             100baseT/Half 100baseT/Full
                                             1000baseT/Full
        Link partner advertised pause frame use: No
        Link partner advertised auto-negotiation: Yes
        Link partner advertised FEC modes: Not reported
        Speed: 1000Mb/s
        Duplex: Full
        Port: MII
        PHYAD: 0
        Transceiver: external
        Auto-negotiation: on
        Supports Wake-on: ug
        Wake-on: d
        Current message level: 0x0000003f (63)
                               drv probe link timer ifdown ifup
        Link detected: yes


I did see this topic but I don't think it's related (Not using EEE): viewtopic.php?f=181&t=33935
But it did tip me off to check the auto-negotiation settings.

The odroids are connected to an HP 2930F managed switch. I ran this command on the interfaces to set them to 100M:

Code: Select all

speed-duplex auto-100
As soon as I set it to 100M, ping starts working:

Code: Select all

root@odroid:~# ping 192.168.1.1 -f -c 1000
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.

--- 192.168.1.1 ping statistics ---
1000 packets transmitted, 1000 received, 0% packet loss, time 643ms
rtt min/avg/max/mdev = 0.179/0.526/2.494/0.111 ms, ipg/ewma 0.643/0.690 ms
ethtool eth0 looks ilke this at 100M:

Code: Select all

root@odroid:~# ethtool eth0
Settings for eth0:
        Supported ports: [ TP MII ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Supported pause frame use: No
        Supports auto-negotiation: Yes
        Supported FEC modes: Not reported
        Advertised link modes:  10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Advertised pause frame use: No
        Advertised auto-negotiation: Yes
        Advertised FEC modes: Not reported
        Link partner advertised link modes:  100baseT/Half 100baseT/Full
        Link partner advertised pause frame use: No
        Link partner advertised auto-negotiation: Yes
        Link partner advertised FEC modes: Not reported
        Speed: 100Mb/s
        Duplex: Full
        Port: MII
        PHYAD: 0
        Transceiver: external
        Auto-negotiation: on
        Supports Wake-on: ug
        Wake-on: d
        Current message level: 0x0000003f (63)
                               drv probe link timer ifdown ifup
        Link detected: yes
I'm getting this behaviour on 7 of 8 of these odroid-n2's - they all seem to work completely fine at 100M, but either don't work at all on 1G, or have significant packet loss at 1G

I tried several different ethernet cables and also different switch ports, and I also re-tested with the cable/switchport connected to the one functional odroid-n2. Same symptoms.
I'm pretty sure it's not the power supplies, since I ordered the 12V/2A adapters from hardkernel along with the odroid-n2's.

I don't see anything obvious in dmesg.

Any ideas if this is something that can be fixed in a kernel update, or some setting I can change?
Last edited by lambdadelta on Fri Apr 12, 2019 3:37 pm, edited 1 time in total.

User avatar
tobetter
Posts: 3901
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 38 times
Been thanked: 154 times
Contact:

Re: N2 ethernet only works reliably at 100M

Unread post by tobetter » Wed Apr 10, 2019 7:13 pm

@lamdadelta, could you please provide the MAC addresses of your boards which have a problem on 1G network?

User avatar
mad_ady
Posts: 6525
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 163 times
Been thanked: 125 times
Contact:

Re: N2 ethernet only works reliably at 100M

Unread post by mad_ady » Wed Apr 10, 2019 7:52 pm

Also try bypassing the switch, with a direct link between two units. You can try forcing switch ports and n2 port to gigabit (without autonegociation).

lambdadelta
Posts: 7
Joined: Wed Apr 10, 2019 4:39 pm
languages_spoken: english
ODROIDs: odroid-n2, odroid-c1, odroid-c1+, odroid-c2, odroid-xu3, odroid-xu4
Has thanked: 0
Been thanked: 0
Contact:

Re: N2 ethernet only works reliably at 100M

Unread post by lambdadelta » Wed Apr 10, 2019 8:00 pm

Sure, here's the list for the devices at 1G

I ran `ping 8.8.8.8 -f -c 100`:

Code: Select all

00:1e:06:42:00:a5 - 100 packets transmitted, 79 received, 21% packet loss, time 554ms
00:1e:06:42:00:ae - 100 packets transmitted, 82 received, 18% packet loss, time 541ms
00:1e:06:42:00:af - 100 packets transmitted, 97 received, 3% packet loss, time 337ms 
00:1e:06:42:01:76 - 100 packets transmitted, 76 received, 24% packet loss, time 626ms
00:1e:06:42:01:b0 - 100 packets transmitted, 100 received, 0% packet loss, time 304ms (the 100% good one)
00:1e:06:42:02:50 - 100 packets transmitted, 11 received, 89% packet loss, time 552ms
00:1e:06:42:02:54 - 100 packets transmitted, 0 received, +100 errors, 100% packet loss, time 631ms
00:1e:06:42:02:57 - 100 packets transmitted, 1 received, +36 errors, 99% packet loss, time 586ms
Let me know if you need any other details

lambdadelta
Posts: 7
Joined: Wed Apr 10, 2019 4:39 pm
languages_spoken: english
ODROIDs: odroid-n2, odroid-c1, odroid-c1+, odroid-c2, odroid-xu3, odroid-xu4
Has thanked: 0
Been thanked: 0
Contact:

Re: N2 ethernet only works reliably at 100M

Unread post by lambdadelta » Wed Apr 10, 2019 8:09 pm

mad_ady wrote:
Wed Apr 10, 2019 7:52 pm
Also try bypassing the switch, with a direct link between two units. You can try forcing switch ports and n2 port to gigabit (without autonegociation).
Interesting. I tried directly connecting my desktop and one of the odroid-n2's. It still doesn't work reliably at 1G
When I use ethtool to adjust autonegotiation on the odroid I get this error message on the console every time:

Code: Select all

root@odroid:~# ethtool -s eth0 autoneg off
[  339.841543@0] BUG: sleeping function called from invalid context at kernel/locking/mutex.c:97
[  339.844787@0] in_atomic(): 1, irqs_disabled(): 0, pid: 2615, name: ethtool
I tried forcing it to 1G and then to 100M:

Details:

Code: Select all

root@odroid:~# ethtool -s eth0 speed 1000 duplex full autoneg off
[  540.478530@0] BUG: sleeping function called from invalid context at kernel/locking/mutex.c:97
[  540.481482@0] in_atomic(): 1, irqs_disabled(): 0, pid: 2619, name: ethtool
root@odroid:~# ping 8.8.8.8 -f -c 100
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
................................................................................
--- 8.8.8.8 ping statistics ---
100 packets transmitted, 20 received, 80% packet loss, time 399ms
rtt min/avg/max/mdev = 2.198/2.973/3.469/0.308 ms, ipg/ewma 14.123/2.959 ms



root@odroid:~# ethtool -s eth0 speed 100 duplex full autoneg off
[  553.550527@0] BUG: sleeping function called from invalid context at kernel/locking/mutex.c:97
[  553.553452@0] in_atomic(): 1, irqs_disabled(): 0, pid: 2622, name: ethtool

root@odroid:~# ping 8.8.8.8 -f -c 100
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.

--- 8.8.8.8 ping statistics ---
100 packets transmitted, 100 received, 0% packet loss, time 303ms
rtt min/avg/max/mdev = 2.350/2.823/4.260/0.291 ms, ipg/ewma 3.058/2.689 ms

User avatar
mad_ady
Posts: 6525
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 163 times
Been thanked: 125 times
Contact:

Re: N2 ethernet only works reliably at 100M

Unread post by mad_ady » Wed Apr 10, 2019 8:13 pm

My N2 can pingflood 8.8.8.8 without packet loss. Any errors on the switch port/N2 ethernet port?
Does the unit that works correctly work with ping with large packets?

lambdadelta
Posts: 7
Joined: Wed Apr 10, 2019 4:39 pm
languages_spoken: english
ODROIDs: odroid-n2, odroid-c1, odroid-c1+, odroid-c2, odroid-xu3, odroid-xu4
Has thanked: 0
Been thanked: 0
Contact:

Re: N2 ethernet only works reliably at 100M

Unread post by lambdadelta » Wed Apr 10, 2019 8:20 pm

mad_ady wrote:
Wed Apr 10, 2019 8:13 pm
My N2 can pingflood 8.8.8.8 without packet loss. Any errors on the switch port/N2 ethernet port?
Very interesting. I see this in the logs on the switch, which corresponds to the interface I was doing most of my testing with:

Code: Select all

W 04/10/19 19:19:53 00329 FFI: port 12-Excessive CRC/alignment errors. See help.
W 04/10/19 19:21:56 00329 FFI: port 12-Excessive CRC/alignment errors. See help.
W 04/10/19 19:22:57 00329 FFI: port 12-Excessive CRC/alignment errors. See help.
W 04/10/19 19:27:04 00329 FFI: port 12-Excessive CRC/alignment errors. See help.
W 04/10/19 19:28:26 00329 FFI: port 12-Excessive CRC/alignment errors. See help.
W 04/10/19 19:29:48 00329 FFI: port 12-Excessive CRC/alignment errors. See help.
W 04/10/19 19:30:08 00328 FFI: port 12-Excessive jabbering/fragments. See Help
W 04/10/19 19:30:29 00329 FFI: port 12-Excessive CRC/alignment errors. See help.
W 04/10/19 19:31:10 00328 FFI: port 12-Excessive jabbering/fragments. See Help
W 04/10/19 19:34:14 00329 FFI: port 12-Excessive CRC/alignment errors. See help.
mad_ady wrote:
Wed Apr 10, 2019 8:13 pm
Does the unit that works correctly work with ping with large packets?
Yep, that works fine. The odroid that works fine doesn't seem to have any issues at all. I'm not using jumbo packets or anything so I haven't tested that. Everything is just using an MTU of 1500

User avatar
mad_ady
Posts: 6525
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 163 times
Been thanked: 125 times
Contact:

Re: N2 ethernet only works reliably at 100M

Unread post by mad_ady » Wed Apr 10, 2019 8:23 pm

Just for tests, can you lower MTU on both switch and Odroid to 1400? Jabbering should be transmission too long...
Very weird indeed. I take it that the unit that works has been tested with port 12 for instance, so that you can rule out the switch or its port configuration, right?
One more thing you can try is to move the SD card from the working unit to a non-working unit and see if it makes any difference. It shouldn't, but you never know...

lambdadelta
Posts: 7
Joined: Wed Apr 10, 2019 4:39 pm
languages_spoken: english
ODROIDs: odroid-n2, odroid-c1, odroid-c1+, odroid-c2, odroid-xu3, odroid-xu4
Has thanked: 0
Been thanked: 0
Contact:

Re: N2 ethernet only works reliably at 100M

Unread post by lambdadelta » Wed Apr 10, 2019 8:31 pm

mad_ady wrote:
Wed Apr 10, 2019 8:23 pm
Just for tests, can you lower MTU on both switch and Odroid to 1400? Jabbering should be transmission too long...
Very weird indeed. I take it that the unit that works has been tested with port 12 for instance, so that you can rule out the switch or its port configuration, right?
One more thing you can try is to move the SD card from the working unit to a non-working unit and see if it makes any difference. It shouldn't, but you never know...
Lowering the MTU to 1400 didn't seem to make any difference.

Yes, I used port 12 on the switch for all the prior pingflood tests - so that includes the good one.

I tried moving the eMMC from the good odroid to one of the others, but it didn't make any difference.

User avatar
tobetter
Posts: 3901
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 38 times
Been thanked: 154 times
Contact:

Re: N2 ethernet only works reliably at 100M

Unread post by tobetter » Wed Apr 10, 2019 8:36 pm

lambdadelta wrote:
mad_ady wrote:
Wed Apr 10, 2019 8:23 pm
Just for tests, can you lower MTU on both switch and Odroid to 1400? Jabbering should be transmission too long...
Very weird indeed. I take it that the unit that works has been tested with port 12 for instance, so that you can rule out the switch or its port configuration, right?
One more thing you can try is to move the SD card from the working unit to a non-working unit and see if it makes any difference. It shouldn't, but you never know...
Lowering the MTU to 1400 didn't seem to make any difference.

Yes, I used port 12 on the switch for all the prior pingflood tests - so that includes the good one.

I tried moving the eMMC from the good odroid to one of the others, but it didn't make any difference.
Rebooting with power cycle does not make any change at all?

Tapatalk wishes you to have fun with ODROID.


lambdadelta
Posts: 7
Joined: Wed Apr 10, 2019 4:39 pm
languages_spoken: english
ODROIDs: odroid-n2, odroid-c1, odroid-c1+, odroid-c2, odroid-xu3, odroid-xu4
Has thanked: 0
Been thanked: 0
Contact:

Re: N2 ethernet only works reliably at 100M

Unread post by lambdadelta » Wed Apr 10, 2019 8:40 pm

tobetter wrote:
Wed Apr 10, 2019 8:36 pm
Rebooting with power cycle does not make any change at all?
Didn't make much difference...

Code: Select all

root@odroid:~# ping 8.8.8.8 -f -c 1000
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
..................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
--- 8.8.8.8 ping statistics ---
1000 packets transmitted, 166 received, 83.4% packet loss, time 44ms
rtt min/avg/max/mdev = 2.218/2.952/7.033/0.499 ms, ipg/ewma 14.043/2.684 ms

User avatar
tobetter
Posts: 3901
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 38 times
Been thanked: 154 times
Contact:

Re: N2 ethernet only works reliably at 100M

Unread post by tobetter » Wed Apr 10, 2019 9:58 pm

lambdadelta wrote:
Wed Apr 10, 2019 8:40 pm
tobetter wrote:
Wed Apr 10, 2019 8:36 pm
Rebooting with power cycle does not make any change at all?
Didn't make much difference...

Code: Select all

root@odroid:~# ping 8.8.8.8 -f -c 1000
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
..................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
--- 8.8.8.8 ping statistics ---
1000 packets transmitted, 166 received, 83.4% packet loss, time 44ms
rtt min/avg/max/mdev = 2.218/2.952/7.033/0.499 ms, ipg/ewma 14.043/2.684 ms
Ok, could you please check my PM?

lambdadelta
Posts: 7
Joined: Wed Apr 10, 2019 4:39 pm
languages_spoken: english
ODROIDs: odroid-n2, odroid-c1, odroid-c1+, odroid-c2, odroid-xu3, odroid-xu4
Has thanked: 0
Been thanked: 0
Contact:

Re: N2 ethernet only works reliably at 100M

Unread post by lambdadelta » Fri Apr 12, 2019 3:36 pm

Seems like there is possibly an issue with the ubuntu 20190329 minimal image from https://wiki.odroid.com/odroid-n2/os_im ... u/20190329

I tried an ArchlinuxARM image and didn't have any issues at 1G

fromport
Posts: 5
Joined: Sat Jul 21, 2018 3:43 am
languages_spoken: english
ODROIDs: C2,HC1,HC2,N2,H2,XU4,GO
Location: Southern California
Has thanked: 2 times
Been thanked: 2 times
Contact:

Re: [SOLVED] N2 ethernet only works reliably at 100M

Unread post by fromport » Thu Apr 18, 2019 10:08 pm

I got my N2's last week.
Installed debian 64bit image, had 50+% packet loss on gig-E ethernet.
Changed my port of ethernet switch to 100 Mb/FD and was at least able to work with it without packetloss.
On the irc channel, mdrjr suggested I try the new uboot image.
So powered down my N2, put the SD card in a USB reader connected to my linux desktop.
Downloaded new uboot from https://github.com/hardkernel/u-boot/releases
I used the odroidn2-22 image.
Downloaded and extracted the tgz file (not source)
used the supplied script to install it to my uSD card:

Code: Select all

cd sd_fuse
./sd_fusing.sh /dev/sdb       #<- that is where my system detected the uSD card
1664+1 records in
1664+1 records out
852336 bytes (852 kB, 832 KiB) copied, 0.113748 s, 7.5 MB/s
Finished.
After that I inserted usd card back in N2, set ethernet port back to gig-E and all is well

Before:
root@odroid-stretch64:~# ping -f -c 1000 192.168.2.1
PING 192.168.2.1 (192.168.2.1) 56(84) bytes of data.
.......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
--- 192.168.2.1 ping statistics ---
1000 packets transmitted, 415 received, 58% packet loss, time 9429ms
rtt min/avg/max/mdev = 0.131/0.518/0.686/0.050 ms, ipg/ewma 9.438/0.533 ms
After:
20000 packets transmitted, 20000 received, 0% packet loss, time 11736ms
Comparison of iperf3 between my N2 and my C2
iperf3 comparison odroid C2 vs N2

odroid C2
[ ID] Interval Transfer Bandwidth Retr
[ 4] 0.00-10.00 sec 1.10 GBytes 943 Mbits/sec 39 sender
[ 4] 0.00-10.00 sec 1.09 GBytes 940 Mbits/sec receiver

odroid N2
[ ID] Interval Transfer Bandwidth Retr
[ 4] 0.00-10.00 sec 1.10 GBytes 944 Mbits/sec 50 sender
[ 4] 0.00-10.00 sec 1.10 GBytes 941 Mbits/sec receiver

server is server with intel cpu & nics
Hope this helps someone else
These users thanked the author fromport for the post (total 2):
xabolcs (Fri Apr 19, 2019 4:26 am) • BadPritt (Sun Apr 21, 2019 12:32 am)

User avatar
tobetter
Posts: 3901
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 38 times
Been thanked: 154 times
Contact:

Re: [SOLVED] N2 ethernet only works reliably at 100M

Unread post by tobetter » Thu Apr 18, 2019 10:35 pm

@fromport, thank you for sharing your experience and glad to hear your ethernet becomes faster.
By the way, would you be please let me know the MAC address of your ODROID-N2 if you are fine?

User avatar
mad_ady
Posts: 6525
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 163 times
Been thanked: 125 times
Contact:

Re: [SOLVED] N2 ethernet only works reliably at 100M

Unread post by mad_ady » Thu Apr 18, 2019 10:38 pm

Since the change was in voltage - I wonder if people experiencing the problem had either long ethernet cables or cheaper CAT5 UTP cables...

fromport
Posts: 5
Joined: Sat Jul 21, 2018 3:43 am
languages_spoken: english
ODROIDs: C2,HC1,HC2,N2,H2,XU4,GO
Location: Southern California
Has thanked: 2 times
Been thanked: 2 times
Contact:

Re: [SOLVED] N2 ethernet only works reliably at 100M

Unread post by fromport » Thu Apr 18, 2019 10:41 pm

tobetter wrote:
Thu Apr 18, 2019 10:35 pm
@fromport, thank you for sharing your experience and glad to hear your ethernet becomes faster.
By the way, would you be please let me know the MAC address of your ODROID-N2 if you are fine?

Code: Select all

2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 00:1e:06:42:0e:87 brd ff:ff:ff:ff:ff:ff
    inet 192.168.2.100/24 brd 192.168.42.255 scope global eth0
hardware : rev 0.4

Code: Select all

# ethtool eth0
Settings for eth0:
        Supported ports: [ TP MII ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Supported pause frame use: No
        Supports auto-negotiation: Yes
        Advertised link modes:  10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Advertised pause frame use: No
        Advertised auto-negotiation: Yes
        Link partner advertised link modes:  10baseT/Half 10baseT/Full
                                             100baseT/Half 100baseT/Full
                                             1000baseT/Full
        Link partner advertised pause frame use: Symmetric Receive-only
        Link partner advertised auto-negotiation: Yes
        Speed: 1000Mb/s
        Duplex: Full
        Port: MII
        PHYAD: 0
        Transceiver: external
        Auto-negotiation: on
        Supports Wake-on: ug
        Wake-on: d
        Current message level: 0x0000003f (63)
                               drv probe link timer ifdown ifup
        Link detected: yes

User avatar
tobetter
Posts: 3901
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 38 times
Been thanked: 154 times
Contact:

Re: [SOLVED] N2 ethernet only works reliably at 100M

Unread post by tobetter » Thu Apr 18, 2019 11:02 pm

fromport wrote:
Thu Apr 18, 2019 10:41 pm
tobetter wrote:
Thu Apr 18, 2019 10:35 pm
@fromport, thank you for sharing your experience and glad to hear your ethernet becomes faster.
By the way, would you be please let me know the MAC address of your ODROID-N2 if you are fine?

Code: Select all

2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 00:1e:06:42:0e:87 brd ff:ff:ff:ff:ff:ff
    inet 192.168.2.100/24 brd 192.168.42.255 scope global eth0
hardware : rev 0.4

Code: Select all

# ethtool eth0
Settings for eth0:
        Supported ports: [ TP MII ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Supported pause frame use: No
        Supports auto-negotiation: Yes
        Advertised link modes:  10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Advertised pause frame use: No
        Advertised auto-negotiation: Yes
        Link partner advertised link modes:  10baseT/Half 10baseT/Full
                                             100baseT/Half 100baseT/Full
                                             1000baseT/Full
        Link partner advertised pause frame use: Symmetric Receive-only
        Link partner advertised auto-negotiation: Yes
        Speed: 1000Mb/s
        Duplex: Full
        Port: MII
        PHYAD: 0
        Transceiver: external
        Auto-negotiation: on
        Supports Wake-on: ug
        Wake-on: d
        Current message level: 0x0000003f (63)
                               drv probe link timer ifdown ifup
        Link detected: yes
Thank you, that's more than I expected.

User avatar
mad_ady
Posts: 6525
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 163 times
Been thanked: 125 times
Contact:

Re: [SOLVED] N2 ethernet only works reliably at 100M

Unread post by mad_ady » Thu Apr 18, 2019 11:13 pm

What is the relevancy of the MAC address? Is the problem specific to a certain lot?

User avatar
tobetter
Posts: 3901
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 38 times
Been thanked: 154 times
Contact:

Re: [SOLVED] N2 ethernet only works reliably at 100M

Unread post by tobetter » Fri Apr 19, 2019 12:16 am

mad_ady wrote:
Thu Apr 18, 2019 11:13 pm
What is the relevancy of the MAC address? Is the problem specific to a certain lot?
No, it's the other way. I'm researching if the issue is relevant with MAC address.

xabolcs
Posts: 50
Joined: Fri Jun 22, 2018 6:37 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 66 times
Been thanked: 1 time
Contact:

Re: [SOLVED] N2 ethernet only works reliably at 100M

Unread post by xabolcs » Fri Apr 19, 2019 9:23 am

tobetter wrote:
Thu Apr 18, 2019 10:35 pm
@fromport, thank you for sharing your experience and glad to hear your ethernet becomes faster.
By the way, would you be please let me know the MAC address of your ODROID-N2 if you are fine?
Same reliability problems with GE here too.

Code: Select all

2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 00:1e:06:42:03:f6 brd ff:ff:ff:ff:ff:ff
    inet 192.168.20.1/24 brd 192.168.20.255 scope global eth0

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

Re: [SOLVED] N2 ethernet only works reliably at 100M

Unread post by odroid » Fri Apr 19, 2019 9:38 am

@xabolcs, if you use Ubuntu, just run "apt update && apt upgrade" to have a new u-boot.
If not, manually install it as @fromport did.

User avatar
poincare
Posts: 36
Joined: Sun Feb 08, 2015 9:41 am
languages_spoken: English, German, French
ODROIDs: ODROID XU4, ODROID C2, ODROID N2
Has thanked: 1 time
Been thanked: 1 time
Contact:

Re: [SOLVED] N2 ethernet only works reliably at 100M

Unread post by poincare » Fri Apr 19, 2019 9:48 am

Pardon my question here, but how is this solved? I am experiencing the same issue. I don't see clearly how to resolve it, yet it is marked as resolved.

Thank you.

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

Re: [SOLVED] N2 ethernet only works reliably at 100M

Unread post by odroid » Fri Apr 19, 2019 10:19 am

@poincare,
Do you use Ubuntu?

Pienoet
Posts: 397
Joined: Sun May 10, 2015 10:04 pm
languages_spoken: english Dutch
Has thanked: 0
Been thanked: 0
Contact:

Re: [SOLVED] N2 ethernet only works reliably at 100M

Unread post by Pienoet » Mon Apr 29, 2019 4:27 am

I have the same issue on coreelec.
1gb ethernet is not working properly only 100M.

User avatar
tobetter
Posts: 3901
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 38 times
Been thanked: 154 times
Contact:

Re: [SOLVED] N2 ethernet only works reliably at 100M

Unread post by tobetter » Mon Apr 29, 2019 11:05 am

Pienoet wrote:
Mon Apr 29, 2019 4:27 am
I have the same issue on coreelec.
1gb ethernet is not working properly only 100M.
I've helped to figure out the problem with a couple of users who are not able to connect 1Gbps.

The method was to update U-boot with latest one.
[1] https://github.com/hardkernel/u-boot/re ... droidn2-25
[2] https://wiki.odroid.com/odroid-n2/softw ... stallation

The second method if the first method is not working, then change the cable.

If this does not work, let me know to follow up the rest for you.

Pienoet
Posts: 397
Joined: Sun May 10, 2015 10:04 pm
languages_spoken: english Dutch
Has thanked: 0
Been thanked: 0
Contact:

Re: [SOLVED] N2 ethernet only works reliably at 100M

Unread post by Pienoet » Wed May 01, 2019 1:29 am

tobetter wrote:
Mon Apr 29, 2019 11:05 am
Pienoet wrote:
Mon Apr 29, 2019 4:27 am
I have the same issue on coreelec.
1gb ethernet is not working properly only 100M.
I've helped to figure out the problem with a couple of users who are not able to connect 1Gbps.

The method was to update U-boot with latest one.
[1] https://github.com/hardkernel/u-boot/re ... droidn2-25
[2] https://wiki.odroid.com/odroid-n2/softw ... stallation

The second method if the first method is not working, then change the cable.

If this does not work, let me know to follow up the rest for you.
Thanks but how to apply this in coreelec?

ghazanhaider
Posts: 2
Joined: Wed May 15, 2019 7:21 am
languages_spoken: english
ODROIDs: odroidn2
Has thanked: 0
Been thanked: 0
Contact:

Re: [SOLVED] N2 ethernet only works reliably at 100M

Unread post by ghazanhaider » Wed May 15, 2019 7:26 am

I had the same issue, writing odroidn2-25.bin to the SD card from odroid itself worked.
On reboot, I no longer see the green LED but the orange LED on the right is flashing.
And it works now with no ping/packet drops

FWIW my MAC is 00:1E:06:42:0F:5F

User avatar
tobetter
Posts: 3901
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 38 times
Been thanked: 154 times
Contact:

Re: [SOLVED] N2 ethernet only works reliably at 100M

Unread post by tobetter » Wed May 15, 2019 8:01 am

ghazanhaider wrote:I had the same issue, writing odroidn2-25.bin to the SD card from odroid itself worked.
On reboot, I no longer see the green LED but the orange LED on the right is flashing.
And it works now with no ping/packet drops

FWIW my MAC is 00:1E:06:42:0F:5F
The ethernet does not run at all completely even after reboot or power cycle? Would you try to run with 100Mbps to see if the network works? Have you tried to change the ethernet cable?

"Tapatalk wishes you to have fun with ODROID"


User avatar
tobetter
Posts: 3901
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 38 times
Been thanked: 154 times
Contact:

Re: [SOLVED] N2 ethernet only works reliably at 100M

Unread post by tobetter » Wed May 15, 2019 12:01 pm

Pienoet wrote:
Wed May 01, 2019 1:29 am
tobetter wrote:
Mon Apr 29, 2019 11:05 am
Pienoet wrote:
Mon Apr 29, 2019 4:27 am
I have the same issue on coreelec.
1gb ethernet is not working properly only 100M.
I've helped to figure out the problem with a couple of users who are not able to connect 1Gbps.

The method was to update U-boot with latest one.
[1] https://github.com/hardkernel/u-boot/re ... droidn2-25
[2] https://wiki.odroid.com/odroid-n2/softw ... stallation

The second method if the first method is not working, then change the cable.

If this does not work, let me know to follow up the rest for you.
Thanks but how to apply this in coreelec?
Sorry, did you figure out the problem?

ghazanhaider
Posts: 2
Joined: Wed May 15, 2019 7:21 am
languages_spoken: english
ODROIDs: odroidn2
Has thanked: 0
Been thanked: 0
Contact:

Re: [SOLVED] N2 ethernet only works reliably at 100M

Unread post by ghazanhaider » Fri May 17, 2019 11:48 am

tobetter wrote:
Wed May 15, 2019 8:01 am
ghazanhaider wrote:I had the same issue, writing odroidn2-25.bin to the SD card from odroid itself worked.
On reboot, I no longer see the green LED but the orange LED on the right is flashing.
And it works now with no ping/packet drops

FWIW my MAC is 00:1E:06:42:0F:5F
The ethernet does not run at all completely even after reboot or power cycle? Would you try to run with 100Mbps to see if the network works? Have you tried to change the ethernet cable?

"Tapatalk wishes you to have fun with ODROID"
I power cycled cold at least 3 times and swapped the ethernet cable with the one my desktop uses. CAT6 and pre-crimped cables which both have worked reliably in my raspberrypi previously.

I also confirmed the powersupply and swapped in another one, both of which handle more than 2 amps.

Either way, the solution of replaced uboot fixed it for me. It has been working well with no ping drops and good throughput (30MBps+ downloading some files) So it was definitely not the ethernet cables, and was likely the uboot 512byte image.

User avatar
tobetter
Posts: 3901
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 38 times
Been thanked: 154 times
Contact:

Re: [SOLVED] N2 ethernet only works reliably at 100M

Unread post by tobetter » Fri May 17, 2019 12:05 pm

ghazanhaider wrote:
Fri May 17, 2019 11:48 am
tobetter wrote:
Wed May 15, 2019 8:01 am
ghazanhaider wrote:I had the same issue, writing odroidn2-25.bin to the SD card from odroid itself worked.
On reboot, I no longer see the green LED but the orange LED on the right is flashing.
And it works now with no ping/packet drops

FWIW my MAC is 00:1E:06:42:0F:5F
The ethernet does not run at all completely even after reboot or power cycle? Would you try to run with 100Mbps to see if the network works? Have you tried to change the ethernet cable?

"Tapatalk wishes you to have fun with ODROID"
I power cycled cold at least 3 times and swapped the ethernet cable with the one my desktop uses. CAT6 and pre-crimped cables which both have worked reliably in my raspberrypi previously.

I also confirmed the powersupply and swapped in another one, both of which handle more than 2 amps.

Either way, the solution of replaced uboot fixed it for me. It has been working well with no ping drops and good throughput (30MBps+ downloading some files) So it was definitely not the ethernet cables, and was likely the uboot 512byte image.
Thank you for confirmation and glad to know the U-boot works for you. ;)

Post Reply

Return to “Issues”

Who is online

Users browsing this forum: No registered users and 1 guest