• Compiling TBSDTV drivers

    From pinnerite@pinnerite@gmail.com to alt.os.linux.mint,alt.os.linux.ubuntu on Mon Sep 22 18:28:02 2025
    From Newsgroup: alt.os.linux.ubuntu

    It happens from time to time.

    The upgrade to kernel 6.8.x has caused "make" to crash.

    That knowall ChatGPT drove me round the bend today before giving up.

    Has anyone found a solution?

    TIA
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Mike Easter@MikeE@ster.invalid to alt.os.linux.mint,alt.os.linux.ubuntu on Mon Sep 22 11:08:06 2025
    From Newsgroup: alt.os.linux.ubuntu

    pinnerite wrote:
    The upgrade to kernel 6.8.x has caused "make" to crash.

    I think you should be specific and describe the sequence and the result,
    as opposed to making a 'conclusion' which is likely to be errant.

    LM has been kernel 6.8.0 since LM22 released '24 Aug. Linus released it Mar.

    Are you talking about a build failing or halting or stopping and
    reporting an error.
    --
    Mike Easter
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From pinnerite@pinnerite@gmail.com to alt.os.linux.mint,alt.os.linux.ubuntu on Mon Sep 22 22:08:36 2025
    From Newsgroup: alt.os.linux.ubuntu

    On Mon, 22 Sep 2025 11:08:06 -0700
    Mike Easter <MikeE@ster.invalid> wrote:

    pinnerite wrote:
    The upgrade to kernel 6.8.x has caused "make" to crash.

    I think you should be specific and describe the sequence and the result,
    as opposed to making a 'conclusion' which is likely to be errant.

    LM has been kernel 6.8.0 since LM22 released '24 Aug. Linus released it Mar.

    Are you talking about a build failing or halting or stopping and
    reporting an error.

    --
    Mike Easter

    I have been compiling drivers for the TBS hardware for over ten years.
    For the last 6 or seven I have used their open source package.

    In March I had trouble compiling it against kernel 6.8.0-52 I saw
    from an email to TBS support. Their reply wasn't helpful but I found a reply from another user describing some edits. I must have fixed it but every other kernel seems to throw up new features.

    I fully expected to have no trouble with kernel 6.8.0-83 but I have.

    The devices I am compiling for are getting
    on a bit so TBS staff may be reluctant to assist, although most fixes
    have hitherto worked across the board.

    I had hoped for a response from a fellow sufferer. :)

    Regards, Alan
    --
    Linux Mint 22.1 kernel version 6.8.0-79-generic Cinnamon 6.4.8
    AMD Ryzen 7 7700, Radeon RX 6600, 32GB DDR5, 2TB SSD, 2TB Barracuda
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Paul@nospam@needed.invalid to alt.os.linux.mint,alt.os.linux.ubuntu on Mon Sep 22 17:15:59 2025
    From Newsgroup: alt.os.linux.ubuntu

    On Mon, 9/22/2025 2:08 PM, Mike Easter wrote:
    pinnerite wrote:
    The upgrade to kernel 6.8.x has caused "make" to crash.

    I think you should be specific and describe the sequence and the result, as opposed to making a 'conclusion' which is likely to be errant.

    LM has been kernel 6.8.0 since LM22 released '24 Aug. Linus released it Mar.

    Are you talking about a build failing or halting or stopping and reporting an error.


    This could be a DKMS, but he needs to carefully read the output on
    the screen to be sure. The other kind of make, is a lot more involved,
    involves Linux headers and so on.

    https://en.wikipedia.org/wiki/Dynamic_Kernel_Module_Support

    But someone here seems to be building the drivers and installing
    discretely (as a per-kernel-version enterprise).

    "TBS6281 linux driver install"

    https://forum.mythtv.org/viewtopic.php?t=5069

    Alan has a history of having trouble with this driver thing,
    but I can't remember all the details.

    Paul
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From pinnerite@pinnerite@gmail.com to alt.os.linux.mint,alt.os.linux.ubuntu on Tue Sep 23 20:57:06 2025
    From Newsgroup: alt.os.linux.ubuntu

    On Mon, 22 Sep 2025 17:15:59 -0400
    Paul <nospam@needed.invalid> wrote:

    On Mon, 9/22/2025 2:08 PM, Mike Easter wrote:
    pinnerite wrote:
    The upgrade to kernel 6.8.x has caused "make" to crash.

    I think you should be specific and describe the sequence and the result, as opposed to making a 'conclusion' which is likely to be errant.

    LM has been kernel 6.8.0 since LM22 released '24 Aug. Linus released it Mar.

    Are you talking about a build failing or halting or stopping and reporting an error.


    This could be a DKMS, but he needs to carefully read the output on
    the screen to be sure. The other kind of make, is a lot more involved, involves Linux headers and so on.

    https://en.wikipedia.org/wiki/Dynamic_Kernel_Module_Support

    But someone here seems to be building the drivers and installing
    discretely (as a per-kernel-version enterprise).

    "TBS6281 linux driver install"

    https://forum.mythtv.org/viewtopic.php?t=5069

    Alan has a history of having trouble with this driver thing,
    but I can't remember all the details.

    Paul

    From:
    https://forum.mythtv.org/viewtopic.php?t=5069
    I get something like "site temporarily unavailable".

    As for a history of having trouble. You are correct.

    So does everyone else that has to rebuild the drivers every time a new
    kernel is released that is incompatible with the build scripts.

    So far TurboSoft have written to me with advice that hasn't worked.

    I installed yet another kernel today (6.0.8-84-generic) and ran the
    process again but without success. It built fine under Mint 19.3 (5.15
    series kernels) but not now on Mint 22.

    The problems I had in March were probably on my last main machine that
    died completely. I don't know which version of Mint it had been running.

    The machine I am testing on now has been completely rebuilt following a catestrophic disaster in May.

    The HTPC's hardware is unchanged and its hard drive showed no faults,
    but it gradually declined and refused to boot.

    I backed off important files and made a clean installation.
    By mistake I put 19.3 on it.

    That was fine except that the version of MythTV I installed on it
    (from its repo) was version 32, whereas the remote machines needing
    access its database had Mint 22.1 with MythTV V.34.

    So I made a fresh reinstallation of Mint 22.1 on it, leading to this
    impass.

    I am confident that TurboSoft will come up with a solution...
    eventually.

    Alan
    --
    Linux Mint 22.1 kernel version 6.8.0-79-generic Cinnamon 6.4.8
    AMD Ryzen 7 7700, Radeon RX 6600, 32GB DDR5, 2TB SSD, 2TB Barracuda
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Mike Easter@MikeE@ster.invalid to alt.os.linux.mint,alt.os.linux.ubuntu on Tue Sep 23 16:31:19 2025
    From Newsgroup: alt.os.linux.ubuntu

    I'm trying to learn something about this. I read at Myth TV:

    We like to think of MythTV as the ultimate Digital Video Recorder and home media center hub.

    MythTV was initially written to run only on the Linux operating system,

    The TBS 6281 is a dual-tuner DVB-T2/T/C PCIe TV tuner card, ... it can be used with MythTV to watch and record TV

    Keep your drivers up-to-date by downloading the latest versions from the TBS Technologies website

    At that site, I found some PCIe cards w/ the string TBS 6281 in their designation:

    TBS6281se V2 DVB-T2/C2/T/C(J.83A/B/C)/ISDB-T/C /ATSC1.0 Dual TV Tuner Card

    TBS6281 & TBS6281SE

    Instructions at https://github.com/tbsdtv/linux_media/wiki

    The upstream LinuxTV source code does not contain all the TBS drivers. Download the source code from TBS:

    git clone https://github.com/tbsdtv/media_build.git
    git clone --depth=1 https://github.com/tbsdtv/linux_media.git -b latest ./media

    The files and dir/s there range from 14 y ago to 2 mo ago.
    --
    Mike Easter
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Mike Easter@MikeE@ster.invalid to alt.os.linux.mint,alt.os.linux.ubuntu on Tue Sep 23 16:44:44 2025
    From Newsgroup: alt.os.linux.ubuntu

    Mike Easter wrote:
    I'm trying to learn something about this. I read at Myth TV:

    The other thing I'm learning in this regard: MythTV forum:

    I use the drivers from https://github.com/tbsdtv/media_build it
    fairly straight forward to set up and use but it is a pain to have
    to manually update the drivers after each kernel update

    And I'm learning about DKMS:
    Dynamic Kernel Module Support (DKMS) is a program/framework that
    enables generating Linux kernel modules whose sources generally
    reside outside the kernel source tree. The concept is to have DKMS
    modules automatically rebuilt when a new kernel is installed.

    An essential feature of DKMS is that it automatically recompiles all
    DKMS modules if a new kernel version is installed. This allows
    drivers and devices outside of the mainline kernel to continue
    working after a Linux kernel upgrade.

    Well; that would be cool; like *magic*.
    --
    Mike Easter
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Anssi Saari@anssi.saari@usenet.mail.kapsi.fi to alt.os.linux.mint,alt.os.linux.ubuntu on Wed Sep 24 12:15:55 2025
    From Newsgroup: alt.os.linux.ubuntu

    Mike Easter <MikeE@ster.invalid> writes:

    Well; that would be cool; like *magic*.

    Sure, DKMS is great, especially when someone else sets it up. I use zfs
    and the proprietary NVidia drivers on some Debian machines and DKMS
    "just works". Compilations take some time, zfs especially on my file
    servers since they don't have much CPU power but it gets done.
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Paul@nospam@needed.invalid to alt.os.linux.mint,alt.os.linux.ubuntu on Sat Sep 27 00:29:46 2025
    From Newsgroup: alt.os.linux.ubuntu

    On Mon, 9/22/2025 1:28 PM, pinnerite wrote:
    It happens from time to time.

    The upgrade to kernel 6.8.x has caused "make" to crash.

    That knowall ChatGPT drove me round the bend today before giving up.

    Has anyone found a solution?

    TIA


    We had a discussion in 2020, about downloading a file for this.

    <rp3k6b$b8t$1@dont-email.me> <=== unavailable on groups.google.com

    Newsgroups: alt.os.linux.mint
    Subject: Re: Can wget be used wit only a partial filename?

    *******

    I'm doing this in a freshly updated LM222 VM.

    https://www.tbsdtv.com/download/index.html?path=6&id=27

    # Second one down

    TBS Open Source Linux Driver Offline Package
    TBS Open Source Linux Driver Offline Package V20250428, support kernel from 4.19 to 6.12

    https://www.tbsdtv.com/download/document/linux/media_build-2025-04-28.tar.bz2

    In the "build" file, a minor annoyance is the "hints" are available
    for Ubuntu, but not for Linux Mint. It uses "lsb_release -d" to
    automatically generate information about the distro being used
    as the build host.

    File: "build"

    # By default, it will use lsb_release function. If not available, it will
    # fail back to reading the known different places where the distro name
    # is stored
    # Comment Paul# Description: Ubuntu 24.04.2 LTS <=== what Ubuntu returns for this call
    # $system_release = qx(lsb_release -d) if which("lsb_release"); <=== comment out original line of code
    $system_release = qx(echo Description: Ubuntu 24.04.2 LTS); <=== Replace with a bodge, indicating Mint is Ubuntu
    $system_release =~ s/Description:\s*// if ($system_release);
    $system_release = catcheck("/etc/system-release") if !$system_release; $system_release = catcheck("/etc/redhat-release") if !$system_release; $system_release = catcheck("/etc/lsb-release") if !$system_release; $system_release = catcheck("/etc/gentoo-release") if !$system_release; $system_release = catcheck("/etc/issue") if !$system_release;
    $system_release =~ s/\s+$//;

    The second problem is, there is one compile time issue. In the backports.txt file, you can comment out the "ccs patch" so the kernel and the source
    are a better match. Some day, you will have to uncomment this again.

    File: backports.txt <=== This is a list of patches to apply to the release source

    #################################################
    # Backport patches needed for each kernel version #################################################

    6.9.1023]
    add v6.9_i2c_mux.patch
    add v6.9_i2c_mux_tbs.patch
    add v6.9_assign_str.patch

    [6.8.1023]
    #add v6.8-ccs.patch # commented out for "pm_runtime_get_if_active(&client->dev, true)"
    add v6.8-spi.patch
    add v6.8_remove.patch

    *******

    (Do a "make clean" while in the folder, before doing ./build again.
    That's so the backports file will get reused eventually.)

    That seemed to at least compile, but I cannot vouch for any other steps.

    It complains about no vmlinux.

    I see a file in /boot/vmlinux (15018376 Sep 5 07:38 vmlinuz-6.8.0-84-generic)

    I don't know how the build script indicates that is the one to use.
    Maybe something is looking for /vmlinux, in which case you could try
    a symlink or something from /boot/vmlinux to /vmlinux so it can find it.

    I also have one vmlinux from a kernel build. You can enable the source repository in Mint
    and download the kernel source and do a build without using menuconfig and changing anything.
    But building this tree is pointless for this project. I only did it to generate reference materials if needed.

    $ ls -al /home/bullwinkle/linux-6.8.0/debian/build/build-generic/vmlinux -rwxrwxr-x 1 bullwinkle bullwinkle 414,662,648 Sep 26 03:29 /home/bullwinkle/linux-6.8.0/debian/build/build-generic/vmlinux

    ( https://forums.linuxmint.com/viewtopic.php?t=450502 # Compiling a kernel on Linux Mint )

    *******

    Refs: (collecting these as I back out and put away...)

    https://github.com/tbsdtv/linux_media/issues/370

    https://github.com/tbsdtv/media_build ( also https://github.com/ljalves/media_build for readme )

    Debian -- Details of package libproc-processtable-perl in sid packages.debian.org rC| sid rC| libproc-processtable-perl <=== can "sudo apt install" this

    Paul
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From pinnerite@pinnerite@gmail.com to alt.os.linux.mint,alt.os.linux.ubuntu on Sat Sep 27 13:05:52 2025
    From Newsgroup: alt.os.linux.ubuntu

    On Sat, 27 Sep 2025 00:29:46 -0400
    Paul <nospam@needed.invalid> wrote:

    On Mon, 9/22/2025 1:28 PM, pinnerite wrote:
    It happens from time to time.

    The upgrade to kernel 6.8.x has caused "make" to crash.

    That knowall ChatGPT drove me round the bend today before giving up.

    Has anyone found a solution?

    TIA


    We had a discussion in 2020, about downloading a file for this.

    <rp3k6b$b8t$1@dont-email.me> <=== unavailable on groups.google.com

    Newsgroups: alt.os.linux.mint
    Subject: Re: Can wget be used wit only a partial filename?

    *******

    I'm doing this in a freshly updated LM222 VM.

    https://www.tbsdtv.com/download/index.html?path=6&id=27

    # Second one down

    TBS Open Source Linux Driver Offline Package
    TBS Open Source Linux Driver Offline Package V20250428, support kernel from 4.19 to 6.12

    https://www.tbsdtv.com/download/document/linux/media_build-2025-04-28.tar.bz2

    In the "build" file, a minor annoyance is the "hints" are available
    for Ubuntu, but not for Linux Mint. It uses "lsb_release -d" to
    automatically generate information about the distro being used
    as the build host.

    File: "build"

    # By default, it will use lsb_release function. If not available, it will
    # fail back to reading the known different places where the distro name
    # is stored
    # Comment Paul# Description: Ubuntu 24.04.2 LTS <=== what Ubuntu returns for this call
    # $system_release = qx(lsb_release -d) if which("lsb_release"); <=== comment out original line of code
    $system_release = qx(echo Description: Ubuntu 24.04.2 LTS); <=== Replace with a bodge, indicating Mint is Ubuntu
    $system_release =~ s/Description:\s*// if ($system_release);
    $system_release = catcheck("/etc/system-release") if !$system_release; $system_release = catcheck("/etc/redhat-release") if !$system_release; $system_release = catcheck("/etc/lsb-release") if !$system_release; $system_release = catcheck("/etc/gentoo-release") if !$system_release; $system_release = catcheck("/etc/issue") if !$system_release;
    $system_release =~ s/\s+$//;

    The second problem is, there is one compile time issue. In the backports.txt file, you can comment out the "ccs patch" so the kernel and the source
    are a better match. Some day, you will have to uncomment this again.

    File: backports.txt <=== This is a list of patches to apply to the release source

    #################################################
    # Backport patches needed for each kernel version #################################################

    6.9.1023]
    add v6.9_i2c_mux.patch
    add v6.9_i2c_mux_tbs.patch
    add v6.9_assign_str.patch

    [6.8.1023]
    #add v6.8-ccs.patch # commented out for "pm_runtime_get_if_active(&client->dev, true)"
    add v6.8-spi.patch
    add v6.8_remove.patch

    *******

    (Do a "make clean" while in the folder, before doing ./build again.
    That's so the backports file will get reused eventually.)

    That seemed to at least compile, but I cannot vouch for any other steps.

    It complains about no vmlinux.

    I see a file in /boot/vmlinux (15018376 Sep 5 07:38 vmlinuz-6.8.0-84-generic)

    I don't know how the build script indicates that is the one to use.
    Maybe something is looking for /vmlinux, in which case you could try
    a symlink or something from /boot/vmlinux to /vmlinux so it can find it.

    I also have one vmlinux from a kernel build. You can enable the source repository in Mint
    and download the kernel source and do a build without using menuconfig and changing anything.
    But building this tree is pointless for this project. I only did it to generate
    reference materials if needed.

    $ ls -al /home/bullwinkle/linux-6.8.0/debian/build/build-generic/vmlinux -rwxrwxr-x 1 bullwinkle bullwinkle 414,662,648 Sep 26 03:29 /home/bullwinkle/linux-6.8.0/debian/build/build-generic/vmlinux

    ( https://forums.linuxmint.com/viewtopic.php?t=450502 # Compiling a kernel on Linux Mint )

    *******

    Refs: (collecting these as I back out and put away...)

    https://github.com/tbsdtv/linux_media/issues/370

    https://github.com/tbsdtv/media_build ( also https://github.com/ljalves/media_build for readme )

    Debian -- Details of package libproc-processtable-perl in sid packages.debian.org rC| sid rC| libproc-processtable-perl <=== can "sudo apt install" this

    Paul


    I have had the backports.txt patch,

    #add v6.8-ccs.patch

    commented out for days. I have to do it every time I run one of their
    build functions as it downloads everything anew.

    Alan
    --
    Linux Mint 22.1 kernel version 6.8.0-84-generic Cinnamon 6.4.8
    AMD Ryzen 7 7700, Radeon RX 6600, 32GB DDR5, 2TB SSD, 2TB Barracuda
    --- Synchronet 3.21a-Linux NewsLink 1.2