Hallo,
hier ist meine Doku fuer ein Debian 11. Probier mal:
Bash
#!/bin/sh
#
# Build Debian Buster modules for TechnoTrend DVB S2-6400
# Based on: https://www.vdr-portal.de/forum/index.php?thread/132415-tt-s2-6400-saa716x-kompilieren-unter-18-04/&pageNo=4
#
URL=https://github.com/s-moch/linux-saa716x/compare
BUILDDIR=~/build/linux-saa716x
KERNELVERSION=$(uname -r)
KMAJOR=$(uname -r | cut -d'.' -f1)
KMINOR=$(uname -r | cut -d'.' -f2)
DIFF=saa716x-$KMAJOR.$KMINOR.diff
apt install fakeroot build-essential devscripts libncurses5 libncurses5-dev bison flex libssl-dev wget linux-source-$KMAJOR.$KMINOR linux-head
ers-$KERNELVERSION
rm -rf $BUILDDIR
mkdir -p $BUILDDIR
cd $BUILDDIR
wget $URL/$DIFF
tar xJf /usr/src/linux-source-$KMAJOR.$KMINOR.tar.xz
cd linux-source-$KMAJOR.$KMINOR/
cp /boot/config-$KERNELVERSION .config
cp /usr/src/linux-headers-$KERNELVERSION/Module.symvers .
patch -p1 < ../$DIFF
printf "y\nm\nm\nm\nm\n" | make oldconfig
make KERNELVERSION=$KERNELVERSION -j6 modules_prepare
make KERNELVERSION=$KERNELVERSION -j6 M=drivers/media/pci/saa716x modules
mkdir -p /lib/modules/$KERNELVERSION/kernel/drivers/media/common/saa716x
cp -f drivers/media/pci/saa716x/*.ko /lib/modules/$KERNELVERSION/kernel/drivers/media/common/saa716x/
/sbin/depmod -a
Display More
Gruesse