Building the r8168 driver for RealTek RTL8168B/8111B, RTL8168C/8111C, RTL8168CP/8111CP, RTL8168D/8111D, DP/8111DP, and RTL8168E/8111E Gigabit Ethernet controllers with PCI-Express interface. * tce-load -i linux-kernel-sources-env.tcz * sudo ./inux-kernel-sources-env.sh (involves ~100MB download and takes ages compiling) * tce-load -i compiletc.tcz * Unpack driver source archive * Enter directory and run: sudo ./autorun.sh (worked even while sources build had only reached graphics drivers) * src/r8168.ko is the kernel module, normally installed at: /lib/modules/5.4.3-tinycore64/kernel/drivers/net/ethernet/realtek/r8168.ko * Add "blacklist=r8169" bootcode to bootloader parameters list to prevent the other driver from automatically loading at boot. * Add "modprobe r8168" command to /opt/bootlocal.sh (no /etc/modules in TinyCore?) *Other modules seem to be Gzip compressed - should this be too? - yes: gzip r8168.ko *Making an extension: * mkdir -p r8168/usr/local/lib/modules/`uname -r`/kernel/drivers/net/ethernet/realtek * cp ../../r8168-master/src/r8168.ko r8168/usr/local/lib/modules/`uname -r`/kernel/drivers/net/ethernet/realtek/ * sudo chmod -R root:root r8168 * mksquashfs r8168 r8168-`uname -r`.tcz * md5sum r8168-`uname -r`.tcz > r8168-`uname -r`.tcz.md5.txt