summaryrefslogtreecommitdiff
path: root/packages/linux-kernel/build-intel-ixgbe.sh
diff options
context:
space:
mode:
authorErnesto Castellotti <ernesto@castellotti.net>2024-03-23 13:30:35 +0100
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2024-04-29 19:22:03 +0000
commiteadb87155306c5c8e0847ac68eb835e9bda9dc92 (patch)
tree8fd48c8d0da91a0d803a11a74e6a0724a192b112 /packages/linux-kernel/build-intel-ixgbe.sh
parent74f54ca217911c0e73a0dde33b18a2bcf09ba554 (diff)
downloadvyos-build-eadb87155306c5c8e0847ac68eb835e9bda9dc92.tar.gz
vyos-build-eadb87155306c5c8e0847ac68eb835e9bda9dc92.zip
ixgbe: T6162: Add 1000BASE-BX support
The ixgbe driver did not support the 1000BASE-BX standard so for example FS.com SFP-GE-BX 1310/1490nm 10km transceiver received an unsupported module error even with allow_unsupported_sfp enabled. To solve this problem I created a patch that was accepted by Linux upstream (https://github.com/torvalds/linux/commit/1b43e0d20f2d007ec4c124b0deaa848ff8d61f4a) so starting from kernel 6.9 the ixgbe driver will have 1000BASE-BX support, however VyOS uses the out of tree driver so it is necessary to backport the patch. (cherry picked from commit a44647f0982f2a6b7a78af80f82e1c650ab0b11e)
Diffstat (limited to 'packages/linux-kernel/build-intel-ixgbe.sh')
-rwxr-xr-xpackages/linux-kernel/build-intel-ixgbe.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/linux-kernel/build-intel-ixgbe.sh b/packages/linux-kernel/build-intel-ixgbe.sh
index 36e403ad..035a062a 100755
--- a/packages/linux-kernel/build-intel-ixgbe.sh
+++ b/packages/linux-kernel/build-intel-ixgbe.sh
@@ -61,6 +61,10 @@ sed -i '/.*pci_enable_pcie_error_reporting(pdev);/d' ixgbe_main.c
echo "I: always enable allow_unsupported_sfp for all NICs by default"
patch -l -p1 < ../../patches/ixgbe/allow_unsupported_sfp.patch
+# See https://vyos.dev/T6162
+echo "I: add 1000BASE-BX support"
+patch -l -p1 < ../../patches/ixgbe/add_1000base-bx_support.patch
+
echo "I: Compile Kernel module for Intel ${DRIVER_NAME} driver"
make KSRC=${KERNEL_DIR} INSTALL_MOD_PATH=${DEBIAN_DIR} INSTALL_FW_PATH=${DEBIAN_DIR} -j $(getconf _NPROCESSORS_ONLN) install