tn40xx-driver icon indicating copy to clipboard operation
tn40xx-driver copied to clipboard

Unable to install with Kernel 5.18.0-0.deb11.4

Open worksasintended opened this issue 2 years ago • 3 comments


Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
make -j40 KERNELRELEASE=5.18.0-0.deb11.4-amd64 -C /lib/modules/5.18.0-0.deb11.4-amd64/build M=/var/lib/dkms/tn40xx/004/build...(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.18.0-0.deb11.4-amd64 (x86_64)
Consult /var/lib/dkms/tn40xx/004/build/make.log for more information.```

[make.log](https://github.com/acooks/tn40xx-driver/files/9530564/make.log)

worksasintended avatar Sep 08 '22 20:09 worksasintended

https://github.com/worksasintended/tn40xx-driver this one works. Thanks to @cahz, you did 99.9% of the work. The commit only had a minor issue forgetting the variable names in the function definition

worksasintended avatar Sep 08 '22 21:09 worksasintended

Ah sorry and thanks for pointing it out. I apparently mixed up my patch management (I have a private fork for internal use) and based my public commit on skwerlman's commit, which fixed another issue.

cahz avatar Sep 09 '22 04:09 cahz

Hi @worksasintended ,

Checking in if this issue got resolved? I am facing a similar issue here https://github.com/acooks/tn40xx-driver/issues/53

devadattas avatar Sep 10 '22 03:09 devadattas

I can't install the drivers on my proxmox v7.4.3: Hardware: CPU: i5 4690k PCI LAN Card: Delock 10gbit RJ45 (recognised as TN9510 10Gbase) Motherboard: Asus H81I-Plus

git clone -b release/tn40xx-004 https://github.com/acooks/tn40xx-driver.git /usr/src/tn40xx-004
dkms add -m tn40xx -v 004
dkms install -m tn40xx -v 004

This is the error i get:

Error! Bad return status for module build on kernel: 5.15.107-2-pve (x86_64)
Consult /var/lib/dkms/tn40xx/004/build/make.log for more information.

I already tried to clone the forks of the original repository like this:

git clone -b release/tn40xx-004 https://github.com/skwerlman/tn40xx-driver.git /usr/src/tn40xx-004-skwerlman
dkms add -m tn40xx -v 004-skwerlman
dkms install -m tn40xx -v 004-skwerlman

Also tried this repo: https://github.com/worksasintended/tn40xx-driver Still getting the same error. I think my Proxmox just tries to install the original repo. Is some of my commands wrong?

This is the logfile: make: Entering directory '/usr/src/linux-headers-5.15.107-2-pve' CC [M] /var/lib/dkms/tn40xx/004/build/tn40.o CC [M] /var/lib/dkms/tn40xx/004/build/CX4.o CC [M] /var/lib/dkms/tn40xx/004/build/CX4_Linux.o CC [M] /var/lib/dkms/tn40xx/004/build/QT2025_phy.o /var/lib/dkms/tn40xx/004/build/tn40.c:3877:11: warning: ‘struct kernel_ethtool_ringparam’ declared inside parameter list will not be visible outside of this definition or declaration 3877 | struct kernel_ethtool_ringparam *kernel_ering, | ^~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/dkms/tn40xx/004/build/tn40.c:3898:11: warning: ‘struct kernel_ethtool_ringparam’ declared inside parameter list will not be visible outside of this definition or declaration 3898 | struct kernel_ethtool_ringparam kernel_ering, | ^~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/dkms/tn40xx/004/build/tn40.c: In function ‘bdx_ethtool_ops’: /var/lib/dkms/tn40xx/004/build/tn40.c:4113:20: error: initialization of ‘void ()(struct net_device *, struct ethtool_ringparam )’ from incompatible pointer type ‘void ()(struct net_device *, struct ethtool_ringparam *, struct kernel_ethtool_ringparam *, struct netlink_ext_ack )’ [-Werror=incompatible-pointer-types] 4113 | .get_ringparam = bdx_get_ringparam, | ^~~~~~~~~~~~~~~~~ /var/lib/dkms/tn40xx/004/build/tn40.c:4113:20: note: (near initialization for ‘bdx_ethtool_ops.get_ringparam’) /var/lib/dkms/tn40xx/004/build/tn40.c:4114:20: error: initialization of ‘int ()(struct net_device *, struct ethtool_ringparam )’ from incompatible pointer type ‘int ()(struct net_device *, struct ethtool_ringparam *, struct kernel_ethtool_ringparam *, struct netlink_ext_ack *)’ [-Werror=incompatible-pointer-types] 4114 | .set_ringparam = bdx_set_ringparam, | ^~~~~~~~~~~~~~~~~ /var/lib/dkms/tn40xx/004/build/tn40.c:4114:20: note: (near initialization for ‘bdx_ethtool_ops.set_ringparam’) CC [M] /var/lib/dkms/tn40xx/004/build/QT2025_phy_Linux.o CC [M] /var/lib/dkms/tn40xx/004/build/TLK10232_phy.o CC [M] /var/lib/dkms/tn40xx/004/build/TLK10232_phy_Linux.o CC [M] /var/lib/dkms/tn40xx/004/build/AQR105_phy.o cc1: some warnings being treated as errors make[1]: *** [scripts/Makefile.build:297: /var/lib/dkms/tn40xx/004/build/tn40.o] Error 1 make[1]: *** Waiting for unfinished jobs.... make: *** [Makefile:1909: /var/lib/dkms/tn40xx/004/build] Error 2 make: Leaving directory '/usr/src/linux-headers-5.15.107-2-pve'

oktay89 avatar May 19 '23 08:05 oktay89

fixed in release/tn40xx-006

acooks avatar Dec 17 '23 05:12 acooks