Package Details: tn40xx 0.3.6.17-2

Git Clone URL: https://aur.archlinux.org/tn40xx.git (read-only, click to copy)
Package Base: tn40xx
Description: Tehuti Networks NIC driver for MV88X3110, MV88E2010, QT2025, TLK10232 and AQR105 10-GbE-NICs
Upstream URL: http://www.tehutinetworks.net/
Licenses: GPL2
Submitter: ido
Maintainer: None
Last Packager: form
Votes: 2
Popularity: 0.000000
First Submitted: 2015-06-21 04:08 (UTC)
Last Updated: 2018-11-13 11:40 (UTC)

Latest Comments

Firechris commented on 2021-08-30 13:26 (UTC)

I'm sorry. I also do not have hardware for this.

I tried to get a Thunderbolt device - Startech TB310G - to run. It has a Tehuti TN4010 chip, therefore I used this package.

But I did not succeed, so I returned it.

form commented on 2021-08-23 12:06 (UTC)

Go ahead and adopt this package. I do not have a machine with this card in it anymore.

Firechris commented on 2021-08-23 12:03 (UTC) (edited on 2021-08-23 12:09 (UTC) by Firechris)

This package does not work with a kernel version >= 5. Also I couldn't get the tar file but there is a github repo for the sources. So I tried to put that into a package:

PKGBUILD

# Author: Ido Rosen <ido@kernel.org>
# Contributor: Florian Knodt <arch@adlerweb.info>
# Maintainer: form

pkgname="tn40xx"
pkgdesc="Tehuti Networks NIC driver for MV88X3110, MV88E2010, QT2025, TLK10232 and AQR105 10-GbE-NICs"
pkgver="004"
pkgrel=2
arch=("x86_64")
url="http://www.tehutinetworks.net/"
license=("GPL2")
depends=("linux>=2.6.32")
makedepends=("linux-headers>=2.6.32" "git" "make")
source=("${pkgname}::git+https://github.com/acooks/tn40xx-driver.git#branch=linux-5.4" "tn40xx.install")
install=tn40xx.install
sha512sums=("SKIP" "c1608bc920f6c7b34bba0f283da819702e6118b21ed9edca21a1b83727da44930528e77e119b64165ed2bb2ba43ad6c06be04acf941ea805f2a4aafdbfef4ee0")

build() {
        cd "${pkgname}"
    make clean all
}

package() {
    # get latest installed kernel version. not the running one.
    _kernver="$(basename `ls -dlt /usr/lib/modules/[2-5]* | head -n 1 | cut -d "/" -f 2-`)"
    _driverpath="${pkgdir}/usr/lib/modules/${_kernver}/kernel/drivers/net/"
    _drivername="${_driverpath}${pkgname%}.ko"

    cd "${pkgname}"

    #Upstream does not supply a LICENSE file
    #install -dm755 "${pkgdir}/usr/share/licenses/${pkgname}"
    #install -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}"

    install -dm755 "${pkgdir}/usr/share/doc/${pkgname}"
    install -m644 Readme release_notes "${pkgdir}/usr/share/doc/${pkgname}"

    install -dm755 "${_driverpath}"
    install -m644 ${pkgname}.ko "${_driverpath}"
    strip "${_drivername}"
    xz "${_drivername}"

    install -dm755 "${pkgdir}/usr/lib/modules-load.d/"
    echo ${pkgname} > "${pkgdir}/usr/lib/modules-load.d/${pkgname}.conf"

    if [ -d "/etc/pm/config.d/" ]; then
        install -dm755 "${pkgdir}/etc/pm/config.d/"
        echo "SUSPEND_MODULES=${pkgname}" > "${pkgdir}/etc/pm/config.d/${pkgname}"
    fi
}

tn40xx.install

post_install() {
    # get latest installed kernel version. not the running one.
    _kernver="$(basename `ls -dlt /usr/lib/modules/[2-5]* | head -n 1 | cut -d '/' -f 2-`)"
    depmod ${_kernver}
}

post_upgrade() {
    post_install
}

post_remove() {
    post_install
}

b2ag commented on 2019-02-10 01:14 (UTC) (edited on 2019-02-10 01:26 (UTC) by b2ag)

Not sure if I want to take the job, but I stumbled upon your work and needed the following dirty hack to get the module loaded with Linux 4.20.

In PKGBUILD:

add to build() before make and after cd
    sed 's/^\(.*\.get_settings\)/\/\/\1/g' -i tn40.c
    sed 's/^\(.*\.set_settings\)/\/\/\1/g' -i tn40.c
comment out strip from package()

ido commented on 2016-03-02 22:35 (UTC)

Does anyone else want to adopt this package? I do not have a machine with this card in it anymore.