acooks / tn40xx-driver

Linux driver for tn40xx from Tehuti Networks
71 stars 50 forks source link

Latest RHEL 9 5.14 kernels needs fixes for 5.15 and 6.1+ from other forks #59

Closed JustaPeriod closed 8 months ago

JustaPeriod commented 1 year ago

I'm recalling this from memory because I forgot to write it down a few weeks ago, but I hope this information helps someone.

When I went to install this I was getting the errors that were actually fixed for Linux 5.15+ and Linux 6.1+ in other forks of this driver. If you're on the latest RHEL 9-based distros using linux kernel 5.14, you may need to edit tn40.c and tn40.h to change or remove the Linux kernel version requirements:

https://github.com/bufanda/tn40xx-driver/blob/e0467efac96be3730d95bcdb79b90c6431d51edc/tn40.c#L633 https://github.com/bufanda/tn40xx-driver/blob/e0467efac96be3730d95bcdb79b90c6431d51edc/tn40.c#L3786 https://github.com/bufanda/tn40xx-driver/blob/e0467efac96be3730d95bcdb79b90c6431d51edc/tn40.c#L3786 https://github.com/bufanda/tn40xx-driver/blob/e0467efac96be3730d95bcdb79b90c6431d51edc/tn40.h#L884

You should have a much easier time building on RHEL/Alma/Rocky 9 when you change these to 5.14. Hope this helps someone.

PS: If anyone has a shitty Edimax EN-9320TX-E like I do, you need MV88X3310.

curl -LO https://github.com/acooks/tn40xx-driver/files/2214805/x3310fw_0_3_3_0_9374.tar.gz

Use mvidtoh.sh on x3310fw_0_3_3_0_9374.hdr to make MV88X3310_phy.h. Add then add MV88X3310=YES AQ=YES to the end of the dkms.conf make command and you should be able to build the driver.