Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

On a clear disk you can seek forever. -- P. Denning


computers / alt.os.linux.mageia / Re: If you Run a TBS DVB-T2 TV card.

SubjectAuthor
* If you Run a TBS DVB-T2 TV card.pinnerite
+- Re: If you Run a TBS DVB-T2 TV card.David W. Hodgins
`- Re: If you Run a TBS DVB-T2 TV card.faeychild

1
If you Run a TBS DVB-T2 TV card.

<20230816185615.bb1f5b67b170c64a8c1bac00@gmail.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=5729&group=alt.os.linux.mageia#5729

  copy link   Newsgroups: alt.os.linux.mint.alt.os.linux.ubuntu alt.os.linux.mageia
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: pinnerite@gmail.com (pinnerite)
Newsgroups: alt.os.linux.mint.alt.os.linux.ubuntu,alt.os.linux.mageia
Subject: If you Run a TBS DVB-T2 TV card.
Date: Wed, 16 Aug 2023 18:56:15 +0100
Organization: A noiseless patient Spider
Lines: 183
Message-ID: <20230816185615.bb1f5b67b170c64a8c1bac00@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: dont-email.me; posting-host="8833c7e49541f65896dbfaab44f28bd4";
logging-data="3571011"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Tv4UbNf86X10XEftsbwWLlN7FEq+ej7E="
Cancel-Lock: sha1:Z/+8Np4n2AFyeuMqWuSrWSxBPdc=
X-Newsreader: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu)
 by: pinnerite - Wed, 16 Aug 2023 17:56 UTC

You will know that every time a new Kernel is installed, the old kernel
media modules must be destroyed while booted into the old kernel.
Then after rebooting into the new kernel, new modules must be compiled.
It is a pain in the proverbial a..e.

So I developed a script to automate the process. Read the instructions
at the top if you plan to use it. There is no guarantee that it is
perfect but I have tested it but on;ly on Mint 21.1

Here it is:

#!/bin/bash
# sname="Install Open Source TBS drivers (tbs_osrcupdate-07).sh"
# --------------------------------------------------------------------
# This script automates the process of installing dtivers for TBS TV cards
# such as TS-6280, TBS-6281 etc, particularly following a kernel update.
# It is a two-pass process. Start it while running the original kernel.
# Following a reboot into the new kernel, run it again.
# # Created by Alan Secker 2023, based on an open source script provided by
# TBS. It has only been tested in Linux Mint 21.1 but should run on any
# Linux system provided the kernel hearders or sources for the new kernel
# have been downloaded and installed.
# # No warranties are given. Run it at your own risk.
# =================================================
# Before running this script:
# # 1) Create a directory TBS-TV in your home directory
# 2) Move this script to ~/TBS-TV.
# 3) Make this script executable by running "chmod+x tbs_oscrupdate.sh"
# from a terminal prompt ($) without the quotes.
# 4) If not already installed, from a terminal, run sudo apt install git
#
#----------------------------------------------------------------------

mkdir -p /home/$USER/tmp
passflag=/home/$USER/tmp/tbs.txt

## function disp {
disp() {
echo "$1"
read -p " Press Enter to continue"
# read -rsn1
}

echo ""
echo "$sname"
echo ""

# If the passflag file exists, we have rebooted, if not continue with
# First Pass.

if ! [ -f "$passflag" ]; then

#
# First Pass
# ----------
echo " Ensure the running kernel is the OLD kernel"
echo " Here is alist of all the installed kernels"
echo
dpkg --list | grep linux-image
echo
echo " You must be running the old kernel."
echo " Compare with the running kernel."
echo
uname -mrs
echo
read -p " Press Enter to continue"
echo
echo "If it is not the old kernel, press R to reboot but remember"
echo "to hold down the shift key as the system comes up in order to"
echo "get into GRUB. Once there select the second option to arrive"
echo "at the list of kernels. Select the previous kernel"
echo " or ENTER to continue"
echo

read -r -n 1 nkey

# Note the ^^ case modification operator

if [ "${nkey^^}" = "R" ]; then
sudo /sbin/shutdown -r now
fi

# Create a flag file to confirm we are in the correct kernel.

echo " " > "$passflag"

echo
echo "OK it is the old kernel we are going to delete modules"
echo "from the old kernel"
echo

#"Check for /home/$USER/Programs/tbstv
#

if cd /opt
then
disp "About to delete /opt/media and /opt/media_build and contents"
sudo rm -Rf /opt/media
sudo rm -Rf /opt/media_build
echo
disp " About to delete old driver modules"
echo
sudo rm -rf /lib/modules/"$(uname -r)"/kernel/drivers/media
# else
fi

# Reboot into new kernel

echo
echo ""
disp " Reboot into new kernel prior to second pass"
echo
reboot
else
# Second Pass - after reboot
# --------------------------

disp "Delete passflag"

rm "$passflag"

cd /opt

disp "After deleting $passflag, download TBS open source driver"
# read -p "Press Space-Bar to continue"

disp "git clone https://github.com/tbsdtv/media_build.git"" rel="nofollow" target="_blank">https://github.com/tbsdtv/media_build.git"
sudo git clone https://github.com/tbsdtv/media_build.git
disp "git clone --depth=1 https://github.com/tbsdtv/linux_media.git -b latest ./media"
sudo git clone --depth=1 https://github.com/tbsdtv/linux_media.git -b latest ./media

disp "Now change to /opt/media_build"
echo

# cd media_build
cd media_build || { echo "media_build not found"; exit 1; }
echo

disp "Next run make dir DIR=../media"
echo

sudo make dir DIR=../media
disp "Next run make allyesconfig"
echo
sudo make allyesconfig
sudo sed -i -r 's/(^CONFIG.*_RC.*=)./\1n/g' v4l/.config
sudo sed -i -r 's/(^CONFIG.*_IR.*=)./\1n/g' v4l/.config

echo
disp "About to run make -j4"
echo

if ! sudo make -j4
then
echo
echo "make failed"
read -p " Press Enter to continue"
exit
else
disp "make succeeded"
echo
sudo make install
echo
disp "make install succeeded"
echo
disp "Download and install Firmware"
sudo wget http://www.tbsdtv.com/download/document/linux/tbs-tuner-firmwares_v1.0.tar.bz2
sudo tar jxvf tbs-tuner-firmwares_v1.0.tar.bz2 -C /lib/firmware/
fi

# reboot

fi

--
Linux Mint 21.1 kernel version 5.15.0-79-generic Cinnamon 5.6.8
AMD Phenom II x4 955 CPU 16Gb Dram 2TB Barracuda

Re: If you Run a TBS DVB-T2 TV card.

<op.19sbfkx2a3w0dxdave@hodgins.homeip.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=5731&group=alt.os.linux.mageia#5731

  copy link   Newsgroups: alt.os.linux.mint.alt.os.linux.ubuntu alt.os.linux.mageia
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dwhodgins@nomail.afraid.org (David W. Hodgins)
Newsgroups: alt.os.linux.mint.alt.os.linux.ubuntu,alt.os.linux.mageia
Subject: Re: If you Run a TBS DVB-T2 TV card.
Date: Wed, 16 Aug 2023 15:36:46 -0400
Organization: A noiseless patient Spider
Lines: 39
Message-ID: <op.19sbfkx2a3w0dxdave@hodgins.homeip.net>
References: <20230816185615.bb1f5b67b170c64a8c1bac00@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes
Content-Transfer-Encoding: 8bit
Injection-Info: dont-email.me; posting-host="d184645f9a821d1ce7129a5fdc2df4a4";
logging-data="3601067"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/5AKzw9E4O88hQBqum1RRxpqK8IKBWq6E="
User-Agent: Opera Mail/12.16 (Linux)
Cancel-Lock: sha1:o/Mwh/U11RnhqDapYu/4c9iEvGs=
 by: David W. Hodgins - Wed, 16 Aug 2023 19:36 UTC

On Wed, 16 Aug 2023 13:56:15 -0400, pinnerite <pinnerite@gmail.com> wrote:

> You will know that every time a new Kernel is installed, the old kernel
> media modules must be destroyed while booted into the old kernel.
> Then after rebooting into the new kernel, new modules must be compiled.
> It is a pain in the proverbial a..e.
>
> So I developed a script to automate the process. Read the instructions
> at the top if you plan to use it. There is no guarantee that it is
> perfect but I have tested it but on;ly on Mint 21.1
>
> Here it is:
<snip>
> if cd /opt
> then
> disp "About to delete /opt/media and /opt/media_build and contents"
> sudo rm -Rf /opt/media
> sudo rm -Rf /opt/media_build
> echo
> disp " About to delete old driver modules"
> echo
> sudo rm -rf /lib/modules/"$(uname -r)"/kernel/drivers/media

Make sure it only deletes the DVB modules, not everything in
/lib/modules/"$(uname -r)".

$ tree -ifa /lib/modules/"$(uname -r)"/kernel/drivers/media|wc -l
716

That's on a system without any DVB hardware or software.

I would recommend using a script that weekly or so checks for new source or
firmware.

For compiling kernel modules look into how the various dkms (Dynamic Kernel
Module Support) packages for that distro work. With dkms, multiple kernel
versions are supported.

Regards, Dave Hodgins

Re: If you Run a TBS DVB-T2 TV card.

<ubm5es$3u7lm$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=5732&group=alt.os.linux.mageia#5732

  copy link   Newsgroups: alt.os.linux.mint.alt.os.linux.ubuntu alt.os.linux.mageia
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: faeychild@nomail.afraid.org (faeychild)
Newsgroups: alt.os.linux.mint.alt.os.linux.ubuntu,alt.os.linux.mageia
Subject: Re: If you Run a TBS DVB-T2 TV card.
Date: Fri, 18 Aug 2023 08:03:05 +1000
Organization: A noiseless patient Spider
Lines: 22
Message-ID: <ubm5es$3u7lm$1@dont-email.me>
References: <20230816185615.bb1f5b67b170c64a8c1bac00@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 17 Aug 2023 22:03:09 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="2f529e830209906970b325e5ce3cb013";
logging-data="4136630"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+7g8CKbIDYxi8ti3iNOnp06kQ5Y4xYssA="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.12.0
Cancel-Lock: sha1:GNccWFoWeMyOZXWWiVYQS7PstSQ=
Content-Language: en-US
In-Reply-To: <20230816185615.bb1f5b67b170c64a8c1bac00@gmail.com>
 by: faeychild - Thu, 17 Aug 2023 22:03 UTC

On 17/8/23 03:56, pinnerite wrote:
> You will know that every time a new Kernel is installed, the old kernel
> media modules must be destroyed while booted into the old kernel.
> Then after rebooting into the new kernel, new modules must be compiled.
> It is a pain in the proverbial a..e.

I have the WinTV-quadHD from Hauppauge.
In the old days I used to have the dual tuner and reinstall was a bit of
a pain.
Then the drivers were incorporated into the kernel and saved my life.
I hope that they remain that way until I have gone

My lingering drama (because I always forget this) is to manually
install the firmware after a brief moment of despair when tuner is
recognized but fails to work.

--
Running KDE on x86_64 5.15.122-desktop-1.mga8
Mageia release 8

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor