mirror of
				https://github.com/vyos/vyos-build.git
				synced 2025-10-01 20:28:40 +02:00 
			
		
		
		
	intel: T6847: update IXGBE Out-Of-Tree driver to v6.0.5
This commit is contained in:
		
							parent
							
								
									773b2bfbb9
								
							
						
					
					
						commit
						a10b295601
					
				@ -18,7 +18,7 @@
 | 
				
			|||||||
# Intel Driver source
 | 
					# Intel Driver source
 | 
				
			||||||
i40e-*/
 | 
					i40e-*/
 | 
				
			||||||
igb-*/
 | 
					igb-*/
 | 
				
			||||||
ixgbe-*/
 | 
					ethernet-linux-ixgbe/
 | 
				
			||||||
ixgbevf-*/
 | 
					ixgbevf-*/
 | 
				
			||||||
vyos-intel-*/
 | 
					vyos-intel-*/
 | 
				
			||||||
vyos-linux-firmware*/
 | 
					vyos-linux-firmware*/
 | 
				
			||||||
 | 
				
			|||||||
@ -14,15 +14,14 @@ fi
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
. ${KERNEL_VAR_FILE}
 | 
					. ${KERNEL_VAR_FILE}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
url="https://sourceforge.net/projects/e1000/files/ixgbe%20stable/5.20.3/ixgbe-5.20.3.tar.gz"
 | 
					cd ${CWD}/ethernet-linux-ixgbe
 | 
				
			||||||
 | 
					if [ -d .git ]; then
 | 
				
			||||||
 | 
					    git clean --force -d -x
 | 
				
			||||||
 | 
					    git reset --hard origin/main
 | 
				
			||||||
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
cd ${CWD}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
DRIVER_FILE=$(basename ${url} | sed -e s/tar_0/tar/)
 | 
					 | 
				
			||||||
DRIVER_DIR="${DRIVER_FILE%.tar.gz}"
 | 
					 | 
				
			||||||
DRIVER_NAME="ixgbe"
 | 
					DRIVER_NAME="ixgbe"
 | 
				
			||||||
DRIVER_VERSION=$(echo ${DRIVER_DIR} | awk -F${DRIVER_NAME} '{print $2}' | sed 's/^-//')
 | 
					DRIVER_VERSION=$(git describe | sed s/^v//)
 | 
				
			||||||
DRIVER_VERSION_EXTRA=""
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Build up Debian related variables required for packaging
 | 
					# Build up Debian related variables required for packaging
 | 
				
			||||||
DEBIAN_ARCH=$(dpkg --print-architecture)
 | 
					DEBIAN_ARCH=$(dpkg --print-architecture)
 | 
				
			||||||
@ -30,23 +29,6 @@ DEBIAN_DIR="${CWD}/vyos-intel-${DRIVER_NAME}_${DRIVER_VERSION}_${DEBIAN_ARCH}"
 | 
				
			|||||||
DEBIAN_CONTROL="${DEBIAN_DIR}/DEBIAN/control"
 | 
					DEBIAN_CONTROL="${DEBIAN_DIR}/DEBIAN/control"
 | 
				
			||||||
DEBIAN_POSTINST="${CWD}/vyos-intel-ixgbe.postinst"
 | 
					DEBIAN_POSTINST="${CWD}/vyos-intel-ixgbe.postinst"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Fetch Intel driver source from SourceForge
 | 
					 | 
				
			||||||
if [ -e ${DRIVER_FILE} ]; then
 | 
					 | 
				
			||||||
    rm -f ${DRIVER_FILE}
 | 
					 | 
				
			||||||
fi
 | 
					 | 
				
			||||||
curl -L -o ${DRIVER_FILE} ${url}
 | 
					 | 
				
			||||||
if [ "$?" -ne "0" ]; then
 | 
					 | 
				
			||||||
    exit 1
 | 
					 | 
				
			||||||
fi
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# Unpack archive
 | 
					 | 
				
			||||||
if [ -d ${DRIVER_DIR} ]; then
 | 
					 | 
				
			||||||
    rm -rf ${DRIVER_DIR}
 | 
					 | 
				
			||||||
fi
 | 
					 | 
				
			||||||
mkdir -p ${DRIVER_DIR}
 | 
					 | 
				
			||||||
tar -C ${DRIVER_DIR} --strip-components=1 -xf ${DRIVER_FILE}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
cd ${DRIVER_DIR}/src
 | 
					 | 
				
			||||||
if [ -z $KERNEL_DIR ]; then
 | 
					if [ -z $KERNEL_DIR ]; then
 | 
				
			||||||
    echo "KERNEL_DIR not defined"
 | 
					    echo "KERNEL_DIR not defined"
 | 
				
			||||||
    exit 1
 | 
					    exit 1
 | 
				
			||||||
@ -54,19 +36,19 @@ fi
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
# See https://lore.kernel.org/lkml/f90837d0-810e-5772-7841-28d47c44d260@intel.com/
 | 
					# See https://lore.kernel.org/lkml/f90837d0-810e-5772-7841-28d47c44d260@intel.com/
 | 
				
			||||||
echo "I: remove pci_enable_pcie_error_reporting() code no longer present in Kernel"
 | 
					echo "I: remove pci_enable_pcie_error_reporting() code no longer present in Kernel"
 | 
				
			||||||
sed -i '/.*pci_disable_pcie_error_reporting(pdev);/d' ixgbe_main.c
 | 
					sed -i '/.*pci_disable_pcie_error_reporting(pdev);/d' src/ixgbe_main.c
 | 
				
			||||||
sed -i '/.*pci_enable_pcie_error_reporting(pdev);/d' ixgbe_main.c
 | 
					sed -i '/.*pci_enable_pcie_error_reporting(pdev);/d' src/ixgbe_main.c
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# See https://vyos.dev/T6155
 | 
					# See https://vyos.dev/T6155
 | 
				
			||||||
echo "I: always enable allow_unsupported_sfp for all NICs by default"
 | 
					echo "I: always enable allow_unsupported_sfp for all NICs by default"
 | 
				
			||||||
patch -l -p1 < ../../patches/ixgbe/allow_unsupported_sfp.patch
 | 
					patch -l -p1 < ../patches/ixgbe/allow_unsupported_sfp.patch
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# See https://vyos.dev/T6162
 | 
					# See https://vyos.dev/T6162
 | 
				
			||||||
echo "I: add 1000BASE-BX support"
 | 
					echo "I: add 1000BASE-BX support"
 | 
				
			||||||
patch -l -p1 < ../../patches/ixgbe/add_1000base-bx_support.patch
 | 
					patch -l -p1 < ../patches/ixgbe/add_1000base-bx_support.patch
 | 
				
			||||||
 | 
					
 | 
				
			||||||
echo "I: Compile Kernel module for Intel ${DRIVER_NAME} driver"
 | 
					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
 | 
					make KSRC=${KERNEL_DIR} INSTALL_MOD_PATH=${DEBIAN_DIR} INSTALL_FW_PATH=${DEBIAN_DIR} -j $(getconf _NPROCESSORS_ONLN) -C src install
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if [ "x$?" != "x0" ]; then
 | 
					if [ "x$?" != "x0" ]; then
 | 
				
			||||||
    exit 1
 | 
					    exit 1
 | 
				
			||||||
@ -96,18 +78,3 @@ fpm --input-type dir --output-type deb --name vyos-intel-${DRIVER_NAME} \
 | 
				
			|||||||
    --description "Vendor based driver for Intel ${DRIVER_NAME}" \
 | 
					    --description "Vendor based driver for Intel ${DRIVER_NAME}" \
 | 
				
			||||||
    --depends linux-image-${KERNEL_VERSION}${KERNEL_SUFFIX} \
 | 
					    --depends linux-image-${KERNEL_VERSION}${KERNEL_SUFFIX} \
 | 
				
			||||||
    --license "GPL2" -C ${DEBIAN_DIR} --after-install ${DEBIAN_POSTINST}
 | 
					    --license "GPL2" -C ${DEBIAN_DIR} --after-install ${DEBIAN_POSTINST}
 | 
				
			||||||
 | 
					 | 
				
			||||||
# echo "I: Cleanup ${DRIVER_NAME} source"
 | 
					 | 
				
			||||||
# cd ${CWD}
 | 
					 | 
				
			||||||
# if [ -e ${DRIVER_FILE} ]; then
 | 
					 | 
				
			||||||
#     rm -f ${DRIVER_FILE}
 | 
					 | 
				
			||||||
# fi
 | 
					 | 
				
			||||||
# if [ -d ${DRIVER_DIR} ]; then
 | 
					 | 
				
			||||||
#     rm -rf ${DRIVER_DIR}
 | 
					 | 
				
			||||||
# fi
 | 
					 | 
				
			||||||
# if [ -d ${DEBIAN_DIR} ]; then
 | 
					 | 
				
			||||||
#     rm -rf ${DEBIAN_DIR}
 | 
					 | 
				
			||||||
# fi
 | 
					 | 
				
			||||||
# if [ -f ${DEBIAN_POSTINST} ]; then
 | 
					 | 
				
			||||||
#     rm -f ${DEBIAN_POSTINST}
 | 
					 | 
				
			||||||
# fi
 | 
					 | 
				
			||||||
 | 
				
			|||||||
@ -44,8 +44,8 @@ build_cmd = "build_intel_qat"
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
[[packages]]
 | 
					[[packages]]
 | 
				
			||||||
name = "ixgbe"
 | 
					name = "ixgbe"
 | 
				
			||||||
commit_id = ""
 | 
					commit_id = "v6.0.5"
 | 
				
			||||||
scm_url = ""
 | 
					scm_url = "https://github.com/intel/ethernet-linux-ixgbe"
 | 
				
			||||||
build_cmd = "build_intel_ixgbe"
 | 
					build_cmd = "build_intel_ixgbe"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[[packages]]
 | 
					[[packages]]
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user