Docker NanopiM4 ?

    • OMV 4.x
    • Docker NanopiM4 ?

      Hi Guys
      I have been using OMV 1.19 Kralizec installed on a WD Mycloud for some time.
      I also have tvheadend running on an android tv box and home assistant running on a raspberry pi.

      I am looking at the possibility of building a NAS with OMV on a Nanopi M4 or Neo4 and the drive from the Mycloud in a USB enclosure.
      As these Nanopi's are 64 bit would docker work?
      If I could have all three services NAS, TvHeadend and Homeassistant on one device it would be great

      I installed OMV 4.1 on top of Debian 9 today on an old Dell Mini 9 netbook.
      I couldnt get docker to install though.
      I think its because the atom processor in the mini is 32bit.

      Thanks
    • smudger wrote:

      As these Nanopi's are 64 bit would docker work?
      Yes.

      smudger wrote:

      I think its because the atom processor in the mini is 32bit.
      That is the problem. Unlike arm which does a have 32 bit repo (armhf) and 64bit repo (arm64), x86 doesn't have a 32 bit repo in the official docker repo - download.docker.com/linux/debian/dists/stretch/stable/
      omv 4.1.17 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.13
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • Thanks for the reply

      hub.docker.com/r/homeassistant/aarch64-homeassistant
      hub.docker.com/r/lsioarmhf/tvheadend-aarch64

      Are these the ones i would be after?

      I have zero experience with docker.
      Perhaps I should have a play with it on my macbook.

      Do you think its feasible to have OMV, Tvheadend and Home Assistant running on the Nanopi M4 attached to a 3.5" HDD

      Leaning toward the Nanopi M4 due to the number of USB ports and the possibility of a HAT for SATA ports

      I would also have a play TV dual tuner and Xbox one single DVB tuner hanging off it for Tv headend.
    • smudger wrote:

      Are these the ones i would be after?
      Those should match.

      smudger wrote:

      Do you think its feasible to have OMV, Tvheadend and Home Assistant running on the Nanopi M4 attached to a 3.5" HDD
      Never used TVheadend or Home Assistant but I do have a rk3399-based system and it can handle a lot.
      omv 4.1.17 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.13
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • Ended up taking the raspberry pi 3 that I was using for home assistant and installing OMV on another microSD card.
      Fumbled about and mange to get Tvheadend and home assistant working with docker. (just running briefly, not fully configured)

      If i can get home assistant configured as it was on the other sd card then I can use it as a little test rig until I learn a bit more.
      Will give me time to sort out what arm board to use and which enclosure(s).
    • So I have been messing about with docker on my Rpi3 with attached usb portable drive.
      After some stumbling I have the following containers setup and running

      Home Assistant
      and
      Pyload

      I am having problems though with tvheadend
      I can get the container to run but it does not have access to my DVB tuner (xbox one digital tuner)

      lsusb gives me

      root@raspberrypi:~# lsusb
      Bus 001 Device 005: ID 2537:1068
      Bus 001 Device 004: ID 045e:02d5 Microsoft Corp. Xbox One Digital TV Tuner
      Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
      Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. SMC9514 Hub
      Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

      but there is no DVB folder in /dev

      I think perhaps I need to install a package with drivers.

      Could you give any advice please.

      EDIT
      Got the firmware files for this usb tuner and put them in /lib/firmware
      rebooted but obviously im missing something else as still no dev/dvb

      EDIT
      So it seems that I need a kernel 4.16 or above for native xbox dvb tuner support
      tried
      apt-get install linux-image-4.18.0-0.bpo.1-armmp
      rebooted but the kernel still reports 4.14.79-v7+
      if i try to install 4.18 again, it says
      linux-image-4.18.0-0.bpo.1-armmp is already the newest version (4.18.6-1~bpo9+1).

      The post was edited 2 times, last by smudger ().

    • smudger wrote:

      So I have been messing about with docker on my Rpi3 with attached usb portable drive.
      After some stumbling I have the following containers setup and running

      Home Assistant
      and
      Pyload

      I am having problems though with tvheadend
      I can get the container to run but it does not have access to my DVB tuner (xbox one digital tuner)

      lsusb gives me

      root@raspberrypi:~# lsusb
      Bus 001 Device 005: ID 2537:1068
      Bus 001 Device 004: ID 045e:02d5 Microsoft Corp. Xbox One Digital TV Tuner
      Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
      Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. SMC9514 Hub
      Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

      but there is no DVB folder in /dev

      I think perhaps I need to install a package with drivers.

      Could you give any advice please.

      EDIT
      Got the firmware files for this usb tuner and put them in /lib/firmware
      rebooted but obviously im missing something else as still no dev/dvb

      EDIT
      So it seems that I need a kernel 4.16 or above for native xbox dvb tuner support
      tried
      apt-get install linux-image-4.18.0-0.bpo.1-armmp
      rebooted but the kernel still reports 4.14.79-v7+
      if i try to install 4.18 again, it says
      linux-image-4.18.0-0.bpo.1-armmp is already the newest version (4.18.6-1~bpo9+1).
      would be interested to know if you get this working I've just purchased a Xbox TV tuner since it was only £3.95 to use on a raspberry pi with tvheadend installed to provide IPTV around the house but started to think it if would be possible to load it into omv which runs on a hp microserver as it has loads of free usb ports if it's successfully the either on the pi or within omv was to buy an additional tuner or two so there are spares for recording watching different shows through Kodi on the pis on each TV in the house.
      OMV 3.0.58 - 64 bit - Nut, SABnzbd, Sonarr, Couchpotato
      HP N40L Microserver, 8gb Ram, 5 x 3TB HDD Raid5, 1 x 120GB 2.5" SSD (OS)
    • chclark wrote:

      would be interested to know if you get this working
      Managed to get a little further
      Upgraded kernel to 4.19.13-v7+

      used
      sudo apt-get install rpi-update
      sudo BRANCH=next rpi-update

      copied the two firmware files referenced here
      linuxtv.org/wiki/index.php/Xbox_One_Digital_TV_Tuner
      to
      /lib/firmware

      dmesg shows the DVB adapter and firmware is loaded

      ran the tvheadend docker image

      docker run -d \
      --name=tvheadend \
      --net=host \
      -v /sharedfolders/appdata/tvheadend:/config \
      -v /sharedfolders/appdata/recordings:/recordings \
      -e PGID=100 -e PUID=1000 \
      --device=/dev/dvb --privileged lsioarmhf/tvheadend

      but the dvd adapter doesnt appear in tvheadend.
      Kind of at a loss but maybe you can have a go and see if it works for you.

      Im a real noob with docker so maybe i'm missing something obvious
    • smudger wrote:

      chclark wrote:

      would be interested to know if you get this working
      Managed to get a little furtherUpgraded kernel to 4.19.13-v7+

      used
      sudo apt-get install rpi-update
      sudo BRANCH=next rpi-update

      copied the two firmware files referenced here
      linuxtv.org/wiki/index.php/Xbox_One_Digital_TV_Tuner
      to
      /lib/firmware

      dmesg shows the DVB adapter and firmware is loaded

      ran the tvheadend docker image

      docker run -d \
      --name=tvheadend \
      --net=host \
      -v /sharedfolders/appdata/tvheadend:/config \
      -v /sharedfolders/appdata/recordings:/recordings \
      -e PGID=100 -e PUID=1000 \
      --device=/dev/dvb --privileged lsioarmhf/tvheadend

      but the dvd adapter doesnt appear in tvheadend.
      Kind of at a loss but maybe you can have a go and see if it works for you.

      Im a real noob with docker so maybe i'm missing something obvious
      you have done more then I ever would of thought to try I'm a Linux noob. It was just an idea to run through the server if possible as it's on all the time my original was to install onto a pi but even with that apparently the easiest way is to use an libeled Kodi os on the pi as it has all the driver's etc ready installed and is just a case of installing the TV headend server add-on and plugging in the tuners.

      If it does start working on the server though brill saves me having another pi plugged in as I'd need to put switch in to plug it into Lan if I do.
      OMV 3.0.58 - 64 bit - Nut, SABnzbd, Sonarr, Couchpotato
      HP N40L Microserver, 8gb Ram, 5 x 3TB HDD Raid5, 1 x 120GB 2.5" SSD (OS)
    • Success got it working.
      Not using Docker for tvheadend anymore
      installing it direct

      Here are the steps I used with links


      SSH into OMV (ssh root@192.168.1.XXX)

      Upgrade Kernel above 4.16
      sudo apt-get install rpi-update
      sudo BRANCH=next rpi-update

      Copy 2 firmware files reference below to /lib/firmware
      linuxtv.org/wiki/index.php/Xbox_One_Digital_TV_Tuner
      USB interface: DiBcom DiB7000
      Demodulator: Panasonic MN88472

      Using SSH follow the three steps on this page
      tvheadend.org/projects/tvheadend/wiki/AptRepositories


      I already have tv headend setup on an android tv box
      Home assistant on the Rpi3
      WDmycloud for my NAS

      My hope is to roll all three into one device

      looks like its doable, recording a program on it now and can view channels using MrMC on my android tablet.

      Im not sure if a OMV can be installed on top of libreelec
      as librelec has the required kernel and drivers for DVB tuners
      It may be "Easier"
      I might image it on a card and try when i get the chance.
    • smudger wrote:

      Success got it working.
      Not using Docker for tvheadend anymore
      installing it direct

      Here are the steps I used with links


      SSH into OMV (ssh root@192.168.1.XXX)

      Upgrade Kernel above 4.16
      sudo apt-get install rpi-update
      sudo BRANCH=next rpi-update

      Copy 2 firmware files reference below to /lib/firmware
      linuxtv.org/wiki/index.php/Xbox_One_Digital_TV_Tuner
      USB interface: DiBcom DiB7000
      Demodulator: Panasonic MN88472

      Using SSH follow the three steps on this page
      tvheadend.org/projects/tvheadend/wiki/AptRepositories


      I already have tv headend setup on an android tv box
      Home assistant on the Rpi3
      WDmycloud for my NAS

      My hope is to roll all three into one device

      looks like its doable, recording a program on it now and can view channels using MrMC on my android tablet.

      Im not sure if a OMV can be installed on top of libreelec
      as librelec has the required kernel and drivers for DVB tuners
      It may be "Easier"
      I might image it on a card and try when i get the chance.
      wouldnt need omv on top of the libelec if the server can handle the tuner then I can just install the tvheadend client add-on onto the Kodi pi in the living room which should connect to the TVheadend server on omv. Wonder why it won't work in docker I'd prefer to do it that way if possible as I wouldn't like to mess with the kernel stuff on the omv side.
      OMV 3.0.58 - 64 bit - Nut, SABnzbd, Sonarr, Couchpotato
      HP N40L Microserver, 8gb Ram, 5 x 3TB HDD Raid5, 1 x 120GB 2.5" SSD (OS)
    • chclark wrote:

      Wonder why it won't work in docker
      Im a complete novice with docker, but I think it has something to do with the docker user not having access rights to the DVB tuner.
      I don't think there is anyway around updating the kernel as only 4.16 and above support DVB tuners.

      My thinking behind using librelec as the server with OMV installed is that the libreelec works with DVB out of the box (kernels and drivers support dvb)
      I see that there is a docker plugin within librelec.
      I might have a play if I get the chance, will have to check if librelec has remote webui as my rpi3 is headless
    • smudger wrote:

      Can i ask where you got tour xbox tuner so cheap?

      I may buy another as I borrowed the one I used for this Rpi3 project
      from my daily tvheadend setup (amlogic tvbox, play tv tuner and xbox tuner)
      got mine from here. They have gone up by £1 since I got mine but the price keeps going up and down cheepest they have been is £2.95

      thegamecollection.net/xbox-one…fa6a6e903020951529c560e9b
      OMV 3.0.58 - 64 bit - Nut, SABnzbd, Sonarr, Couchpotato
      HP N40L Microserver, 8gb Ram, 5 x 3TB HDD Raid5, 1 x 120GB 2.5" SSD (OS)