Jump to content

Nanopi Duo2 wired ethernet fix bookworm 6.1.30 tested


schunckt

Recommended Posts

Image Armbian_23.5.2_Nanopiduo2_bookworm_current_6.1.30.img

 

uname -a

Linux nanopiduo2 6.1.30-sunxi #1 SMP Wed May 24 16:32:53 UTC 2023 armv7l GNU/Linux

 

It turns out the dtb has some missing pieces:

                ethernet@1c30000 {
                        compatible = "allwinner,sun8i-h3-emac";
                        syscon = <0x1e>;
                        reg = <0x1c30000 0x10000>;
                        interrupts = <0x00 0x52 0x04>;
                        interrupt-names = "macirq";
                        resets = <0x03 0x0c>;
                        reset-names = "stmmaceth";
                        clocks = <0x03 0x1b>;
                        clock-names = "stmmaceth";
                        status = "okay";

                        phy-handle = <0x69>;  // differs from NEO
                        phy-mode = "mii";
                        allwinner,leds-active-low;

 

after adding phy-handle,  phy-mode  and allwinner..    wired ethernet works.

Of course NetworkManager  config  /etc/network    interfaces    must be configured properly.

In my case

# Network is managed by Network manager
auto lo
iface lo inet loopback

# network interface not managed by Network Manager
allow-hotplug eth0
iface eth0 inet static
address 192.168.179.222
netmask 255.255.255.0
gateway 192.168.179.1
dns-nameservers 192.168.179.1

 

Possibly the leds* are not required. Maybe these can be tweaked for other IO's  then 🙂

 

 

btw. would be nice to thave a separate Nanopi duo2 section here.

 

      T.

Link to comment
Share on other sites

Hi,

 

Thanks for reporting this. I added a patch to include the missing entries for ethernet to the dts and have created an image with the same. I have not changed the status for ethernet though as using it require hardware that users might not have. So you still have to modify status to okay.  Could you please test this image and confirm that its working fine now from ethernet's perspective. Once you confirm that it works, I will raise a pull request to merge the changes to armbian repository.

 

There are also some extra fixes included in the image. The button on nanopiduo2 will be able to resume the device back from suspend state. Also if the device is powered off, it will be possible to restart it by pressing the same button. The power consumption in suspend and poweroff state will also be lower as now we have crust enabled for this board which reduces power consumption

Link to comment
Share on other sites

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