It happens that I’d need a second ethernet port. So I bought an usb RTL8152 Fast Ethernet Adapter.
But it seems that in the image I built from Fenix some days ago for Vim3 board that driver is not available:
lsmod | grep r8152 returns nothing and I don’t see any network interface added.
Building the sources downloaded from Realtek returns an error:
khadas@Khadas:~/tools/r8152-2.13.0$ make
find: ‘/lib/modules/4.9.224/kernel/drivers/net/usb’: No such file or directory
make -C /lib/modules/4.9.224/build M=/home/khadas/tools/r8152-2.13.0 modules
make[1]: Entering directory ‘/usr/src/linux-headers-4.9.224’
CC [M] /home/khadas/tools/r8152-2.13.0/r8152.o
In file included from ./include/linux/irqflags.h:15,
from ./include/linux/spinlock.h:53,
from ./include/linux/mmzone.h:7,
from ./include/linux/gfp.h:5,
from ./include/linux/slab.h:14,
from /home/khadas/tools/r8152-2.13.0/r8152.c:13:
./arch/arm64/include/asm/irqflags.h:24:10: fatal error: …/drivers/amlogic/debug/irqflags_debug_arm64.h: No such file or directory
24 | #include <…/drivers/amlogic/debug/irqflags_debug_arm64.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [scripts/Makefile.build:341: /home/khadas/tools/r8152-2.13.0/r8152.o] Error 1
make[1]: *** [Makefile:1653: module/home/khadas/tools/r8152-2.13.0] Error 2
make[1]: Leaving directory ‘/usr/src/linux-headers-4.9.224’
make: *** [Makefile:24: modules] Error 2