Compiling DVB Runer mod
Greetings all
meant tuner mod in title
I am trying to compile a module for a usb tv tuner I got. It is however giving me troubles. The module is written for Ubuntu 20.04.1 with a dependency on kernel 5.4.0. This is the newest version of the software. I am running Ubuntu 22.04.1 LTS with kernel 5.15.0-52-generic. When I follow the directions in the enclosed pdf I get this result:
make release
make -C /home/enesha/media_build_u20.04.1_ker5.4.0_lib_20210309/media_build_u20.04.1_ker5.4.0_lib/v4l release
make[1]: Entering directory '/home/enesha/media_build_u20.04.1_ker5.4.0_lib_20210309/media_build_u20.04.1_ker5.4.0_lib/v4l'
No version yet, using 5.15.0-52-generic
make[1]: Leaving directory '/home/enesha/media_build_u20.04.1_ker5.4.0_lib_20210309/media_build_u20.04.1_ker5.4.0_lib/v4l'
Which seems to have no troubles. Then I am advised to:
make
make -C /home/enesha/media_build_u20.04.1_ker5.4.0_lib/v4l
make[1]: Entering directory '/home/enesha/media_build_u20.04.1_ker5.4.0_lib/v4l'
Updating/Creating .config
make[2]: Entering directory '/home/enesha/media_build_u20.04.1_ker5.4.0_lib/linux'
/bin/sh: 1: ./patches_for_kernel.pl: Permission denied
Version 5.15.0-52-generic not supported
/bin/sh: 7: exit: Illegal number: -1
make[2]: *** [Makefile:132: apply_patches] Error 2
make[2]: Leaving directory '/home/enesha/media_build_u20.04.1_ker5.4.0_lib/linux'
make[1]: *** No rule to make target 'Kconfig', needed by '.myconfig'. Stop.
make[1]: Leaving directory '/home/enesha/media_build_u20.04.1_ker5.4.0_lib/v4l'
make: *** [Makefile:26: all] Error 2
It says my kernel is not supported and several errors about packages etc.
I do not have the headers for 5.4.0 to build against, and am unable to manage to get the headers installed
Am I just SOL for this and I need a new tuner or is there a way to bend this driver to my will? Surely if it'll build against the old kernel we can make it use the newer one, right?
EDIT = Ive been trying to look at the source files and I was checking out Makefile and I find this:
SRCDIR ?= /lib/modules/$(KERNELRELEASE)/source
I see that $(KERNELRELEASE) variable a lot. I can't seem to locate where that var gets set. I'm assuming maybe if I find it Ican change to the current kernel and it would compile against that?
Thanks in advance
Last edited by Enesha; 10-31-2022 at 10:50 PM.
Reason: adding more info
|