Getting Ethernet working with Banana Pi M2 Zero


(berbec) #1

I was very excited by this post.. The instructions were lacking, so here is how I got things working.

I used an image with the legacy kernel. I haven’t gotten it to work with mainline yet. That’s up next. I had a computer crash recently, so I’m not which exact image, but I think it’s this one.

After I booted up, eth0 showed up.

I wired the four pins between the OTG and DC_IN microUSB jacks to a keystone jack. The following is the wire to keystone connector chart:

banana%20pi%20m2%20zero%20ethernet

Works great!

I hope this helps everyone out.


[BPI-M2-Zero] Default supports 10/100 Ethernet
(berbec) #2


#3

You can try out this: https://github.com/avafinger/bananapi-zero-ubuntu-base-minimal

It has eth0 enabled, maybe it works.


#4

Updated to mainline kernel 4.17.4 and tested eth0 wired this way, it works! eth0, wlan0 and i2c working.

eth0      Link encap:Ethernet  HWaddr 02:42:62:ff:37:0b  
          inet addr:192.168.254.100  Bcast:192.168.255.255  Mask:255.255.0.0
          inet6 addr: fe80::42:62ff:feff:370b/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2093 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1858 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:159415 (159.4 KB)  TX bytes:362419 (362.4 KB)
          Interrupt:40 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:160 errors:0 dropped:0 overruns:0 frame:0
          TX packets:160 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:11840 (11.8 KB)  TX bytes:11840 (11.8 KB)

wlan0     Link encap:Ethernet  HWaddr cc:b8:a8:a9:e5:66  
          inet addr:192.168.254.102  Bcast:192.168.255.255  Mask:255.255.0.0
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:13 errors:0 dropped:0 overruns:0 frame:0
          TX packets:20 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1658 (1.6 KB)  TX bytes:2620 (2.6 KB)

(berbec) #5

It works great. I have eth0 & i2c working as well as wlan0. I have an spi device coming, so I’ll be able to test that too.

The power management is amazing on this build. This is the first time I haven’t been able to fry an egg on my m2z!