Jump to content

iMagz

Members
  • Posts

    6
  • Joined

  • Last visited

Posts posted by iMagz

  1. I implemented this from the forum @kris777 mentioned, and IT WORKED:

     

    On 10/5/2025 at 7:38 AM, Asanali Bulatov said:

    Small guide for fixing Ethernet on the latest Armbian.

    1. Make sure you have the correct device: cat /proc/device-tree/model → OrangePi 3 LTS

    2. Decompile the dtb to dts: dtc -I dtb -O dts /boot/dtb/allwinner/sun50i-h6-orangepi-3-lts.dtb -o ./sun50i-h6-orangepi-3-lts.dts

    3. Check the correct pins (yours may differ): grep -i reset-gpio sun50i-h6-orangepi-3-lts.dts | head -n 1 → reset-gpios = <0x1e 0x03 0x0e 0x01>;

    4. Create the file sun50i-h6-ethernet.dts. Use the provided template and substitute your pin values.

    My file for example:

    /dts-v1/;
    /plugin/;
    
    / {
            compatible = "allwinner,sun50i-h6";
    
            fragment@0 {
                    target = <&emac>;
                    __overlay__ {
                            snps,reset-gpio = <0x1e 0x03 0x0e 0x01>;
                            snps,reset-delays-us = <0 10000 1000000>;
                            snps,reset-active-low;
                            mdio {
                                    ethernet-phy@1 {
                                            reset-gpios;
                                            reset-assert-us;
                                            reset-deassert-us;
                                    };
                            };
                    };
            };
    };

    5. Add your overlay: armbian-add-overlay sun50i-h6-ethernet.dts

    6. Reboot and enjoy working Ethernet: reboot

     

     

     

    Now, I flashed this image, and it didn't even boot.

     

    13 hours ago, Werner said:

    I tried integrating the suggestion into the actual device tree. Feel free to test:

     

    https://testing.armbian.de/Armbian-unofficial_26.02.0-trunk_Orangepi3-lts_trixie_current_6.12.64_minimal.img.xz

     

     

     

    Anyway, thanks to everyone involved for helping me with this issue, and big thanks to every maintainer and contributor for keeping this distro alive, as its contribution deserves to be appreciated.

  2. Unfortunately, after multiple tries the image provided didn't work. :(

     

    Here is the outputs of the commands asked to be runned with there respective tested images:

     

    dmesg | grep -iE "stmmac|sun8i|dwmac|emac|phy|mdio|motorcomm|yt8531"
    dmesg | grep -i "registered.*phy\|phy.*connect"
    
    ls -l /sys/bus/mdio_bus/devices/
    cat /sys/bus/mdio_bus/*/phy_id 2>/dev/null
    
    find /sys/class/net -name "end0" -o -name "eth0" | head -1 | xargs -I {} cat {}/phys_switch_id 2>/dev/null
    
    ls /sys/firmware/devicetree/base/soc/ethernet*/mdio/

     

    Armbian_community_25.11.0-trunk.437_Orangepi3-lts_trixie_current_6.12.47_minimal.img [NOT WORKING] https://pastebin.com/v4bqxkeU

    Armbian_community_26.2.0-trunk.100_Orangepi3-lts_trixie_current_6.12.63_minimal.img [NOT WORKING] https://pastebin.com/fG0YKepz

    Armbian_community_26.2.0-trunk.151_Orangepi3-lts_trixie_current_6.12.63_minimal.img [NOT WORKING] https://pastebin.com/4eEC9mMg

    Armbian-unofficial_26.02.0-trunk_Orangepi3-lts_trixie_current_6.12.63_minimal_phy-io-supply.img [NOT WORKING] https://pastebin.com/DnRgP4k5

    Armbian-unofficial_26.02.0-trunk_Orangepi3-lts_trixie_edge_6.18.2_minimal.img [WORKING] https://pastebin.com/8qp2X9wC

     

     

    armbianmonitor -U

     

    Armbian_community_25.11.0-trunk.437_Orangepi3-lts_trixie_current_6.12.47_minimal.img [NOT WORKING] https://pastebin.com/iUKFu1u0

    Armbian_community_26.2.0-trunk.100_Orangepi3-lts_trixie_current_6.12.63_minimal.img [NOT WORKING] https://pastebin.com/SUDx7yme

    Armbian_community_26.2.0-trunk.151_Orangepi3-lts_trixie_current_6.12.63_minimal.img [NOT WORKING] https://pastebin.com/QVU9q2La

    Armbian-unofficial_26.02.0-trunk_Orangepi3-lts_trixie_current_6.12.63_minimal_phy-io-supply.img [NOT WORKING] https://pastebin.com/qiE4u2PQ

    Armbian-unofficial_26.02.0-trunk_Orangepi3-lts_trixie_edge_6.18.2_minimal.img [WORKING] https://pastebin.com/2iWbYgqK

     

     

     

    For some reason, Armbian_community_25.11.0-trunk.437_Orangepi3-lts_trixie_current_6.12.47_minimal.img stopped working when it did before. I tested it 5 times, and none of those boots worked. I don't know if the times I tested it before worked because of the small chance of booting with an ethernet connection, but it stopped working after booting. Anyway, I just want to clarify the inconsistency, but Armbian-unofficial_26.02.0-trunk_Orangepi3-lts_trixie_edge_6.18.2_minimal.img is still consistently working after numerous boots.

     

     

     

    Also, while testing the images to provide the outputs, I realized something interesting, which for some reason I didn't notice before. After booting for the first time, the images downloaded from the official place, https://www.armbian.com/orangepi3-lts/, showed a message that explains that the image used is a “Developer Preview Build” and that it should not be used for production. I don't know if this is expected or is a mistake in publicizing the incorrect images, but now that I realized it, I felt that I needed to disclose it. Maybe that is the reason the Ethernet connection is not working.

    Armbian_community_26.2.0-trunk.151_Orangepi3-lts_trixie_current_6.12.63_minimal.img

     

    Welcome to Armbian_community!
    
    Documentation: https://docs.armbian.com | Community support: https://community.armbian.com/
    
    IP address: Network connection timeout!
    
    Create root password: ****
    Repeat root password: ****
    
    Developer Preview Build
    
    This Armbian image was generated automatically for development and testing purpose.
    It may include unfinished features or unstable components.
    
    If you are not here to report issues or just test it, please do not use this image in production.
    Expect things to change - or even break - as improvements are made.
    
    Creating a new user account. Press <Ctrl-C> to abort
    
    Please provide a username (eg. your first name):_

     

     

    Armbian_community_25.11.0-trunk.437_Orangepi3-lts_trixie_current_6.12.47_minimal.img

     

    Welcome to Armbian_community!
    
    Documentation: https://docs.armbian.com | Community support: https://community.armbian.com/
    
    IP address: Network connection timeout!
    
    Create root password: ****
    Repeat root password: ****
    
    WARNING!
    
    You are using an automated build meant only for developers to provide
    construtive feedback to improve build system, OS settings or UX.
    
    If this does not apply to you, STOP NOW! Especially don't use this
    image for production since things might not work as expected or at
    all. They may break anytime with next update.
    
    Creating a new user account. Press <Ctrl-C> to abort
    
    Please provide a username (eg. your first name):_
  3. Unfortunately I tested both of the images provided and neither worked. After testing the images I ran the commands that were asked to be run on the following images:
     

    Armbian-unofficial_26.02.0-trunk_Orangepi3-lts_trixie_edge_6.18.2_minimal.img [ETHERNET CONNECTION WORKING]

    (I realized that forky isn't for me so I compile it with trixie which is used for the official images and it also works)

     

    Armbian_community_26.2.0-trunk.151_Orangepi3-lts_trixie_current_6.12.63_minimal.img [ETHERNET CONNECTION NOT WORKING]
     

    dmesg | grep -i "phy.*halt\|mdio.*reset"
    

     

    In both images it didn't show any output.

     

     

     

    watch -n 1 'ethtool eth0 | grep -E "Speed|Duplex|Link detected"'
    

     

    Every 1.0s: ethtool eth0 | grep -E "Speed|Duplex|Link detected"                          orangepi3-lts: Mon Dec 29 21:48:01 2025
    
    netlink error: no device matches name (offset 24)
    netlink error: No such device
    netlink error: no device matches name (offset 24)
    netlink error: No such device
    netlink error: no device matches name (offset 24)
    netlink error: No such device
    netlink error: no device matches name (offset 24)
    netlink error: No such device
    netlink error: no device matches name (offset 24)
    netlink error: No such device
    netlink error: no device matches name (offset 24)
    netlink error: No such device
    netlink error: no device matches name (offset 24)
    netlink error: No such device
    

     

    In both images it showed this because Armbian use end0 instead of eth0 so I ran it with end0 instead and it showed this:

     

    [Ethernet Connection NOT working image]

     

    Every 1.0s: ethtool end0 | grep -E "Speed|Duplex|Link detected"                          orangepi3-lts: [DATE]
    
    	Speed: Unknown!
    	Duplex: Unknown! (255)
    	Link detected: no

     

    [Ethernet Connection working image]

     

    Every 1.0s: ethtool end0 | grep -E "Speed|Duplex|Link detected"                          orangepi3-lts: [DATE]
    
    	Speed: 1000Mb/s
    	Duplex: Full
    	Link detected: yes

     

     

     

    cat /sys/class/net/eth0/phydev/phy_state 2>/dev/null

     

    In both images it didn't show any output. I think is because not only is end0 instead of eth0, which I tested by changing them, but also there isn't any phy_state file in the /sys/class/net/eth0/phydev/ directory.

  4. Here I leave my logs, if you need additional ones let me know:

     

    ip a

     

    1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
        link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
        inet 127.0.0.1/8 scope host lo
           valid_lft forever preferred_lft forever
        inet6 ::1/128 scope host noprefixroute 
           valid_lft forever preferred_lft forever
    2: end0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
        link/ether [MAC ADDRESS] brd ff:ff:ff:ff:ff:ff
        altname enx[XXXXX]
    3: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
        link/ether [MAC ADDRESS] brd ff:ff:ff:ff:ff:ff
        altname wlx[XXXXX]

     

    I tested the image provided and after numerous reboots it didn't work, still the same problem.

    Doing some other testing i compile the following image Armbian-unofficial_26.02.0-trunk_Orangepi3-lts_forky_edge_6.18.2_minimal.img which I extracted it from Armbian GitHub from this tag: "v26.2.0-trunk.146" https://github.com/armbian/build/releases/tag/v26.2.0-trunk.146 and it worked. i don't know if it has to the with the kernel version or something but I think is something to consider.

  5. What happened?

     

    Orange Pi 3 LTS rarely recognize ethernet connection.

     

    How to reproduce?

     

    Flash Orange Pi 3 LTS with an image of the latest version of Armbian.

     

    Extra Info

     

    The latest images tested which worked flawlessly was: 

     

    Armbian_community_25.11.0-trunk.437_Orangepi3-lts_trixie_current_6.12.47_minimal.img

     

    Armbian_23.8.3_Orangepi3-lts_jammy_current_6.1.53_minimal.img

     

     

    Images tested which didn't worked:

     

    Armbian_community_26.2.0-trunk.151_Orangepi3-lts_trixie_current_6.12.63_minimal.img

     

    Armbian_community_26.2.0-trunk.100_Orangepi3-lts_trixie_current_6.12.63_minimal.img

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines