Moderator Control Panel ]

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

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

Postby andrewj720 » Tue Mar 03, 2015 12:22 am

Every time the Linux kernel updates I need to rebuild the TBS driver for it to work.

Is there a way to automate this?
andrewj720
 
Posts: 4
Joined: Fri May 30, 2014 10:39 pm

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

Postby andrewj720 » Tue Mar 03, 2015 7:50 pm

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.
andrewj720
 
Posts: 4
Joined: Fri May 30, 2014 10:39 pm

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

Postby diyhouse » Mon May 11, 2015 5:10 pm

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...
diyhouse
 
Posts: 19
Joined: Mon Jan 20, 2014 8:37 pm

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

Postby deadite66 » Mon Aug 27, 2018 3:34 pm

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.
deadite66
 
Posts: 5
Joined: Sat Mar 31, 2018 6:29 pm


Return to Linux

Who is online

Users browsing this forum: No registered users and 0 guests