Banana pi BPI-W2's second ethernet port support

Hello,

When you look at the board, you see that one GbE port is directly connected to the RTL1296 chip (it might be the WAN port) and the other port is connected to a Realtek 8211 chip.

1/ How is this described in the device tree ? 2/ How is this integrated in the kernel config ?

KR

There are 3 ethernet ports

  • the port that is working is one directly connected to the RTD1296
  • another interface is directly connected to the RTD1296 but is not soldered to any port
  • the last port is connected to the RTD1296 thru the 8211 chip : how this port is described in the device tree and which driver is included in the kernel ?

I would like access to the 4.4 kernel repository

Thanks.

I manage to port the OpenWRT kernel 4.4 hwnat driver into the 4.9 kernel. There still some work to be done on the HW address of those ports, trimming unnecessary code and removing non-existing ethernet ports. But it works. I managed to use both gmacs without much of a issue.

The code is in this repository:

Must up-to-date branch is rtk1296_ow

1 Like

Couldn’t crack iptables to work though

@otavioborges I have built the BPI-W2-bsp and copied the kernel, rootfs, and dtb across on to the BPI ubuntu image and that worked fine.

I then tried your rtk1296_ow build and the mouse does not work, so unable to try the ethernet as there does not seem to be any desktop keyboard orientation support for getting around either that or the keyboard does not work as well.

On my port, I mostly worked without graphical services, always on SSH or the UART terminal. I didn’t browse throught the HID menus. It could be simply disabled. I believe the USB ports are working. Try enabling mouse and keyboard on menuconfig: https://wiki.gentoo.org/wiki/Evdev

@AaronNGray. You tried BPI-M3-bsp kernel and rootfs on the BPI-W2???

OpenWrt or linux?? Did all the peripherals worked??

@otavioborges Sorry that should be W2 kernel. I have M3’s as well so mistakenly said M3. I will check the menu config it might just be the USB was not enabled ?

请把我加到4.4的仓库

https://github.com/jjm2473

we try add github id : jjm2473, please try it. or give me your github ID

好了,可以看到 :grinning: :grinning:

1 Like

@otavioborges, I have connected my laptop to second ethernet port and observed that my laptop has not got the ip address. Could you please let me know which configuration has to be done on the hwnat block to get the ip address on the laptop.

Hey @sujan,

I could not crack iptables for the second ethernet port, so port forwarding and bridges between the two ports are a bit fuzzy.

Are you using DHCP? Have you got a DHCP server on the W2? I would suggest installing wireshark on the laptop and snooping the ETH packets between laptop-W2. Debian/Ubuntu has it in the repository

Please add me to the W2-BSP v4.4 kernel project (xvortex)

OK have add you to BPI-W2 github, please check it.

What is going on regarding functionality of the W2’s Second Ethernet port ?

I ask the same thing. Hi. I have never built a kernel module. But if there is something you can collaborate on to build the modules of the missing devices. Here I am.

Hi, please add me to the W2-BSP v4.4 kernet projet.

I had no joy with it.