Jump to content

Recommended Posts

Posted

armbianmonitor logs: https://paste.armbian.com/rolisaboru

 

I’m running Armbian 25.2 on a Banana Pi BPI-M4-Zero (Allwinner sun50i-h618). EMAC1 (ethernet@5030000) with its internal PHY never comes up:

sunxi-gmac 5030000.ethernet end0: renamed from eth0
… No PHY found! … phy init again… No PHY found! … phy init failed

 

So far I have tried:
 

1. Directly patching full.dts

Enabled /soc/ethernet@5030000 (status = “okay”)

Added phy-mode = "rmii", pinctrl-0 = <&rmii_pins>, phy-handle, phy-supply etc.

Defined a simple ethernet-phy@0 under MDIO.

Recompiled to sun50i-h618-bananapi-m4-zero.dtb and rebooted.

 

2. User overlay (.dts → .dtbo)

Created fragments to:

Turn on /soc/ethernet@5030000/mdio

Inject an ethernet-phy@0 node

Enable EMAC1, assign RMII pins, MDIO and PHY handle

Compiled with dtc -@ and loaded via user_overlays=bpi-m4z-eth in armbianEnv.txt.


3. Following Armbian build PR #6617
Tried the patch for H618’s internal AC300 PHY from https://github.com/armbian/build/pull/6617

No change: PHY still not detected, no power-up.


4. Troubleshooting notes

Overlay apply errors: FDT_ERR_NOTFOUND

dtc compile errors on duplicate or missing phandle references

Verified pinctrl entries (rmii-pins) and alias names match base DTS

I’ve collected a full hardware/software report via armbianmonitor—see the logs here: https://paste.armbian.com/rolisaboru
 

What I’m looking for

A known-good snippet of device-tree (base DTS or overlay) that brings up the internal EMAC1 PHY on sun50i-h618

Advice on any missing power-or-clock settings or MFD nodes required for the AC300 PHY

Confirmation whether additional kernel/config patches are needed

Thanks in advance for any pointers!


 

Posted
3 часа назад, GeEg сказал:

I’ve collected a full hardware/software report via armbianmonitor—see the logs here: https://paste.armbian.com/rolisaboru
 

What I’m looking for

A known-good snippet of device-tree (base DTS or overlay) that brings up the internal EMAC1 PHY on sun50i-h618

Advice on any missing power-or-clock settings or MFD nodes required for the AC300 PHY

 

> sunxi-gmac 5030000.ethernet end0: No PHY found!

The first question. What brand of chip is used in your case?

 

The second question. Is this an external device?

[  341.101053] usb 2-1: new high-speed USB device number 2 using ehci-platform
[  341.257994] usb 2-1: New USB device found, idVendor=0b95, idProduct=772b, bcdDevice= 0.01
[  341.258024] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  341.258033] usb 2-1: Product: AX88772B
[  341.258039] usb 2-1: Manufacturer: ASIX Elec. Corp.
[  341.258045] usb 2-1: SerialNumber: E5A1DD
[  341.902647] asix 2-1:1.0 (unnamed net_device) (uninitialized): PHY [usb-002:002:10] driver [Asix Electronics AX88772C] (irq=POLL)
[  341.905987] Asix Electronics AX88772C usb-002:002:10: attached PHY driver (mii_bus:phy_addr=usb-002:002:10, irq=POLL)

 

In order for the ethernet-phy to work, it is necessary to turn on the PWM on the internal pin of the processor.

As example see: arch/arm64/boot/dts/allwinner/sun50i-h618-orangepi-zero2w.dts

and arch/arm64/boot/dts/allwinner/sun50i-h618-orangepi-zero2w.dts#L521-L539

Posted
Quote

> sunxi-gmac 5030000.ethernet end0: No PHY found!

The first question. What brand of chip is used in your case?


It is Allwinner H618, Quad-core ARM Cortex™-A53 processor.

 

Quote

The second question. Is this an external device?

[ 341.101053] usb 2-1: new high-speed USB device number 2 using ehci-platform [ 341.257994] usb 2-1: New USB device found, idVendor=0b95, idProduct=772b, bcdDevice= 0.01 [ 341.258024] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 341.258033] usb 2-1: Product: AX88772B [ 341.258039] usb 2-1: Manufacturer: ASIX Elec. Corp. [ 341.258045] usb 2-1: SerialNumber: E5A1DD [ 341.902647] asix 2-1:1.0 (unnamed net_device) (uninitialized): PHY [usb-002:002:10] driver [Asix Electronics AX88772C] (irq=POLL) [ 341.905987] Asix Electronics AX88772C usb-002:002:10: attached PHY driver (mii_bus:phy_addr=usb-002:002:10, irq=POLL)


Yes it is external USB network card,  which I used just to be able to send logs made via armbianmonitor to the internet. 


The state You see in the logs is just latest stage of many different attempts: with custom overlays and/or fixes on the sun50i-h618-bananapi-m4-zero.dtb (decompile, fix, compile, boot). In addition have tried some patches using H616 files. 
I also found problem is due to, PHY isn't properly powered on, based on topic: https://github.com/armbian/build/pull/6617 but after plenty of tries didnt manage to make it work ;(

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

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

×   Your previous content has been restored.   Clear editor

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

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines