Announcement

Collapse
No announcement yet.

Announcement

Collapse
No announcement yet.

live TV for all rk3188 using XBMC and tvheadend

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Can anyone explain to me the difference between the V4L-DVB Device Drivers and liplianin / s2-liplianin-v39?

    thx SaX

    Comment


      AF9015 DVB-T USB on AllFine Fine9 Glory Tablet

      I managed to work AF9015 DVB-T USB on AllFine Fine9 Glory Tablet.
      I uploaded the following modules:
      insmod dvb-core.ko
      insmod dvb-pll.ko
      insmod mt2060.ko
      insmod qt1010.ko
      insmod af9013.ko
      insmod mxl5007t.ko
      insmod tda18218.ko
      insmod mxl5005s.ko
      insmod dvb_usb_v2.ko
      insmod dvb-usb-af9015.ko
      and
      dvb-usb-af9015.fw firmware.
      DroidTV starts, scans the channels and displays the channels, but when I choose a channel, the sound is working normally but the picture freezes.
      Does anyone know what could be the problem?

      I think is problem in MPEG 4 codec!
      Last edited by sax; 05 October 2014, 21:23.

      Comment


        At the end of works of tvheadend that most stable version (lates master source build)
        no crash (dvr config and other issue)
        perfectly work with dvb-s (find and map all channel HD and SD)

        ONLY DELET OLD .hts folder and
        change path of .hts folder init.d scrip
        data/.hts

        I think no need to compile new execbinary for tvheadend. that is enough

        new execbinary
        Last edited by taki; 11 October 2014, 00:13.

        Comment


          And new tvheandend can record tv channel webm format with xbmc
          Second issue
          TVHclient play mpeg2 channel hw decode with mxplayer
          TVHclient play MPEG4/Avc/h264 hw decode with mxplayer ( only dropped 45 second) but playing perfectly than dvdplayer of xbmc.
          All with minix X7 rk3188
          Attached Files
          Last edited by taki; 12 October 2014, 15:50.

          Comment


            Hi Taki.
            I need your help. I try to compile v4l follow step by sam321 in second post of this topic. I have Ubuntu 12.04 64bit with3.13.0-32-generic and compiled RK3188 kerner with Marvin the Paranoid Android Kernel Builder (https://github.com/phjanderson/marvin). Now I have folder Kernel-3188 with compiled kernel in my home/sax/android/Kernel-3188 directory.
            Then I follow steps 5,6 and 7:
            5. git clone --depth=1 git://linuxtv.org/media_build.git
            cd media_build
            6. make download untar
            7. make menuconfig ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- SRCDIR=/home/sax/android/Kernel-3188/
            and then i get this output:

            make -C /home/sax/android/media_build/v4l menuconfig
            make[1]: Entering directory `/home/sax/android/media_build/v4l'
            No version yet, using 3.13.0-32-generic
            make[1]: Leaving directory `/home/sax/android/media_build/v4l'
            make[1]: Entering directory `/home/sax/android/media_build/v4l'
            make[2]: Entering directory `/home/sax/android/media_build/linux'
            Applying patches for kernel 3.13.0-32-generic
            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/v3.16_netdev.patch
            patch -s -f -N -p1 -i ../backports/v3.16_wait_on_bit.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 `/home/sax/android/media_build/linux'
            ./scripts/make_kconfig.pl /home/sax/android/Kernel-3188/ /home/sax/android/Kernel-3188/
            Preparing to compile for kernel version 3.13.0
            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.
            RC_ST: Requires at least kernel 3.15.0
            Created default (all yes) .config file
            /home/sax/android/Kernel-3188//scripts/kconfig/mconf ./Kconfig
            ./Kconfig:718: unknown option "Say"
            ./Kconfig:719: unknown option "which"
            ./Kconfig:720: unknown option "The"
            ./Kconfig:722:warning: multi-line strings not supported
            ./Kconfig:722: unknown option "If"
            make[1]: *** [menuconfig] Error 1
            make[1]: Leaving directory `/home/sax/android/media_build/v4l'
            make: *** [menuconfig] Error 2

            And now I'm on dead end. Please help me.

            THX SaX

            Comment


              [QUOTE=JoKeRz;202145]Hi Taki - these are the steps I use to compile:

              Compilation

              1) Get kernel and compile it

              1.1) download the kernel source of your preference. For 4.2.2 I use phjanderson_Kernel-3188.

              1.2) Compile the kernel source. You need to have a good .config file in the root of the kernel directory. b
              select all dvb driver with driver menu
              make menuconfig ARCH=arm CROSS_COMPILE=arm-linux-gnueabi-[/CODE]
              later
              make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi-[/CODE]

              make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- modues[/CODE]

              2) Get the v4l package and compile it

              2.1) download video4linux:
              Code:
              git clone --depth=1 git://linuxtv.org/media_build.git
              2.2) Untar package
              Code:
              cd media_build
              make download untar
              2.3) Prepare package for cross-compilation and choose what drivers you want:
              Code:
              make menuconfig ARCH=arm CROSS_COMPILE:=/path to your toolchain/ SRCDIR=/home/sax/android/Kernel-3188
              Tip: it is a good idea to keep a copy of v4l/ .config safe somewhere for future compilations

              2.4) Compile v4l
              Code:
              make ARCH=arm CROSS_COMPILE:=/path to your toolchain/ SRCDIR=/home/sax/android/Kernel-3188
              Example:
              Code:
              make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- SRCDIR=/home/r/
              The outcome module drives (*.ko) should be in the v4l subdirectory.

              sax use this method. different only your kernel sorce and config

              Comment


                THX Taki, but I still have problem when I try to
                make menuconfig ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- SRCDIR=/home/sax/android/Kernel-3188


                Here is my whole procedure (I have already compile Kernel-3188)


                (Commands are marked bold and strange output and error are marked as bold and Italic):

                sax@ubuntu:~/android$ git clone --depth=1 git://linuxtv.org/media_build.git
                Cloning into 'media_build'...
                remote: Counting objects: 134, done.
                remote: Compressing objects: 100% (122/122), done.
                remote: Total 134 (delta 13), reused 71 (delta 7)
                Receiving objects: 100% (134/134), 181.85 KiB, done.
                Resolving deltas: 100% (13/13), done.
                sax@ubuntu:~/android$ cd media_build/
                sax@ubuntu:~/android/media_build$ make download untar
                make -C linux/ download untar
                make[1]: Entering directory `/home/sax/android/media_build/linux'
                wget http://linuxtv.org/downloads/drivers...ST.tar.bz2.md5 -O linux-media.tar.bz2.md5.tmp
                --2014-10-19 22:45:55-- http://linuxtv.org/downloads/drivers...ST.tar.bz2.md5
                Resolving linuxtv.org (linuxtv.org)... 130.149.80.248
                Connecting to linuxtv.org (linuxtv.org)|130.149.80.248|:80... connected.
                HTTP request sent, awaiting response... 200 OK
                Length: 101 [application/x-bzip2]
                Saving to: `linux-media.tar.bz2.md5.tmp'

                100%[======================================>] 101 --.-K/s in 0s

                2014-10-19 22:45:55 (10.2 MB/s) - `linux-media.tar.bz2.md5.tmp' saved [101/101]

                cat: linux-media.tar.bz2.md5: No such file or directory
                --2014-10-19 22:45:55-- http://linuxtv.org/downloads/drivers...LATEST.tar.bz2
                Resolving linuxtv.org (linuxtv.org)... 130.149.80.248
                Connecting to linuxtv.org (linuxtv.org)|130.149.80.248|:80... connected.
                HTTP request sent, awaiting response... 200 OK
                Length: 5094787 (4.9M) [application/x-bzip2]
                Saving to: `linux-media.tar.bz2'

                100%[======================================>] 5,094,787 536K/s in 9.9s

                2014-10-19 22:46:05 (503 KB/s) - `linux-media.tar.bz2' saved [5094787/5094787]

                tar xfj linux-media.tar.bz2
                rm -f .patches_applied .linked_dir .git_log.md5
                make[1]: Leaving directory `/home/sax/android/media_build/linux'
                make -C linux/ download untar
                make[1]: Entering directory `/home/sax/android/media_build/linux'
                wget http://linuxtv.org/downloads/drivers...ST.tar.bz2.md5 -O linux-media.tar.bz2.md5.tmp
                --2014-10-19 22:46:09-- http://linuxtv.org/downloads/drivers...ST.tar.bz2.md5
                Resolving linuxtv.org (linuxtv.org)... 130.149.80.248
                Connecting to linuxtv.org (linuxtv.org)|130.149.80.248|:80... connected.
                HTTP request sent, awaiting response... 200 OK
                Length: 101 [application/x-bzip2]
                Saving to: `linux-media.tar.bz2.md5.tmp'

                100%[======================================>] 101 --.-K/s in 0s

                2014-10-19 22:46:09 (12.9 MB/s) - `linux-media.tar.bz2.md5.tmp' saved [101/101]

                tar xfj linux-media.tar.bz2
                rm -f .patches_applied .linked_dir .git_log.md5
                make[1]: Leaving directory `/home/sax/android/media_build/linux'
                sax@ubuntu:~/android/media_build$ make menuconfig ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- SRCDIR=/home/sax/android/Kernel-3188
                make -C /home/sax/android/media_build/v4l menuconfig
                make[1]: Entering directory `/home/sax/android/media_build/v4l'
                No version yet, using 3.13.0-32-generic
                make[1]: Leaving directory `/home/sax/android/media_build/v4l'
                make[1]: Entering directory `/home/sax/android/media_build/v4l'
                make[2]: Entering directory `/home/sax/android/media_build/linux'
                Applying patches for kernel 3.13.0-32-generic
                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/v3.16_netdev.patch
                patch -s -f -N -p1 -i ../backports/v3.16_wait_on_bit.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 `/home/sax/android/media_build/linux'
                ./scripts/make_kconfig.pl /home/sax/android/Kernel-3188 /home/sax/android/Kernel-3188
                Preparing to compile for kernel version 3.13.0
                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.
                RC_ST: Requires at least kernel 3.15.0
                Created default (all yes) .config file
                /home/sax/android/Kernel-3188/scripts/kconfig/mconf ./Kconfig
                ./Kconfig:718: unknown option "Say"
                ./Kconfig:719: unknown option "which"
                ./Kconfig:720: unknown option "The"
                ./Kconfig:722:warning: multi-line strings not supported
                ./Kconfig:722: unknown option "If"
                make[1]: *** [menuconfig] Error 1
                make[1]: Leaving directory `/home/sax/android/media_build/v4l'
                make: *** [menuconfig] Error 2

                Comment


                  open with gedit media_build/v4l/Kconfig
                  delete line 718-722.
                  later recompile everthing ok

                  This error remote driver activate in kernel menuconfig.

                  Comment


                    A BIG thanks taki!!!!
                    You're the King!

                    THX SaX

                    Comment


                      mumudvb

                      taki - I saw a few threads ago that you were able to compile mumudvb for rk3188
                      I tried several times and was unsuccessful with the current build.
                      I would appreciate your help compiling it with CAM support and some info about the CC you used.
                      Thanks!

                      Comment


                        first unpack ndk
                        for example tar -xvf android-ndk-r9c.tar.bz2
                        later create folder this
                        home/yourusername/android-ndk-r9c

                        later use thsi cript script (for 64 bit)
                        perl buildndk
                        Code:
                        #!/bin/bash
                        
                        export ANDROID_NDK=android-ndk-r9c
                        export ANDROID_NDK_TOOLCHAIN_ROOT=android-toolchain-14a
                        $ANDROID_NDK/build/tools/make-standalone-toolchain.sh \
                          --system=linux-x86_64 \
                          --toolchain=arm-linux-androideabi-4.6 \
                          --platform=android-14 \
                          --install-dir=$ANDROID_NDK_TOOLCHAIN_ROOT
                        create

                        /home/yourusername/android-toolchain-14a

                        donwload mumudvb source unpack

                        /home/yourusername/mumudvb

                        here is mumudvb build script

                        Code:
                        #!/bin/sh
                        # Build script to android. Change the variables on "Path block" to the correct path.
                        
                        # Path block
                        ANDROID_NDK=/home/new/android-toolchain-14a    # Android NDK path
                        SRC_DIR=/home/new/mumudvb                # Path to MuMuDVB source
                        INSTALL_DIR=/home/new/mumudvb/out        # Path to android MuMuDVB install
                        INCLUDE_DIR=$ANDROID_NDK/sysroot/usr/include    # Path to linux/dvb headers (obrigatory) and iconv.h 
                        LIB_DIR=$ANDROID_NDK/sysroot/usr/lib        # Path to libiconv.a (optional)
                        export PATH="$ANDROID_NDK/bin/:$PATH"
                        export SYS_ROOT="$ANDROID_NDK/sysroot/"
                        export CC="arm-linux-androideabi-gcc --sysroot=$SYS_ROOT"
                        export CXX="arm-linux-androideabi-g++ --sysroot=$SYS_ROOT"
                        export CPP="arm-linux-androideabi-cpp --sysroot=$SYS_ROOT"
                        export LD="arm-linux-androideabi-ld"
                        export AR="arm-linux-androideabi-ar"
                        export RANLIB="arm-linux-androideabi-ranlib"
                        export STRIP="arm-linux-androideabi-strip"
                        export LDFLAGS="-L$LIB_DIR"
                        export CFLAGS="-I$INCLUDE_DIR"
                        export LIBS="-lc -lgcc -liconv"
                        
                        ./configure --host=arm-eabi --enable-android --enable-coverage --enable-scam-support --enable-tune_old --enable-duma --prefix=$INSTALL_DIR
                        
                        make
                        make install
                        you need libicon build for mumudvb

                        if you look pthread_cancel erro. I dont know how to fix it for cw. but you use disable-scam-support

                        Comment


                          Hi,

                          Just been reading through this thread and I understand half of it. Can someone answer my question to see if it's possible.

                          I have minix neo x8 and the only thing missing from this beauty of a device is tuners. Is it now possible to use a usb tuner connected with the x8, run xbmc and receive live tv (and ability to watch one channel record the other?).

                          Are things like ccams going to work with this type of setup?. This is exactly what I want, an android based powerful box with abaility to use tuners. I am looking at a evo xfinity box if this cannot work.

                          Thanks

                          Comment


                            Originally posted by chewz View Post
                            Hi,

                            Just been reading through this thread and I understand half of it. Can someone answer my question to see if it's possible.

                            I have minix neo x8 and the only thing missing from this beauty of a device is tuners. Is it now possible to use a usb tuner connected with the x8, run xbmc and receive live tv (and ability to watch one channel record the other?).

                            Are things like ccams going to work with this type of setup?. This is exactly what I want, an android based powerful box with abaility to use tuners. I am looking at a evo xfinity box if this cannot work.

                            Thanks
                            yes it is possible live tv with tvheadend on minix x8. only whick kernel used and usb dvb.
                            What your kernel. I can compile tvheadend for x8 android
                            Which you want use dvb usb tuner.
                            good dvb android evo xfinity box. use tvheadend and mpeg2 and avc mpeg 4 part on works like enigma2 with xbmc. but single core and mali mp400 Hisislicone. x8 powerfull than Hisislicone.

                            Comment


                              Hi taki

                              can upload to me driver for dvbsky s960 & last tvheadend

                              Minix 7 & FW10


                              here my info

                              2|root@android:/ # dmesg | grep -i dvb
                              <4>[ 74.073858] dvb_usb_digitv: Unknown symbol dvb_usb_generic_rw (err 0)
                              <4>[ 74.073972] dvb_usb_digitv: Unknown symbol dvb_usb_device_init (err 0)
                              <4>[ 74.074048] dvb_usb_digitv: Unknown symbol dvb_usb_device_exit (err 0)
                              <4>[ 74.074091] dvb_usb_digitv: Unknown symbol dvb_usb_generic_write (err 0)
                              <4>[ 74.666820] em28xx_dvb: Unknown symbol dvb_dmxdev_init (err 0)
                              <4>[ 74.666912] em28xx_dvb: Unknown symbol em28xx_write_reg (err 0)
                              <4>[ 74.666986] em28xx_dvb: Unknown symbol em28xx_stop_urbs (err 0)
                              <4>[ 74.667075] em28xx_dvb: Unknown symbol em28xx_gpio_set (err 0)
                              <4>[ 74.667137] em28xx_dvb: Unknown symbol em28xx_set_mode (err 0)
                              <4>[ 74.667183] em28xx_dvb: Unknown symbol dvb_register_adapter (err 0)
                              <4>[ 74.667256] em28xx_dvb: Unknown symbol em28xx_alloc_urbs (err 0)
                              <4>[ 74.667343] em28xx_dvb: Unknown symbol dvb_dmx_release (err 0)
                              <4>[ 74.667407] em28xx_dvb: Unknown symbol em28xx_uninit_usb_xfer (err 0)
                              <4>[ 74.667537] em28xx_dvb: Unknown symbol em28xx_write_reg_bits (err 0)
                              <4>[ 74.667646] em28xx_dvb: Unknown symbol em28xx_unregister_extension (err 0)
                              <4>[ 74.667699] em28xx_dvb: Unknown symbol dvb_net_init (err 0)
                              <4>[ 74.667744] em28xx_dvb: Unknown symbol dvb_dmx_swfilter (err 0)
                              <4>[ 74.667791] em28xx_dvb: Unknown symbol dvb_dmxdev_release (err 0)
                              <4>[ 74.667842] em28xx_dvb: Unknown symbol dvb_frontend_detach (err 0)
                              <4>[ 74.667883] em28xx_dvb: Unknown symbol dvb_net_release (err 0)
                              <4>[ 74.667935] em28xx_dvb: Unknown symbol em28xx_register_extension (err 0)
                              <4>[ 74.667994] em28xx_dvb: Unknown symbol dvb_unregister_frontend (err 0)
                              <4>[ 74.668058] em28xx_dvb: Unknown symbol em28xx_init_usb_xfer (err 0)
                              <4>[ 74.668098] em28xx_dvb: Unknown symbol em28xx_tuner_callback (err 0)
                              <4>[ 74.668156] em28xx_dvb: Unknown symbol dvb_frontend_resume (err 0)
                              <4>[ 74.668197] em28xx_dvb: Unknown symbol dvb_register_frontend (err 0)
                              <4>[ 74.668255] em28xx_dvb: Unknown symbol dvb_frontend_suspend (err 0)
                              <4>[ 74.668295] em28xx_dvb: Unknown symbol em28xx_setup_xc3028 (err 0)
                              <4>[ 74.668345] em28xx_dvb: Unknown symbol em28xx_free_device (err 0)
                              <4>[ 74.668387] em28xx_dvb: Unknown symbol dvb_unregister_adapter (err 0)
                              <4>[ 74.668483] em28xx_dvb: Unknown symbol dvb_dmx_init (err 0)
                              [1] + Done (1) dmesg |
                              Done (2) grep -i
                              root@android:/ #
                              Last edited by nayef; 01 December 2014, 13:14.

                              Comment


                                Hi Taki I really admire your work!

                                I have a similar box to the Minix Neo 8 - a S802 chip based M8 (square box) running kernel 3.10.33. The source code is available from http://openlinux.amlogic.com:8000/download/ARM/kernel/. My box is 2GB ram and K200 config.

                                I have 2 usb tuners IT9135 and rtl2832u.

                                I would really appreciate if you could compile tvheadend for my M*

                                Thanks
                                Last edited by sd26; 01 December 2014, 11:51.

                                Comment

                                Working...
                                X