Moderator Control Panel ]

Problem compiling drivers for tbs 6902 on Debian stretch

It's important to keep your driver and software updated.

Problem compiling drivers for tbs 6902 on Debian stretch

Postby Boronsbruder » Sun Jul 28, 2019 8:59 pm

After the last kernel update 4.9.0-9-amd64 i tried to comile the drivers for my 6902.
MAKE stopped throwing out errors. So i switched back to Linux ZEROSERVER 4.9.0-8-amd64 #1 SMP Debian 4.9.144-3.1 (2019-02-19) x86_64 GNU/Linux
After rebooting my 6902 cards were correctly recognized by the tvheadend-server.

But now when i try to compile the drivers again i get the same errors as i got when trying to compile with the new kernel...

Code: Select All Code
root@ZEROSERVER:~/tbsdriver/tbs_git# git clone https://github.com/tbsdtv/media_build.git
Klone nach 'media_build' ...
remote: Enumerating objects: 195, done.
remote: Counting objects: 100% (195/195), done.
remote: Compressing objects: 100% (92/92), done.
remote: Total 5661 (delta 121), reused 158 (delta 103), pack-reused 5466
Empfange Objekte: 100% (5661/5661), 1.11 MiB | 209.00 KiB/s, Fertig.
Löse Unterschiede auf: 100% (4090/4090), Fertig.


Code: Select All Code
root@ZEROSERVER:~/tbsdriver/tbs_git# git clone --depth=1 https://github.com/tbsdtv/linux_media.git -b latest ./media
Klone nach './media' ...
remote: Enumerating objects: 68829, done.
remote: Counting objects: 100% (68829/68829), done.
remote: Compressing objects: 100% (64995/64995), done.
remote: Total 68829 (delta 5781), reused 14172 (delta 3010), pack-reused 0
Empfange Objekte: 100% (68829/68829), 180.81 MiB | 1.38 MiB/s, Fertig.
Löse Unterschiede auf: 100% (5781/5781), Fertig.
Checke Dateien aus: 100% (64843/64843), Fertig.


Code: Select All Code
root@ZEROSERVER:~/tbsdriver/tbs_git/media_build# make dir DIR=../media
make -C linux/ dir DIR="../../media"
make[1]: Verzeichnis „/root/tbsdriver/tbs_git/media_build/linux“ wird betreten
rm -rf drivers include sound mm .patches_applied .linked_dir .git_log.md5 git_log kernel_version.h
Searching in ../../media/Makefile for kernel version.
./use_dir.pl ../../media
sync file: include/uapi/linux/meye.h
sync file: include/uapi/linux/cec-funcs.h
sync file: include/uapi/linux/v4l2-subdev.h
sync file: include/uapi/linux/videodev2.h
sync file: include/uapi/linux/media-bus-format.h
sync file: include/linux/pci_ids.h
sync file: include/linux/dma/xilinx_dma.h
sync file: include/trace/events/pwc.h
sync file: include/uapi/linux/v4l2-mediabus.h
sync file: include/trace/events/v4l2.h
sync file: include/trace/events/vb2.h
sync file: include/uapi/linux/media.h
sync file: include/uapi/linux/smiapp.h
sync file: include/linux/kconfig.h
sync file: include/uapi/linux/uvcvideo.h
sync file: sound/pci/bt87x.c
sync file: include/uapi/linux/xilinx-v4l2-controls.h
sync file: include/linux/of_graph.h
sync file: include/linux/via-core.h
sync file: include/uapi/linux/lirc.h
sync file: include/uapi/linux/max2175.h
sync file: include/uapi/linux/v4l2-common.h
sync file: include/linux/overflow.h
sync file: include/linux/dma-fence.h
sync file: include/misc/altera.h
sync file: include/uapi/linux/cec.h
sync file: include/linux/hdmi.h
sync file: include/uapi/linux/ivtv.h
sync file: include/uapi/linux/ivtvfb.h
sync file: include/linux/ti_wilink_st.h
sync file: include/linux/fixp-arith.h
sync file: include/linux/mmc/sdio_ids.h
sync file: include/sound/aci.h
sync file: include/uapi/linux/usb/video.h
sync file: include/uapi/linux/v4l2-controls.h
sync file: include/linux/dma-buf.h
sync file: include/uapi/linux/v4l2-dv-timings.h
sync dir: include/linux/platform_data/media/
sync dir: include/media/
sync dir: drivers/misc/altera-stapl/
sync dir: drivers/staging/media/
sync dir: include/dt-bindings/media/
sync dir: drivers/media/
sync dir: include/uapi/linux/dvb/
make[1]: Verzeichnis „/root/tbsdriver/tbs_git/media_build/linux“ wird verlassen


Code: Select All Code
root@ZEROSERVER:~/tbsdriver/tbs_git/media_build# make allyesconfig
make -C /root/tbsdriver/tbs_git/media_build/v4l allyesconfig
make[1]: Verzeichnis „/root/tbsdriver/tbs_git/media_build/v4l“ wird betreten
No version yet, using 4.9.0-8-amd64
make[2]: Entering directory '/root/tbsdriver/tbs_git/media_build/linux'
Syncing with dir ../../media
Applying patches for kernel 4.9.0-8-amd64
patch -s -f -N -p1 -i ../backports/api_version.patch
patch -s -f -N -p1 -i ../backports/pr_fmt.patch
patch -s -f -N -p1 -i ../backports/debug.patch
patch -s -f -N -p1 -i ../backports/drx39xxj.patch
patch -s -f -N -p1 -i ../backports/v5.1_vm_map_pages.patch
patch -s -f -N -p1 -i ../backports/v5.0_ipu3-cio2.patch
patch -s -f -N -p1 -i ../backports/v4.20_access_ok.patch
patch -s -f -N -p1 -i ../backports/v4.18_fwnode_args_args.patch
patch -s -f -N -p1 -i ../backports/v4.18_add_map_atomic.patch
patch -s -f -N -p1 -i ../backports/v4.17_proc_create_single.patch
patch -s -f -N -p1 -i ../backports/v4.17_i2c_check_num_msgs.patch
patch -s -f -N -p1 -i ../backports/v4.15_pmdown_time.patch
patch -s -f -N -p1 -i ../backports/v4.14_saa7146_timer_cast.patch
patch -s -f -N -p1 -i ../backports/v4.14_module_param_call.patch
patch -s -f -N -p1 -i ../backports/v4.13_remove_nospec_h.patch
patch -s -f -N -p1 -i ../backports/v4.13_drmP.patch
patch -s -f -N -p1 -i ../backports/v4.12_revert_solo6x10_copykerneluser.patch
patch -s -f -N -p1 -i ../backports/v4.11_drop_drm_file.patch
patch -s -f -N -p1 -i ../backports/v4.10_sched_signal.patch
patch -s -f -N -p1 -i ../backports/v4.10_fault_page.patch
patch -s -f -N -p1 -i ../backports/v4.10_refcount.patch
patch -s -f -N -p1 -i ../backports/v4.9_mm_address.patch
patch -s -f -N -p1 -i ../backports/v4.9_dvb_net_max_mtu.patch
Patched drivers/media/dvb-core/dvbdev.c
Patched drivers/media/v4l2-core/v4l2-dev.c
Patched drivers/media/rc/rc-main.c
Syncing with dir ../../media
make[2]: Leaving directory '/root/tbsdriver/tbs_git/media_build/linux'
./scripts/make_kconfig.pl /lib/modules/4.9.0-8-amd64/build /lib/modules/4.9.0-8-amd64/source 1
Preparing to compile for kernel version 4.9.0

***WARNING:*** You do not have the full kernel sources installed.
This does not prevent you from building the v4l-dvb tree if you have the
kernel headers, but the full kernel source may be required in order to use
make menuconfig / xconfig / qconfig.

If you are experiencing problems building the v4l-dvb tree, please try
building against a vanilla kernel before reporting a bug.

Vanilla kernels are available at http://kernel.org.
On most distros, this will compile a newly downloaded kernel:

cp /boot/config-`uname -r` <your kernel dir>/.config
cd <your kernel dir>
make all modules_install install

Please see your distro's web site for instructions to build a new kernel.

WARNING: This is the V4L/DVB backport tree, with experimental drivers
         backported to run on legacy kernels from the development tree at:
                http://git.linuxtv.org/media-tree.git.
         It is generally safe to use it for testing a new driver or
         feature, but its usage on production environments is risky.
         Don't use it in production. You've been warned.
VIDEO_MUX: Requires at least kernel 4.13.0
VIDEO_CROS_EC_CEC: Requires at least kernel 4.19.0
RADIO_WL128X: Requires at least kernel 4.13.0
VIDEO_TDA1997X: Requires at least kernel 4.15.0
VIDEO_IMX214: Requires at least kernel 4.10.0
VIDEO_IMX258: Requires at least kernel 4.10.0
VIDEO_IMX319: Requires at least kernel 4.10.0
VIDEO_IMX355: Requires at least kernel 4.10.0
VIDEO_OV2680: Requires at least kernel 4.10.0
VIDEO_OV5670: Requires at least kernel 4.10.0
VIDEO_OV7251: Requires at least kernel 4.10.0
VIDEO_OV772X: Requires at least kernel 4.18.0
VIDEO_OV8856: Requires at least kernel 4.10.0
VIDEO_MT9V111: Requires at least kernel 4.10.0
VIDEO_AK7375: Requires at least kernel 4.10.0
VIDEO_DW9714: Requires at least kernel 9.255.255
VIDEO_DW9807_VCM: Requires at least kernel 4.10.0
VIDEO_I2C: Requires at least kernel 4.17.0
VIDEO_ST_MIPID02: Requires at least kernel 4.10.0
I2C_BCM2048: Requires at least kernel 4.10.0
VIDEO_IPU3_IMGU: Requires at least kernel 9.255.255
Created default (all yes) .config file
./scripts/fix_kconfig.pl
make[1]: Verzeichnis „/root/tbsdriver/tbs_git/media_build/v4l“ wird verlassen
User avatar
Boronsbruder
 
Posts: 7
Joined: Wed Nov 15, 2017 3:08 am

Re: Problem compiling drivers for tbs 6902 on Debian stretch

Postby Boronsbruder » Sun Jul 28, 2019 9:01 pm

Code: Select All Code
root@ZEROSERVER:~/tbsdriver/tbs_git/media_build# make -j4
make -C /root/tbsdriver/tbs_git/media_build/v4l
make[1]: Verzeichnis „/root/tbsdriver/tbs_git/media_build/v4l“ wird betreten
scripts/make_makefile.pl
./scripts/make_myconfig.pl
[ ! -f "./config-mycompat.h" ] && echo "/* empty config-mycompat.h */" > "./config-mycompat.h" || true
make -C firmware prep
perl scripts/make_config_compat.pl /lib/modules/4.9.0-8-amd64/source ./.myconfig ./config-compat.h
creating symbolic links...
make[2]: Entering directory '/root/tbsdriver/tbs_git/media_build/v4l/firmware'
make[2]: Nothing to be done for 'prep'.
make[2]: Leaving directory '/root/tbsdriver/tbs_git/media_build/v4l/firmware'
make -C firmware
make[2]: Entering directory '/root/tbsdriver/tbs_git/media_build/v4l/firmware'
make[2]: Nothing to be done for 'default'.
make[2]: Leaving directory '/root/tbsdriver/tbs_git/media_build/v4l/firmware'
Kernel build directory is /lib/modules/4.9.0-8-amd64/build
make -C ../linux apply_patches
make[2]: Entering directory '/root/tbsdriver/tbs_git/media_build/linux'
Syncing with dir ../../media
Patches for 4.9.0-8-amd64 already applied.
make[2]: Leaving directory '/root/tbsdriver/tbs_git/media_build/linux'
make -C /lib/modules/4.9.0-8-amd64/build SUBDIRS=/root/tbsdriver/tbs_git/media_build/v4l  modules
make[2]: Entering directory '/usr/src/linux-headers-4.9.0-8-amd64'
  CC [M]  /root/tbsdriver/tbs_git/media_build/v4l/msp3400-driver.o
gcc-6: error: /usr/src/linux-headers-4.9.0-8-common/drivers/media/i2c: No such file or directory
gcc-6: error: /usr/src/linux-headers-4.9.0-8-common/drivers/media/dvb-frontends/: No such file or directory
gcc-6: error: /usr/src/linux-headers-4.9.0-8-common/drivers/media/tuners/: No such file or directory
gcc-6: error: /usr/src/linux-headers-4.9.0-8-common/drivers/media/dvb-frontends/: No such file or directory
gcc-6: error: /usr/src/linux-headers-4.9.0-8-common/drivers/media/tuners/: No such file or directory
gcc-6: error: /usr/src/linux-headers-4.9.0-8-common/drivers/media/dvb-frontends/: No such file or directory
gcc-6: error: /usr/src/linux-headers-4.9.0-8-common/drivers/media/tuners: No such file or directory
gcc-6: error: /usr/src/linux-headers-4.9.0-8-common/drivers/media/common/b2c2/: No such file or directory
gcc-6: error: /usr/src/linux-headers-4.9.0-8-common/drivers/media/dvb-frontends/: No such file or directory
gcc-6: error: /usr/src/linux-headers-4.9.0-8-common/drivers/media/dvb-frontends: No such file or directory
gcc-6: error: /usr/src/linux-headers-4.9.0-8-common/drivers/media/dvb-frontends: No such file or directory
gcc-6: error: /usr/src/linux-headers-4.9.0-8-common/drivers/media/tuners: No such file or directory
gcc-6: error: /usr/src/linux-headers-4.9.0-8-common/drivers/media/dvb-frontends: No such file or directory
gcc-6: error: /usr/src/linux-headers-4.9.0-8-common/drivers/media/tuners: No such file or directory
gcc-6: error: /usr/src/linux-headers-4.9.0-8-common/drivers/media/dvb-frontends/: No such file or directory
gcc-6: error: /usr/src/linux-headers-4.9.0-8-common/drivers/media/dvb-frontends/: No such file or directory
gcc-6: error: /usr/src/linux-headers-4.9.0-8-common/drivers/media/tuners/: No such file or directory
gcc-6: error: /usr/src/linux-headers-4.9.0-8-common/drivers/media/dvb-frontends/: No such file or directory
gcc-6: error: /usr/src/linux-headers-4.9.0-8-common/drivers/media/tuners/: No such file or directory
gcc-6: error: /usr/src/linux-headers-4.9.0-8-common/drivers/media/tuners: No such file or directory
gcc-6: error: /usr/src/linux-headers-4.9.0-8-common/drivers/media/dvb-frontends: No such file or directory
gcc-6: error: /usr/src/linux-headers-4.9.0-8-common/drivers/media/dvb-frontends: No such file or directory
gcc-6: error: /usr/src/linux-headers-4.9.0-8-common/drivers/media/dvb-frontends: No such file or directory
gcc-6: error: /usr/src/linux-headers-4.9.0-8-common/drivers/media/tuners: No such file or directory
gcc-6: error: /usr/src/linux-headers-4.9.0-8-common/drivers/media/tuners: No such file or directory
gcc-6: error: /usr/src/linux-headers-4.9.0-8-common/drivers/media/dvb-frontends: No such file or directory
gcc-6: error: /usr/src/linux-headers-4.9.0-8-common/drivers/media/tuners: No such file or directory
gcc-6: error: /usr/src/linux-headers-4.9.0-8-common/drivers/media/dvb-frontends: No such file or directory
gcc-6: error: /usr/src/linux-headers-4.9.0-8-common/drivers/media/dvb-frontends: No such file or directory
gcc-6: error: /usr/src/linux-headers-4.9.0-8-common/drivers/media/tuners: No such file or directory
gcc-6: error: /usr/src/linux-headers-4.9.0-8-common/drivers/media/dvb-frontends: No such file or directory
gcc-6: error: /usr/src/linux-headers-4.9.0-8-common/drivers/media/common/siano: No such file or directory
gcc-6: error: /usr/src/linux-headers-4.9.0-8-common/drivers/media/common/b2c2/: No such file or directory
gcc-6: error: /usr/src/linux-headers-4.9.0-8-common/drivers/media/tuners: No such file or directory
gcc-6: error: /usr/src/linux-headers-4.9.0-8-common/drivers/media/dvb-frontends: No such file or directory
gcc-6: error: /usr/src/linux-headers-4.9.0-8-common/drivers/media/tuners: No such file or directory
gcc-6: error: /usr/src/linux-headers-4.9.0-8-common/drivers/media/dvb-frontends: No such file or directory
gcc-6: error: /usr/src/linux-headers-4.9.0-8-common/drivers/media/tuners: No such file or directory
gcc-6: error: /usr/src/linux-headers-4.9.0-8-common/drivers/media/dvb-frontends: No such file or directory
gcc-6: error: /usr/src/linux-headers-4.9.0-8-common/drivers/media/tuners: No such file or directory
gcc-6: error: /usr/src/linux-headers-4.9.0-8-common/drivers/media/dvb-frontends: No such file or directory
gcc-6: error: /usr/src/linux-headers-4.9.0-8-common/drivers/media/tuners: No such file or directory
gcc-6: error: /usr/src/linux-headers-4.9.0-8-common/drivers/media/dvb-frontends: No such file or directory
gcc-6: error: /usr/src/linux-headers-4.9.0-8-common/drivers/media/common: No such file or directory
gcc-6: error: /usr/src/linux-headers-4.9.0-8-common/drivers/media/dvb-frontends: No such file or directory
gcc-6: error: /usr/src/linux-headers-4.9.0-8-common/drivers/media/common/siano: No such file or directory
gcc-6: error: /usr/src/linux-headers-4.9.0-8-common/drivers/media/dvb-frontends/cxd2880: No such file or directory
/usr/src/linux-headers-4.9.0-8-common/scripts/Makefile.build:309: die Regel für Ziel „/root/tbsdriver/tbs_git/media_build/v4l/msp3400-driver.o“ scheiterte
make[5]: *** [/root/tbsdriver/tbs_git/media_build/v4l/msp3400-driver.o] Fehler 1
/usr/src/linux-headers-4.9.0-8-common/Makefile:1546: die Regel für Ziel „_module_/root/tbsdriver/tbs_git/media_build/v4l“ scheiterte
make[4]: *** [_module_/root/tbsdriver/tbs_git/media_build/v4l] Fehler 2
Makefile:152: recipe for target 'sub-make' failed
make[3]: *** [sub-make] Error 2
Makefile:8: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-4.9.0-8-amd64'
Makefile:51: die Regel für Ziel „default“ scheiterte
make[1]: *** [default] Fehler 2
make[1]: Verzeichnis „/root/tbsdriver/tbs_git/media_build/v4l“ wird verlassen
Makefile:26: die Regel für Ziel „all“ scheiterte
make: *** [all] Fehler 2


Where is the problem?

Is it me? :D

Ah and by the way headers are installed...

Code: Select All Code
root@ZEROSERVER:~/tbsdriver/tbs_git/media_build/v4l# apt-get install linux-headers-4.9.0-8-amd64
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
linux-headers-4.9.0-8-amd64 ist schon die neueste Version (4.9.144-3.1).
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
User avatar
Boronsbruder
 
Posts: 7
Joined: Wed Nov 15, 2017 3:08 am

Re: Problem compiling drivers for tbs 6902 on Debian stretch

Postby steven » Mon Jul 29, 2019 9:24 am

Hi

Please have a try with this package:
#wget http://www.tbsdtv.com/download/document/linux/media_build-2019-06-27.tar.bz2
# sudo rm -rf /lib/modules/`uname -r`/kernel/drivers/media/
#tar jxvf media_build-2019-06-27.tar.bz2
#cd media_build
#./install.sh
#reboot

Thanks

Kind Regards

steven
steven
 
Posts: 2109
Joined: Fri Aug 06, 2010 3:23 pm

Re: Problem compiling drivers for tbs 6902 on Debian stretch

Postby Boronsbruder » Fri Aug 02, 2019 6:41 pm

Thx m8!!
I needed to download and compile it twice. Second time it compiled and tvheadend is running fine!!
User avatar
Boronsbruder
 
Posts: 7
Joined: Wed Nov 15, 2017 3:08 am

Re: Problem compiling drivers for tbs 6902 on Debian stretch

Postby steven » Mon Aug 05, 2019 11:45 am

Thanks for your update
steven
 
Posts: 2109
Joined: Fri Aug 06, 2010 3:23 pm


Return to Driver & Software Update

Who is online

Users browsing this forum: No registered users and 2 guests