Jump to content

H3 OrangePi PC on Buster (Linux 5.4.20-sunxi) wired Network issue


royb122

Recommended Posts

Hello, 

Long time follower, first issue/bug post.
I have read and tried several options over period of time to get this working, nothing helped. 

ReWrote Clean image, changed SD cards (and sizes 8 > 16 > 32 > 16g).

Setting /etc/netwrok/interface 

allow-hotplug eth0. 
iface eth0 inet dhcp

 

NetworkManager.conf

[ifupdown]
managed=true/false

 

Tested for power consumption using ( have a 5v 4A supply ) and I know I have sufficient power

stress -c 4 -t 10
stress: info: [1347] dispatching hogs: 4 cpu, 0 io, 0 vm, 0 hdd
stress: info: [1347] successful run completed in 10s

stress -c 2 -m 2
stress: info: [1359] dispatching hogs: 2 cpu, 0 io, 2 vm, 0 hdd
(ctrl+c) to return to prompt

stress -c 4 -m 2
stress: info: [1366] dispatching hogs: 4 cpu, 0 io, 2 vm, 0 hdd
(ctrl+c) to return to prompt

 

could not find sysbench so couldn't try 

'sysbench --test=cpu --cpu-max-prime=20000 run --num-threads=4'

 

looked at almost every discussion about enabling network but could not get the eth0 up.

Since network is not available, I couldn't post armbianmonitor -u I have the saved output with -U but not sure how to upload it here. 

 

When I first power up the board, both orange and green lights on network port come and blink during flash screen, but right after the message 'Starting Kernel..." the lights go off.  With Avahi there is a dummy interface shows up with the automatic dummy ip of 169.254.9.7 but eth0 only shows the MAC id. 

 

'nmcli' shows as one of the messages, but with the dummy IP:

eth0: connected to eth0

 

'nmtui' shows:  

Ethernet
    eth0
    Armbian ethernet
    Armbian ethernet

 

So I delete the Armbian ethernets and set the eth0 to automatic dhcp AND set it as Wired Connection 1. But even after restart still get the automatic dummy ip.

 

invoking 'systemctl status NetworkManager' only shows 

  Loaded: <usual details>
  Active: active (running) since... 
    Docs: Man:NetworkManager(8)
Main PID: 653 (NetworkManager)
   Tasks: 3 (limit: 1993)
  Memory: 11.4M
  CGroup: /system.slice/NetworkManager.service
          └─653 /usr/sbin/NetwrokManager 

Feb 17 12:25:54 orangepipc NewworkManager[653]: ((src/settings/mn-settings-connection.c:361)): assertion '<dropped>' failed
Feb 17 12:25:54 orangepipc NewworkManager[653]: ((src/settings/mn-settings-connection.c:361)): assertion '<dropped>' failed
Feb 17 12:25:54 orangepipc NewworkManager[653]: ((src/settings/mn-settings-connection.c:361)): assertion '<dropped>' failed
Feb 17 12:25:54 orangepipc NewworkManager[653]: ((src/settings/mn-settings-connection.c:361)): assertion '<dropped>' failed
Feb 17 12:25:54 orangepipc NewworkManager[653]: ((src/settings/mn-settings-connection.c:361)): assertion '<dropped>' failed
Feb 17 12:25:54 orangepipc NewworkManager[653]: ((src/settings/mn-settings-connection.c:361)): assertion '<dropped>' failed
Feb 17 12:25:54 orangepipc NewworkManager[653]: ((src/settings/mn-settings-connection.c:361)): assertion '<dropped>' failed

 

While I expected to see a dhcpclient process also running in systemctl status.

dmesg shows 

root@orangepipc:~# dmesg|grep dwmac-sun8i
[ 3.218579] dwmac-sun8i 1c30000.ethernet: IRQ eth_wake_irq not found
[ 3.218605] dwmac-sun8i 1c30000.ethernet: IRQ eth_lpi not found
[ 3.218706] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[ 3.218753] dwmac-sun8i 1c30000.ethernet: 1c30000.ethernet supply phy not found, using dummy regulator
[ 3.218822] dwmac-sun8i 1c30000.ethernet: 1c30000.ethernet supply phy-io not found, using dummy regulator
[ 3.219137] dwmac-sun8i 1c30000.ethernet: Current syscon value is not the default 148000 (expect 58000) 
[ 3.219159] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[ 3.219165] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported 
[ 3.219170] dwmac-sun8i 1c30000.ethernet: COE Type 2
[ 3.219176] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported 
[ 3.219182] dwmac-sun8i 1c30000.ethernet: Normal descriptors 
[ 3.219188] dwmac-sun8i 1c30000.ethernet: Chain mode enabled  RX Checksum Offload Engine supported 
[ 3.219816] dwmac-sun8i 1c30000.ethernet: Found internal PHY node
[ 3.219933] dwmac-sun8i 1c30000.ethernet: Switch mux to internal PHY
[ 3.219942] dwmac-sun8i 1c30000.ethernet: Powering internal PHY
[ 8.575554] dwmac-sun8i 1c30000.ethernet eth0: PHY [0.1:01] driver [Generic PHY] No MAC Management Counters available 
[ 8.575654] dwmac-sun8i 1c30000.ethernet eth0: No Safety Features support found
[ 8.579776] dwmac-sun8i 1c30000.ethernet eth0: No MAC Management Counters available
[ 8.579792] dwmac-sun8i 1c30000.ethernet eth0: PTP not supported by HW 
[ 8.579800] dwmac-sun8i 1c30000.ethernet eth0: Configuring for phy/mii link mode

I have more details but typing all may take more effort as I can't copy paste from there. 

 

Does anyone experience such issue or know how to resolve it? 

 

I have seen may discussions and solutions, none worked in my case, but I'm sure my definitely isn't unique.

If there is a patch or a workaround someone can point me to, would be greatly appreciated. 

 

Thanks,

Roy

Link to comment
Share on other sites

3 hours ago, royb122 said:

but I'm sure my definitely isn't unique

 

Orangepi PC is one of the most popular boards and this forum would be full of people complaining about the same trouble. Have you checked the most obvious issues outside the board like cables and switches?


I have a dozen of Oranges and Nanopis with similar phy in the testing facility and they all work without any issue. Sadly I don't have exactly this board, but I will check it when possible.

Link to comment
Share on other sites

Hi Igor,

Thank you so much for your reply. I have one more of the same board. With same exact settings, I matched it with that other one .. 'everything' comes up as the exact. 

 

The only 'extra' dmesg entry I get is Link is up (I don't bother so much about 100Mbps vs 1Gbps as my unmanaged switch is fast ethernet). So in this one first I need to get the network up..
 

opi@mv2:~$ dmesg|grep dwmac-sun8i 
[    2.970447] dwmac-sun8i 1c30000.ethernet: IRQ eth_wake_irq not found
[    2.970455] dwmac-sun8i 1c30000.ethernet: IRQ eth_lpi not found
[    2.970560] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[    2.970605] dwmac-sun8i 1c30000.ethernet: 1c30000.ethernet supply phy not found, using dummy regulator
[    2.970676] dwmac-sun8i 1c30000.ethernet: 1c30000.ethernet supply phy-io not found, using dummy regulator
[    2.970972] dwmac-sun8i 1c30000.ethernet: Current syscon value is not the default 148000 (expect 58000)
[    2.970995] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[    2.971000] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[    2.971006] dwmac-sun8i 1c30000.ethernet: COE Type 2
[    2.971012] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[    2.971018] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[    2.971024] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[    2.971721] dwmac-sun8i 1c30000.ethernet: Found internal PHY node
[    2.971831] dwmac-sun8i 1c30000.ethernet: Switch mux to internal PHY
[    2.971839] dwmac-sun8i 1c30000.ethernet: Powering internal PHY
[    8.730894] dwmac-sun8i 1c30000.ethernet eth0: PHY [0.1:01] driver [Generic PHY]
[    8.746307] dwmac-sun8i 1c30000.ethernet eth0: No Safety Features support found
[    8.746323] dwmac-sun8i 1c30000.ethernet eth0: No MAC Management Counters available
[    8.746332] dwmac-sun8i 1c30000.ethernet eth0: PTP not supported by HW
[    8.746345] dwmac-sun8i 1c30000.ethernet eth0: configuring for phy/mii link mode
[    8.748236] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
^^^^^^^^^^^ THIS OUTPUT IS FROM A WORKING BOARD ^^^^^^^^^^^^^^^^^^^^

Following How to change boot output I changed /boot/armbianEnv.txt verbosity to 7 as well as .force-verbose, without any luck. So updated /boot/boot.cmd with verbose=7 and recompiled to make boot.scr. Still no additional messages, is there any other way it could be figured what's wrong?
In the attached the other board can be seen and you can notice the port lights at startup. (https://imgur.com/a/BC8ar0p)

Another thing I forgot to mention, when configuring DHCP for the first time in armbian-config, after editing /e/n/i at save, on 20%, it fails to restart dnsmasq as if its not there, I should have mentioned this in the last post when describing systemctl status for network-manager. 

 

Thanks again for taking time to help with the issue.

Roy

 

 

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines