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 ?
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 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
@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
@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 ?
@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.
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
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.