HOWTO: Install/upgrade Tvheadend on FFP0.7-arm

Marvell Kirkwood based
barmalej2
Posts: 2387
Joined: Sun Apr 29, 2012 5:24 pm

Re: HOWTO: Install/upgrade Tvheadend on FFP0.7-arm

Post by barmalej2 » Wed May 31, 2017 11:45 am

Do You have a copy of old packages? I will try install them manually.
Yes I have them, all of previous builds in one dir. Do you know which one you need? I don't, because I don't keep a list of updated packages.
Dependencies tree in linux is a real headache.
You have precompiled dependencies. Will it be difficult to compile versions 4.1 and 4.3? I want to try them.
I built 4.3 version already. It is really buggy, some streams not found and not recognizes alives or dead ones. Scan result for all of them is Fail. This is normal, because it development version and should not be used in regular use.
If you want to test it, then be my guest:
http://downloads.zyxel.nas-central.org/ ... -arm-1.txz
Regarding older versions like 4.0.9 and 4.0.10 I answered in previuos post. Didn't tried 4.1 yet, but can do that a bit later. Note: it is development version also and released in 2015 may 15, so I doubt it will compile with latest ffmpeg.
I can upload build scripts of packages to NAS central if you wish to try yourself. You will need to modify each of them and adapt to your system.

vlmaksime
Posts: 12
Joined: Sun Apr 30, 2017 3:17 pm

Re: HOWTO: Install/upgrade Tvheadend on FFP0.7-arm

Post by vlmaksime » Wed May 31, 2017 2:37 pm

barmalej2 wrote:It is really buggy, some streams not found and not recognizes alives or dead ones. Scan result for all of them is Fail. This is normal, because it development version and should not be used in regular use.
I have the same problem on 4.2, when I made a clean install. There are 86 streams in my IPTV, but only 7 were found.

barmalej2
Posts: 2387
Joined: Sun Apr 29, 2012 5:24 pm

Re: HOWTO: Install/upgrade Tvheadend on FFP0.7-arm

Post by barmalej2 » Wed May 31, 2017 5:51 pm

OK. Let's try downgrade first. It might be simpler than I thought, because older ffmpeg and tvheadend has less dependencies than current builds.

Code: Select all

sh /ffp/start/tvheadend.sh stop
rm -rf /ffp/etc/tvheadend

Code: Select all

mkdir -p /ffp/funpkg/cache/br2/tvheadend-4.0.9
cd /ffp/funpkg/cache/br2/tvheadend-4.0.9

Code: Select all

wget -e robots=off -nv -np -nd -H -r --level=1 -A txz http://downloads.zyxel.nas-central.org/Users/barmalej2/ffp/0.7/arm/packages/testing/old/tvheadend-4.0.9/

Code: Select all

funpkg -u $(ls *.txz | xargs)
Then paste me outputs of

Code: Select all

ldd /ffp/bin/ffmpeg
ldd /ffp/bin/tvheadend 
and run this tool:
viewtopic.php?f=249&t=14699

vlmaksime
Posts: 12
Joined: Sun Apr 30, 2017 3:17 pm

Re: HOWTO: Install/upgrade Tvheadend on FFP0.7-arm

Post by vlmaksime » Wed May 31, 2017 6:28 pm

I tested 4.3, the same problem as on 4.2. The stream shows several minutes and waits for buffering.
Now I'll try to downgrade the version

vlmaksime
Posts: 12
Joined: Sun Apr 30, 2017 3:17 pm

Re: HOWTO: Install/upgrade Tvheadend on FFP0.7-arm

Post by vlmaksime » Wed May 31, 2017 6:54 pm

Thanks. Tvheadend successfully downgraded back to 4.0.9. Now streams works perfect.
Here is output of commands:

Code: Select all

root@DNS-325:/ffp/funpkg/cache/br2/tvheadend-4.0.9# ldd /ffp/bin/ffmpeg
ldd: can't open cache '/ffp/etc/ld.so.cache'
        libavdevice.so.55 => /ffp/lib/libavdevice.so.55 (0x40002000)
        libavfilter.so.3 => /ffp/lib/libavfilter.so.3 (0x40016000)
        libavformat.so.55 => /ffp/lib/libavformat.so.55 (0x400ef000)
        libavresample.so.1 => /ffp/lib/libavresample.so.1 (0x4023f000)
        libavcodec.so.55 => /ffp/lib/libavcodec.so.55 (0x40256000)
        libpostproc.so.52 => /ffp/lib/libpostproc.so.52 (0x40f60000)
        libswresample.so.0 => /ffp/lib/libswresample.so.0 (0x40f76000)
        libswscale.so.2 => /ffp/lib/libswscale.so.2 (0x40f91000)
        libavutil.so.52 => /ffp/lib/libavutil.so.52 (0x40fe0000)
        libm.so.0 => /ffp/lib/libm.so.0 (0x41043000)
        libpthread.so.0 => /ffp/lib/libpthread.so.0 (0x4105d000)
        libc.so.0 => /ffp/lib/libc.so.0 (0x41079000)
        libfreetype.so.6 => /ffp/lib/libfreetype.so.6 (0x410e4000)
        libass.so.4 => /ffp/lib/libass.so.4 (0x4118c000)
        libfontconfig.so.1 => /ffp/lib/libfontconfig.so.1 (0x411b0000)
        librtmp.so.1 => /ffp/lib/librtmp.so.1 (0x411f8000)
        libz.so.1 => /ffp/lib/libz.so.1 (0x41211000)
        libbz2.so.1.0 => /ffp/lib/libbz2.so.1.0 (0x41231000)
        libiconv.so.2 => /ffp/lib/libiconv.so.2 (0x41242000)
        libx264.so.140 => /ffp/lib/libx264.so.140 (0x41329000)
        libtwolame.so.0 => /ffp/lib/libtwolame.so.0 (0x414b1000)
        libshine.so.3 => /ffp/lib/libshine.so.3 (0x414df000)
        libopus.so.0 => /ffp/lib/libopus.so.0 (0x414f1000)
        libmp3lame.so.0 => /ffp/lib/libmp3lame.so.0 (0x41546000)
        ld-uClibc.so.0 => /ffp/lib/ld-uClibc.so.0 (0x2a000000)
        libdl.so.0 => /ffp/lib/libdl.so.0 (0x415cd000)
        libfribidi.so.0 => /ffp/lib/libfribidi.so.0 (0x415d8000)
        libgcc_s.so.1 => /ffp/lib/libgcc_s.so.1 (0x415f7000)
        libexpat.so.1 => /ffp/lib/libexpat.so.1 (0x4161e000)
        libssl.so.1.0.0 => /ffp/lib/libssl.so.1.0.0 (0x41646000)
        libcrypto.so.1.0.0 => /ffp/lib/libcrypto.so.1.0.0 (0x416aa000)
root@DNS-325:/ffp/funpkg/cache/br2/tvheadend-4.0.9# ldd /ffp/bin/tvheadend
ldd: can't open cache '/ffp/etc/ld.so.cache'
        libdvben50221.so => /ffp/lib/libdvben50221.so (0x40002000)
        libdvbapi.so => /ffp/lib/libdvbapi.so (0x40017000)
        libucsi.so => /ffp/lib/libucsi.so (0x40023000)
        libssl.so.1.0.0 => /ffp/lib/libssl.so.1.0.0 (0x40041000)
        libcrypto.so.1.0.0 => /ffp/lib/libcrypto.so.1.0.0 (0x400a5000)
        libz.so.1 => /ffp/lib/libz.so.1 (0x40226000)
        liburiparser.so.1 => /ffp/lib/liburiparser.so.1 (0x40246000)
        libavcodec.so.55 => /ffp/lib/libavcodec.so.55 (0x40265000)
        libavutil.so.52 => /ffp/lib/libavutil.so.52 (0x40f6f000)
        libavformat.so.55 => /ffp/lib/libavformat.so.55 (0x40fd2000)
        libswscale.so.2 => /ffp/lib/libswscale.so.2 (0x41122000)
        libavresample.so.1 => /ffp/lib/libavresample.so.1 (0x41172000)
        libdbus-1.so.3 => /ffp/lib/libdbus-1.so.3 (0x41189000)
        libdl.so.0 => /ffp/lib/libdl.so.0 (0x411cc000)
        libpthread.so.0 => /ffp/lib/libpthread.so.0 (0x411d7000)
        libm.so.0 => /ffp/lib/libm.so.0 (0x411f2000)
        libiconv.so.2 => /ffp/lib/libiconv.so.2 (0x4120c000)
        librt.so.0 => /ffp/lib/librt.so.0 (0x412f3000)
        libc.so.0 => /ffp/lib/libc.so.0 (0x412fe000)
        libgcc_s.so.1 => /ffp/lib/libgcc_s.so.1 (0x41369000)
        libx264.so.140 => /ffp/lib/libx264.so.140 (0x41390000)
        libtwolame.so.0 => /ffp/lib/libtwolame.so.0 (0x41518000)
        libshine.so.3 => /ffp/lib/libshine.so.3 (0x41547000)
        libopus.so.0 => /ffp/lib/libopus.so.0 (0x41558000)
        libmp3lame.so.0 => /ffp/lib/libmp3lame.so.0 (0x415ad000)
        librtmp.so.1 => /ffp/lib/librtmp.so.1 (0x41634000)
        libbz2.so.1.0 => /ffp/lib/libbz2.so.1.0 (0x4164d000)
        ld-uClibc.so.0 => /ffp/lib/ld-uClibc.so.0 (0x2a000000)
affected-files.txt

Code: Select all

/ffp/lib/php/extensions/no-debug-non-zts-20100525/gd.so
missing-libs.txt

Code: Select all

/ffp/lib/php/extensions/no-debug-non-zts-20100525/gd.so:
checking sub-depends for 'not found'
	libpng15.so.15 => not found (0x00000000)

barmalej2
Posts: 2387
Joined: Sun Apr 29, 2012 5:24 pm

Re: HOWTO: Install/upgrade Tvheadend on FFP0.7-arm

Post by barmalej2 » Wed May 31, 2017 7:17 pm

If you don't use php package then better remove it, you have very old and outdated php. If you need it then create symlink:

Code: Select all

ln -s /ffp/lib/libpng16.so.16 /ffp/lib/libpng15.so.15
and rerun lddd.
Caution: be careful using slapt-get from now. Installing others packages might break your current running tvheadend daemon service, because it will update your current packages, while you need downgraded ones.

vlmaksime
Posts: 12
Joined: Sun Apr 30, 2017 3:17 pm

Re: HOWTO: Install/upgrade Tvheadend on FFP0.7-arm

Post by vlmaksime » Wed May 31, 2017 7:51 pm

I created a symlink for libpng. After that, the lddd reported: "Congratulations! No missing libraries was found in /ffp."
Do you have any idea why the new versions didn't work?
barmalej2 wrote:I can upload build scripts of packages to NAS central if you wish to try yourself. You will need to modify each of them and adapt to your system.
Upload this scripts,I'll try to build them on my NAS. Maybe it will help.

barmalej2
Posts: 2387
Joined: Sun Apr 29, 2012 5:24 pm

Re: HOWTO: Install/upgrade Tvheadend on FFP0.7-arm

Post by barmalej2 » Wed May 31, 2017 9:10 pm

vlmaksime wrote:Do you have any idea why the new versions didn't work?
Of course not. I am not developer of tvheadend and I am not regular user of it too. As you can imagine now, newer version doesn't mean better and this applies to other programs sometimes as well.
vlmaksime wrote:Upload this scripts,I'll try to build them on my NAS. Maybe it will help.
Ok. Will upload tomorrow. I have no doubts it will not help you.

barmalej2
Posts: 2387
Joined: Sun Apr 29, 2012 5:24 pm

Re: HOWTO: Install/upgrade Tvheadend on FFP0.7-arm

Post by barmalej2 » Thu Jun 01, 2017 2:31 pm

All the build scripts and build logs are uploaded to nas-central downloads.
List of current packages in br2 repository, descriptions, dependencies can be found here.
Good luck.

mandm
Posts: 2
Joined: Sun Feb 11, 2018 11:47 am

Re: HOWTO: Install/upgrade Tvheadend on FFP0.7-arm

Post by mandm » Sun Feb 11, 2018 12:02 pm

Hi!

I followed the HowTo!
I have a Avery Media Volar green Usb tuner, but I can't see frontend in dvb director.

Code: Select all

ls -la /dev/dvb/adapter*
drwxr-xr-x 2 root root 0 Feb 10 16:16 .
drwxr-xr-x 3 root root 0 Feb 10 16:16 ..
crw-rw---- 1 root video 212, 0 Feb 10 16:37 demux0
crw-rw---- 1 root video 212, 1 Feb 10 16:37 dvr0
crw-rw---- 1 root video 212, 2 Feb 10 16:37 net0
After udev debug:
#######################################
# HD0 awaked by kjournald2 ! #
#######################################
---> HD0 back to green on, off blink
In usb_disconnect, and number is 1 .....
usb 1-1.3: USB disconnect, address 7
usb 1-1.3: new full speed USB device using ehci_marvell and address 8
In hub_port_init, and number is 1, retry 0, port 3 .....
usb 1-1.3: new high speed USB device using ehci_marvell and address 9
In hub_port_init, and number is 2, retry 1, port 3 .....
usb 1-1.3: configuration #1 chosen from 1 choice
usb 1-1.3: dvb_usb_af9035: prechip_version=00 chip_version=03 chip_type=3802
usb 1-1.3: dvb_usb_v2: found a 'AVerMedia AVerTV Volar HD/PRO (A835)' in cold state
usb 1-1.3: firmware: requesting dvb-usb-af9035-02.fw
usb 1-1.3: dvb_usb_v2: downloading firmware from file 'dvb-usb-af9035-02.fw'
usb 1-1.3: dvb_usb_af9035: firmware version=12.13.15.0
usb 1-1.3: dvb_usb_v2: found a 'AVerMedia AVerTV Volar HD/PRO (A835)' in warm state
usb 1-1.3: dvb_usb_v2: will pass the complete MPEG2 transport stream to the software demuxer
DVB: registering new adapter (AVerMedia AVerTV Volar HD/PRO (A835))
DVB: Unable to find symbol af9033_attach()
Please, help me, whatis the problem (This tuner works well in my Amlogic905x box)
Thank You!

barmalej2
Posts: 2387
Joined: Sun Apr 29, 2012 5:24 pm

Re: HOWTO: Install/upgrade Tvheadend on FFP0.7-arm

Post by barmalej2 » Sun Feb 11, 2018 6:20 pm

I guess Amlogic905x has newer kernel, thus it has newer drivers. dvb_usb_af9035 for 2.6.31.8 kernel is buggy driver and doesn't works as you might expect.
Load frontend driver manually:

Code: Select all

modprobe af9033
Next see, what else you need to load:

Code: Select all

/bin/dmesg | tail -n30
Overall goal is to figure out all required modules load chain for your USB dongle and create appropriate modprobe rule to load them with one command. Similar thing we done on this topic:
https://forum.nas-central.org/viewtopic ... 75#p105777

mandm
Posts: 2
Joined: Sun Feb 11, 2018 11:47 am

Re: HOWTO: Install/upgrade Tvheadend on FFP0.7-arm

Post by mandm » Thu Feb 15, 2018 1:58 pm

Thank You!

I will continue...on the next week

tavoc
Posts: 4
Joined: Fri Feb 16, 2018 6:58 pm

Re: HOWTO: Install/upgrade Tvheadend on FFP0.7-arm

Post by tavoc » Fri Feb 16, 2018 7:06 pm

Hi barmalej2,

thanks for your tvheadend guide. I succesfully installed it on a Zyxcel NSA 325v2 with following modifations to meet the dependency errors:

slapt-get -i dbus-1.6.0-arm-1
slapt-get -i ffmpeg


Is it possible to provide tvheadend 4.2.5 or give me a hint how to compile it by myself? I have no experience with compiling for armv5 systems, only in normal x86.

Thanks

barmalej2
Posts: 2387
Joined: Sun Apr 29, 2012 5:24 pm

Re: HOWTO: Install/upgrade Tvheadend on FFP0.7-arm

Post by barmalej2 » Fri Feb 16, 2018 9:08 pm

The install instructions on first post are outdated. Relevant ones are based on slapt-get:
http://forum.nas-central.org:443/viewto ... 97#p109197
Is it possible to provide tvheadend 4.2.5 or give me a hint how to compile it by myself? I have no experience with compiling for armv5 systems, only in normal x86.
Possible DIY:

Code: Select all

slapt-get -i ffp-buildtools
/ffp/bin/wget 'http://downloads.zyxel.nas-central.org/Users/barmalej2/ffp/0.7/arm/scripts/reposcripts/gendeps' -O /ffp/bin/gendeps
/ffp/bin/wget 'http://downloads.zyxel.nas-central.org/Users/barmalej2/ffp/0.7/arm/scripts/build/src/tvheadend/tvheadend.sh' -O /mnt/HD_a2/tvheadend.sh
/ffp/bin/wget 'http://downloads.zyxel.nas-central.org/Users/barmalej2/ffp/0.7/arm/scripts/build/src/tvheadend/tvheadend.conf' -O /mnt/HD_a2/tvheadend.conf
chmod 755 /mnt/HD_a2/tvheadend.sh
chmod 755 /ffp/bin/gendeps
sed -i 's|4.2.2|4.2.5|' /mnt/HD_a2/tvheadend.sh
nohup ./tvheadend.sh >> tvheadend.log 2>&1 &
I prefer to track compilation process by opening log file in Midnight's Commmander's internal viewer and pressing End or PageDown buttons.

User avatar
MrDini
Posts: 651
Joined: Mon Dec 21, 2015 7:21 pm
Contact:

Re: HOWTO: Install/upgrade Tvheadend on FFP0.7-arm

Post by MrDini » Fri Feb 16, 2018 10:16 pm

Another way for interactive logging is to use screen. It has a great log feature which Can be invoked every time while the screen window is on focus by pressing Ctrl+a and after that, an upper-case H. Then, a new file, called screenlog.X will be created. You Can also send it to the background by the usual Ctrl+a d combination. And after that, it is easy to get back your session after a relogin or some command executing with a "screen -r" command.

And if you'd like to log every opened session (because the screen is launched inside the build script or whatever), you Can pass the logging feature by a command flag. :)

It isn't the part of FFp by default, but such a useful thing IMO. And way easier than nohup and the output redirecting. :)
Thanks nas-central the lot of help! :)

Post Reply