Sundtek Support Forum
Deutsch => {Single, Dual, Quad} Sundtek SkyTV Ultimate => Thema gestartet von: Simon78 am Januar 04, 2023, 11:34:54 Vormittag
-
Hallo,
da es dazu noch keine Anleitung gibt , hangel ich mich mal dadurch.
bisher habe ich gemacht:
1. anlegen der /dev/dvb/card[0/1] devices auf dem host
2. installieren der netinst.sh auf dem LXC unpriv container
3. durchreichen des /dev/usb/001/005 devices an den container
das device ist per lsusb auch sichtbar. Jetzt hänge ich beim mediasrv wegen:
2023-01-04 09:27:52 [650]
2023-01-04 09:27:52 [650] Scanning for drivers
2023-01-04 09:27:52 [650] found lib: libdrv_ngTV.so
2023-01-04 09:27:52 [650] found lib: libdrv_net.so
2023-01-04 09:27:52 [650] found lib: libdrv_tntdvb.so
2023-01-04 09:27:52 [650] found lib: libdrv_hikarisoft_isdb.so
2023-01-04 09:27:52 [650] found lib: libdrv_fm.so
2023-01-04 09:27:52 [650] found lib: libdrv_vivi.so
2023-01-04 09:27:52 [650] found lib: libdrv_fm_dab_dabplus.so
2023-01-04 09:27:52 [650] found lib: libdrv_em28xx.so
2023-01-04 09:27:52 [650] found lib: libdrv_eLight.so
2023-01-04 09:27:52 [650]
2023-01-04 09:27:52 [650] Scanning for plugins
2023-01-04 09:27:52 [650] found lib: libencoder_plugin.so
2023-01-04 09:27:52 [650] MediaAVPlugin: MPEG Encoder
2023-01-04 09:27:52 [650] Copyright: (C) Tpe 2011/2012
2023-01-04 09:27:52 [650]
2023-01-04 09:27:52 [650] Starting up device manager
2023-01-04 09:27:52 [650] unable to create /dev/sundtek/usb/001/005, this will lead to a failure now
2023-01-04 09:27:52 [650] retrying with 3rd workaround now
2023-01-04 09:27:52 [650] device not ready, sleeping 3 seconds and retrying (/dev/bus/usb/001/002)
2023-01-04 09:27:53 [650] device not ready, sleeping 3 seconds and retrying (/dev/bus/usb/001/002)
2023-01-04 09:27:54 [650] device not ready, sleeping 3 seconds and retrying (/dev/bus/usb/001/002)
2023-01-04 09:27:55 [650] device not ready, sleeping 3 seconds and retrying (/dev/bus/usb/001/002)
2023-01-04 09:27:56 [650] skipping unknown busy device, check dmesg maybe a module is interfering (eg. usbhid)
2023-01-04 09:27:56 [650] device not ready, sleeping 3 seconds and retrying (/dev/bus/usb/001/004)
2023-01-04 09:27:57 [650] device not ready, sleeping 3 seconds and retrying (/dev/bus/usb/001/004)
2023-01-04 09:27:58 [650] device not ready, sleeping 3 seconds and retrying (/dev/bus/usb/001/004)
2023-01-04 09:27:59 [650] device not ready, sleeping 3 seconds and retrying (/dev/bus/usb/001/004)
2023-01-04 09:28:00 [650] skipping unknown busy device, check dmesg maybe a module is interfering (eg. usbhid)
2023-01-04 09:28:00 [650] Setting permission of /dev/dvb to 777
2023-01-04 09:28:00 [650] This is to avoid problems if TV Applications are started as another user
2023-01-04 09:28:00 [650] as seen on eg. Synology NAS Systems where tvheadend is unable to read
2023-01-04 09:28:00 [650] /dev/dvb and because of that would not detect the TV tuner
2023-01-04 09:28:00 [650] scanning devices done
2023-01-04 09:28:00 [650] attached devices:
2023-01-04 09:28:00 [651] Autostarting scripts in /etc/sundtek/
2023-01-04 09:28:00 [651] executed all available items
2023-01-04 09:28:07 [650] device not ready, sleeping 3 seconds and retrying (/dev/bus/usb/001/002)
^C2023-01-04 09:28:07 [650] Shutting down driver
es scheint so zu sein als ob ein /dev/sundtek irgendwas angelegt werden soll im LXC container. das ist nirgendwo beschrieben wo es mir bekannt wäre und der mediasrv wirft deswegen ab.
Wie gehts weiter ?
MFG,
Simon
-
Reiche das komplette /dev/bus/usb durch - Der Treiber nimmt sowieso nur die Nodes unserer Geräte raus.
Habe Dir auch auf die Mail geantwortet (heute hab ich leider keine Zeit mehr).
Und /dev/sundtek muss erstellbar sein, der Treiber erstellt dort einen neuen /dev/bus/usb tree - das ist historisch bedingt da ältere Linux Versionen das ein bißchen chaotisch gemacht haben. Es wird auch /sys/bus/usb/devices gescannt, im Fall dass nicht alles in /dev/bus/usb eingetragen ist oder /dev/bus/usb nicht vorhanden ist (alles schon vorgekommen).
-
Hi,
ich bin einen Schritt weiter.
1. habe /dev/dvb auf dem Host gelöscht, wird wohl nicht gebraucht.
2. habe /dev/sundtek angelegt und an den LXC durchgereicht mit 777 Rechten.
der Log sieht jetzt so aus :
2023-01-04 09:57:29 [148]
2023-01-04 09:57:29 [148] Scanning for plugins
2023-01-04 09:57:29 [148] found lib: libencoder_plugin.so
2023-01-04 09:57:29 [148] MediaAVPlugin: MPEG Encoder
2023-01-04 09:57:29 [148] Copyright: (C) Tpe 2011/2012
2023-01-04 09:57:29 [148]
2023-01-04 09:57:29 [148] Starting up device manager
2023-01-04 09:57:29 [148] unable to create /dev/sundtek/usb/001/005, this will lead to a failure now
2023-01-04 09:57:29 [148] retrying with 3rd workaround now
2023-01-04 09:57:29 [148] device not ready, sleeping 3 seconds and retrying (/dev/bus/usb/001/002)
2023-01-04 09:57:30 [148] device not ready, sleeping 3 seconds and retrying (/dev/bus/usb/001/002)
2023-01-04 09:57:31 [148] device not ready, sleeping 3 seconds and retrying (/dev/bus/usb/001/002)
2023-01-04 09:57:32 [148] device not ready, sleeping 3 seconds and retrying (/dev/bus/usb/001/002)
2023-01-04 09:57:33 [148] skipping unknown busy device, check dmesg maybe a module is interfering (eg. usbhid)
2023-01-04 09:57:33 [148] device not ready, sleeping 3 seconds and retrying (/dev/bus/usb/001/004)
2023-01-04 09:57:34 [148] device not ready, sleeping 3 seconds and retrying (/dev/bus/usb/001/004)
2023-01-04 09:57:35 [148] device not ready, sleeping 3 seconds and retrying (/dev/bus/usb/001/004)
2023-01-04 09:57:36 [148] device not ready, sleeping 3 seconds and retrying (/dev/bus/usb/001/004)
2023-01-04 09:57:37 [148] skipping unknown busy device, check dmesg maybe a module is interfering (eg. usbhid)
2023-01-04 09:57:37 [148] scanning devices done
2023-01-04 09:57:37 [148] attached devices:
2023-01-04 09:57:37 [149] Autostarting scripts in /etc/sundtek/
2023-01-04 09:57:37 [149] executed all available items
2023-01-04 09:57:44 [148] device not ready, sleeping 3 seconds and retrying (/dev/bus/usb/001/002)
2023-01-04 09:57:45 [148] device not ready, sleeping 3 seconds and retrying (/dev/bus/usb/001/002)
2023-01-04 09:57:46 [148] device not ready, sleeping 3 seconds and retrying (/dev/bus/usb/001/002)
2023-01-04 09:57:47 [148] device not ready, sleeping 3 seconds and retrying (/dev/bus/usb/001/002)
2023-01-04 09:57:48 [148] skipping unknown busy device, check dmesg maybe a module is interfering (eg. usbhid)
2023-01-04 09:57:48 [148] device not ready, sleeping 3 seconds and retrying (/dev/bus/usb/001/004)
2023-01-04 09:57:49 [148] device not ready, sleeping 3 seconds and retrying (/dev/bus/usb/001/004)
2023-01-04 09:57:50 [148] device not ready, sleeping 3 seconds and retrying (/dev/bus/usb/001/004)
2023-01-04 09:57:51 [148] device not ready, sleeping 3 seconds and retrying (/dev/bus/usb/001/004)
2023-01-04 09:57:52 [148] skipping unknown busy device, check dmesg maybe a module is interfering (eg. usbhid)
2023-01-04 09:57:52 [148] registering ID: 0
2023-01-04 09:57:52 [148] Memory mapped transfers are not available
2023-01-04 09:57:52 [148] Board config found: Sundtek SkyTV Dual 8 (eLight)
2023-01-04 09:57:52 [148] This board provides 2 frontends
2023-01-04 09:57:52 [148]
2023-01-04 09:57:52 [148] *********
2023-01-04 09:57:52 [148] Signature: Sundtek
2023-01-04 09:57:52 [148] Initializing SYSV-IPC
2023-01-04 09:57:52 [148] Allocation using pg for type 65678
2023-01-04 09:57:54 [148] demodulator successfully attached (DVB_S/S2)!
2023-01-04 09:57:54 [148] attaching second tuner...
2023-01-04 09:57:54 [148] Allocation using pg for type 65678
2023-01-04 09:57:55 [148] demodulator successfully attached (DVB_S/S2)!
2023-01-04 09:57:55 [148] Configuring Dual LNB Power Supply
2023-01-04 09:57:55 [148] Vertical Polarisation is set to 14.00 Volt
2023-01-04 09:57:55 [148] Horizontal Polarisation is set to 19.10 Volt
2023-01-04 09:57:55 [148] Enabling LNB status monitor
2023-01-04 09:57:55 [149] trying to load uinput module
2023-01-04 09:57:55 [149] loading uinput kernel extention failed, remote control will not work with lirc
2023-01-04 09:57:55 [148] No remote control support available
2023-01-04 09:57:55 [148] Initializing Remote Control Support (interrupt)
2023-01-04 09:57:55 [148] Unable to create /dev/mediainput0 (1/Operation not permitted)
2023-01-04 09:57:55 [148] registered virtual: /dev/mediainput0
2023-01-04 09:57:55 [148] Unable to create /dev/dvb/adapter0/frontend0 (1/Operation not permitted)
2023-01-04 09:57:55 [148] Unable to create /dev/dvb/adapter0/demux0 (1/Operation not permitted)
2023-01-04 09:57:55 [148] Unable to create /dev/dvb/adapter0/dvr0 (1/Operation not permitted)
2023-01-04 09:57:55 [148] registering: adapter0/0
2023-01-04 09:57:55 [148] registered virtual: /dev/dvb/adapter0/frontend0
2023-01-04 09:57:55 [148] registered virtual: /dev/dvb/adapter0/demux0
2023-01-04 09:57:55 [148] registered virtual: /dev/dvb/adapter0/dvr0
2023-01-04 09:57:55 [148] Unable to create /dev/dvb/adapter1/frontend0 (1/Operation not permitted)
2023-01-04 09:57:55 [148] Unable to create /dev/dvb/adapter1/demux0 (1/Operation not permitted)
2023-01-04 09:57:55 [148] Unable to create /dev/dvb/adapter1/dvr0 (1/Operation not permitted)
2023-01-04 09:57:55 [148] registering: adapter1/0
2023-01-04 09:57:55 [148] registered virtual: /dev/dvb/adapter1/frontend0
2023-01-04 09:57:55 [148] registered virtual: /dev/dvb/adapter1/demux0
2023-01-04 09:57:55 [148] registered virtual: /dev/dvb/adapter1/dvr0
2023-01-04 09:57:55 [148] Driver loaded within 2945 milliseconds
2023-01-04 09:57:59 [148] Initial devicescan done, switching detection mode
habe das Netzteil und Satkabel aber nicht dran
-
Versuche /dev/dvb auf dem Host zu erstellen und auch durchzureichen.
-
hab ich gemacht, was ich trotz 777er Rechten auf dem Host für /dev/dvb und /dev/sundtek sehen kann ist das zB unter /dev/sundtek/001/ kein 005 eintrag da ist ( der aber wohl zu erwarten wäre ). /dev/dvb ist bis auf die verzeichnisse leider auch leer
root@odroidh2:/dev/dvb# ls -alR
.:
insgesamt 0
drwxrwxrwx 4 root root 80 4. Jan 11:05 .
drwxr-xr-x 21 root root 3400 4. Jan 11:03 ..
drwxrwxrwx 2 100000 100000 40 4. Jan 11:05 adapter0
drwxrwxrwx 2 100000 100000 40 4. Jan 11:05 adapter1
./adapter0:
insgesamt 0
drwxrwxrwx 2 100000 100000 40 4. Jan 11:05 .
drwxrwxrwx 4 root root 80 4. Jan 11:05 ..
./adapter1:
insgesamt 0
drwxrwxrwx 2 100000 100000 40 4. Jan 11:05 .
drwxrwxrwx 4 root root 80 4. Jan 11:05 ..
----
root@odroidh2:/dev/dvb# cd /dev/sundtek/
root@odroidh2:/dev/sundtek# ls -alR
.:
insgesamt 0
drwxrwxrwx 3 root root 60 4. Jan 10:55 .
drwxr-xr-x 21 root root 3400 4. Jan 11:03 ..
drwx------ 3 100000 100000 60 4. Jan 10:55 usb
./usb:
insgesamt 0
drwx------ 3 100000 100000 60 4. Jan 10:55 .
drwxrwxrwx 3 root root 60 4. Jan 10:55 ..
drwx------ 2 100000 100000 40 4. Jan 10:55 001
./usb/001:
insgesamt 0
drwx------ 2 100000 100000 40 4. Jan 10:55 .
drwx------ 3 100000 100000 60 4. Jan 10:55 ..
---
2023-01-04 10:05:05 [137] Memory mapped transfers are not available
2023-01-04 10:05:05 [137] Board config found: Sundtek SkyTV Dual 8 (eLight)
2023-01-04 10:05:05 [137] This board provides 2 frontends
2023-01-04 10:05:05 [137]
2023-01-04 10:05:06 [137] *********
2023-01-04 10:05:06 [137] Signature: Sundtek
2023-01-04 10:05:06 [137] Initializing SYSV-IPC
2023-01-04 10:05:06 [137] Allocation using pg for type 65678
2023-01-04 10:05:07 [137] demodulator successfully attached (DVB_S/S2)!
2023-01-04 10:05:07 [137] attaching second tuner...
2023-01-04 10:05:07 [137] Allocation using pg for type 65678
2023-01-04 10:05:08 [137] demodulator successfully attached (DVB_S/S2)!
2023-01-04 10:05:08 [137] Configuring Dual LNB Power Supply
2023-01-04 10:05:08 [137] Vertical Polarisation is set to 14.00 Volt
2023-01-04 10:05:08 [137] Horizontal Polarisation is set to 19.10 Volt
2023-01-04 10:05:08 [137] Enabling LNB status monitor
2023-01-04 10:05:08 [138] trying to load uinput module
2023-01-04 10:05:08 [138] loading uinput kernel extention failed, remote control will not work with lirc
2023-01-04 10:05:08 [137] No remote control support available
2023-01-04 10:05:08 [137] Initializing Remote Control Support (interrupt)
2023-01-04 10:05:08 [137] Unable to create /dev/mediainput0 (1/Operation not permitted)
2023-01-04 10:05:08 [137] registered virtual: /dev/mediainput0
2023-01-04 10:05:08 [137] Unable to create /dev/dvb/adapter0/frontend0 (1/Operation not permitted)
2023-01-04 10:05:08 [137] Unable to create /dev/dvb/adapter0/demux0 (1/Operation not permitted)
2023-01-04 10:05:08 [137] Unable to create /dev/dvb/adapter0/dvr0 (1/Operation not permitted)
2023-01-04 10:05:08 [137] registering: adapter0/0
2023-01-04 10:05:08 [137] registered virtual: /dev/dvb/adapter0/frontend0
2023-01-04 10:05:08 [137] registered virtual: /dev/dvb/adapter0/demux0
2023-01-04 10:05:08 [137] registered virtual: /dev/dvb/adapter0/dvr0
2023-01-04 10:05:08 [137] Unable to create /dev/dvb/adapter1/frontend0 (1/Operation not permitted)
2023-01-04 10:05:08 [137] Unable to create /dev/dvb/adapter1/demux0 (1/Operation not permitted)
2023-01-04 10:05:08 [137] Unable to create /dev/dvb/adapter1/dvr0 (1/Operation not permitted)
2023-01-04 10:05:08 [137] registering: adapter1/0
2023-01-04 10:05:08 [137] registered virtual: /dev/dvb/adapter1/frontend0
2023-01-04 10:05:08 [137] registered virtual: /dev/dvb/adapter1/demux0
2023-01-04 10:05:08 [137] registered virtual: /dev/dvb/adapter1/dvr0
2023-01-04 10:05:08 [137] Driver loaded within 2945 milliseconds
2023-01-04 10:05:12 [137] Initial devicescan done, switching detection mode
-
Hier von meiner Seite der nächste Schritt , die mknods auf dem Host müssen wohl gemacht werden :
mkdir -p /dev/dvb/adapter0
mknod /dev/dvb/adapter0/frontend0 c 212 1
mknod /dev/dvb/adapter0/dvr0 c 212 5
mknod /dev/dvb/adapter0/demux0 c 212 3
mkdir -p /dev/dvb/adapter1
mknod /dev/dvb/adapter1/frontend0 c 212 7
mknod /dev/dvb/adapter1/dvr0 c 212 11
mknod /dev/dvb/adapter1/demux0 c 212 9
mkdir -p /dev/dvb/adapter2
mknod /dev/dvb/adapter2/frontend0 c 212 13
mknod /dev/dvb/adapter2/dvr0 c 212 17
mknod /dev/dvb/adapter2/demux0 c 212 15
habe bisher nur leserechte erlaubt , jetzt zeigt mediaclient aber den adapter , auch wenn mediasrv motzt über fehlende Schreibrechte .... log hier :
2023-01-04 10:10:30 [113] Unable to create /dev/mediainput0 (1/Operation not permitted)
2023-01-04 10:10:30 [113] registered virtual: /dev/mediainput0
2023-01-04 10:10:30 [113] /dev/dvb/adapter0 exists, but not accessible by everyone,
2023-01-04 10:10:30 [113] fixing that by setting it to 777
2023-01-04 10:10:30 [113] Unable to create /dev/dvb/adapter0/frontend0 (17/File exists)
2023-01-04 10:10:30 [113] Unable to create /dev/dvb/adapter0/demux0 (17/File exists)
2023-01-04 10:10:30 [113] Unable to create /dev/dvb/adapter0/dvr0 (17/File exists)
2023-01-04 10:10:30 [113] registering: adapter0/0
2023-01-04 10:10:30 [113] registered virtual: /dev/dvb/adapter0/frontend0
2023-01-04 10:10:30 [113] registered virtual: /dev/dvb/adapter0/demux0
2023-01-04 10:10:30 [113] registered virtual: /dev/dvb/adapter0/dvr0
2023-01-04 10:10:30 [113] /dev/dvb/adapter1 exists, but not accessible by everyone,
2023-01-04 10:10:30 [113] fixing that by setting it to 777
2023-01-04 10:10:30 [113] Unable to create /dev/dvb/adapter1/frontend0 (17/File exists)
2023-01-04 10:10:30 [113] Unable to create /dev/dvb/adapter1/demux0 (17/File exists)
2023-01-04 10:10:30 [113] Unable to create /dev/dvb/adapter1/dvr0 (17/File exists)
2023-01-04 10:10:30 [113] registering: adapter1/0
2023-01-04 10:10:30 [113] registered virtual: /dev/dvb/adapter1/frontend0
2023-01-04 10:10:30 [113] registered virtual: /dev/dvb/adapter1/demux0
2023-01-04 10:10:30 [113] registered virtual: /dev/dvb/adapter1/dvr0
2023-01-04 10:10:30 [113] Driver loaded within 3013 milliseconds
2023-01-04 10:10:34 [113] Initial devicescan done, switching detection mode
2023-01-04 10:10:46 [113] [FE0] . o ( Enabling Standby ) o .
2023-01-04 10:10:46 [113] [FE0] Set Voltage off
2023-01-04 10:10:46 [113] *** Voltage configuration is not what we have programmed ***
2023-01-04 10:10:46 [113] *** Overload protection enabled (channel A) ***
2023-01-04 10:10:46 [113] *** Overload protection enabled (channel B) ***
2023-01-04 10:10:46 [113] *** Overcurrent detected on output pull-down stage ***
2023-01-04 10:10:46 [113] *** for a time longer than the deglitch period. This ***
2023-01-04 10:10:46 [113] *** may happen due to an external voltage source ***
2023-01-04 10:10:46 [113] *** present on the LNB output (VOUT pin) ***
2023-01-04 10:10:46 [113] [FE1] . o ( Enabling Standby ) o .
2023-01-04 10:10:46 [113] [FE1] Set Voltage off
2023-01-04 10:10:46 [113] *** Voltage configuration is not what we have programmed ***
2023-01-04 10:10:46 [113] *** Overload protection enabled (channel A) ***
2023-01-04 10:10:46 [113] *** Overload protection enabled (channel B) ***
2023-01-04 10:10:46 [113] *** Overcurrent detected on output pull-down stage ***
2023-01-04 10:10:46 [113] *** for a time longer than the deglitch period. This ***
2023-01-04 10:10:46 [113] *** may happen due to an external voltage source ***
2023-01-04 10:10:46 [113] *** present on the LNB output (VOUT pin) ***
---
root@tvh:/root# /opt/bin/mediaclient -e
**** List of Media Hardware Devices ****
device 0: [ Dual S2] DVB-S/S2, REMOTE-CONTROL, DVB-S/S2
[INFO]:
STATUS: STANDBY
[BUS]:
ID: 1-3
[SERIAL]:
ID: U220618172518
[DVB-S/S2]:
FESTATUS: STANDBY
LNBVOLTAGE: DISABLED
LNBSUPPLY: USBPOWER
LNBSTATUS: OK
FRONTEND: /dev/dvb/adapter0/frontend0
DVR: /dev/dvb/adapter0/dvr0
DMX: /dev/dvb/adapter0/demux0
[REMOTECONTROL]:
INPUT0: /dev/mediainput0
[DVB-S/S2]:
FESTATUS: STANDBY
FRONTEND: /dev/dvb/adapter1/frontend0
DVR: /dev/dvb/adapter1/dvr0
DMX: /dev/dvb/adapter1/demux0
-
Wie sieht deine LXC Konfiguration aus?
# Sundtek DVB stick
lxc.apparmor.profile = unconfined
lxc.cgroup2.devices.allow = c 212:* rwm
lxc.cgroup2.devices.allow = c 250:* rwm
lxc.cgroup2.devices.allow = c 189:* rwm
lxc.mount.entry = /dev/dvb dev/dvb none bind,optional,create=dir
lxc.mount.entry = /dev/bus/usb dev/bus/usb none bind,optional,create=dir
lxc.mount.entry = /srv/tvheadend srv none bind,optional,create=dir
https://rolandtapken.de/blog/2022-07/running-tvheadend-sundtek-dvb-stick-lxc-container
Ich erinnere mich nur dass da auf dem Host keine Nodes erstellt werden müssen, das war besser als bei Docker Images.
*** Voltage configuration is not what we have programmed ***
...
sollte weggehen sobald das Netzteil angeschlossen ist.
-
- ich suche die stelle wo mediasrv gestartet wird um die parameter anzupassen, irgendwie startet das automatisch nicht zuverlässig. Kann ich irgendwo den Output ansehen ?
wenn ich nachher alle Krümel zusammen habe werde ich meine LXC config posten
-
Bei den Docker Containern haben wir einfach tvheadend in tvheadend.bin umbenannt und tvheadend als Bash Skript angelegt. In dem Skript wurde dann der Treiber gestartet und danach tvheadend.bin
-
geht beim SkyTv ultimate der Standby ? wenn ich mit Kodi nach einiger Zeit vorbei komme, sagt kodi das kein Tuner verfügbar wäre ....
root@tvh:/# /opt/bin/mediaclient -e
**** List of Media Hardware Devices ****
device 0: [ Dual S2] DVB-S/S2, REMOTE-CONTROL, DVB-S/S2
[INFO]:
STATUS: STANDBY
[BUS]:
ID: 1-3
[SERIAL]:
ID: U220618172518
[DVB-S/S2]:
FESTATUS: STANDBY
LNBVOLTAGE: DISABLED
LNBSUPPLY: USBPOWER
LNBSTATUS: OK
FRONTEND: /dev/dvb/adapter0/frontend0
DVR: /dev/dvb/adapter0/dvr0
DMX: /dev/dvb/adapter0/demux0
[REMOTECONTROL]:
INPUT0: /dev/mediainput0
[DVB-S/S2]:
FESTATUS: STANDBY
FRONTEND: /dev/dvb/adapter1/frontend0
DVR: /dev/dvb/adapter1/dvr0
DMX: /dev/dvb/adapter1/demux0
-
mediaclient --lc (bzw. wo sich mediaclient auf Deinem System befindet mit --lc ausführen) zeigt an welche Programme auf den Treiber zugreifen, ansonsten die TVHeadend Logfile überprüfen.
-
ich habe einen systemd service angelegt um tvheadend zu starten als user tvh.
wenn das system ohne interaktion aufstartet findet der service den access zu der hardware nicht und auch mediaclient --lc ist blank.
logge ich als user tvh ein und starte mit "systemctl --user start tvheadend" den service klappt alles
ich habe auch schon wegen LD_PRELOAD geschaut und das klappt in beiden Fällen , zumindest listet /proc/XYZ/maps libmediaclient.so
hast du vielleicht eine Idee was los ist ?
-
Was zeigt die Treiberlog an?
-
welches Log meinst du ? ich kann soweit keine Fehler finden , weder im journalctl noch in dem was tvheadend auspuckt
-
mediasrv.log bzw. wenn Du den Treiber manuell startest.
Der Treiber kommuniziert über Unix Domainsockets nur so nebenbei angemerkt. Die dvr Daten werden über Shared Memory Segmente vom Server zum Client übertragen. Die demux Daten über domain-sockets.
-
ich habe kein logfile für den mediasrv, von wo wird der gestartet ? da habe ich mir schon den Wolf nach abgesucht
ich kann aber mit mediaclient sehen das der treiber wohl da ist und die Karte läuft. tvheadend allerdings sieht keine DVB adapter .....
-
das hier ist grade der Fehlerfall, man sieht das kein client verbunden ist
root@tvh:/var/log# /opt/bin/mediaclient -e
**** List of Media Hardware Devices ****
device 0: [ Dual S2] DVB-S/S2, REMOTE-CONTROL, DVB-S/S2
[INFO]:
STATUS: STANDBY
[BUS]:
ID: 1-3
[SERIAL]:
ID: U220618172518
[DVB-S/S2]:
FESTATUS: STANDBY
LNBVOLTAGE: DISABLED
LNBSUPPLY: USBPOWER
LNBSTATUS: OK
FRONTEND: /dev/dvb/adapter0/frontend0
DVR: /dev/dvb/adapter0/dvr0
DMX: /dev/dvb/adapter0/demux0
[REMOTECONTROL]:
INPUT0: /dev/mediainput0
[DVB-S/S2]:
FESTATUS: STANDBY
FRONTEND: /dev/dvb/adapter1/frontend0
DVR: /dev/dvb/adapter1/dvr0
DMX: /dev/dvb/adapter1/demux0
root@tvh:/var/log# /opt/bin/mediaclient --lc
**** List of Media Clients ****
/dev/dvb/adapter0/frontend0:
No client connected
/dev/dvb/adapter0/dvr0:
No client connected
/dev/dvb/adapter0/demux0:
No client connected
/dev/mediainput0:
No client connected
/dev/dvb/adapter1/frontend0:
No client connected
/dev/dvb/adapter1/dvr0:
No client connected
/dev/dvb/adapter1/demux0:
No client connected
root@tvh:/var/log#
-
root@tvh:/var/log# ps -aufx
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 397 0.0 0.0 7136 3568 pts/4 Ss 17:11 0:00 /bin/bash
root 513 0.0 0.0 10072 3236 pts/4 R+ 17:19 0:00 \_ ps -aufx
root 1 0.0 0.1 165440 10220 ? Ss 17:11 0:00 /sbin/init
root 67 0.0 0.5 135348 43924 ? Ss 17:11 0:00 /lib/systemd/systemd-journald
root 74 0.0 0.0 20616 4852 ? Ss 17:11 0:00 /lib/systemd/systemd-udevd
systemd+ 78 0.0 0.0 16052 5924 ? Ss 17:11 0:00 /lib/systemd/systemd-networkd
systemd+ 82 0.0 0.1 24112 12172 ? Ss 17:11 0:00 /lib/systemd/systemd-resolved
root 87 0.0 0.0 6748 2792 ? Ss 17:11 0:00 /usr/sbin/cron -f
message+ 88 0.0 0.0 8264 4292 ? Ss 17:11 0:00 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-on
root 93 0.0 0.0 13844 7148 ? Ss 17:11 0:00 /lib/systemd/systemd-logind
root 107 0.0 0.0 5480 2240 pts/0 Ss+ 17:11 0:00 /sbin/agetty -o -p -- \u --noclear --keep-baud console 115200,38400,9600 linux
root 108 0.0 0.0 5480 2192 pts/0 Ss+ 17:11 0:00 /sbin/agetty -o -p -- \u --noclear --keep-baud pts/0 115200,38400,9600 vt220
root 109 0.0 0.0 5480 2068 pts/1 Ss+ 17:11 0:00 /sbin/agetty -o -p -- \u --noclear --keep-baud pts/1 115200,38400,9600 vt220
root 110 0.0 0.0 5480 2048 pts/2 Ss+ 17:11 0:00 /sbin/agetty -o -p -- \u --noclear --keep-baud pts/2 115200,38400,9600 vt220
root 111 0.0 0.0 5480 2216 pts/3 Ss+ 17:11 0:00 /sbin/agetty -o -p -- \u --noclear --keep-baud pts/3 115200,38400,9600 vt220
tvh 113 0.0 0.1 15188 8596 ? Ss 17:11 0:00 /lib/systemd/systemd --user
tvh 114 0.0 0.0 103024 2532 ? S 17:11 0:00 \_ (sd-pam)
tvh 127 0.0 0.0 6820 3372 ? Ss 17:11 0:00 \_ /bin/bash /home/tvh/tvheadend.sh
tvh 128 0.0 0.4 1387224 39152 ? Sl 17:11 0:01 \_ /home/tvh/tvheadend/build.linux/tvheadend -S -C -p /run/tvheadend.pid -u tvh -g video
Debian-+ 393 0.0 0.0 18608 4620 ? Ss 17:11 0:00 /usr/sbin/exim4 -bd -q30m
root 400 0.0 0.0 355156 6948 ? Sl 17:11 0:06 /opt/bin/mediasrv -d --pluginpath=/opt/bin
root 401 0.0 0.0 2992 1260 ? S 17:11 0:00 \_ /opt/bin/mediasrv -d --pluginpath=/opt/bin
root@tvh:/var/log# cat /proc/128/maps | grep media
7fe319800000-7fe319810000 r-xp 00000000 00:2b 379819 /opt/lib/libmediaclient.so
7fe319810000-7fe319a0f000 ---p 00010000 00:2b 379819 /opt/lib/libmediaclient.so
7fe319a0f000-7fe319a10000 r--p 0000f000 00:2b 379819 /opt/lib/libmediaclient.so
7fe319a10000-7fe319a11000 rw-p 00010000 00:2b 379819 /opt/lib/libmediaclient.so
-
-u tvh -g video hast du dir die TVHeadend logs angesehen?
User TVH / Group Video, ist /dev/dvb überhaupt für die zugänglich?
-
tvh@tvh:/dev$ ls -al
total 4
drwxr-xr-x 9 root root 580 Jan 5 17:11 .
drwxr-xr-x 1 root root 154 Dec 14 05:29 ..
drwxr-xr-x 3 root root 60 Jan 5 17:11 bus
crw--w---- 1 root tty 136, 0 Jan 5 17:11 console
lrwxrwxrwx 1 root root 11 Jan 5 17:11 core -> /proc/kcore
drwxr-xr-x 5 nobody nogroup 100 Jan 5 11:55 dvb
lrwxrwxrwx 1 root root 13 Jan 5 17:11 fd -> /proc/self/fd
crw-rw-rw- 1 nobody nogroup 1, 7 Jan 5 11:55 full
lrwxrwxrwx 1 root root 12 Jan 5 17:11 initctl -> /run/initctl
lrwxrwxrwx 1 root root 28 Jan 5 17:11 log -> /run/systemd/journal/dev-log
drwxr-xr-x 4 root root 80 Jan 5 17:11 .lxc
-r--r--r-- 1 root root 37 Jan 5 17:11 .lxc-boot-id
drwxrwxrwt 2 nobody nogroup 40 Jan 5 17:11 mqueue
crw-rw-rw- 1 nobody nogroup 1, 3 Jan 5 11:55 null
crw-rw-rw- 1 root root 5, 2 Jan 5 17:46 ptmx
drwxr-xr-x 2 root root 0 Jan 5 17:11 pts
crw-rw-rw- 1 nobody nogroup 1, 8 Jan 5 11:55 random
drwxrwxrwt 2 root root 40 Jan 5 17:11 shm
lrwxrwxrwx 1 root root 15 Jan 5 17:11 stderr -> /proc/self/fd/2
lrwxrwxrwx 1 root root 15 Jan 5 17:11 stdin -> /proc/self/fd/0
lrwxrwxrwx 1 root root 15 Jan 5 17:11 stdout -> /proc/self/fd/1
drwxrwxrwx 3 nobody nogroup 60 Jan 5 11:55 sundtek
crw-rw-rw- 1 nobody nogroup 5, 0 Jan 5 17:46 tty
crw--w---- 1 root tty 136, 0 Jan 5 17:11 tty1
crw--w---- 1 root tty 136, 1 Jan 5 17:11 tty2
crw--w---- 1 root tty 136, 2 Jan 5 17:11 tty3
crw--w---- 1 root tty 136, 3 Jan 5 17:11 tty4
crw-rw-rw- 1 nobody nogroup 1, 9 Jan 5 11:55 urandom
crw-rw-rw- 1 nobody nogroup 1, 5 Jan 5 11:55 zero
tvh@tvh:/dev$
aus dem container mit dem entsprechenden user.
/dev/dvb ist lesbar, /dev/sundtek schreibbar, konnte da bisher keine einschränkung feststellen .....aber das ist auch die Ecke durch die ich mit dir nochmal beackern wollte denn mediasrv beschwert sich durchaus, nur kann ich die start parameter nicht anpassen weil ich nicht weiss woher das gelauncht wird
-
2023-01-05 17:52:19 [553] found lib: libdrv_fm.so
2023-01-05 17:52:19 [553] found lib: libdrv_vivi.so
2023-01-05 17:52:19 [553] found lib: libdrv_fm_dab_dabplus.so
2023-01-05 17:52:19 [553] found lib: libdrv_em28xx.so
2023-01-05 17:52:19 [553] found lib: libdrv_eLight.so
2023-01-05 17:52:19 [553]
2023-01-05 17:52:19 [553] Scanning for plugins
2023-01-05 17:52:19 [553] found lib: libencoder_plugin.so
2023-01-05 17:52:19 [553] MediaAVPlugin: MPEG Encoder
2023-01-05 17:52:19 [553] Copyright: (C) Tpe 2011/2012
2023-01-05 17:52:19 [553]
2023-01-05 17:52:19 [553] Starting up device manager
2023-01-05 17:52:19 [553] unable to create /dev/sundtek/usb/001/004, this will lead to a failure now
2023-01-05 17:52:19 [553] retrying with 3rd workaround now
2023-01-05 17:52:19 [553] device not ready, sleeping 3 seconds and retrying (/dev/bus/usb/001/002)
2023-01-05 17:52:20 [553] device not ready, sleeping 3 seconds and retrying (/dev/bus/usb/001/002)
2023-01-05 17:52:21 [553] device not ready, sleeping 3 seconds and retrying (/dev/bus/usb/001/002)
2023-01-05 17:52:22 [553] device not ready, sleeping 3 seconds and retrying (/dev/bus/usb/001/002)
2023-01-05 17:52:23 [553] skipping unknown busy device, check dmesg maybe a module is interfering (eg. usbhid)
2023-01-05 17:52:23 [553] device not ready, sleeping 3 seconds and retrying (/dev/bus/usb/001/005)
2023-01-05 17:52:24 [553] device not ready, sleeping 3 seconds and retrying (/dev/bus/usb/001/005)
2023-01-05 17:52:25 [553] device not ready, sleeping 3 seconds and retrying (/dev/bus/usb/001/005)
2023-01-05 17:52:26 [553] device not ready, sleeping 3 seconds and retrying (/dev/bus/usb/001/005)
2023-01-05 17:52:27 [553] skipping unknown busy device, check dmesg maybe a module is interfering (eg. usbhid)
2023-01-05 17:52:27 [553] device not ready, sleeping 3 seconds and retrying (/dev/bus/usb/001/003)
2023-01-05 17:52:28 [553] device not ready, sleeping 3 seconds and retrying (/dev/bus/usb/001/003)
2023-01-05 17:52:29 [553] device not ready, sleeping 3 seconds and retrying (/dev/bus/usb/001/003)
2023-01-05 17:52:30 [553] device not ready, sleeping 3 seconds and retrying (/dev/bus/usb/001/003)
2023-01-05 17:52:31 [553] skipping unknown busy device, check dmesg maybe a module is interfering (eg. usbhid)
2023-01-05 17:52:31 [553] Setting permission of /dev/dvb to 777
2023-01-05 17:52:31 [553] This is to avoid problems if TV Applications are started as another user
2023-01-05 17:52:31 [553] as seen on eg. Synology NAS Systems where tvheadend is unable to read
2023-01-05 17:52:31 [553] /dev/dvb and because of that would not detect the TV tuner
2023-01-05 17:52:31 [553] scanning devices done
2023-01-05 17:52:31 [553] attached devices:
2023-01-05 17:52:31 [554] Autostarting scripts in /etc/sundtek/
2023-01-05 17:52:31 [554] executed all available items
auch du grüne Neune ....wer lesen kann ist klar im vorteil :
sollte das ein problem sein ?
2023-01-05 17:52:31 [553] Setting permission of /dev/dvb to 777
2023-01-05 17:52:31 [553] This is to avoid problems if TV Applications are started as another user
2023-01-05 17:52:31 [553] as seen on eg. Synology NAS Systems where tvheadend is unable to read
2023-01-05 17:52:31 [553] /dev/dvb and because of that would not detect the TV tuner
aber warum macht dann die Art des Starts einen Unterschied .......
-
hier der Rest:
2023-01-05 17:52:31 [553] skipping unknown busy device, check dmesg maybe a module is interfering (eg. usbhid)
2023-01-05 17:52:31 [553] Setting permission of /dev/dvb to 777
2023-01-05 17:52:31 [553] This is to avoid problems if TV Applications are started as another user
2023-01-05 17:52:31 [553] as seen on eg. Synology NAS Systems where tvheadend is unable to read
2023-01-05 17:52:31 [553] /dev/dvb and because of that would not detect the TV tuner
2023-01-05 17:52:31 [553] scanning devices done
2023-01-05 17:52:31 [553] attached devices:
2023-01-05 17:52:31 [554] Autostarting scripts in /etc/sundtek/
2023-01-05 17:52:31 [554] executed all available items
2023-01-05 17:52:38 [553] device not ready, sleeping 3 seconds and retrying (/dev/bus/usb/001/002)
2023-01-05 17:52:39 [553] device not ready, sleeping 3 seconds and retrying (/dev/bus/usb/001/002)
2023-01-05 17:52:40 [553] device not ready, sleeping 3 seconds and retrying (/dev/bus/usb/001/002)
2023-01-05 17:52:41 [553] device not ready, sleeping 3 seconds and retrying (/dev/bus/usb/001/002)
2023-01-05 17:52:42 [553] skipping unknown busy device, check dmesg maybe a module is interfering (eg. usbhid)
2023-01-05 17:52:42 [553] device not ready, sleeping 3 seconds and retrying (/dev/bus/usb/001/005)
2023-01-05 17:52:43 [553] device not ready, sleeping 3 seconds and retrying (/dev/bus/usb/001/005)
2023-01-05 17:52:44 [553] device not ready, sleeping 3 seconds and retrying (/dev/bus/usb/001/005)
2023-01-05 17:52:45 [553] device not ready, sleeping 3 seconds and retrying (/dev/bus/usb/001/005)
2023-01-05 17:52:46 [553] skipping unknown busy device, check dmesg maybe a module is interfering (eg. usbhid)
2023-01-05 17:52:46 [553] device not ready, sleeping 3 seconds and retrying (/dev/bus/usb/001/003)
2023-01-05 17:52:47 [553] device not ready, sleeping 3 seconds and retrying (/dev/bus/usb/001/003)
2023-01-05 17:52:48 [553] device not ready, sleeping 3 seconds and retrying (/dev/bus/usb/001/003)
2023-01-05 17:52:49 [553] device not ready, sleeping 3 seconds and retrying (/dev/bus/usb/001/003)
2023-01-05 17:52:50 [553] skipping unknown busy device, check dmesg maybe a module is interfering (eg. usbhid)
2023-01-05 17:52:50 [553] registering ID: 0
2023-01-05 17:52:51 [553] Memory mapped transfers are not available
2023-01-05 17:52:51 [553] Board config found: Sundtek SkyTV Dual 8 (eLight)
2023-01-05 17:52:51 [553] This board provides 2 frontends
2023-01-05 17:52:51 [553]
2023-01-05 17:52:51 [553] *********
2023-01-05 17:52:51 [553] Signature: Sundtek
2023-01-05 17:52:51 [553] Initializing SYSV-IPC
2023-01-05 17:52:51 [553] Allocation using pg for type 65678
2023-01-05 17:52:52 [553] demodulator successfully attached (DVB_S/S2)!
2023-01-05 17:52:52 [553] attaching second tuner...
2023-01-05 17:52:52 [553] Allocation using pg for type 65678
2023-01-05 17:52:54 [553] demodulator successfully attached (DVB_S/S2)!
2023-01-05 17:52:54 [553] Configuring Dual LNB Power Supply
2023-01-05 17:52:54 [553] Vertical Polarisation is set to 14.00 Volt
2023-01-05 17:52:54 [553] Horizontal Polarisation is set to 19.10 Volt
2023-01-05 17:52:54 [553] Enabling LNB status monitor
2023-01-05 17:52:54 [554] trying to load uinput module
2023-01-05 17:52:54 [554] loading uinput kernel extention failed, remote control will not work with lirc
2023-01-05 17:52:54 [553] No remote control support available
2023-01-05 17:52:54 [553] Initializing Remote Control Support (interrupt)
2023-01-05 17:52:54 [553] Unable to create /dev/mediainput0 (1/Operation not permitted)
2023-01-05 17:52:54 [553] registered virtual: /dev/mediainput0
2023-01-05 17:52:54 [553] /dev/dvb/adapter0 exists, but not accessible by everyone,
2023-01-05 17:52:54 [553] fixing that by setting it to 777
2023-01-05 17:52:54 [553] Unable to create /dev/dvb/adapter0/frontend0 (17/File exists)
2023-01-05 17:52:54 [553] Unable to create /dev/dvb/adapter0/demux0 (17/File exists)
2023-01-05 17:52:54 [553] Unable to create /dev/dvb/adapter0/dvr0 (17/File exists)
2023-01-05 17:52:54 [553] registering: adapter0/0
2023-01-05 17:52:54 [553] registered virtual: /dev/dvb/adapter0/frontend0
2023-01-05 17:52:54 [553] registered virtual: /dev/dvb/adapter0/demux0
2023-01-05 17:52:54 [553] registered virtual: /dev/dvb/adapter0/dvr0
2023-01-05 17:52:54 [553] /dev/dvb/adapter1 exists, but not accessible by everyone,
2023-01-05 17:52:54 [553] fixing that by setting it to 777
2023-01-05 17:52:54 [553] Unable to create /dev/dvb/adapter1/frontend0 (17/File exists)
2023-01-05 17:52:54 [553] Unable to create /dev/dvb/adapter1/demux0 (17/File exists)
2023-01-05 17:52:54 [553] Unable to create /dev/dvb/adapter1/dvr0 (17/File exists)
2023-01-05 17:52:54 [553] registering: adapter1/0
2023-01-05 17:52:54 [553] registered virtual: /dev/dvb/adapter1/frontend0
2023-01-05 17:52:54 [553] registered virtual: /dev/dvb/adapter1/demux0
2023-01-05 17:52:54 [553] registered virtual: /dev/dvb/adapter1/dvr0
2023-01-05 17:52:54 [553] Driver loaded within 3263 milliseconds
2023-01-05 17:52:57 [553] Initial devicescan done, switching detection mode
2023-01-05 17:53:09 [553] [FE0] . o ( Enabling Standby ) o .
2023-01-05 17:53:09 [553] [FE0] Set Voltage off
2023-01-05 17:53:09 [553] [FE1] . o ( Enabling Standby ) o .
2023-01-05 17:53:09 [553] [FE1] Set Voltage off
-
lxc.cgroup2.devices.allow = c 212:* rwm
lxc.cgroup2.devices.allow = c 250:* rwm
lxc.cgroup2.devices.allow = c 189:* rwm
lxc.mount.entry = /dev/dvb dev/dvb none bind,optional,create=dir
lxc.mount.entry = /dev/bus/usb dev/bus/usb none bind,optional,create=dir
lxc.mount.entry = /srv/tvheadend srv none bind,optional,create=dir
hast Du diese Settings irgendwo festgelegt?
Soweit ich dass das letzte mal gemacht habe, habe ich sicher keine existierenden dvb Nodes vom Host im LXC Container übernommen.
Der Treiber muss als root gestartet werden (damit er Zugriff auf IPC und Shared Memory bekommt - normale User können üblicherweise keine Shared Memory Segmente anlegen - sie können aber darauf zugreifen).
-
wofür die cgroup 250 ? die habe ich nirgendwo gesehen bisher und es rennt auch so ...
ich setzte /dev/dvb und /dev/sundtek auf dem host hiermit auf:
root@odroidh2:~# cat sundtek.sh
#!/bin/bash
mkdir -p /dev/dvb/adapter0
mknod /dev/dvb/adapter0/frontend0 c 212 1
mknod /dev/dvb/adapter0/dvr0 c 212 5
mknod /dev/dvb/adapter0/demux0 c 212 3
mkdir -p /dev/dvb/adapter1
mknod /dev/dvb/adapter1/frontend0 c 212 7
mknod /dev/dvb/adapter1/dvr0 c 212 11
mknod /dev/dvb/adapter1/demux0 c 212 9
mkdir -p /dev/dvb/adapter2
mknod /dev/dvb/adapter2/frontend0 c 212 13
mknod /dev/dvb/adapter2/dvr0 c 212 17
mknod /dev/dvb/adapter2/demux0 c 212 15
mkdir -p /dev/sundtek
chmod 777 /dev/sundtek
chmod 777 /dev/bus/usb/001/004
root@odroidh2:~#
ggf kann man die unterverzeichnisse weglassen, trotzdem motzt mediasrv das es diese nicht anlegen kann und dann sind die doch da
kannst du mir noch sagen woher mediasrv gestartet wird ich finde das zum verrecken nicht
-
root@odroidh2:/home/simon/.local/share/lxc/tvh# cat config
# Template used to create this container: /usr/share/lxc/templates/lxc-download
# Parameters passed to the template: --keyserver hkp://keyserver.ubuntu.com:80
# For additional config options, please look at lxc.container.conf(5)
# Uncomment the following line to support nesting containers:
#lxc.include = /usr/share/lxc/config/nesting.conf
# (Be aware this has security implications)
# Distribution configuration
lxc.include = /usr/share/lxc/config/common.conf
lxc.include = /usr/share/lxc/config/userns.conf
lxc.arch = linux64
# Container specific configuration
lxc.apparmor.profile = unconfined
lxc.apparmor.allow_nesting = 1
lxc.idmap = u 0 100000 65536
lxc.idmap = g 0 100000 65536
lxc.rootfs.path = dir:/home/simon/.local/share/lxc/tvh/rootfs
lxc.uts.name = tvh
# automatically start containers on boot
lxc.start.auto = 1
#lxc.start.delay = 5
#lxc.start.order = 1
# Network configuration
#lxc.net.0.type = empty
# Network configuration
lxc.net.0.type = veth
lxc.net.0.link = br-iot
lxc.net.0.flags = up
lxc.net.0.hwaddr = 00:18:3e:12:34:56
#sundtek DVB
lxc.cgroup2.devices.allow = c 212:* rwm
lxc.cgroup2.devices.allow = c 189:* rwm
#lxc.cgroup2.devices.allow = c 250:* rwm
lxc.mount.entry = /dev/sundtek dev/sundtek none bind,optional,create=dir
lxc.mount.entry = /dev/dvb dev/dvb none bind,optional,create=dir
#lxc.mount.entry = /dev/bus/usb dev/bus/usb none bind,optional,create=dir
lxc.mount.entry = /dev/bus/usb/001/004 dev/bus/usb/001/004 none bind,optional,create=file
lxc.mount.entry = /mnt/tosh3gb-a/tvh_record home/tvh/records none bind 0 0
root@odroidh2:/home/simon/.local/share/lxc/tvh#
-
Also hier mein Setup was funktioniert (und deutlich anders ist als die Anleitung).
1. unpriviligierten LXC container mit debian bullseye anlegen
2. Auf dem Host die /dev/dvb /dev/sundtek einträge anlegen mit folgendem Skript, bei jedem boot vorgang:
#!/bin/bash
mkdir -p /dev/dvb/adapter0
mknod /dev/dvb/adapter0/frontend0 c 212 1
mknod /dev/dvb/adapter0/dvr0 c 212 5
mknod /dev/dvb/adapter0/demux0 c 212 3
mkdir -p /dev/dvb/adapter1
mknod /dev/dvb/adapter1/frontend0 c 212 7
mknod /dev/dvb/adapter1/dvr0 c 212 11
mknod /dev/dvb/adapter1/demux0 c 212 9
mkdir -p /dev/dvb/adapter2
mknod /dev/dvb/adapter2/frontend0 c 212 13
mknod /dev/dvb/adapter2/dvr0 c 212 17
mknod /dev/dvb/adapter2/demux0 c 212 15
mkdir -p /dev/sundtek
chmod 777 /dev/sundtek
chmod 777 /dev/bus/usb/001/004
3. auf dem LXC container die sundtek_netinst.sh ausführen
4. das automatische ausführen von dem sundtek service per systemd deaktivieren ! ( wir brauchen andere parameter und starten mediasrv manuell )
systemctl disable sundtek ( ist in /lib/systemd/system/sundtek.service
5. wie auch immer (systemd oder cron) mediasrv mit folgenden parameters beim booten ausführen:
/opt/bin/mediasrv --wait-for-devices --no-nodes
-> no nodes verhindert das mediasrv versucht die dev nodes auf dem host selbst anzulegen
6. auf keinen fall tvheadend direkt starten , ich warte 60s bevor tvheadend gestartet wird sonst gibts ärger mit der DVB device erkennung. ich nutze auch ein selbst kompiliertes , nicht per make install installiertes ( also wurde vom installer auch nicht das tvheadend.bin frisiert )
#!/bin/bash
/bin/sleep 60
export LD_PRELOAD=/opt/lib/libmediaclient.so
/home/tvh/tvheadend/build.linux/tvheadend -S -C -p /run/tvheadend.pid -u tvh -g video
kann auch wieder per cronjob beim boot gemacht werden
--> ich bin mit dem setup so nicht zufrieden weil zB das Zusammenspiel (oder das Problem) von mediasrv und tvheadend nicht geklärt ist. auch ist nicht geklärt warum das anlegen der devicenodes ärger macht, selbst wenn chown / chmod alles aufmacht.
hier für die vollständigkeit noch meine container config:
# Template used to create this container: /usr/share/lxc/templates/lxc-download
# Parameters passed to the template: --keyserver hkp://keyserver.ubuntu.com:80
# For additional config options, please look at lxc.container.conf(5)
# Uncomment the following line to support nesting containers:
#lxc.include = /usr/share/lxc/config/nesting.conf
# (Be aware this has security implications)
# Distribution configuration
lxc.include = /usr/share/lxc/config/common.conf
lxc.include = /usr/share/lxc/config/userns.conf
lxc.arch = linux64
# Container specific configuration
lxc.apparmor.profile = unconfined
lxc.apparmor.allow_nesting = 1
lxc.idmap = u 0 100000 65536
lxc.idmap = g 0 100000 65536
lxc.rootfs.path = dir:/home/simon/.local/share/lxc/tvh/rootfs
lxc.uts.name = tvh
# automatically start containers on boot
lxc.start.auto = 1
#lxc.start.delay = 5
#lxc.start.order = 1
# Network configuration
#lxc.net.0.type = empty
# Network configuration
lxc.net.0.type = veth
lxc.net.0.link = br-iot
lxc.net.0.flags = up
lxc.net.0.hwaddr = 00:18:3e:12:34:56
#sundtek DVB
lxc.cgroup2.devices.allow = c 212:* rwm
lxc.cgroup2.devices.allow = c 189:* rwm
#lxc.cgroup2.devices.allow = c 189:3 rwm
#lxc.cgroup2.devices.allow = c 250:* rwm
lxc.mount.entry = /dev/sundtek dev/sundtek none bind,optional,create=dir
lxc.mount.entry = /dev/dvb dev/dvb none bind,optional,create=dir
lxc.mount.entry = /dev/bus/usb dev/bus/usb none bind,optional,create=dir
#lxc.mount.entry = /dev/bus/usb/001/004 dev/bus/usb/001/004 none bind,optional,create=file
lxc.mount.entry = /mnt/tosh3gb-a/tvh_record home/tvh/records none bind 0 0
erweiterte Hinweise:
- ich nutze einen selbstkompilierten tvheadend , der NICHT per make install installiert wurde sondern im verzeichnis bleibt wo er kompiliert wurde. Das der mediaclient mit eingebunden wird muss über den LIB preload geregelt werden. Es gibt bei der vorgehensweise KEINE einzuhaltende Reihenfolge bei der Installation zwischen tvheadend und sundtek:
hier mein skript, die 60s wartezeit sind dafür da den mediaclient beim boot vorsprung zu lassen damit er zuerst rennt:
#!/bin/bash
/bin/sleep 60
export LD_PRELOAD=/opt/lib/libmediaclient.so
/home/tvh/tvheadend/build.linux/tvheadend -S -C -p /run/tvheadend.pid -u tvh -g video
ich würde dsa gerne mit dem Sundtek support weiter bearbeiten und die offenen Punkte abgrasen, s.o.
-
Hallo,
mit welchen Rechten bzw cgroups muss die Struktur unter /dev/sundtek ausgestattet werden ? Mir ist nicht ganz klar welche major minor nummern verwendet werden müssen.
Ich habe noch mehr Hinweise gefunden das mknod mit unpriviligierten LXC Containern nicht geht , da die CAP_MKNOD berechtigung fehlt:
https://lists.linuxcontainers.org/pipermail/lxc-users/2017-November/013878.html
MfG
-
Ich hänge mich hier mal an. Ich steige gerade vom Raspberrys (Pi4) auf den Futro S740 und Proxmox um.
Mit der Anleitung habe ich im LXC-Container (Debian) für TVHeadend und auch einen Tuner, funktionierend, im Container.
Installation machte ich mit meinem Sky Ultimate 6 und der lief auch.
Nun habe ich den Sky Ultimate Dual 8 umgesteckt.
Nun habe ich einen der Tuner vom 8er im Container laufend.
lsusb zeigt beide Tuner im Container an.
Wie hole ich die anderen beiden ins TVHeadend?
-
Mal eine grundsätzliche Frage.
Ich mache ie mknodes wie oben beschrieben und installiere dann Sundtek im Container (Debian 11)
/opt/bin/mediaclient -e zeigt mir im Container beide Sticks = 3 Tuner (Ultimate Dual VIII und Ultimate VI).
Anschliessen dhole ich aus dem git TVheadend, kompiliere und installiere es und die Tuner sind verschwunden.
Ist es besser erst TVHeadend zu installieren und danach Sundtek?
-
Wir haben hoffentlich nächste Woche ein Update zusammen mit dem die Integration noch einfacher wird... bitte etwas Geduld bei uns laufen einige Arbeiten auf Hochtouren die zuerst abgeschlossen werden müssen (daher zur Zeit auch etwas weniger Support im Forum) Es sollte sich im Laufe der nächsten Woche wieder legen.
-
Also hier mein Setup was funktioniert (und deutlich anders ist als die Anleitung).
1. unpriviligierten LXC container mit debian bullseye anlegen
2. Auf dem Host die /dev/dvb /dev/sundtek einträge anlegen mit folgendem Skript, bei jedem boot vorgang:
#!/bin/bash
mkdir -p /dev/dvb/adapter0
mknod /dev/dvb/adapter0/frontend0 c 212 1
mknod /dev/dvb/adapter0/dvr0 c 212 5
mknod /dev/dvb/adapter0/demux0 c 212 3
mkdir -p /dev/dvb/adapter1
mknod /dev/dvb/adapter1/frontend0 c 212 7
mknod /dev/dvb/adapter1/dvr0 c 212 11
mknod /dev/dvb/adapter1/demux0 c 212 9
mkdir -p /dev/dvb/adapter2
mknod /dev/dvb/adapter2/frontend0 c 212 13
mknod /dev/dvb/adapter2/dvr0 c 212 17
mknod /dev/dvb/adapter2/demux0 c 212 15
mkdir -p /dev/sundtek
chmod 777 /dev/sundtek
chmod 777 /dev/bus/usb/001/004
3. auf dem LXC container die sundtek_netinst.sh ausführen
4. das automatische ausführen von dem sundtek service per systemd deaktivieren ! ( wir brauchen andere parameter und starten mediasrv manuell )
systemctl disable sundtek ( ist in /lib/systemd/system/sundtek.service
5. wie auch immer (systemd oder cron) mediasrv mit folgenden parameters beim booten ausführen:
/opt/bin/mediasrv --wait-for-devices --no-nodes
-> no nodes verhindert das mediasrv versucht die dev nodes auf dem host selbst anzulegen
6. auf keinen fall tvheadend direkt starten , ich warte 60s bevor tvheadend gestartet wird sonst gibts ärger mit der DVB device erkennung. ich nutze auch ein selbst kompiliertes , nicht per make install installiertes ( also wurde vom installer auch nicht das tvheadend.bin frisiert )
#!/bin/bash
/bin/sleep 60
export LD_PRELOAD=/opt/lib/libmediaclient.so
/home/tvh/tvheadend/build.linux/tvheadend -S -C -p /run/tvheadend.pid -u tvh -g video
kann auch wieder per cronjob beim boot gemacht werden
--> ich bin mit dem setup so nicht zufrieden weil zB das Zusammenspiel (oder das Problem) von mediasrv und tvheadend nicht geklärt ist. auch ist nicht geklärt warum das anlegen der devicenodes ärger macht, selbst wenn chown / chmod alles aufmacht.
hier für die vollständigkeit noch meine container config:
# Template used to create this container: /usr/share/lxc/templates/lxc-download
# Parameters passed to the template: --keyserver hkp://keyserver.ubuntu.com:80
# For additional config options, please look at lxc.container.conf(5)
# Uncomment the following line to support nesting containers:
#lxc.include = /usr/share/lxc/config/nesting.conf
# (Be aware this has security implications)
# Distribution configuration
lxc.include = /usr/share/lxc/config/common.conf
lxc.include = /usr/share/lxc/config/userns.conf
lxc.arch = linux64
# Container specific configuration
lxc.apparmor.profile = unconfined
lxc.apparmor.allow_nesting = 1
lxc.idmap = u 0 100000 65536
lxc.idmap = g 0 100000 65536
lxc.rootfs.path = dir:/home/simon/.local/share/lxc/tvh/rootfs
lxc.uts.name = tvh
# automatically start containers on boot
lxc.start.auto = 1
#lxc.start.delay = 5
#lxc.start.order = 1
# Network configuration
#lxc.net.0.type = empty
# Network configuration
lxc.net.0.type = veth
lxc.net.0.link = br-iot
lxc.net.0.flags = up
lxc.net.0.hwaddr = 00:18:3e:12:34:56
#sundtek DVB
lxc.cgroup2.devices.allow = c 212:* rwm
lxc.cgroup2.devices.allow = c 189:* rwm
#lxc.cgroup2.devices.allow = c 189:3 rwm
#lxc.cgroup2.devices.allow = c 250:* rwm
lxc.mount.entry = /dev/sundtek dev/sundtek none bind,optional,create=dir
lxc.mount.entry = /dev/dvb dev/dvb none bind,optional,create=dir
lxc.mount.entry = /dev/bus/usb dev/bus/usb none bind,optional,create=dir
#lxc.mount.entry = /dev/bus/usb/001/004 dev/bus/usb/001/004 none bind,optional,create=file
lxc.mount.entry = /mnt/tosh3gb-a/tvh_record home/tvh/records none bind 0 0
erweiterte Hinweise:
- ich nutze einen selbstkompilierten tvheadend , der NICHT per make install installiert wurde sondern im verzeichnis bleibt wo er kompiliert wurde. Das der mediaclient mit eingebunden wird muss über den LIB preload geregelt werden. Es gibt bei der vorgehensweise KEINE einzuhaltende Reihenfolge bei der Installation zwischen tvheadend und sundtek:
hier mein skript, die 60s wartezeit sind dafür da den mediaclient beim boot vorsprung zu lassen damit er zuerst rennt:
#!/bin/bash
/bin/sleep 60
export LD_PRELOAD=/opt/lib/libmediaclient.so
/home/tvh/tvheadend/build.linux/tvheadend -S -C -p /run/tvheadend.pid -u tvh -g video
ich würde dsa gerne mit dem Sundtek support weiter bearbeiten und die offenen Punkte abgrasen, s.o.
***********************
ich habe den originalen Beitrag um Details zum tvheadend bearbeitet, s.o
- tvheadend ist selbstkompiliert , nicht installiert
- das PRELOAD der LIB regel ich selbst das habe ich nicht dem sundtek installer überlassen, der ist mir zu heftig unterwegs mit modifikationen im system
-
Ich hab ein Fehler gefunden.
In der LXC conf muß statt "=" ein ":" eingegeben werden.
Also:
#sundtek DVB
lxc.cgroup2.devices.allow: c 212:* rwm
lxc.cgroup2.devices.allow: c 189:* rwm
#lxc.cgroup2.devices.allow: c 189:3 rwm
#lxc.cgroup2.devices.allow: c 250:* rwm
lxc.mount.entry: /dev/sundtek dev/sundtek none bind,optional,create=dir
lxc.mount.entry: /dev/dvb dev/dvb none bind,optional,create=dir
lxc.mount.entry: /dev/bus/usb dev/bus/usb none bind,optional,create=dir
#lxc.mount.entry: /dev/bus/usb/001/004 dev/bus/usb/001/004 none bind,optional,create=file
lxc.mount.entry: /mnt/tosh3gb-a/tvh_record home/tvh/records none bind 0 0
Damit läuft es aktuell bei mir
-
Hi,
naja, vielleicht nutzt du eine ältere lxc config, der syntax hat sich mal geändert , siehe:
https://manpages.ubuntu.com/manpages/impish/en/man5/lxc.container.conf.5.html
Gruß,
Simon