Welcome! Log In Create A New Profile

Advanced

Help with building modules for Linux Kernel 4.17.2 Kirkwood

Posted by Giang 
Hi i need to Build Modules for 4.17.2 in order to get my Xbox One Digital TV Tuner running. Could you provide some help?



Edited 1 time(s). Last edit at 07/31/2018 10:26PM by bodhi.
I needed to get this Xbox One TV Tuner for Linux[1] running. So i've downloaded the fw and the demodulator to /lib/firmware

dmesg

root@debian:~/media_build# dmesg
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.17.2-kirkwood-tld-1 (root@tldDebian) (gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1)) #1 PREEMPT Sun Jun 17 23:16:03 PDT 2018
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: Machine model: CloudEngines Pogoplug E02
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writeback
[    0.000000] On node 0 totalpages: 65536
[    0.000000]   Normal zone: 512 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 65536 pages, LIFO batch:15
[    0.000000] random: get_random_bytes called from start_kernel+0x78/0x4ec with crng_init=0
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: console=ttyS0,115200n8 earlyprintk root=/dev/sda1 rootdelay=10
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Memory: 246416K/262144K available (8192K kernel code, 803K rwdata, 2124K rodata, 1024K init, 278K bss, 15728K reserved, 0K cma-reserved)
[    0.000000] Virtual kernel memory layout:
                   vector  : 0xffff0000 - 0xffff1000   (   4 kB)
                   fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
                   vmalloc : 0xd0800000 - 0xff800000   ( 752 MB)
                   lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
                   modules : 0xbf000000 - 0xc0000000   (  16 MB)
                     .text : 0x(ptrval) - 0x(ptrval)   (9184 kB)
                     .init : 0x(ptrval) - 0x(ptrval)   (1024 kB)
                     .data : 0x(ptrval) - 0x(ptrval)   ( 804 kB)
                      .bss : 0x(ptrval) - 0x(ptrval)   ( 279 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Tasks RCU enabled.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000009] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.007902] Switching to timer-based delay loop, resolution 5ns
[    0.014434] Console: colour dummy device 80x30
[    0.018974] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.029595] pid_max: default: 32768 minimum: 301
[    0.034580] Security Framework initialized
[    0.038905] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.045569] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.053775] CPU: Testing write buffer coherency: ok
[    0.060050] Setting up static identity map for 0x100000 - 0x100058
[    0.066514] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x2
[    0.071992] Hierarchical SRCU implementation.
[    0.079926] devtmpfs: initialized
[    0.087624] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.097600] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.104134] prandom: seed boundary self test passed
[    0.113280] prandom: 100 self tests passed
[    0.117403] pinctrl core: initialized pinctrl subsystem
[    0.123979] NET: Registered protocol family 16
[    0.128990] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.136598] audit: initializing netlink subsys (disabled)
[    0.143265] audit: type=2000 audit(0.130:1): state=initialized audit_enabled=0 res=1
[    0.151185] cpuidle: using governor ladder
[    0.155368] cpuidle: using governor menu
[    0.159837] Feroceon L2: Enabling L2
[    0.163463] Feroceon L2: Cache support initialised.
[    0.168780] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.183736] No ATAGs?
[    0.192240] vgaarb: loaded
[    0.197564] SCSI subsystem initialized
[    0.201622] libata version 3.00 loaded.
[    0.201870] usbcore: registered new interface driver usbfs
[    0.207432] usbcore: registered new interface driver hub
[    0.212947] usbcore: registered new device driver usb
[    0.218184] pps_core: LinuxPPS API ver. 1 registered
[    0.223174] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.232387] PTP clock support registered
[    0.237266] clocksource: Switched to clocksource orion_clocksource
[    0.348972] VFS: Disk quotas dquot_6.6.0
[    0.353005] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.369256] NET: Registered protocol family 2
[    0.374401] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)
[    0.382202] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    0.389272] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.395678] TCP: Hash tables configured (established 2048 bind 2048)
[    0.402191] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.408090] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.414573] NET: Registered protocol family 1
[    0.419571] RPC: Registered named UNIX socket transport module.
[    0.425522] RPC: Registered udp transport module.
[    0.430323] RPC: Registered tcp transport module.
[    0.435043] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.441553] PCI: CLS 0 bytes, default 32
[    0.441936] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.449583] Initialise system trusted keyrings
[    0.454080] Key type blacklist registered
[    0.458340] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[    0.464909] zbud: loaded
[    0.468503] NFS: Registering the id_resolver key type
[    0.473591] Key type id_resolver registered
[    0.477863] Key type id_legacy registered
[    0.481911] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.488703] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.495352] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.502667] fuse init (API version 7.26)
[    0.506982] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.513671] orangefs_init: module version upstream loaded
[    0.519123] SGI XFS with ACLs, security attributes, realtime, scrub, no debug enabled
[    2.567273] random: fast init done
[    6.480571] Key type asymmetric registered
[    6.484694] Asymmetric key parser 'x509' registered
[    6.489954] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[    6.497461] io scheduler noop registered
[    6.501400] io scheduler deadline registered
[    6.505783] io scheduler cfq registered (default)
[    6.511972] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    6.521276] mv_xor f1060800.xor: Marvell shared XOR driver
[    6.588083] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    6.595645] mv_xor f1060900.xor: Marvell shared XOR driver
[    6.658070] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    6.665839] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    6.673459] console [ttyS0] disabled
[    6.677115] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 25, base_baud = 12500000) is a 16550A
[    6.686230] console [ttyS0] enabled
[    6.693282] bootconsole [earlycon0] disabled
[    6.708834] loop: module loaded
[    6.713067] nand: Could not find valid ONFI parameter page; aborting
[    6.719512] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1
[    6.725896] nand: Hynix NAND 128MiB 3,3V 8-bit
[    6.730387] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    6.738024] Scanning device for bad blocks
[    6.851594] 4 fixed-partitions partitions found on MTD device orion_nand
[    6.858350] Creating 4 MTD partitions on "orion_nand":
[    6.863514] 0x000000000000-0x000000100000 : "u-boot"
[    6.869494] 0x000000100000-0x000000600000 : "uImage"
[    6.875393] 0x000000500000-0x000002a00000 : "pogoplug"
[    6.881731] 0x000002500000-0x000009100000 : "root"
[    6.886548] mtd: partition "root" extends beyond the end of device "orion_nand" -- size truncated to 0x5b00000
[    6.899185] libphy: Fixed MDIO Bus: probed
[    6.904041] libphy: orion_mdio_bus: probed
[    6.909082] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    7.707916] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:25:31:04:8f:8f
[    7.716778] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    7.723397] ehci-pci: EHCI PCI platform driver
[    7.727934] ehci-orion: EHCI orion driver
[    7.732144] orion-ehci f1050000.ehci: EHCI Host Controller
[    7.737712] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    7.745577] orion-ehci f1050000.ehci: irq 29, io mem 0xf1050000
[    7.777303] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    7.783613] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.17
[    7.791953] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    7.799230] usb usb1: Product: EHCI Host Controller
[    7.804128] usb usb1: Manufacturer: Linux 4.17.2-kirkwood-tld-1 ehci_hcd
[    7.810879] usb usb1: SerialNumber: f1050000.ehci
[    7.816200] hub 1-0:1.0: USB hub found
[    7.820068] hub 1-0:1.0: 1 port detected
[    7.824669] usbcore: registered new interface driver usb-storage
[    7.831075] mousedev: PS/2 mouse device common for all mice
[    8.187311] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    8.389086] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608, bcdDevice=77.64
[    8.397337] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    8.404530] usb 1-1: Product: USB2.0 Hub
[    8.409252] hub 1-1:1.0: USB hub found
[    8.413336] hub 1-1:1.0: 4 ports detected
[    8.737305] usb 1-1.1: new high-speed USB device number 3 using orion-ehci
[    8.888331] usb 1-1.1: New USB device found, idVendor=045e, idProduct=02d5, bcdDevice= 1.10
[    8.896733] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    8.904127] rtc-mv f1010300.rtc: internal RTC not ticking
[    8.909584] usb 1-1.1: Product: Xbox USB Tuner
[    8.914052] usb 1-1.1: Manufacturer: Microsoft Corp.
[    8.919231] i2c /dev entries driver
[    8.924095] hidraw: raw HID events driver (C) Jiri Kosina
[    8.929581] usb 1-1.1: SerialNumber: 005093021015
[    8.934856] drop_monitor: Initializing network drop monitor service
[    8.942234] NET: Registered protocol family 17
[    8.946853] Key type dns_resolver registered
[    8.952103] registered taskstats version 1
[    8.956220] Loading compiled-in X.509 certificates
[    8.961138] zswap: loaded using pool lzo/zbud
[    8.972118] Key type big_key registered
[    8.978218] Key type encrypted registered
[    8.983883] hctosys: unable to open rtc device (rtc0)
[    8.989542] Waiting 10 sec before mounting root device...
[    9.047306] usb 1-1.3: new high-speed USB device number 4 using orion-ehci
[    9.199215] usb 1-1.3: New USB device found, idVendor=090c, idProduct=1000, bcdDevice=11.00
[    9.207635] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    9.215003] usb 1-1.3: Product: Flash Disk
[    9.219144] usb 1-1.3: Manufacturer: USB
[    9.223090] usb 1-1.3: SerialNumber: FBK1410160200065
[    9.228899] usb-storage 1-1.3:1.0: USB Mass Storage device detected
[    9.235571] scsi host0: usb-storage 1-1.3:1.0
[   10.656444] scsi 0:0:0:0: Direct-Access     USB      Flash Disk       1100 PQ: 0 ANSI: 4
[   10.666503] sd 0:0:0:0: [sda] 7831552 512-byte logical blocks: (4.01 GB/3.73 GiB)
[   10.674741] sd 0:0:0:0: [sda] Write Protect is off
[   10.679615] sd 0:0:0:0: [sda] Mode Sense: 43 00 00 00
[   10.680239] sd 0:0:0:0: [sda] No Caching mode page found
[   10.685601] sd 0:0:0:0: [sda] Assuming drive cache: write through
[   10.696122]  sda: sda1
[   10.701368] sd 0:0:0:0: [sda] Attached SCSI removable disk
[   19.058658] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   19.076854] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[   19.084687] VFS: Mounted root (ext3 filesystem) readonly on device 8:1.
[   19.099238] devtmpfs: mounted
[   19.105453] Freeing unused kernel memory: 1024K
[   19.110570] Checked W+X mappings: passed, no W+X pages found
[   20.459377] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[   20.477121] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[   20.492000] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[   21.101446] orion_wdt: Initial timeout 21 sec
[   21.207906] marvell-cesa f1030000.crypto: CESA device successfully registered
[   21.282128] usbcore: registered new interface driver uas
[   21.342925] media: Linux media interface: v0.10
[   21.378284] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   21.470458] dvb-usb: found a 'Microsoft Xbox One Digital TV Tuner' in cold state, will try to load a firmware
[   21.539615] dvb-usb: downloading firmware from file 'dvb-usb-dib0700-1.20.fw'
[   21.726895] usbcore: registered new interface driver dvb_usb_dib0700
[   22.730199] EXT4-fs (sda1): re-mounted. Opts: (null)
[   22.996312] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[   24.511806] random: crng init done
[   24.515233] random: 7 urandom warning(s) missed due to ratelimiting
[   28.352642] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 100 Mb/s, full duplex, flow control disabled
[   33.177233] NET: Registered protocol family 10
[   33.184845] Segment Routing with IPv6
root@debian:~/media_build#

I should expect what [1] shows me: dib0700: firmware started successfully - but it doesn't!

So i thought i needed install V4L-DVB Device Drivers [2]

Which leads me to this approach:

git clone git://linuxtv.org/media_build.git
cd media_build 
./build

And this is what i've got:

root@debian:~/media_build# ./build
Checking if the needed tools for Debian GNU/Linux 9 \n \l are available
Needed package dependencies are met.

************************************************************
* This script will download the latest tarball and build it*
* Assuming that your kernel is compatible with the latest  *
* drivers. If not, you'll need to add some extra backports,*
* ./backports/<kernel> directory.                          *
* It will also update this tree to be sure that all compat *
* bits are there, to avoid compilation failures            *
************************************************************
************************************************************
* All drivers and build system are under GPLv2 License     *
* Firmware files are under the license terms found at:     *
* http://www.linuxtv.org/downloads/firmware/               *
* Please abort in the next 5 secs if you don't agree with  *
* the license                                              *
************************************************************

Not aborted. It means that the licence was agreed. Proceeding...

****************************
Updating the building system
****************************
Von git://linuxtv.org/media_build
 * branch            master     -> FETCH_HEAD
Bereits aktuell.
make: Verzeichnis „/root/media_build/linux“ wird betreten
wget http://linuxtv.org/downloads/drivers/linux-media-LATEST.tar.bz2.md5 -O linux-media.tar.bz2.md5.tmp
--2018-08-01 12:40:05--  http://linuxtv.org/downloads/drivers/linux-media-LATEST.tar.bz2.md5
Auflösen des Hostnamens »linuxtv.org (linuxtv.org)« … 130.149.80.248
Verbindungsaufbau zu linuxtv.org (linuxtv.org)|130.149.80.248|:80 … verbunden.
HTTP-Anforderung gesendet, auf Antwort wird gewartet … 301 Moved Permanently
Platz: https://linuxtv.org/downloads/drivers/linux-media-LATEST.tar.bz2.md5 [folgend]
--2018-08-01 12:40:05--  https://linuxtv.org/downloads/drivers/linux-media-LATEST.tar.bz2.md5
Verbindungsaufbau zu linuxtv.org (linuxtv.org)|130.149.80.248|:443 … verbunden.
HTTP-Anforderung gesendet, auf Antwort wird gewartet … 200 OK
Länge: 105 [application/x-bzip2]
Wird in »»linux-media.tar.bz2.md5.tmp«« gespeichert.

linux-media.tar.bz2 100%[===================>]     105  --.-KB/s    in 0s

2018-08-01 12:40:06 (642 KB/s) - »»linux-media.tar.bz2.md5.tmp«« gespeichert [105/105]

make: Verzeichnis „/root/media_build/linux“ wird verlassen
make: Verzeichnis „/root/media_build/linux“ wird betreten
tar xfj linux-media.tar.bz2
rm -f .patches_applied .linked_dir .git_log.md5
make: Verzeichnis „/root/media_build/linux“ wird verlassen
**********************************************************
* Downloading firmwares from linuxtv.org.                *
**********************************************************
firmware/dvb-usb-vp702x-01.fw
firmware/dvb-usb-vp7045-01.fw
firmware/dvb-fe-bcm3510-01.fw
firmware/as102_data2_st.hex
firmware/dvb-usb-terratec-h7-drxk.fw
firmware/isdbt_nova_12mhz.inp
firmware/Boot.S
firmware/dvb_nova_12mhz_b0.inp
firmware/dvb-fe-xc4000-1.4.1.fw
firmware/sms1xxx-hcw-55xxx-isdbt-02.fw
firmware/sms1xxx-nova-a-dvbt-01.fw
firmware/dvb-usb-avertv-a800-02.fw
firmware/cmmb_venice_12mhz.inp
firmware/dvb-fe-xc5000c-4.1.30.7.fw
firmware/v4l-cx23418-cpu.fw
firmware/v4l-cx23885-enc-broken.fw
firmware/dvb-fe-drxj-mc-vsb-1.0.8.fw
firmware/dvb_nova_12mhz.inp
firmware/dvb-usb-dib0700-1.20.fw
firmware/tdmb_nova_12mhz.inp
firmware/as102_data1_st.hex
firmware/dvb-fe-or51132-vsb.fw
firmware/dvb-usb-it9135-02.fw
firmware/v4l-cx23418-apu.fw
firmware/dvb-ttpci-01.fw-261f
firmware/v4l-cx23418-dig.fw
firmware/dvb-ttpci-01.fw-261c
firmware/dvb-usb-bluebird-01.fw
firmware/dvb-fe-or51211.fw
firmware/dvb-fe-or51132-qam.fw
firmware/sms1xxx-stellar-dvbt-01.fw
firmware/dvb-usb-dibusb-5.0.0.11.fw
firmware/dvb-fe-drxj-mc-vsb-qam-1.0.8.fw
firmware/dvb-usb-terratec-h5-drxk.fw
firmware/dvb-usb-wt220u-02.fw
firmware/v4l-cx23885-enc.fw
firmware/dvb-ttpci-01.fw-2622
firmware/dvb-usb-wt220u-01.fw
firmware/v4l-cx25840.fw
firmware/dvb-fe-drxj-mc-1.0.8.fw
firmware/v4l-cx231xx-avcore-01.fw
firmware/dvb-usb-dtt200u-01.fw
firmware/dvb-usb-dibusb-6.0.0.8.fw
firmware/sms1xxx-nova-b-dvbt-01.fw
firmware/dvb-fe-xc5000-1.6.114.fw
firmware/cmmb_vega_12mhz.inp
firmware/dvb-usb-it9135-01.fw
firmware/isdbt_nova_12mhz_b0.inp
firmware/dvb-ttpci-01.fw-261a
firmware/dvb-ttpci-01.fw-261b
firmware/dvb-ttpci-01.fw-261d
firmware/README
firmware/isdbt_rio.inp
firmware/dvb-usb-umt-010-02.fw
firmware/sms1xxx-hcw-55xxx-dvbt-02.fw
firmware/dvb-usb-terratec-h7-az6007.fw
firmware/v4l-cx23885-avcore-01.fw
******************
* Start building *
******************
make -C /root/media_build/v4l allyesconfig
make[1]: Verzeichnis „/root/media_build/v4l“ wird betreten
make[2]: Entering directory '/root/media_build/linux'
Applying patches for kernel 4.17.2-kirkwood-tld-1
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/noretpoline.patch
patch -s -f -N -p1 -i ../backports/v4.18_fix_warning_in_Aptina_MT9V111.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
Patched drivers/media/dvb-core/dvbdev.c
Patched drivers/media/v4l2-core/v4l2-dev.c
Patched drivers/media/rc/rc-main.c
make[2]: Leaving directory '/root/media_build/linux'
./scripts/make_kconfig.pl /lib/modules/4.17.2-kirkwood-tld-1/build /lib/modules/4.17.2-kirkwood-tld-1/build 1
Preparing to compile for kernel version 4.17.2
File not found: /lib/modules/4.17.2-kirkwood-tld-1/build/.config at ./scripts/make_kconfig.pl line 33, <IN> line 4.
Makefile:378: die Regel für Ziel „allyesconfig“ scheiterte
make[1]: *** [allyesconfig] Fehler 2
make[1]: Verzeichnis „/root/media_build/v4l“ wird verlassen
Makefile:26: die Regel für Ziel „allyesconfig“ scheiterte
make: *** [allyesconfig] Fehler 2
can't select all drivers at ./build line 525

looks like there is no such file or directory in

/lib/modules/4.17.2-kirkwood-tld-1/build

AFAIK i did this when upgrading from 4.16.1 with bodhis guide.

dpkg -i linux-image-4.17.2-kirkwood-tld-1_1.0_armel.deb

So as DonCharisma[3] pointed out, the build dir is called kernel

so i did

ln -s /lib/modules/4.17.2-kirkwood-tld-1/build /lib/modules/4.17.2-kirkwood-tld-1/kernel

And then build again - but it still gives me the same error.

What should i do? What did i do wrong? (Not very good with linux btw, so please bare with me)

[1] https://www.linuxtv.org/wiki/index.php/Xbox_One_Digital_TV_Tuner
[2] https://www.linuxtv.org/wiki/index.php/How_to_Obtain,_Build_and_Install_V4L-DVB_Device_Drivers
[3] https://forum.doozan.com/read.php?2,18152,18176#msg-18176
I've just noticed an error in my last post: i've switched source and link name. I linked it correctly though.

root@debian:/lib/modules/4.17.2-kirkwood-tld-1# ls -la  /lib/modules/$(uname -r)/build
lrwxrwxrwx 1 root root 6 Aug  1 13:08 /lib/modules/4.17.2-kirkwood-tld-1/build -> kernel

However the problem still exists
Re: Help with building modules for Linux Kernel 4.17.2 Kirkwood
August 01, 2018 05:16AM
Hi Giang,

Did you install the linux headers?

apt-get install linux-headers-4.17.2-kirkwood-tld-1_1.0_armel.deb

That's the first thing you need to do before compiling modules.

-bodhi
===========================
Forum Wiki
bodhi's corner



Edited 1 time(s). Last edit at 08/01/2018 05:17AM by bodhi.
Well i got sleepy somehow. I just looked into ayoshers thread [1]

It had to look like this
lrwxrwxrwx 1 root root 44 Jul  3 01:06 /lib/modules/4.17.2-kirkwood-tld-1/build -> /usr/src/linux-headers-4.17.2-kirkwood-tld-1

It's building and it looks promising now!

[1]https://forum.doozan.com/read.php?2,62854,62874#msg-62874

It would be great to edit out the terrible rookie mistakes, though.
Hi bodhi

thanks for your reply. Yes i did install the headers. Forgot to mention it. Sorry!
So there is progress now. Checking back after the build.
Re: Help with building modules for Linux Kernel 4.17.2 Kirkwood
August 01, 2018 06:22AM
This is what i've got. build failed :/

root@debian:~/media_build# ./build
Checking if the needed tools for Debian GNU/Linux 9 \n \l are available
Needed package dependencies are met.

************************************************************
* This script will download the latest tarball and build it*
* Assuming that your kernel is compatible with the latest  *
* drivers. If not, you'll need to add some extra backports,*
* ./backports/<kernel> directory.                          *
* It will also update this tree to be sure that all compat *
* bits are there, to avoid compilation failures            *
************************************************************
************************************************************
* All drivers and build system are under GPLv2 License     *
* Firmware files are under the license terms found at:     *
* http://www.linuxtv.org/downloads/firmware/               *
* Please abort in the next 5 secs if you don't agree with  *
* the license                                              *
************************************************************

Not aborted. It means that the licence was agreed. Proceeding...

****************************
Updating the building system
****************************
Von git://linuxtv.org/media_build
 * branch            master     -> FETCH_HEAD
Bereits aktuell.
make: Verzeichnis „/root/media_build/linux“ wird betreten
wget http://linuxtv.org/downloads/drivers/linux-media-LATEST.tar.bz2.md5 -O linux-media.tar.bz2.md5.tmp
--2018-08-01 13:03:20--  http://linuxtv.org/downloads/drivers/linux-media-LATEST.tar.bz2.md5
Auflösen des Hostnamens »linuxtv.org (linuxtv.org)« … 130.149.80.248
Verbindungsaufbau zu linuxtv.org (linuxtv.org)|130.149.80.248|:80 … verbunden.
HTTP-Anforderung gesendet, auf Antwort wird gewartet … 301 Moved Permanently
Platz: https://linuxtv.org/downloads/drivers/linux-media-LATEST.tar.bz2.md5 [folgend]
--2018-08-01 13:03:21--  https://linuxtv.org/downloads/drivers/linux-media-LATEST.tar.bz2.md5
Verbindungsaufbau zu linuxtv.org (linuxtv.org)|130.149.80.248|:443 … verbunden.
HTTP-Anforderung gesendet, auf Antwort wird gewartet … 200 OK
Länge: 105 [application/x-bzip2]
Wird in »»linux-media.tar.bz2.md5.tmp«« gespeichert.

linux-media.tar.bz2 100%[===================>]     105  --.-KB/s    in 0s

2018-08-01 13:03:21 (635 KB/s) - »»linux-media.tar.bz2.md5.tmp«« gespeichert [105/105]

make: Verzeichnis „/root/media_build/linux“ wird verlassen
make: Verzeichnis „/root/media_build/linux“ wird betreten
tar xfj linux-media.tar.bz2
rm -f .patches_applied .linked_dir .git_log.md5
make: Verzeichnis „/root/media_build/linux“ wird verlassen
**********************************************************
* Downloading firmwares from linuxtv.org.                *
**********************************************************
firmware/dvb-usb-vp702x-01.fw
firmware/dvb-usb-vp7045-01.fw
firmware/dvb-fe-bcm3510-01.fw
firmware/as102_data2_st.hex
firmware/dvb-usb-terratec-h7-drxk.fw
firmware/isdbt_nova_12mhz.inp
firmware/Boot.S
firmware/dvb_nova_12mhz_b0.inp
firmware/dvb-fe-xc4000-1.4.1.fw
firmware/sms1xxx-hcw-55xxx-isdbt-02.fw
firmware/sms1xxx-nova-a-dvbt-01.fw
firmware/dvb-usb-avertv-a800-02.fw
firmware/cmmb_venice_12mhz.inp
firmware/dvb-fe-xc5000c-4.1.30.7.fw
firmware/v4l-cx23418-cpu.fw
firmware/v4l-cx23885-enc-broken.fw
firmware/dvb-fe-drxj-mc-vsb-1.0.8.fw
firmware/dvb_nova_12mhz.inp
firmware/dvb-usb-dib0700-1.20.fw
firmware/tdmb_nova_12mhz.inp
firmware/as102_data1_st.hex
firmware/dvb-fe-or51132-vsb.fw
firmware/dvb-usb-it9135-02.fw
firmware/v4l-cx23418-apu.fw
firmware/dvb-ttpci-01.fw-261f
firmware/v4l-cx23418-dig.fw
firmware/dvb-ttpci-01.fw-261c
firmware/dvb-usb-bluebird-01.fw
firmware/dvb-fe-or51211.fw
firmware/dvb-fe-or51132-qam.fw
firmware/sms1xxx-stellar-dvbt-01.fw
firmware/dvb-usb-dibusb-5.0.0.11.fw
firmware/dvb-fe-drxj-mc-vsb-qam-1.0.8.fw
firmware/dvb-usb-terratec-h5-drxk.fw
firmware/dvb-usb-wt220u-02.fw
firmware/v4l-cx23885-enc.fw
firmware/dvb-ttpci-01.fw-2622
firmware/dvb-usb-wt220u-01.fw
firmware/v4l-cx25840.fw
firmware/dvb-fe-drxj-mc-1.0.8.fw
firmware/v4l-cx231xx-avcore-01.fw
firmware/dvb-usb-dtt200u-01.fw
firmware/dvb-usb-dibusb-6.0.0.8.fw
firmware/sms1xxx-nova-b-dvbt-01.fw
firmware/dvb-fe-xc5000-1.6.114.fw
firmware/cmmb_vega_12mhz.inp
firmware/dvb-usb-it9135-01.fw
firmware/isdbt_nova_12mhz_b0.inp
firmware/dvb-ttpci-01.fw-261a
firmware/dvb-ttpci-01.fw-261b
firmware/dvb-ttpci-01.fw-261d
firmware/README
firmware/isdbt_rio.inp
firmware/dvb-usb-umt-010-02.fw
firmware/sms1xxx-hcw-55xxx-dvbt-02.fw
firmware/dvb-usb-terratec-h7-az6007.fw
firmware/v4l-cx23885-avcore-01.fw
******************
* Start building *
******************
make -C /root/media_build/v4l allyesconfig
make[1]: Verzeichnis „/root/media_build/v4l“ wird betreten
make[2]: Entering directory '/root/media_build/linux'
Applying patches for kernel 4.17.2-kirkwood-tld-1
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/noretpoline.patch
patch -s -f -N -p1 -i ../backports/v4.18_fix_warning_in_Aptina_MT9V111.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
Patched drivers/media/dvb-core/dvbdev.c
Patched drivers/media/v4l2-core/v4l2-dev.c
Patched drivers/media/rc/rc-main.c
make[2]: Leaving directory '/root/media_build/linux'
./scripts/make_kconfig.pl /lib/modules/4.17.2-kirkwood-tld-1/build /lib/modules/4.17.2-kirkwood-tld-1/build 1
Preparing to compile for kernel version 4.17.2
File not found: /lib/modules/4.17.2-kirkwood-tld-1/build/.config at ./scripts/make_kconfig.pl line 33, <IN> line 4.
Makefile:378: die Regel für Ziel „allyesconfig“ scheiterte
make[1]: *** [allyesconfig] Fehler 2
make[1]: Verzeichnis „/root/media_build/v4l“ wird verlassen
Makefile:26: die Regel für Ziel „allyesconfig“ scheiterte
make: *** [allyesconfig] Fehler 2
can't select all drivers at ./build line 525
root@debian:~/media_build# ./build
Checking if the needed tools for Debian GNU/Linux 9 \n \l are available
Needed package dependencies are met.

************************************************************
* This script will download the latest tarball and build it*
* Assuming that your kernel is compatible with the latest  *
* drivers. If not, you'll need to add some extra backports,*
* ./backports/<kernel> directory.                          *
* It will also update this tree to be sure that all compat *
* bits are there, to avoid compilation failures            *
************************************************************
************************************************************
* All drivers and build system are under GPLv2 License     *
* Firmware files are under the license terms found at:     *
* http://www.linuxtv.org/downloads/firmware/               *
* Please abort in the next 5 secs if you don't agree with  *
* the license                                              *
************************************************************

Not aborted. It means that the licence was agreed. Proceeding...

****************************
Updating the building system
****************************
Von git://linuxtv.org/media_build
 * branch            master     -> FETCH_HEAD
Bereits aktuell.
make: Verzeichnis „/root/media_build/linux“ wird betreten
wget http://linuxtv.org/downloads/drivers/linux-media-LATEST.tar.bz2.md5 -O linux-media.tar.bz2.md5.tmp
--2018-08-01 13:12:39--  http://linuxtv.org/downloads/drivers/linux-media-LATEST.tar.bz2.md5
Auflösen des Hostnamens »linuxtv.org (linuxtv.org)« … 130.149.80.248
Verbindungsaufbau zu linuxtv.org (linuxtv.org)|130.149.80.248|:80 … verbunden.
HTTP-Anforderung gesendet, auf Antwort wird gewartet … 301 Moved Permanently
Platz: https://linuxtv.org/downloads/drivers/linux-media-LATEST.tar.bz2.md5 [folgend]
--2018-08-01 13:12:39--  https://linuxtv.org/downloads/drivers/linux-media-LATEST.tar.bz2.md5
Verbindungsaufbau zu linuxtv.org (linuxtv.org)|130.149.80.248|:443 … verbunden.
HTTP-Anforderung gesendet, auf Antwort wird gewartet … 200 OK
Länge: 105 [application/x-bzip2]
Wird in »»linux-media.tar.bz2.md5.tmp«« gespeichert.

linux-media.tar.bz2 100%[===================>]     105  --.-KB/s    in 0s

2018-08-01 13:12:40 (632 KB/s) - »»linux-media.tar.bz2.md5.tmp«« gespeichert [105/105]

make: Verzeichnis „/root/media_build/linux“ wird verlassen
make: Verzeichnis „/root/media_build/linux“ wird betreten
tar xfj linux-media.tar.bz2
rm -f .patches_applied .linked_dir .git_log.md5
make: Verzeichnis „/root/media_build/linux“ wird verlassen
**********************************************************
* Downloading firmwares from linuxtv.org.                *
**********************************************************
firmware/dvb-usb-vp702x-01.fw
firmware/dvb-usb-vp7045-01.fw
firmware/dvb-fe-bcm3510-01.fw
firmware/as102_data2_st.hex
firmware/dvb-usb-terratec-h7-drxk.fw
firmware/isdbt_nova_12mhz.inp
firmware/Boot.S
firmware/dvb_nova_12mhz_b0.inp
firmware/dvb-fe-xc4000-1.4.1.fw
firmware/sms1xxx-hcw-55xxx-isdbt-02.fw
firmware/sms1xxx-nova-a-dvbt-01.fw
firmware/dvb-usb-avertv-a800-02.fw
firmware/cmmb_venice_12mhz.inp
firmware/dvb-fe-xc5000c-4.1.30.7.fw
firmware/v4l-cx23418-cpu.fw
firmware/v4l-cx23885-enc-broken.fw
firmware/dvb-fe-drxj-mc-vsb-1.0.8.fw
firmware/dvb_nova_12mhz.inp
firmware/dvb-usb-dib0700-1.20.fw
firmware/tdmb_nova_12mhz.inp
firmware/as102_data1_st.hex
firmware/dvb-fe-or51132-vsb.fw
firmware/dvb-usb-it9135-02.fw
firmware/v4l-cx23418-apu.fw
firmware/dvb-ttpci-01.fw-261f
firmware/v4l-cx23418-dig.fw
firmware/dvb-ttpci-01.fw-261c
firmware/dvb-usb-bluebird-01.fw
firmware/dvb-fe-or51211.fw
firmware/dvb-fe-or51132-qam.fw
firmware/sms1xxx-stellar-dvbt-01.fw
firmware/dvb-usb-dibusb-5.0.0.11.fw
firmware/dvb-fe-drxj-mc-vsb-qam-1.0.8.fw
firmware/dvb-usb-terratec-h5-drxk.fw
firmware/dvb-usb-wt220u-02.fw
firmware/v4l-cx23885-enc.fw
firmware/dvb-ttpci-01.fw-2622
firmware/dvb-usb-wt220u-01.fw
firmware/v4l-cx25840.fw
firmware/dvb-fe-drxj-mc-1.0.8.fw
firmware/v4l-cx231xx-avcore-01.fw
firmware/dvb-usb-dtt200u-01.fw
firmware/dvb-usb-dibusb-6.0.0.8.fw
firmware/sms1xxx-nova-b-dvbt-01.fw
firmware/dvb-fe-xc5000-1.6.114.fw
firmware/cmmb_vega_12mhz.inp
firmware/dvb-usb-it9135-01.fw
firmware/isdbt_nova_12mhz_b0.inp
firmware/dvb-ttpci-01.fw-261a
firmware/dvb-ttpci-01.fw-261b
firmware/dvb-ttpci-01.fw-261d
firmware/README
firmware/isdbt_rio.inp
firmware/dvb-usb-umt-010-02.fw
firmware/sms1xxx-hcw-55xxx-dvbt-02.fw
firmware/dvb-usb-terratec-h7-az6007.fw
firmware/v4l-cx23885-avcore-01.fw
******************
* Start building *
******************
make -C /root/media_build/v4l allyesconfig
make[1]: Verzeichnis „/root/media_build/v4l“ wird betreten
make[2]: Entering directory '/root/media_build/linux'
Applying patches for kernel 4.17.2-kirkwood-tld-1
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/noretpoline.patch
patch -s -f -N -p1 -i ../backports/v4.18_fix_warning_in_Aptina_MT9V111.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
Patched drivers/media/dvb-core/dvbdev.c
Patched drivers/media/v4l2-core/v4l2-dev.c
Patched drivers/media/rc/rc-main.c
make[2]: Leaving directory '/root/media_build/linux'
./scripts/make_kconfig.pl /lib/modules/4.17.2-kirkwood-tld-1/build /lib/modules/4.17.2-kirkwood-tld-1/build 1
Preparing to compile for kernel version 4.17.2
File not found: /lib/modules/4.17.2-kirkwood-tld-1/build/.config at ./scripts/make_kconfig.pl line 33, <IN> line 4.
Makefile:378: die Regel für Ziel „allyesconfig“ scheiterte
make[1]: *** [allyesconfig] Fehler 2
make[1]: Verzeichnis „/root/media_build/v4l“ wird verlassen
Makefile:26: die Regel für Ziel „allyesconfig“ scheiterte
make: *** [allyesconfig] Fehler 2
can't select all drivers at ./build line 525
root@debian:~/media_build# ls -la  /lib/modules/$(uname -r)/build
lrwxrwxrwx 1 root root 6 Aug  1 13:08 /lib/modules/4.17.2-kirkwood-tld-1/build -> kernel
root@debian:~/media_build# cd /lib/modules/4.17.2-kirkwood-tld-1/build
root@debian:/lib/modules/4.17.2-kirkwood-tld-1/build# cd ..
root@debian:/lib/modules/4.17.2-kirkwood-tld-1# unlink build
root@debian:/lib/modules/4.17.2-kirkwood-tld-1# ls -la
insgesamt 2424
drwxr-xr-x  3 root root   4096 Aug  1 13:20 .
drwxr-xr-x  6 root root   4096 Jul 31 22:51 ..
drwxr-xr-x 11 root root   4096 Aug  1 13:05 kernel
-rw-r--r--  1 root root 578546 Jul 31 22:52 modules.alias
-rw-r--r--  1 root root 579889 Jul 31 22:52 modules.alias.bin
-rw-r--r--  1 root root   6012 Jun 18 14:20 modules.builtin
-rw-r--r--  1 root root   8636 Jul 31 22:52 modules.builtin.bin
-rw-r--r--  1 root root 232587 Jul 31 22:52 modules.dep
-rw-r--r--  1 root root 327002 Jul 31 22:52 modules.dep.bin
-rw-r--r--  1 root root    289 Jul 31 22:52 modules.devname
-rw-r--r--  1 root root  86484 Jun 18 14:20 modules.order
-rw-r--r--  1 root root    414 Jul 31 22:52 modules.softdep
-rw-r--r--  1 root root 262866 Jul 31 22:52 modules.symbols
-rw-r--r--  1 root root 330249 Jul 31 22:52 modules.symbols.bin
root@debian:/lib/modules/4.17.2-kirkwood-tld-1# ln -s /usr/src/linux-headers-4.17.2-kirkwood-tld-1 build
root@debian:/lib/modules/4.17.2-kirkwood-tld-1# ls -la
insgesamt 2424
drwxr-xr-x  3 root root   4096 Aug  1 13:21 .
drwxr-xr-x  6 root root   4096 Jul 31 22:51 ..
lrwxrwxrwx  1 root root     44 Aug  1 13:21 build -> /usr/src/linux-headers-4.17.2-kirkwood-tld-1
drwxr-xr-x 11 root root   4096 Aug  1 13:05 kernel
-rw-r--r--  1 root root 578546 Jul 31 22:52 modules.alias
-rw-r--r--  1 root root 579889 Jul 31 22:52 modules.alias.bin
-rw-r--r--  1 root root   6012 Jun 18 14:20 modules.builtin
-rw-r--r--  1 root root   8636 Jul 31 22:52 modules.builtin.bin
-rw-r--r--  1 root root 232587 Jul 31 22:52 modules.dep
-rw-r--r--  1 root root 327002 Jul 31 22:52 modules.dep.bin
-rw-r--r--  1 root root    289 Jul 31 22:52 modules.devname
-rw-r--r--  1 root root  86484 Jun 18 14:20 modules.order
-rw-r--r--  1 root root    414 Jul 31 22:52 modules.softdep
-rw-r--r--  1 root root 262866 Jul 31 22:52 modules.symbols
-rw-r--r--  1 root root 330249 Jul 31 22:52 modules.symbols.bin
root@debian:/lib/modules/4.17.2-kirkwood-tld-1# cd
root@debian:~# cd media_build
root@debian:~/media_build# ./build
Checking if the needed tools for Debian GNU/Linux 9 \n \l are available
Needed package dependencies are met.

************************************************************
* This script will download the latest tarball and build it*
* Assuming that your kernel is compatible with the latest  *
* drivers. If not, you'll need to add some extra backports,*
* ./backports/<kernel> directory.                          *
* It will also update this tree to be sure that all compat *
* bits are there, to avoid compilation failures            *
************************************************************
************************************************************
* All drivers and build system are under GPLv2 License     *
* Firmware files are under the license terms found at:     *
* http://www.linuxtv.org/downloads/firmware/               *
* Please abort in the next 5 secs if you don't agree with  *
* the license                                              *
************************************************************

Not aborted. It means that the licence was agreed. Proceeding...

****************************
Updating the building system
****************************
Von git://linuxtv.org/media_build
 * branch            master     -> FETCH_HEAD
Bereits aktuell.
make: Verzeichnis „/root/media_build/linux“ wird betreten
wget http://linuxtv.org/downloads/drivers/linux-media-LATEST.tar.bz2.md5 -O linux-media.tar.bz2.md5.tmp
--2018-08-01 13:22:11--  http://linuxtv.org/downloads/drivers/linux-media-LATEST.tar.bz2.md5
Auflösen des Hostnamens »linuxtv.org (linuxtv.org)« … 130.149.80.248
Verbindungsaufbau zu linuxtv.org (linuxtv.org)|130.149.80.248|:80 … verbunden.
HTTP-Anforderung gesendet, auf Antwort wird gewartet … 301 Moved Permanently
Platz: https://linuxtv.org/downloads/drivers/linux-media-LATEST.tar.bz2.md5 [folgend]
--2018-08-01 13:22:11--  https://linuxtv.org/downloads/drivers/linux-media-LATEST.tar.bz2.md5
Verbindungsaufbau zu linuxtv.org (linuxtv.org)|130.149.80.248|:443 … verbunden.
HTTP-Anforderung gesendet, auf Antwort wird gewartet … 200 OK
Länge: 105 [application/x-bzip2]
Wird in »»linux-media.tar.bz2.md5.tmp«« gespeichert.

linux-media.tar.bz2 100%[===================>]     105  --.-KB/s    in 0s

2018-08-01 13:22:12 (627 KB/s) - »»linux-media.tar.bz2.md5.tmp«« gespeichert [105/105]

make: Verzeichnis „/root/media_build/linux“ wird verlassen
make: Verzeichnis „/root/media_build/linux“ wird betreten
tar xfj linux-media.tar.bz2
rm -f .patches_applied .linked_dir .git_log.md5
make: Verzeichnis „/root/media_build/linux“ wird verlassen
**********************************************************
* Downloading firmwares from linuxtv.org.                *
**********************************************************
firmware/dvb-usb-vp702x-01.fw
firmware/dvb-usb-vp7045-01.fw
firmware/dvb-fe-bcm3510-01.fw
firmware/as102_data2_st.hex
firmware/dvb-usb-terratec-h7-drxk.fw
firmware/isdbt_nova_12mhz.inp
firmware/Boot.S
firmware/dvb_nova_12mhz_b0.inp
firmware/dvb-fe-xc4000-1.4.1.fw
firmware/sms1xxx-hcw-55xxx-isdbt-02.fw
firmware/sms1xxx-nova-a-dvbt-01.fw
firmware/dvb-usb-avertv-a800-02.fw
firmware/cmmb_venice_12mhz.inp
firmware/dvb-fe-xc5000c-4.1.30.7.fw
firmware/v4l-cx23418-cpu.fw
firmware/v4l-cx23885-enc-broken.fw
firmware/dvb-fe-drxj-mc-vsb-1.0.8.fw
firmware/dvb_nova_12mhz.inp
firmware/dvb-usb-dib0700-1.20.fw
firmware/tdmb_nova_12mhz.inp
firmware/as102_data1_st.hex
firmware/dvb-fe-or51132-vsb.fw
firmware/dvb-usb-it9135-02.fw
firmware/v4l-cx23418-apu.fw
firmware/dvb-ttpci-01.fw-261f
firmware/v4l-cx23418-dig.fw
firmware/dvb-ttpci-01.fw-261c
firmware/dvb-usb-bluebird-01.fw
firmware/dvb-fe-or51211.fw
firmware/dvb-fe-or51132-qam.fw
firmware/sms1xxx-stellar-dvbt-01.fw
firmware/dvb-usb-dibusb-5.0.0.11.fw
firmware/dvb-fe-drxj-mc-vsb-qam-1.0.8.fw
firmware/dvb-usb-terratec-h5-drxk.fw
firmware/dvb-usb-wt220u-02.fw
firmware/v4l-cx23885-enc.fw
firmware/dvb-ttpci-01.fw-2622
firmware/dvb-usb-wt220u-01.fw
firmware/v4l-cx25840.fw
firmware/dvb-fe-drxj-mc-1.0.8.fw
firmware/v4l-cx231xx-avcore-01.fw
firmware/dvb-usb-dtt200u-01.fw
firmware/dvb-usb-dibusb-6.0.0.8.fw
firmware/sms1xxx-nova-b-dvbt-01.fw
firmware/dvb-fe-xc5000-1.6.114.fw
firmware/cmmb_vega_12mhz.inp
firmware/dvb-usb-it9135-01.fw
firmware/isdbt_nova_12mhz_b0.inp
firmware/dvb-ttpci-01.fw-261a
firmware/dvb-ttpci-01.fw-261b
firmware/dvb-ttpci-01.fw-261d
firmware/README
firmware/isdbt_rio.inp
firmware/dvb-usb-umt-010-02.fw
firmware/sms1xxx-hcw-55xxx-dvbt-02.fw
firmware/dvb-usb-terratec-h7-az6007.fw
firmware/v4l-cx23885-avcore-01.fw
******************
* Start building *
******************
make -C /root/media_build/v4l allyesconfig
make[1]: Verzeichnis „/root/media_build/v4l“ wird betreten
make[2]: Entering directory '/root/media_build/linux'
Applying patches for kernel 4.17.2-kirkwood-tld-1
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/noretpoline.patch
patch -s -f -N -p1 -i ../backports/v4.18_fix_warning_in_Aptina_MT9V111.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
Patched drivers/media/dvb-core/dvbdev.c
Patched drivers/media/v4l2-core/v4l2-dev.c
Patched drivers/media/rc/rc-main.c
make[2]: Leaving directory '/root/media_build/linux'
./scripts/make_kconfig.pl /lib/modules/4.17.2-kirkwood-tld-1/build /lib/modules/4.17.2-kirkwood-tld-1/build 1
Preparing to compile for kernel version 4.17.2

***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_DW9714: Requires at least kernel 9.255.255
Created default (all yes) .config file
./scripts/fix_kconfig.pl
make[1]: Verzeichnis „/root/media_build/v4l“ wird verlassen
make -C /root/media_build/v4l
make[1]: Verzeichnis „/root/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
perl scripts/make_config_compat.pl /lib/modules/4.17.2-kirkwood-tld-1/build ./.myconfig ./config-compat.h
creating symbolic links...
Kernel build directory is /lib/modules/4.17.2-kirkwood-tld-1/build
make -C ../linux apply_patches
make[2]: Entering directory '/root/media_build/linux'
Patches for 4.17.2-kirkwood-tld-1 already applied.
make[2]: Leaving directory '/root/media_build/linux'
make -C /lib/modules/4.17.2-kirkwood-tld-1/build SUBDIRS=/root/media_build/v4l  modules
make[2]: Entering directory '/usr/src/linux-headers-4.17.2-kirkwood-tld-1'
  CC [M]  /root/media_build/v4l/msp3400-driver.o
  CC [M]  /root/media_build/v4l/msp3400-kthreads.o
  LD [M]  /root/media_build/v4l/msp3400.o
  CC [M]  /root/media_build/v4l/smiapp-core.o
  CC [M]  /root/media_build/v4l/smiapp-regs.o
  CC [M]  /root/media_build/v4l/smiapp-quirk.o
  CC [M]  /root/media_build/v4l/smiapp-limits.o
  LD [M]  /root/media_build/v4l/smiapp.o
  CC [M]  /root/media_build/v4l/et8ek8_mode.o
  CC [M]  /root/media_build/v4l/et8ek8_driver.o
  LD [M]  /root/media_build/v4l/et8ek8.o
  CC [M]  /root/media_build/v4l/cx25840-core.o
  CC [M]  /root/media_build/v4l/cx25840-audio.o
  CC [M]  /root/media_build/v4l/cx25840-firmware.o
  CC [M]  /root/media_build/v4l/cx25840-vbi.o
  CC [M]  /root/media_build/v4l/cx25840-ir.o
  LD [M]  /root/media_build/v4l/cx25840.o
  CC [M]  /root/media_build/v4l/m5mols_core.o
  CC [M]  /root/media_build/v4l/m5mols_controls.o
  CC [M]  /root/media_build/v4l/m5mols_capture.o
  LD [M]  /root/media_build/v4l/m5mols.o
  CC [M]  /root/media_build/v4l/mt9m001.o
  CC [M]  /root/media_build/v4l/mt9t112.o
  CC [M]  /root/media_build/v4l/mt9v022.o
  CC [M]  /root/media_build/v4l/ov5642.o
  CC [M]  /root/media_build/v4l/ov772x.o
  CC [M]  /root/media_build/v4l/ov9640.o
  CC [M]  /root/media_build/v4l/ov9740.o
  CC [M]  /root/media_build/v4l/rj54n1cb0c.o
  CC [M]  /root/media_build/v4l/tw9910.o
  CC [M]  /root/media_build/v4l/aptina-pll.o
  CC [M]  /root/media_build/v4l/tvaudio.o
  CC [M]  /root/media_build/v4l/tda7432.o
  CC [M]  /root/media_build/v4l/saa6588.o
  CC [M]  /root/media_build/v4l/tda9840.o
  CC [M]  /root/media_build/v4l/tda1997x.o
  CC [M]  /root/media_build/v4l/tea6415c.o
  CC [M]  /root/media_build/v4l/tea6420.o
  CC [M]  /root/media_build/v4l/saa7110.o
  CC [M]  /root/media_build/v4l/saa7115.o
  CC [M]  /root/media_build/v4l/saa717x.o
  CC [M]  /root/media_build/v4l/saa7127.o
  CC [M]  /root/media_build/v4l/saa7185.o
  CC [M]  /root/media_build/v4l/saa6752hs.o
  CC [M]  /root/media_build/v4l/ad5820.o
  CC [M]  /root/media_build/v4l/ak7375.o
  CC [M]  /root/media_build/v4l/dw9807-vcm.o
  CC [M]  /root/media_build/v4l/adv7170.o
  CC [M]  /root/media_build/v4l/adv7175.o
  CC [M]  /root/media_build/v4l/adv7180.o
  CC [M]  /root/media_build/v4l/adv7183.o
  CC [M]  /root/media_build/v4l/adv7343.o
  CC [M]  /root/media_build/v4l/adv7393.o
  CC [M]  /root/media_build/v4l/adv748x-afe.o
  CC [M]  /root/media_build/v4l/adv748x-core.o
  CC [M]  /root/media_build/v4l/adv748x-csi2.o
  CC [M]  /root/media_build/v4l/adv748x-hdmi.o
  LD [M]  /root/media_build/v4l/adv748x.o
  CC [M]  /root/media_build/v4l/adv7604.o
  CC [M]  /root/media_build/v4l/ad9389b.o
  CC [M]  /root/media_build/v4l/vpx3220.o
  CC [M]  /root/media_build/v4l/vs6624.o
  CC [M]  /root/media_build/v4l/bt819.o
  CC [M]  /root/media_build/v4l/bt856.o
  CC [M]  /root/media_build/v4l/bt866.o
  CC [M]  /root/media_build/v4l/ks0127.o
  CC [M]  /root/media_build/v4l/ths7303.o
  CC [M]  /root/media_build/v4l/ths8200.o
  CC [M]  /root/media_build/v4l/tvp5150.o
  CC [M]  /root/media_build/v4l/tvp514x.o
  CC [M]  /root/media_build/v4l/tvp7002.o
  CC [M]  /root/media_build/v4l/tw2804.o
  CC [M]  /root/media_build/v4l/tw9903.o
  CC [M]  /root/media_build/v4l/tw9906.o
  CC [M]  /root/media_build/v4l/cs3308.o
  CC [M]  /root/media_build/v4l/cs5345.o
  CC [M]  /root/media_build/v4l/cs53l32a.o
  CC [M]  /root/media_build/v4l/m52790.o
  CC [M]  /root/media_build/v4l/tlv320aic23b.o
  CC [M]  /root/media_build/v4l/uda1342.o
  CC [M]  /root/media_build/v4l/wm8775.o
  CC [M]  /root/media_build/v4l/wm8739.o
  CC [M]  /root/media_build/v4l/vp27smpx.o
  CC [M]  /root/media_build/v4l/sony-btf-mpx.o
  CC [M]  /root/media_build/v4l/upd64031a.o
  CC [M]  /root/media_build/v4l/upd64083.o
  CC [M]  /root/media_build/v4l/ov2640.o
  CC [M]  /root/media_build/v4l/ov2680.o
  CC [M]  /root/media_build/v4l/ov2685.o
  CC [M]  /root/media_build/v4l/ov5640.o
  CC [M]  /root/media_build/v4l/ov5645.o
  CC [M]  /root/media_build/v4l/ov5647.o
  CC [M]  /root/media_build/v4l/ov5670.o
  CC [M]  /root/media_build/v4l/ov5695.o
  CC [M]  /root/media_build/v4l/ov6650.o
  CC [M]  /root/media_build/v4l/ov7251.o
  CC [M]  /root/media_build/v4l/ov7640.o
  CC [M]  /root/media_build/v4l/ov7670.o
  CC [M]  /root/media_build/v4l/ov7740.o
  CC [M]  /root/media_build/v4l/ov9650.o
  CC [M]  /root/media_build/v4l/ov13858.o
  CC [M]  /root/media_build/v4l/mt9m032.o
  CC [M]  /root/media_build/v4l/mt9m111.o
  CC [M]  /root/media_build/v4l/mt9p031.o
  CC [M]  /root/media_build/v4l/mt9t001.o
  CC [M]  /root/media_build/v4l/mt9v011.o
  CC [M]  /root/media_build/v4l/mt9v032.o
  CC [M]  /root/media_build/v4l/mt9v111.o
  CC [M]  /root/media_build/v4l/sr030pc30.o
  CC [M]  /root/media_build/v4l/noon010pc30.o
  CC [M]  /root/media_build/v4l/s5k6aa.o
  CC [M]  /root/media_build/v4l/s5k6a3.o
  CC [M]  /root/media_build/v4l/s5k4ecgx.o
  CC [M]  /root/media_build/v4l/s5k5baf.o
  CC [M]  /root/media_build/v4l/s5c73m3-core.o
  CC [M]  /root/media_build/v4l/s5c73m3-spi.o
  CC [M]  /root/media_build/v4l/s5c73m3-ctrls.o
  LD [M]  /root/media_build/v4l/s5c73m3.o
  CC [M]  /root/media_build/v4l/adp1653.o
  CC [M]  /root/media_build/v4l/lm3560.o
  CC [M]  /root/media_build/v4l/lm3646.o
  CC [M]  /root/media_build/v4l/smiapp-pll.o
  CC [M]  /root/media_build/v4l/ak881x.o
  CC [M]  /root/media_build/v4l/ir-kbd-i2c.o
  CC [M]  /root/media_build/v4l/video-i2c.o
  CC [M]  /root/media_build/v4l/ml86v7667.o
  CC [M]  /root/media_build/v4l/ov2659.o
  CC [M]  /root/media_build/v4l/tc358743.o
  CC [M]  /root/media_build/v4l/imx258.o
  CC [M]  /root/media_build/v4l/imx274.o
  CC [M]  /root/media_build/v4l/max2175.o
  CC [M]  /root/media_build/v4l/tuner-xc2028.o
  CC [M]  /root/media_build/v4l/tuner-simple.o
  CC [M]  /root/media_build/v4l/tuner-types.o
  CC [M]  /root/media_build/v4l/mt20xx.o
  CC [M]  /root/media_build/v4l/tda8290.o
  CC [M]  /root/media_build/v4l/tea5767.o
  CC [M]  /root/media_build/v4l/tea5761.o
  CC [M]  /root/media_build/v4l/tda9887.o
  CC [M]  /root/media_build/v4l/tda827x.o
  CC [M]  /root/media_build/v4l/tda18271-maps.o
  CC [M]  /root/media_build/v4l/tda18271-common.o
  CC [M]  /root/media_build/v4l/tda18271-fe.o
  LD [M]  /root/media_build/v4l/tda18271.o
  CC [M]  /root/media_build/v4l/xc5000.o
  CC [M]  /root/media_build/v4l/xc4000.o
  CC [M]  /root/media_build/v4l/msi001.o
  CC [M]  /root/media_build/v4l/mt2060.o
  CC [M]  /root/media_build/v4l/mt2063.o
  CC [M]  /root/media_build/v4l/mt2266.o
  CC [M]  /root/media_build/v4l/qt1010.o
  CC [M]  /root/media_build/v4l/mt2131.o
  CC [M]  /root/media_build/v4l/mxl5005s.o
  CC [M]  /root/media_build/v4l/mxl5007t.o
  CC [M]  /root/media_build/v4l/mc44s803.o
  CC [M]  /root/media_build/v4l/max2165.o
  CC [M]  /root/media_build/v4l/tda18218.o
  CC [M]  /root/media_build/v4l/tda18212.o
  CC [M]  /root/media_build/v4l/e4000.o
  CC [M]  /root/media_build/v4l/fc2580.o
  CC [M]  /root/media_build/v4l/tua9001.o
  CC [M]  /root/media_build/v4l/si2157.o
  CC [M]  /root/media_build/v4l/fc0011.o
  CC [M]  /root/media_build/v4l/fc0012.o
  CC [M]  /root/media_build/v4l/fc0013.o
  CC [M]  /root/media_build/v4l/it913x.o
  CC [M]  /root/media_build/v4l/r820t.o
  CC [M]  /root/media_build/v4l/mxl301rf.o
  CC [M]  /root/media_build/v4l/qm1d1c0042.o
  CC [M]  /root/media_build/v4l/qm1d1b0004.o
  CC [M]  /root/media_build/v4l/m88rs6000t.o
  CC [M]  /root/media_build/v4l/tda18250.o
  CC [M]  /root/media_build/v4l/dvb-pll.o
  CC [M]  /root/media_build/v4l/stv0299.o
  CC [M]  /root/media_build/v4l/stb0899_drv.o
  CC [M]  /root/media_build/v4l/stb0899_algo.o
  LD [M]  /root/media_build/v4l/stb0899.o
  CC [M]  /root/media_build/v4l/stb6100.o
  CC [M]  /root/media_build/v4l/sp8870.o
  CC [M]  /root/media_build/v4l/cx22700.o
  CC [M]  /root/media_build/v4l/s5h1432.o
  CC [M]  /root/media_build/v4l/cx24110.o
  CC [M]  /root/media_build/v4l/tda8083.o
  CC [M]  /root/media_build/v4l/l64781.o
  CC [M]  /root/media_build/v4l/dib3000mb.o
  CC [M]  /root/media_build/v4l/dib3000mc.o
  CC [M]  /root/media_build/v4l/dibx000_common.o
  CC [M]  /root/media_build/v4l/dib7000m.o
  CC [M]  /root/media_build/v4l/dib7000p.o
  CC [M]  /root/media_build/v4l/dib8000.o
  CC [M]  /root/media_build/v4l/dib9000.o
  CC [M]  /root/media_build/v4l/mt312.o
  CC [M]  /root/media_build/v4l/ves1820.o
  CC [M]  /root/media_build/v4l/ves1x93.o
  CC [M]  /root/media_build/v4l/tda1004x.o
  CC [M]  /root/media_build/v4l/sp887x.o
  CC [M]  /root/media_build/v4l/nxt6000.o
  CC [M]  /root/media_build/v4l/mt352.o
  CC [M]  /root/media_build/v4l/zl10036.o
  CC [M]  /root/media_build/v4l/zl10039.o
  CC [M]  /root/media_build/v4l/zl10353.o
  CC [M]  /root/media_build/v4l/cx22702.o
  CC [M]  /root/media_build/v4l/drxd_firm.o
  CC [M]  /root/media_build/v4l/drxd_hard.o
  LD [M]  /root/media_build/v4l/drxd.o
  CC [M]  /root/media_build/v4l/tda10021.o
  CC [M]  /root/media_build/v4l/tda10023.o
  CC [M]  /root/media_build/v4l/stv0297.o
  CC [M]  /root/media_build/v4l/nxt200x.o
  CC [M]  /root/media_build/v4l/or51211.o
  CC [M]  /root/media_build/v4l/or51132.o
  CC [M]  /root/media_build/v4l/bcm3510.o
  CC [M]  /root/media_build/v4l/s5h1420.o
  CC [M]  /root/media_build/v4l/lgdt330x.o
  CC [M]  /root/media_build/v4l/lgdt3305.o
  CC [M]  /root/media_build/v4l/lgdt3306a.o
  CC [M]  /root/media_build/v4l/lg2160.o
  CC [M]  /root/media_build/v4l/cx24123.o
  CC [M]  /root/media_build/v4l/lnbh25.o
  CC [M]  /root/media_build/v4l/lnbp21.o
  CC [M]  /root/media_build/v4l/lnbp22.o
  CC [M]  /root/media_build/v4l/isl6405.o
  CC [M]  /root/media_build/v4l/isl6421.o
  CC [M]  /root/media_build/v4l/tda10086.o
  CC [M]  /root/media_build/v4l/tda826x.o
  CC [M]  /root/media_build/v4l/tda8261.o
  CC [M]  /root/media_build/v4l/dib0070.o
  CC [M]  /root/media_build/v4l/dib0090.o
  CC [M]  /root/media_build/v4l/tua6100.o
  CC [M]  /root/media_build/v4l/s5h1409.o
  CC [M]  /root/media_build/v4l/itd1000.o
  CC [M]  /root/media_build/v4l/au8522_common.o
  CC [M]  /root/media_build/v4l/au8522_dig.o
  CC [M]  /root/media_build/v4l/au8522_decoder.o
  CC [M]  /root/media_build/v4l/tda10048.o
  CC [M]  /root/media_build/v4l/cx24113.o
  CC [M]  /root/media_build/v4l/s5h1411.o
  CC [M]  /root/media_build/v4l/lgs8gl5.o
  CC [M]  /root/media_build/v4l/tda665x.o
  CC [M]  /root/media_build/v4l/lgs8gxx.o
  CC [M]  /root/media_build/v4l/atbm8830.o
  CC [M]  /root/media_build/v4l/dvb_dummy_fe.o
  CC [M]  /root/media_build/v4l/af9013.o
  CC [M]  /root/media_build/v4l/cx24116.o
  CC [M]  /root/media_build/v4l/cx24117.o
  CC [M]  /root/media_build/v4l/cx24120.o
  CC [M]  /root/media_build/v4l/si21xx.o
  CC [M]  /root/media_build/v4l/si2168.o
  CC [M]  /root/media_build/v4l/stv0288.o
  CC [M]  /root/media_build/v4l/stb6000.o
  CC [M]  /root/media_build/v4l/s921.o
  CC [M]  /root/media_build/v4l/stv6110.o
  CC [M]  /root/media_build/v4l/stv0900_core.o
  CC [M]  /root/media_build/v4l/stv0900_sw.o
  LD [M]  /root/media_build/v4l/stv0900.o
  CC [M]  /root/media_build/v4l/stv090x.o
  CC [M]  /root/media_build/v4l/stv6110x.o
  CC [M]  /root/media_build/v4l/m88ds3103.o
  CC [M]  /root/media_build/v4l/mn88472.o
  CC [M]  /root/media_build/v4l/mn88473.o
  CC [M]  /root/media_build/v4l/isl6423.o
  CC [M]  /root/media_build/v4l/ec100.o
  CC [M]  /root/media_build/v4l/ds3000.o
  CC [M]  /root/media_build/v4l/ts2020.o
  CC [M]  /root/media_build/v4l/mb86a16.o
  CC [M]  /root/media_build/v4l/drxj.o
  LD [M]  /root/media_build/v4l/drx39xyj.o
  CC [M]  /root/media_build/v4l/mb86a20s.o
  CC [M]  /root/media_build/v4l/ix2505v.o
  CC [M]  /root/media_build/v4l/stv0367.o
  CC [M]  /root/media_build/v4l/cxd2820r_core.o
  CC [M]  /root/media_build/v4l/cxd2820r_c.o
  CC [M]  /root/media_build/v4l/cxd2820r_t.o
  CC [M]  /root/media_build/v4l/cxd2820r_t2.o
  LD [M]  /root/media_build/v4l/cxd2820r.o
  CC [M]  /root/media_build/v4l/cxd2841er.o
  CC [M]  /root/media_build/v4l/drxk_hard.o
  LD [M]  /root/media_build/v4l/drxk.o
  CC [M]  /root/media_build/v4l/tda18271c2dd.o
  CC [M]  /root/media_build/v4l/stv0910.o
  CC [M]  /root/media_build/v4l/stv6111.o
  CC [M]  /root/media_build/v4l/mxl5xx.o
  CC [M]  /root/media_build/v4l/si2165.o
  CC [M]  /root/media_build/v4l/a8293.o
  CC [M]  /root/media_build/v4l/sp2.o
  CC [M]  /root/media_build/v4l/tda10071.o
  CC [M]  /root/media_build/v4l/rtl2830.o
  CC [M]  /root/media_build/v4l/rtl2832.o
  CC [M]  /root/media_build/v4l/rtl2832_sdr.o
In file included from ./include/linux/netfilter.h:8:0,
                 from ./include/linux/netfilter/nf_conntrack_tuple_common.h:6,
                 from ./include/linux/netfilter/nf_conntrack_dccp.h:29,
                 from ./include/net/netns/conntrack.h:11,
                 from ./include/net/net_namespace.h:27,
                 from ./include/linux/netdevice.h:42,
                 from /root/media_build/v4l/../linux/include/media/dvb_net.h:22,
                 from /root/media_build/v4l/dvb_usb.h:32,
                 from /root/media_build/v4l/rtl2832_sdr.c:26:
./include/linux/if.h:28:54: fatal error: sys/socket.h: No such file or directory
 #include <sys/socket.h>   /* for struct sockaddr.  */
                                                      ^
compilation terminated.
scripts/Makefile.build:318: die Regel für Ziel „/root/media_build/v4l/rtl2832_sdr.o“ scheiterte
make[3]: *** [/root/media_build/v4l/rtl2832_sdr.o] Fehler 1
Makefile:1571: recipe for target '_module_/root/media_build/v4l' failed
make[2]: *** [_module_/root/media_build/v4l] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-4.17.2-kirkwood-tld-1'
Makefile:51: die Regel für Ziel „default“ scheiterte
make[1]: *** [default] Fehler 2
make[1]: Verzeichnis „/root/media_build/v4l“ wird verlassen
Makefile:26: die Regel für Ziel „all“ scheiterte
make: *** [all] Fehler 2
build failed at ./build line 526
root@debian:~/media_build#
Re: Help with building modules for Linux Kernel 4.17.2 Kirkwood
August 01, 2018 08:30AM
Giang,

I am traveling, not near my development rig, so can’t give you hands on help.

It might be you are using an older Make file that does not play well with new kernel. Can you find the include file sys/socket.h in the headers directory tree ?

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Help with building modules for Linux Kernel 4.17.2 Kirkwood
August 01, 2018 08:59AM
Hi bodhi,

i found socket.h in this dir. should be that one, right?
/usr/src/linux-headers-4.17.2-kirkwood-tld-1/include/linux/
Re: Help with building modules for Linux Kernel 4.17.2 Kirkwood
August 01, 2018 12:22PM
Giang,

I take it back. I recall this file is in the glibc.

Is your build environment conformed to what the media_build required?

Probably:
apt-get install libc6-dev


When in doubt, you can just install Debian build essentials to get all the necessary build components. Usually this will be enough for you to start building most modules.
apt-get install build-essential

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Help with building modules for Linux Kernel 4.17.2 Kirkwood
August 01, 2018 02:48PM
bodhi Wrote:
-------------------------------------------------------

> Is your build environment conformed to what the
> media_build required?

I really don't know. How do i look into this?

> Probably:
>
> apt-get install libc6-dev
>


> When in doubt, you can just install Debian build
> essentials to get all the necessary build
> components. Usually this will be enough for you to
> start building most modules.
>
> apt-get install build-essential
>


i installed both packages - the error still persists. :/
Re: Help with building modules for Linux Kernel 4.17.2 Kirkwood
August 01, 2018 06:44PM
So i tried this from a tvheadend thread [1]

git clone git://linuxtv.org/media_build.git
git clone --depth=1 https://github.com/trsqr/media_tree.git -b xboxone ./media
cd media_build
make dir DIR=../media
make distclean
make

this is the output:

root@debian:~/media_build# make distclean
make -C /root/media_build/v4l distclean
make[1]: Verzeichnis „/root/media_build/v4l“ wird betreten
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
rm -f .version .*.o.flags .*.o.d *.mod.gcno Makefile.media \
        Kconfig Kconfig.kern .config .config.cmd .myconfig \
        .kconfig.dep config-mycompat.h
rm -rf .tmp_versions .tmp*.ver .tmp*.o .*.gcno .cache.mk
rm -f scripts/lxdialog scripts/kconfig
make[1]: Verzeichnis „/root/media_build/v4l“ wird verlassen
root@debian:~/media_build# make
make -C /root/media_build/v4l
make[1]: Verzeichnis „/root/media_build/v4l“ wird betreten
No version yet, using 4.17.2-kirkwood-tld-1
scripts/make_makefile.pl
Updating/Creating .config
make[2]: Entering directory '/root/media_build/linux'
Syncing with dir ../../media
make[3]: Entering directory '/root/media_build/linux'
Unapplying patches
make[3]: Leaving directory '/root/media_build/linux'
Applying patches for kernel 4.17.2-kirkwood-tld-1
patch -s -f -N -p1 -i ../backports/api_version.patch
1 out of 1 hunk FAILED
Makefile:131: recipe for target 'apply_patches' failed
make[2]: *** [apply_patches] Error 1
make[2]: Leaving directory '/root/media_build/linux'
Preparing to compile for kernel version 4.17.2

***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_DW9714: Requires at least kernel 9.255.255
INTEL_ATOMISP: Requires at least kernel 9.255.255
Created default (all yes) .config file
./scripts/make_myconfig.pl
[ ! -f "./config-mycompat.h" ] && echo "/* empty config-mycompat.h */" > "./config-mycompat.h" || true
perl scripts/make_config_compat.pl /lib/modules/4.17.2-kirkwood-tld-1/build ./.myconfig ./config-compat.h
creating symbolic links...
Kernel build directory is /lib/modules/4.17.2-kirkwood-tld-1/build
make -C ../linux apply_patches
make[2]: Entering directory '/root/media_build/linux'
Syncing with dir ../../media
make[3]: Entering directory '/root/media_build/linux'
Unapplying patches
make[3]: Leaving directory '/root/media_build/linux'
Applying patches for kernel 4.17.2-kirkwood-tld-1
patch -s -f -N -p1 -i ../backports/api_version.patch
1 out of 1 hunk FAILED
Makefile:131: recipe for target 'apply_patches' failed
make[2]: *** [apply_patches] Error 1
make[2]: Leaving directory '/root/media_build/linux'
Makefile:51: die Regel für Ziel „default“ scheiterte
make[1]: *** [default] Fehler 2
make[1]: Verzeichnis „/root/media_build/v4l“ wird verlassen
Makefile:26: die Regel für Ziel „all“ scheiterte
make: *** [all] Fehler 2
root@debian:~/media_build#

I am all out of ideas :/

[1] https://tvheadend.org/boards/5/topics/13685?page=4
Re: Help with building modules for Linux Kernel 4.17.2 Kirkwood
August 01, 2018 11:44PM
Hi Giang,

I think the module build procedures you and ayosher are using probably a little old. You should find out which kernel version the released module source was last built on and use that kernel.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Help with building modules for Linux Kernel 4.17.2 Kirkwood
August 05, 2018 02:58PM
Currently im trying this.

I use this config file as i want to cut down some time from tvheadend [1]

root@debian:~/media_build/v4l# wget https://tvheadend.org/attachments/download/6361/PiXboxMBConfig.txt
root@debian:~/media_build/v4l# mv PiXboxMBConfig.txt xConfig.txt
root@debian:~/media_build/v4l# make menuconfig
after make install:

    tuners/: tda8290.ko tuner-simple.ko tuner-types.ko
                mc44s803.ko tda827x.ko xc5000.ko
                tda18271.ko mt20xx.ko tda9887.ko
                tuner-xc2028.ko xc4000.ko
        /: media.ko
        dvb-core/: dvb-core.ko
/sbin/depmod -a 4.17.2-kirkwood-tld-1


[1]https://www.tvheadend.org/boards/5/topics/13685?r=32427#message-32427



Edited 3 time(s). Last edit at 08/05/2018 08:26PM by Giang.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: