Anyone has an updated kernel image that supports both ethernet (eth0, eth1) and iptables/ip6tables on bpi-w2 board. Without these together I can’t use this board a a router/firewall device.
So far I have tried these:
(1) I have installed ubuntu-16.04 with kernel Image(uImage) 4.4.18-ning
# uname -a
Linux localhost.localdomain 4.4.18-ning #1 SMP Wed May 23 14:55:41 CST 2018 aarch64 aarch64 aarch64 GNU/Linux
This shows both ethernet (eth0, eth1), but lacks iptables table support.
(2)Install ubuntu-18.04 with kernel Image(uImage) 4.9.119-BPI-W2-Kernel
# uname -a
Linux bpi-iot-ros-ai 4.9.119-BPI-W2-Kernel #1 SMP PREEMPT Fri Sep 14 17:32:19 CST 2018 aarch64 aarch64 aarch64 GNU/Linux
This doesn’t show eth1 (only eth0). It does have iptables supports. But the lack of second active ethernet port is disappointing.
The issue has not been fixed in the legacy 4.9.119 kernel
as of end of December 2019.
The 2nd ethernet port (eth1) doesn’t bring up,
the 1st one (eth0) has a strange mac address (link/ether 00:10:20:30:40:50)
and the signaling LEDs do not work.
Having compared the 4.4 kernel vs 4.9 kernel sources :
BPI-W2-bsp# egrep CONFIG_RTD /Source/SINOVOIP-4.4_public/BPI-W2-bsp-4.4_public/linux-rt/.config
CONFIG_RTD129X=y
CONFIG_RTD_1295_HWNAT=y
CONFIG_RTD_1295_MAC0_SGMII_LINK_MON=y
The 4.9 kernel config is missing the above and is reduced to only :
BPI-W2-bsp/linux-rtk/.config
CONFIG_RTD1XXX_POWER=y
CONFIG_RTD129x=y
rem CONFIG_RTD129x_FPGA is not set
The “enable hwnat to support eth1 & eth2” module is missing in the 4.9 kernel :