2022-10-26 02:51:08 +07:00
|
|
|
# Intel igc driver for Synology Kernel 4.4.180
|
2022-10-25 00:08:22 +07:00
|
|
|
|
2022-11-03 19:35:04 +07:00
|
|
|
> Backport from Linux Kernel v5.12, commit: https://github.com/torvalds/linux/commit/9f4ad9e425a1d3b6a34617b8ea226d56a119a717
|
|
|
|
|
|
|
|
## Prebuild module
|
|
|
|
|
|
|
|
https://github.com/fbelavenuto/arpl-modules
|
|
|
|
|
|
|
|
Eg: https://github.com/fbelavenuto/arpl-modules/blob/main/geminilake-4.4.180/igc.ko
|
2022-10-25 00:08:22 +07:00
|
|
|
|
|
|
|
## Build
|
|
|
|
|
|
|
|
### 1. Setup develop environment
|
|
|
|
|
2022-10-26 02:51:08 +07:00
|
|
|
#### Prepare Environment
|
|
|
|
|
|
|
|
Refer: https://help.synology.com/developer-guide/getting_started/prepare_environment.html
|
|
|
|
|
|
|
|
Assume `platform=geminilake`, `version=7.1`, working directory is `/synology-toolkit`
|
|
|
|
|
|
|
|
Now the build env is `/synology-toolkit/build_env/ds.geminilake-7.1`
|
|
|
|
|
|
|
|
#### Enter chrooot
|
|
|
|
|
2022-10-25 00:08:22 +07:00
|
|
|
```
|
|
|
|
sudo chroot /synology-toolkit/build_env/ds.geminilake-7.1
|
|
|
|
```
|
|
|
|
|
2022-10-26 02:51:08 +07:00
|
|
|
#### Clone source code
|
|
|
|
|
|
|
|
```
|
|
|
|
cd /usr/src/
|
|
|
|
git clone https://github.com/jim3ma/synology-igc.git
|
|
|
|
```
|
|
|
|
|
|
|
|
### 2. Build module
|
2022-10-25 00:08:22 +07:00
|
|
|
|
|
|
|
```shell
|
|
|
|
cd /usr/src/synology-igc/
|
|
|
|
make -C /usr/local/x86_64-pc-linux-gnu/x86_64-pc-linux-gnu/sys-root/usr/lib/modules/DSM-7.1/build M=$PWD modules
|
2022-10-26 02:51:08 +07:00
|
|
|
```
|
|
|
|
|
|
|
|
### 3. Load module
|
|
|
|
|
|
|
|
Copy `igc.ko` to target machine
|
|
|
|
|
|
|
|
#### Find i225/i226 pci device
|
|
|
|
|
|
|
|
```
|
|
|
|
03:00.0 Ethernet controller: Intel Corporation Ethernet Controller I225-V (rev 03)
|
|
|
|
```
|
|
|
|
|
|
|
|
```
|
2022-10-26 11:51:08 +07:00
|
|
|
insmod igc.ko debug=16 # enable debug log
|
2022-10-26 02:51:08 +07:00
|
|
|
echo igc > /sys/bus/pci/devices/0000:03:00.0/driver_override
|
|
|
|
echo 0000:03:00.0 > /sys/bus/pci/drivers_probe
|
|
|
|
ip link set up eth1 # in my machine, the nic name is eth1
|
2022-10-26 20:51:08 +07:00
|
|
|
```
|
|
|
|
|
|
|
|
## TODO
|
|
|
|
|
2022-10-27 00:13:01 +07:00
|
|
|
1. tc support
|
2022-11-03 19:35:04 +07:00
|
|
|
2. igc: Enable internal i225 PPS - https://github.com/torvalds/linux/commit/64433e5bf40abf893c7edbc60899bdcdd7c70b76
|
2022-10-26 20:51:08 +07:00
|
|
|
|
|
|
|
## History
|
|
|
|
|
2022-11-03 19:35:04 +07:00
|
|
|
### 1.2.1
|
|
|
|
|
2022-11-03 19:44:57 +07:00
|
|
|
_Date 2022.11.03_
|
|
|
|
|
2022-11-03 19:35:04 +07:00
|
|
|
* igc: Fix BUG: scheduling while atomic
|
2022-11-03 19:44:57 +07:00
|
|
|
* igc: Add new device ID I226_LMVP
|
|
|
|
* igc: Fix suspending when PTM is active
|
2022-11-03 19:35:04 +07:00
|
|
|
|
|
|
|
### 1.2.0
|
|
|
|
|
|
|
|
_Date 2022.10.27_
|
|
|
|
|
|
|
|
Backport fixes from upstream
|
|
|
|
|
|
|
|
* igc: Fix TX timestamp support for non-MSI-X platforms
|
|
|
|
* igc: Fix typo in i225 LTR functions
|
|
|
|
* igc: Update I226_K device ID
|
|
|
|
* igc: Reinstate IGC_REMOVED logic and implement it properly
|
|
|
|
* igc: Fix infinite loop in release_swfw_sync
|
|
|
|
* igc: Increase timeout value for Speed 100/1000/2500
|
|
|
|
* igc: Fix use-after-free error during reset
|
|
|
|
* igc: change default return of igc_read_phy_reg()
|
|
|
|
* igc: Fix an error handling path in 'igc_probe()'
|
|
|
|
|
|
|
|
### 1.1.0
|
|
|
|
|
|
|
|
_Date 2022.10.27_
|
|
|
|
|
|
|
|
* Support ethtool operations
|
|
|
|
|
|
|
|
### 1.0.0
|
|
|
|
|
|
|
|
_Date 2022.10.26_
|
|
|
|
|
|
|
|
* Backport from Linux Kernel v5.12, commit: 9f4ad9e425a1d3b6a34617b8ea226d56a119a717.
|