kernel-other/extra-configs/r8169.sh
2023-09-12 16:49:32 +05:30

24 lines
1.2 KiB
Bash

#!/usr/bin/env bash
EXTRA_LINUX_MODULES+=('CONFIG_R8169')
# Q: What requires this option to be enabled?
# A: Enabling this option adds support for the Realtek RTL8125 2.5GbE Controller
# that is present on the Radxa Rock 5 Model B SBC, connected via the PCIe bus.
# ```sh
# $ sudo lspci -k
# 0004:01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller (rev 05)
# Subsystem: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller
# Kernel driver in use: r8169
# Kernel modules: r8169
# ```
#
# Q: Why wasn't this option enabled by `make defconfig`?
# A: There are two reasons for this:
# 1. None of the symbols that are enabled by the defconfig (built-in or
# otherwise)--that are needed by CONFIG_R8169--"select" this option. The
# dependencies are already enabled (built-in or otherwise). So all that
# needs to be done is to enable this tristate module as a **loadable module**.
# 2. Since this Ethernet controller is connected via the PCIe bus and is not
# the Ethernet PHY offered by the RK3588 SoC itself, it is not selected
# by 'CONFIG_ARCH_ROCKCHIP' either.