sudo apt-get install linux-headers-4.4.0-1-all linux-headers-4.4.0-1-all-armhf linux-headers-4.4.0-1-common linux-headers-4.4.0-1-rpi linux-headers-rpi raspberrypi-kernel-headers vorgeschalgene Pakete installiert: gcc-4.8-doc gcc-4.8-locales gcc-doc-base libasan0-dbg libatomic1-dbg libgcc1-dbg libgomp1-dbg v4l-dvb Abhängigkeiten installiert: sudo apt-get install build-essential libdigest-sha-perl patchutils libproc-processtable-perl git ncurses-dev fakeroot git-core media-build installieren: pi@Raspberry-Server:~ $ git clone git://linuxtv.org/media_build.git Klone nach 'media_build'... remote: Counting objects: 3353, done. remote: Compressing objects: 100% (922/922), done. remote: Total 3353 (delta 2388), reused 3353 (delta 2388) Empfange Objekte: 100% (3353/3353), 606.65 KiB | 496.00 KiB/s, Fertig. L�se Unterschiede auf: 100% (2388/2388), Fertig. Pr�fe Konnektivit�t... Fertig. pi@Raspberry-Server:~ $ git clone --depth=1 https://github.com/tbsdtv/linux_media.git -b latest ./media Klone nach './media'... remote: Counting objects: 58529, done. remote: Compressing objects: 100% (55213/55213), done. remote: Total 58529 (delta 5012), reused 17966 (delta 2448), pack-reused 0 Empfange Objekte: 100% (58529/58529), 154.47 MiB | 637.00 KiB/s, Fertig. L�se Unterschiede auf: 100% (5012/5012), Fertig. Pr�fe Konnektivit�t... Fertig. Checke Dateien aus: 100% (55162/55162), Fertig. pi@Raspberry-Server:~ $ cd media_build pi@Raspberry-Server:~/media_build $ make dir DIR=../media make -C linux/ dir DIR="../../media" make[1]: Entering directory '/home/pi/media_build/linux' rm -rf drivers firmware include sound .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: firmware/av7110/bootcode.bin.ihex sync file: include/linux/fence.h sync file: firmware/ttusb-budget/dspbootcode.bin.ihex sync file: firmware/av7110/Boot.S sync file: include/linux/pci_ids.h sync file: include/linux/cec-funcs.h sync file: firmware/cpia2/stv0672_vp4.bin.ihex sync file: include/linux/cec.h sync file: include/linux/compiler-gcc.h sync file: include/uapi/linux/usb/video.h sync file: include/linux/dma-buf.h sync file: include/linux/kconfig.h sync file: include/linux/via-core.h sync file: include/uapi/linux/smiapp.h sync file: include/trace/events/v4l2.h sync file: include/uapi/linux/uvcvideo.h sync file: mm/frame_vector.c sync file: include/uapi/linux/v4l2-subdev.h sync file: include/linux/fixp-arith.h sync file: include/linux/hdmi.h sync file: include/linux/of_graph.h sync file: include/uapi/linux/media.h sync file: firmware/ihex2fw.c sync file: include/uapi/linux/ivtvfb.h sync file: include/uapi/linux/v4l2-mediabus.h sync file: include/linux/dma/xilinx_dma.h sync file: firmware/vicam/firmware.H16 sync file: sound/pci/bt87x.c sync file: include/uapi/linux/xilinx-v4l2-controls.h sync file: include/linux/ti_wilink_st.h sync file: include/sound/aci.h sync file: include/uapi/linux/v4l2-controls.h sync file: include/trace/events/vb2.h sync file: include/uapi/linux/meye.h sync file: include/uapi/linux/lirc.h sync file: include/misc/altera.h sync file: include/linux/mmc/sdio_ids.h sync file: include/uapi/linux/videodev2.h sync file: include/uapi/linux/v4l2-common.h sync file: include/uapi/linux/media-bus-format.h sync file: include/uapi/linux/v4l2-dv-timings.h sync file: include/uapi/linux/ivtv.h sync dir: include/linux/platform_data/media/ sync dir: include/dt-bindings/media/ sync dir: include/media/ sync dir: include/uapi/linux/dvb/ sync dir: drivers/staging/media/ sync dir: drivers/media/ sync dir: drivers/misc/altera-stapl/ make[1]: Leaving directory '/home/pi/media_build/linux' pi@Raspberry-Server:~/media_build $ make distclean make -C /home/pi/media_build/v4l distclean make[1]: Entering directory '/home/pi/media_build/v4l' No version yet, using 4.4.21+ rm -f *~ *.o *.ko .*.o.cmd .*.ko.cmd *.mod.c av7110_firm.h fdump \ config-compat.h Module.symvers Module.markers modules.order \ *.unsigned .*.ko.unsigned.cmd make -C firmware clean make[2]: Entering directory '/home/pi/media_build/v4l/firmware' rm -f ihex2fw rm -f vicam/firmware.fw ttusb-budget/dspbootcode.bin cpia2/stv0672_vp4.bin av7110/bootcode.bin make[2]: Leaving directory '/home/pi/media_build/v4l/firmware' rm -f .version .*.o.flags .*.o.d *.mod.gcno Makefile.media \ Kconfig Kconfig.kern .config .config.cmd .myconfig \ .kconfig.dep rm -rf .tmp_versions .tmp*.ver .tmp*.o .*.gcno rm -f scripts/lxdialog scripts/kconfig make -C firmware distclean make[2]: Entering directory '/home/pi/media_build/v4l/firmware' rm -f ihex2fw rm -f vicam/firmware.fw ttusb-budget/dspbootcode.bin cpia2/stv0672_vp4.bin av7110/bootcode.bin for i in av7110/ cpia2/ ttusb-budget/ vicam/; do if [ -d $i ]; then rm -rf $i; fi; done make[2]: Leaving directory '/home/pi/media_build/v4l/firmware' make[1]: Leaving directory '/home/pi/media_build/v4l' pi@Raspberry-Server:~/media_build $ make make -C /home/pi/media_build/v4l make[1]: Entering directory '/home/pi/media_build/v4l' No version yet, using 4.4.21+ scripts/make_makefile.pl Updating/Creating .config make[2]: Entering directory '/home/pi/media_build/linux' Syncing with dir ../../media Applying patches for kernel 4.4.21+ patch -s -f -N -p1 -i ../backports/api_version.patch patch -s -f -N -p1 -i ../backports/pr_fmt.patch 1 out of 1 hunk FAILED 1 out of 1 hunk FAILED Makefile:138: recipe for target 'apply_patches' failed make[2]: *** [apply_patches] Error 1 make[2]: Leaving directory '/home/pi/media_build/linux' Preparing to compile for kernel version 4.4.21 ***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` /.config cd 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. DVB_CXD2820R: Requires at least kernel 4.6.0 Created default (all yes) .config file ./scripts/make_myconfig.pl perl scripts/make_config_compat.pl /lib/modules/4.4.21+/build ./.myconfig ./config-compat.h creating symbolic links... make -C firmware prep make[2]: Entering directory '/home/pi/media_build/v4l/firmware' make[2]: Leaving directory '/home/pi/media_build/v4l/firmware' make -C firmware make[2]: Entering directory '/home/pi/media_build/v4l/firmware' CC ihex2fw Generating vicam/firmware.fw Generating ttusb-budget/dspbootcode.bin Generating cpia2/stv0672_vp4.bin Generating av7110/bootcode.bin make[2]: Leaving directory '/home/pi/media_build/v4l/firmware' Kernel build directory is /lib/modules/4.4.21+/build make -C ../linux apply_patches make[2]: Entering directory '/home/pi/media_build/linux' Syncing with dir ../../media Sync'ing file drivers/media/media-device.c (orig = 4ae920c62c15cbaac36b7d8530e5c8e3774cd7a7, copy = d9ac002641803dbfc21c2dd97ae9472d6b7f73a8, patched = ) Sync'ing file drivers/media/usb/uvc/uvc_driver.c (orig = a6701b9b1d48d1a6faf5c25df86bc31fbbff09bc, copy = 24a762afde9846b7786dd0ae7fb1a071873a10ee, patched = ) Sync'ing file drivers/media/v4l2-core/v4l2-ioctl.c (orig = db3bc93281c3787ba0525c4f784e3626e01775b0, copy = 9bd7b0e7f8610cf37692105dd5f232ec8d1d3561, patched = ) make[3]: Entering directory '/home/pi/media_build/linux' Unapplying patches patch -s -f -R -p1 -i ../backports/api_version.patch 2 out of 2 hunks FAILED -- saving rejects to file drivers/media/media-device.c.rej 1 out of 1 hunk FAILED -- saving rejects to file drivers/media/usb/uvc/uvc_driver.c.rej 1 out of 1 hunk FAILED -- saving rejects to file drivers/media/v4l2-core/v4l2-ioctl.c.rej make[3]: Leaving directory '/home/pi/media_build/linux' Applying patches for kernel 4.4.21+ patch -s -f -N -p1 -i ../backports/api_version.patch patch -s -f -N -p1 -i ../backports/pr_fmt.patch 1 out of 1 hunk FAILED 1 out of 1 hunk FAILED Makefile:138: recipe for target 'apply_patches' failed make[2]: *** [apply_patches] Error 1 make[2]: Leaving directory '/home/pi/media_build/linux' Makefile:51: recipe for target 'default' failed make[1]: *** [default] Error 2 make[1]: Leaving directory '/home/pi/media_build/v4l' Makefile:26: recipe for target 'all' failed make: *** [all] Error 2