Page 1 of 1

Is there a way to avoid TBS driver breaking with each kernel

PostPosted: Tue Mar 03, 2015 12:22 am
by andrewj720
Every time the Linux kernel updates I need to rebuild the TBS driver for it to work.

Is there a way to automate this?

Re: Is there a way to avoid TBS driver breaking with each ke

PostPosted: Tue Mar 03, 2015 7:50 pm
by andrewj720
I've not had a reply and can't find any other answers elsewhere, so I guess the answer is "no".

In that case I'm going to hold kernel updates i.e. stick with same kernel for six months or so and only update manually, and rebuild TBS drivers at that point.

Re: Is there a way to avoid TBS driver breaking with each ke

PostPosted: Mon May 11, 2015 5:10 pm
by diyhouse
Hi Andrew,.. know the feeling... I to have been looking into this problem/feature.... and so far I have created an automated script that build the drivers automatiaclly.

My script as follows

#!/bin/sh

LOG_FILE='/var/log/mythtv2/TBSUpDate.log' #log file

cd ~
pwd

echo "At home Directory, moving to TBS drivers"
echo "At home Directory, moving to TBS drivers" >> $LOG_FILE

sudo rm -r -f /lib/modules/$(uname -r)/kernel/drivers/media
cd ~/TBS*/linux-tbs-drivers

pwd
pwd >> $LOG_FILE

find -type d -exec chmod 755 \{\} \;
sleep 1
find -type f -exec chmod 644 \{\} \;
sleep 1
find -name '*.sh' -exec chmod 755 \{\} \;
sleep 1
find -name '*.pl' -exec chmod 755 \{\} \;
sleep 1
echo "chmod's done" >> $LOG_FILE
#

make clean
sleep 2
make distclean
sleep 2
./v4l/tbs-x86_64.sh
sleep 2
make -j5
sleep 2
sudo make install
sleep 2
sudo modprobe -v tbs62x0fe
sleep 1
echo Install Complete
echo Install Complete >> $LOG_FILE
echo "Finished TBS Updates @`date`\n" >> $LOG_FILE


Note,.. script assumes latest TBS drivers located in $HOME/TBS-Drivers150403 something type directory.... and of course only ONE TBS-... type folder

Have given some thought to developing this script a little further so that it is run each time the kernel is changed,.. followed by a reboot,.. but haven't actually done anything as yet as trying to figure out how to run it as USER,.. and sudo as required....

Regards...

Re: Is there a way to avoid TBS driver breaking with each ke

PostPosted: Mon Aug 27, 2018 3:34 pm
by deadite66
i'm using xubuntu 18.04 LTS

personally i've put my kernel and kernel source on 'apt-mark hold' and using 'Canonical Livepatch' for security fixes until it's convenient to update the kernel.

having a low powered htpc i've been compiling the media tree in a virtual machine running the same ubuntu version then coping it over and installing to the htpc.
much quicker compiling on a high spec desktop machine.