-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
install latest intel igb driver 5.3.5.4 in the base image #167
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# initramfs-tools package | ||
|
||
IGB_DRIVER_VERSION = 5.3.5.4 | ||
export IGB_DRIVER_VERSION | ||
|
||
IGB_DRIVER = igb.ko | ||
$(IGB_DRIVER)_SRC_PATH = $(SRC_PATH)/igb | ||
SONIC_MAKE_DEBS += $(IGB_DRIVER) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# redis package | ||
# linux kernel package | ||
|
||
KVERSION = 3.16.0-4-amd64 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
.ONESHELL: | ||
SHELL = /bin/bash | ||
.SHELLFLAGS += -e | ||
|
||
MAIN_TARGET = igb.ko | ||
|
||
$(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% : | ||
rm -rf ./igb-$(IGB_DRIVER_VERSION) | ||
wget -O igb-$(IGB_DRIVER_VERSION).tar.gz "https://downloadmirror.intel.com/13663/eng/igb-$(IGB_DRIVER_VERSION).tar.gz" | ||
tar xzf igb-$(IGB_DRIVER_VERSION).tar.gz | ||
|
||
# Patch | ||
pushd ./igb-$(IGB_DRIVER_VERSION) | ||
patch -p1 < ../patch/0001-add-support-for-BCM54616-phy-for-intel-igb-driver.patch | ||
|
||
# Build the package | ||
pushd src | ||
export BUILD_KERNEL=3.16.0-4-amd64 | ||
make | ||
popd | ||
|
||
popd | ||
mv ./igb-$(IGB_DRIVER_VERSION)/src/$* $(DEST)/ |
37 changes: 37 additions & 0 deletions
37
src/igb/patch/0001-add-support-for-BCM54616-phy-for-intel-igb-driver.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
From 548db654a498a017ce121292f12820176544e6ed Mon Sep 17 00:00:00 2001 | ||
From: Guohan Lu <[email protected]> | ||
Date: Tue, 27 Dec 2016 23:21:22 +0000 | ||
Subject: [PATCH] add support for BCM54616 phy for intel igb driver | ||
|
||
--- | ||
src/e1000_82575.c | 1 + | ||
src/e1000_defines.h | 1 + | ||
2 files changed, 2 insertions(+) | ||
|
||
diff --git a/src/e1000_82575.c b/src/e1000_82575.c | ||
index b4b973e..248c670 100644 | ||
--- a/src/e1000_82575.c | ||
+++ b/src/e1000_82575.c | ||
@@ -223,6 +223,7 @@ static s32 e1000_init_phy_params_82575(struct e1000_hw *hw) | ||
case M88E1112_E_PHY_ID: | ||
case M88E1340M_E_PHY_ID: | ||
case M88E1111_I_PHY_ID: | ||
+ case BCM54616_E_PHY_ID: | ||
phy->type = e1000_phy_m88; | ||
phy->ops.check_polarity = e1000_check_polarity_m88; | ||
phy->ops.get_info = e1000_get_phy_info_m88; | ||
diff --git a/src/e1000_defines.h b/src/e1000_defines.h | ||
index 6de3988..d5da148 100644 | ||
--- a/src/e1000_defines.h | ||
+++ b/src/e1000_defines.h | ||
@@ -1185,6 +1185,7 @@ | ||
#define I210_I_PHY_ID 0x01410C00 | ||
#define IGP04E1000_E_PHY_ID 0x02A80391 | ||
#define M88_VENDOR 0x0141 | ||
+#define BCM54616_E_PHY_ID 0x03625D10 | ||
|
||
/* M88E1000 Specific Registers */ | ||
#define M88E1000_PHY_SPEC_CTRL 0x10 /* PHY Specific Control Reg */ | ||
-- | ||
1.9.1 | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use $KVERSION? #Resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BUILD_KERNEL is used by igb Makefile, will not change.