Ethernet Adapter

Post Reply
fklink
Posts: 7
Joined: Sun Jun 06, 2021 2:52 am
languages_spoken: english
ODROIDs: N2+
Location: Pepinster - Belgium
Has thanked: 1 time
Been thanked: 0
Contact:

Ethernet Adapter

Post by fklink »

Hello.
I've received a brand new N2+ 1 week ago.

I can't get my Ethernet adapter to work properly.
Both with a Preloaded Android Pie and a Preloaded Coreelec 9.2.7, the Ethernet adapter is not keeping it's IP adress.

I noticed that the IP adress is assigned every 11 sec for 1 sec and then lost again during 11 sec.

I tried 2 switches and 2 UTP-5 cables with no change.

Any clue why this is happening ?

Thank you.
fklink

User avatar
mad_ady
Posts: 9473
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 604 times
Been thanked: 680 times
Contact:

Re: Ethernet Adapter

Post by mad_ady »

Does dmesg show the interface flapping?

fklink
Posts: 7
Joined: Sun Jun 06, 2021 2:52 am
languages_spoken: english
ODROIDs: N2+
Location: Pepinster - Belgium
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Ethernet Adapter

Post by fklink »

I stiil have many things to learn :(

Whats is the dmesg ? How can I monitor it ?
Sorry for the noobs questions.

User avatar
mctom
Posts: 210
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 25 times
Been thanked: 14 times
Contact:

Re: Ethernet Adapter

Post by mctom »

Yes, "dmesg" is a command you issue to the terminal, and it responds with all "system messages" since the time of computer boot.
If you issue "dmesg" in a terminal that supports colors, usually those marked in orange or red would be the most interesting to you.

There is a lot of going on in the system, so you may issue the following command to display only lines containing word "ethernet". Note that you will lose original coloration by doing so.

Code: Select all

dmesg | grep ethernet
And here's an example output on my machine:

Code: Select all

mctom@Tomusiomat-ARM:~$ dmesg | grep ethernet
[    1.411387] meson8b-dwmac ff3f0000.ethernet: IRQ eth_wake_irq not found
[    1.411406] meson8b-dwmac ff3f0000.ethernet: IRQ eth_lpi not found
[    1.411483] meson8b-dwmac ff3f0000.ethernet: PTP uses main clock
[    1.411739] meson8b-dwmac ff3f0000.ethernet: User ID: 0x11, Synopsys ID: 0x37
[    1.411748] meson8b-dwmac ff3f0000.ethernet:         DWMAC1000
[    1.411753] meson8b-dwmac ff3f0000.ethernet: DMA HW capability register supported
[    1.411759] meson8b-dwmac ff3f0000.ethernet: RX Checksum Offload Engine supported
[    1.411763] meson8b-dwmac ff3f0000.ethernet: COE Type 2
[    1.411767] meson8b-dwmac ff3f0000.ethernet: TX Checksum insertion supported
[    1.411772] meson8b-dwmac ff3f0000.ethernet: Wake-Up On Lan supported
[    1.411805] meson8b-dwmac ff3f0000.ethernet: Normal descriptors
[    1.411810] meson8b-dwmac ff3f0000.ethernet: Ring mode enabled
[    1.411814] meson8b-dwmac ff3f0000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[   34.321795] meson8b-dwmac ff3f0000.ethernet eth0: PHY [0.0:00] driver [RTL8211F Gigabit Ethernet] (irq=41)
[   34.324190] meson8b-dwmac ff3f0000.ethernet eth0: No Safety Features support found
[   34.324207] meson8b-dwmac ff3f0000.ethernet eth0: PTP not supported by HW
[   34.324423] meson8b-dwmac ff3f0000.ethernet eth0: configuring for phy/rgmii link mode
[   37.897829] meson8b-dwmac ff3f0000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
The numbers in square brackets are time in seconds since boot - it may help you get oriented with what happened when.

No worries about noob question, we've all been there. :)
Report back some more information and hopefully we may be able to help you out.
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

fklink
Posts: 7
Joined: Sun Jun 06, 2021 2:52 am
languages_spoken: english
ODROIDs: N2+
Location: Pepinster - Belgium
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Ethernet Adapter

Post by fklink »

[EDIT]
This may not be verry relevant since the N2+ was not attached to the LAN
I will make anew trial as soon as I can

--- -- -- -- -- -- --

Hum.

Thank you @Mctom for explaining me.

There's not much to say

[ 0.706625@3] meson6-dwmac ff3f0000.ethernet: no reset control found

Right now, the N2+ is running with Coreelec Matrix 19.1

I will boot it later in the day with Ubuntu to see if I can get more info.

Do you know if petitboot can give more infos ?

fklink
Posts: 7
Joined: Sun Jun 06, 2021 2:52 am
languages_spoken: english
ODROIDs: N2+
Location: Pepinster - Belgium
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Ethernet Adapter

Post by fklink »

After a new trial.

Since I can't ssh while hooked to the eternet, I booted with the ethernet cable connected.
Waited for a while.
Disconnected the ethernet cable.
Plugged in the WiFi dongle
SSH to the N2+

Here is what I got when issuing dmesg | grep ethernet
[ 0.707073@2] meson6-dwmac ff3f0000.ethernet: no reset control found
[ 240.809272@0] meson6-dwmac ff3f0000.ethernet eth0: fail to init PTP.

Not really speaking, at least for me.
Any other hint to debug this one ?

Thanks
François

User avatar
mctom
Posts: 210
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 25 times
Been thanked: 14 times
Contact:

Re: Ethernet Adapter

Post by mctom »

I notice that your dmesg lines contain "meson6" and not "meson8" like mine does.
It might need an upgrade, but I'm not entirely sure what needs to be upgraded.
Or you got a faulty unit...
Anyway, that's all I could do for you, hopefully someone will help you further.
These users thanked the author mctom for the post:
fklink (Tue Jun 08, 2021 5:55 am)
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

User avatar
mctom
Posts: 210
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 25 times
Been thanked: 14 times
Contact:

Re: Ethernet Adapter

Post by mctom »

Oh, one more thing.
Some time ago I debugged a problem with LAN adapter in XU4, that most probably got broken after Android system was put to sleep mode.
viewtopic.php?f=97&t=41535

You may try issuing the following command and see if ethernet starts working.

Code: Select all

sudo ethtool -s eth0 speed 100 duplex half
It changes speed and duplexing settings of your network adapter. These settings are not persistent, so after the next boot changes will be reverted. However I used this very method to revive two XU4 boards with "broken LAN".
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

User avatar
odroid
Site Admin
Posts: 37550
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1840 times
Been thanked: 1160 times
Contact:

Re: Ethernet Adapter

Post by odroid »

Did you flash this Ubuntu image for Ethernet test?
https://wiki.odroid.com/odroid-n2/os_im ... u/20210223

How was the LED status on the RJ-45 jack?
- LED indicators
* Green LED: Flashing by data traffics at 100Mbps connection
* Amber LED: Flashing by data traffics at 1000Mbps connection

fklink
Posts: 7
Joined: Sun Jun 06, 2021 2:52 am
languages_spoken: english
ODROIDs: N2+
Location: Pepinster - Belgium
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Ethernet Adapter

Post by fklink »

I was also wondering.
No LED flashing on the RJ45 jack on the N2+ (nor on the switch, like if there was no cable connected)

User avatar
odroid
Site Admin
Posts: 37550
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1840 times
Been thanked: 1160 times
Contact:

Re: Ethernet Adapter

Post by odroid »

I've installed Ubuntu 20210223 image.
I could see the same kernel messages but the Ethernet port works fine.

Code: Select all

root@odroid:~# dmesg | grep ethernet
[    0.723349] meson6-dwmac ff3f0000.ethernet: no reset control found
[   14.002688] meson6-dwmac ff3f0000.ethernet eth0: fail to init PTP.
[   18.090953] meson6-dwmac ff3f0000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx

Code: Select all

root@odroid:~# apt install ethtool
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  ethtool
0 upgraded, 1 newly installed, 0 to remove and 55 not upgraded.
Need to get 126 kB of archives.
After this operation, 447 kB of additional disk space will be used.
Get:1 http://ports.ubuntu.com/ubuntu-ports focal/main arm64 ethtool arm64 1:5.4-1 [126 kB]
Fetched 126 kB in 3s (46.2 kB/s)                  
Selecting previously unselected package ethtool.
(Reading database ... 200672 files and directories currently installed.)
Preparing to unpack .../ethtool_1%3a5.4-1_arm64.deb ...
Unpacking ethtool (1:5.4-1) ...
Setting up ethtool (1:5.4-1) ...
Processing triggers for man-db (2.9.1-1) ...

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: Symmetric
	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
If you are sure there is no problem with your router/switch/cable, I think the Ethernet controller on your board might have a hardware problem.
In that case, please contact "odroid at hardkernel dot com" with a URL of this thread.
They will help your RMA process if you purchased the board from our web-store directly.
Otherwise, contact your local distributor/reseller. Sorry for the inconvenience caused.

fklink
Posts: 7
Joined: Sun Jun 06, 2021 2:52 am
languages_spoken: english
ODROIDs: N2+
Location: Pepinster - Belgium
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Ethernet Adapter

Post by fklink »

Thanks @odroid . I will keep you updated.
My board was bought in the UK from odroid.co.uk.
If I can't get it working I will contact them.

Thanks.

fklink
Posts: 7
Joined: Sun Jun 06, 2021 2:52 am
languages_spoken: english
ODROIDs: N2+
Location: Pepinster - Belgium
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Ethernet Adapter

Post by fklink »

So I could get a try and ran the ethtool

Code: Select all

odroid@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
	Speed: 10Mb/s
	Duplex: Half
	Port: MII
	PHYAD: 0
	Transceiver: external
	Auto-negotiation: on
Cannot get wake-on-lan settings: Operation not permitted
	Current message level: 0x0000003f (63)
			       drv probe link timer ifdown ifup
	Link detected: no
odroid@odroid:~$ 
Apart from the fact that I have a Link detected no, I don't see much differences with your output.
From what you see, can we deduct that my Ethernet connector is faulty ?

User avatar
mctom
Posts: 210
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 25 times
Been thanked: 14 times
Contact:

Re: Ethernet Adapter

Post by mctom »

fklink wrote:
Sat Jun 12, 2021 10:38 am
So I could get a try and ran the ethtool
Try ethtool command that I suggested a few posts ago.
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

User avatar
odroid
Site Admin
Posts: 37550
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1840 times
Been thanked: 1160 times
Contact:

Re: Ethernet Adapter

Post by odroid »

Can you try connecting your host PC to the N2 board directly without switch/router to narrow down root causes?

Post Reply

Return to “Issues”

Who is online

Users browsing this forum: No registered users and 2 guests