Project

General

Profile

[Unofficial] Raspberry Pi / armhf builds

Added by Jonathan Thomson almost 4 years ago

As a way of giving something back to the community, I have set up a bintray repository for some Raspberry Pi / armhf builds of TVHeadend. I am by no means promising to keep this bang up to date, but I'll add releases as and when I can.

Check the changelog below for details about what packages are in this repository - the aim is to maintain a stable and unstable branch.

I have implemented a BuildBot script on the Pi that is building these files. The purpose of the BuildBot is to check out the new code, compile it into a redistributable Debian (.deb) archive and automatically publish it to Bintray. This is an ALPHA-like trial at the moment as I need to wait for a change to the 4.1 branch to check that it works end-to-end. The benefit of this is that new builds will be uploaded to Bintray within 24 hours of the code being added to Github - I'll review these timings later providing the script works as expected, with the aim of doing 4 build cycles per branch (4 stable and 4 unstable) per day - that will cut the 24 hour wait down to a maximum of 8 hours delay between Github and my Bintray repository.

To set up my this repository;

$ sudo nano /etc/apt/sources.list

add the following to the sources.list file

deb https://dl.bintray.com/djbenson/deb wheezy stable (for the stable wheezy branch)
deb https://dl.bintray.com/djbenson/deb wheezy unstable (for the unstable/nightly wheezy branch)

NOTE: Remember, even if you are running Jessie, you MUST add the wheezy repository to get my builds. I will move to Jessie at some point but for now wheezy builds work fine on Jessie and cover the two most used Raspbery Pi operating systems in use at the moment.

Save and exit (CTRL+O then CTRL+X)

The following may be necessary on a clean Debian install (thanks to Mike Somerville for this tip)

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 379CE192D401AB61

This adds the keys required to download software from bintray without receiving signature errors.

$ sudo apt-get update
$ sudo apt-get install tvheadend

If you get an error like this;

E: The method driver /usr/lib/apt/methods/https could not be found.
N: Is the package apt-transport-https installed?

Then run

$ sudo apt-get install apt-transport-https

Then run the above commands again.

You may get a package verification error - until I work out how to fix that, simply enter "Y" at the prompt.

Some caveats/useful information:
  1. This repository supports only armhf builds at the moment
  2. Regardless of whether you are running Wheezy or Jessie, you MUST enable only the wheezy branch to receive my builds
  3. Both stable (4.0) and unstable/git-master (4.1) branches are supported
  4. Binaries are now compiled on native Raspberry Pi hardware (Pi 1 B+) using Raspbian Wheezy, cross-compilation caused me too many headaches
  5. Due to a bug in the GCC compiler, ffmpeg_static is disabled in my builds. This shouldn't cause many issues as the Pi (even version 3) is low-powered and not really capable of reliable transcoding duties. I think (but cannot confirm) that TVHeadend will use ffmpeg if it's installed on your system despite it not being compiled into the TVHeadend binary (if somebody can confirm this I'd appreciate it)
--prefix=/usr --includedir=${prefix}/include --mandir=${prefix}/share/man --infodir=${prefix}/share/info --sysconfdir=/etc --localstatedir=/var --disable-silent-rules --libexecdir=${prefix}/lib/tvheadend --disable-maintainer-mode --disable-dependency-tracking --disable-ffmpeg_static --enable-hdhomerun_static --enable-dvbcsa --enable-bundle

Changelog (As of 2016-11-24, builds are added to Bintray automatically so this changelog will no longer be updated with build-specific information)

2016-11-24 Enabled automated build/deployment script which will take care of adding new builds to Bintray
2016-11-23 Switched to native Raspbery Pi hardware (Pi v1 B+) instead of cross-compiling
2016-11-22 armhf build 4.1-2331-gf2371cf added to the repository
           armhf build 4.1-2330~g3a113b6 added to the repository
2016-11-18 armhf build 4.0.9-13~g64fec81 added to the repository
           armhf build 4.1-2328~gca5f094 added to the repository (see note on page 2!)
2016-09-07 armhf build 4.0.9-12~ge5400e2 added to the repository
2016-09-06 only wheezy builds will be published going forward
2016-09-06 armhf build 4.1-2236~g817f67e added to the repository
2016-07-21 armhf build 4.1-2141~g01c26fc~jessie added to repository
2016-07-19 armhf build 4.1-2141~g01c26fc added to repository
2016-07-01 armhf build 4.1-2140~gf34fac1 added to repository
2016-06-30 armhf build 4.1-2135~g631b6b5 added to repository
           armhf build 4.0.9-5~g4749320 added to repository


Replies (95)

RE: [Unofficial] Raspberry Pi / armhf builds - Added by Josu Lazkano almost 3 years ago

Hello,

Is it possible to add rpi build to doozer?

Regards.

RE: [Unofficial] Raspberry Pi / armhf builds - Added by a a almost 3 years ago

Josu Lazkano wrote:

Hello,

Is it possible to add rpi build to doozer?

Regards.

What does that involve? Not familiar with doozer.

RE: [Unofficial] Raspberry Pi / armhf builds - Added by Josu Lazkano almost 3 years ago

a a wrote:

Josu Lazkano wrote:

Hello,

Is it possible to add rpi build to doozer?

Regards.

What does that involve? Not familiar with doozer.

Hello,

They are automatic build for every github commit.

Actually there are build for Debian, Ubuntu, CentOS... But not for ARM devices.

Regards.

RE: [Unofficial] Raspberry Pi / armhf builds - Added by a a almost 3 years ago

Josu Lazkano wrote:

a a wrote:

Josu Lazkano wrote:

Hello,

Is it possible to add rpi build to doozer?

Regards.

What does that involve? Not familiar with doozer.

Hello,

They are automatic build for every github commit.

Actually there are build for Debian, Ubuntu, CentOS... But not for ARM devices.

Regards.

If you could provide me with instructions I'll try.

RE: [Unofficial] Raspberry Pi / armhf builds - Added by Josu Lazkano almost 3 years ago

Hello,

Sorry but I don't know how to add it in Doozer.

Here is more info: https://doozer.io/tvheadend/tvheadend

Regards.

RE: [Unofficial] Raspberry Pi / armhf builds - Added by a a almost 3 years ago

Josu Lazkano wrote:

Hello,

Sorry but I don't know how to add it in Doozer.

Here is more info: https://doozer.io/tvheadend/tvheadend

Regards.

It appears that Doozer does not have a build environment for Jessie armhf which is why it's not there.

RE: [Unofficial] Raspberry Pi / armhf builds - Added by a a almost 3 years ago

I noticed that today's development build on bintray (tvheadend_4.3-191~g45c085a~raspbianjessie_armhf.deb)has been compiled for the pi. Either download it from bintray and manually install or using the command line:

echo "deb https://dl.bintray.com/tvheadend/deb raspbianjessie unstable" | sudo tee -a /etc/apt/sources.list
to add the repository to your /etc/apt/sources.list system config file

then to update:
sudo apt-get update && time sudo apt-get dist-upgrade

If it keeps being complied for the Pi each day then running sudo apt-get update && time sudo apt-get dist-upgrade will keep it up to date

RE: [Unofficial] Raspberry Pi / armhf builds - Added by Basem Alsaeed almost 3 years ago

Hi, it worked for 2 days now i get the below when i do apt uodate

E: The repository 'https://dl.bintray.com/tvheadend/deb raspbianjessie Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

i checked and it seems there is no raspbianjessie dist there
is there something i can do ?
thanks

RE: [Unofficial] Raspberry Pi / armhf builds - Added by Mark Clarkstone almost 3 years ago

Basem Alsaeed wrote:

Hi, it worked for 2 days now i get the below when i do apt uodate

E: The repository 'https://dl.bintray.com/tvheadend/deb raspbianjessie Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

There is no "Release" build for 4.2, only unstable. You were more than likely using stable-4.2 which was removed by perexg due to version numbering differences, causing confusion, for which I apologise. This is the reason why it wasn't added to the AptRepo page.

I'm currently looking into providing an alternative repo for 4.2 on raspbian, at least until doozer has support.

i checked and it seems there is no raspbianjessie dist there
is there something i can do ?
thanks

RE: [Unofficial] Raspberry Pi / armhf builds - Added by Hector Zeped almost 3 years ago

I'm currently looking into providing an alternative repo for 4.2 on raspbian, at least until doozer has support.

Thanks Mark, waiting for that.

RE: [Unofficial] Raspberry Pi / armhf builds - Added by Basem Alsaeed almost 3 years ago

Mark Clarkstone wrote:

I'm currently looking into providing an alternative repo for 4.2 on raspbian, at least until doozer has support.

Thanks a lot Mark for your reply and for your effort :) much appreciated

RE: [Unofficial] Raspberry Pi / armhf builds - Added by a a almost 3 years ago

I've made a simple executable shell script that downloads the most recent version from the Master branch, complies it and then installs it overnight. Below is the contents of my file I named Update.sh that runs each night with a cronjob. It seems to work quite well so far.

#!/bin/bash -e
sudo rm -rf /home/pi/build
git clone https://github.com/tvheadend/tvheadend.git /home/pi/build/tvheadend/master
cd /home/pi/build/tvheadend/master
sudo AUTOBUILD_CONFIGURE_EXTRA=--prefix=/usr\ --includedir=${prefix}/include\ --mandir=${prefix}/share/man\ --infodir=${prefix}/share/info\ --sysconfdir=/etc\ --localstatedir=/var\ --disable-silent-rules\ --libexecdir=${prefix}/lib/tvheadend\ --disable-maintainer-mode\ --disable-dependency-tracking\ --disable-ffmpeg_static\ --enable-hdhomerun_static\ --enable-dvbcsa\ --enable-bundle ./Autobuild.sh 
cd /home/pi/build/tvheadend
sudo dpkg -i tvheadend*.deb

#FOLLOWING TWO LINES ARE OPTIONAL TO UPDATE THE PI TO THE LATEST SOFTWARE
sudo apt-get update
sudo apt-get -y dist-upgrade

sudo shutdown -r now

RE: [Unofficial] Raspberry Pi / armhf builds - Added by Mark Clarkstone almost 3 years ago

Basem Alsaeed wrote:

Mark Clarkstone wrote:

I'm currently looking into providing an alternative repo for 4.2 on raspbian, at least until doozer has support.

Thanks a lot Mark for your reply and for your effort :) much appreciated

Sorry for not replying sooner guys, but in case you weren't aware I've setup a bintray repo that has builds for both tvh stable & unstable. Both builds are done in a chroot on a spare Pi2 of mine.

I'm in the process of setting up another arm system to provide Debian jessie/stretch and Raspbian Stretch builds.

Info is at the bottom of AptRepository.

RE: [Unofficial] Raspberry Pi / armhf builds - Added by a a almost 3 years ago

Mark Clarkstone wrote:

Basem Alsaeed wrote:

Mark Clarkstone wrote:

I'm currently looking into providing an alternative repo for 4.2 on raspbian, at least until doozer has support.

Thanks a lot Mark for your reply and for your effort :) much appreciated

Sorry for not replying sooner guys, but in case you weren't aware I've setup a bintray repo that has builds for both tvh stable & unstable. Both builds are done in a chroot on a spare Pi2 of mine.

I'm in the process of setting up another arm system to provide Debian jessie/stretch and Raspbian Stretch builds.

Info is at the bottom of AptRepository.

I notice you're doing the builds manually. You could try setting up an executable shell script that's run with a daily cronjob as I detail above.

RE: [Unofficial] Raspberry Pi / armhf builds - Added by Mark Clarkstone almost 3 years ago

a a wrote:

Mark Clarkstone wrote:

Basem Alsaeed wrote:

Mark Clarkstone wrote:

I'm currently looking into providing an alternative repo for 4.2 on raspbian, at least until doozer has support.

Thanks a lot Mark for your reply and for your effort :) much appreciated

Sorry for not replying sooner guys, but in case you weren't aware I've setup a bintray repo that has builds for both tvh stable & unstable. Both builds are done in a chroot on a spare Pi2 of mine.

I'm in the process of setting up another arm system to provide Debian jessie/stretch and Raspbian Stretch builds.

Info is at the bottom of AptRepository.

I notice you're doing the builds manually. You could try setting up an executable shell script that's run with a daily cronjob as I detail above.

That's the next thing on my list, I just wanted to make sure my scripts are working. :)

RE: [Unofficial] Raspberry Pi / armhf builds - Added by a a almost 3 years ago

Mark Clarkstone wrote:

a a wrote:

Mark Clarkstone wrote:

Basem Alsaeed wrote:

Mark Clarkstone wrote:

I'm currently looking into providing an alternative repo for 4.2 on raspbian, at least until doozer has support.

Thanks a lot Mark for your reply and for your effort :) much appreciated

Sorry for not replying sooner guys, but in case you weren't aware I've setup a bintray repo that has builds for both tvh stable & unstable. Both builds are done in a chroot on a spare Pi2 of mine.

I'm in the process of setting up another arm system to provide Debian jessie/stretch and Raspbian Stretch builds.

Info is at the bottom of AptRepository.

I notice you're doing the builds manually. You could try setting up an executable shell script that's run with a daily cronjob as I detail above.

That's the next thing on my list, I just wanted to make sure my scripts are working. :)

Okay, no worries. Give me a shout if you need any info.
After making the Update.sh file containing the above code located in /home/pi/CronJobs executable I made a text file named UpdateScript in /etc/cron.d containing the line:

0 6 * * * pi /home/pi/CronJobs/Update.sh

Which makes the Update.sh script run every morning at 6am. So I wake up to the Pi nicely updated each morning.

RE: [Unofficial] Raspberry Pi / armhf builds - Added by Mark Clarkstone almost 3 years ago

a a wrote:

Mark Clarkstone wrote:

a a wrote:

Mark Clarkstone wrote:

Basem Alsaeed wrote:

Mark Clarkstone wrote:

I'm currently looking into providing an alternative repo for 4.2 on raspbian, at least until doozer has support.

Thanks a lot Mark for your reply and for your effort :) much appreciated

Sorry for not replying sooner guys, but in case you weren't aware I've setup a bintray repo that has builds for both tvh stable & unstable. Both builds are done in a chroot on a spare Pi2 of mine.

I'm in the process of setting up another arm system to provide Debian jessie/stretch and Raspbian Stretch builds.

Info is at the bottom of AptRepository.

I notice you're doing the builds manually. You could try setting up an executable shell script that's run with a daily cronjob as I detail above.

That's the next thing on my list, I just wanted to make sure my scripts are working. :)

Okay, no worries. Give me a shout if you need any info.
After making the Update.sh file containing the above code located in /home/pi/CronJobs executable I made a text file named UpdateScript in /etc/cron.d containing the line:

0 6 * * * pi /home/pi/CronJobs/Update.sh

Which makes the Update.sh script run every morning at 6am. So I wake up to the Pi nicely updated each morning.

Cool, I'm not actually running an RPi image, all my Pis are installed using Raspbian (minimal) unattended netinstaller

My build script also checks & only builds if there have been changes to the repo, so I just run

bash tvheadend-build-raspbian.sh master noforce mpmc

:p

RE: [Unofficial] Raspberry Pi / armhf builds - Added by jeferson costa almost 3 years ago

Lionel SANCHEZ wrote:

Hello World!

If someone wants the 4.2.2 build, just ask. I have it running on my CubieBoard.

Enjoy!

I'd like, can you make it available?

RE: [Unofficial] Raspberry Pi / armhf builds - Added by Lionel SANCHEZ almost 3 years ago

jeferson costa wrote:

Lionel SANCHEZ wrote:

Hello World!

If someone wants the 4.2.2 build, just ask. I have it running on my CubieBoard.

Enjoy!

I'd like, can you make it available?

Here you go! In attachement there are 4.2.2 and 4.2.3 deb files.

You can see build details on this post : https://tvheadend.org/boards/5/topics/21528?r=26414#message-26414

Enjoy!

PS : it seems I've got issues to add attachement here and on my DropBox. Time to test Firefox Send. Links are available only 24H and just for one download so please be kind Jeferson grab them.

4.2.2 link : https://send.firefox.com/download/688683e917/#ty-jGXNwptKZZCFZhjXEBg
4.2.3 link : https://send.firefox.com/download/0c7c4386bf/#jNjD6uXhMsNPjA_-YM_DEA

(76-95/95)