dm920 - Python3 - openPLi (homebuild)

ws240705

Registered
Messages
11
Hello everyone,

it seems i finally found a way to make my box set the rtc reliably (image of 20240629, the newer ones do not startup here):

I saw these lines in var/log/messages, about 16 to 18 seconds after power on, close to the point in time where, on a successful rtc clock update, the time changes from 1st of Jan to the correct date:

Jan 1 01:00:16 dm920 daemon.info avahi-daemon[609]: Leaving mDNS multicast group on interface eth0.IPv6 with address fe80::xxx:xxxx:xxxx:xxxx.
Jan 1 01:00:16 dm920 daemon.info avahi-daemon[609]: Joining mDNS multicast group on interface eth0.IPv6 with address 2001:yyyy:yyyy:yyyy:yyy:yyyy:yyyy:yyyy.
Jan 1 01:00:16 dm920 daemon.info avahi-daemon[609]: Registering new address record for 2001:yyyy:yyyy:yyyy:yyy:yyyy:yyyy:yyyy on eth0.*.
Jan 1 01:00:16 dm920 daemon.info avahi-daemon[609]: Withdrawing address record for fe80::xxx:xxxx:xxxx:xxxx on eth0.

Since this was for IPv6 only, and not IPv4, i disabled IPv6 with a plugin i found in the xxxxxx forum (hope posting a link is ok here, otherwise g...gle for dm920 ipv6 disable):

(Installed via Menu-Plugins-Software Management-Install local extension)

And Bingo: Since installing this, the rtc seems to be set after every reboot

And additionally, the call to ntpd i added in /etc/init.d/rc (see my last post), is unnecessary

I hope one of the experts here can make use of this.

For me it looks like the ntp daemon sometimes has a problem with a changing IPv6 address.

I really would like to use the new openpli/homebuild images

Thanks for your time
 
Last edited by a moderator:

ws240705

Registered
Messages
11
Hello everyone,

i tried to find out why images later than 20240629 do not startup on my box.

when i restart enigma with debug output (telnet, login as root, init 5 && sleep 15 && enigma2.sh),
i get this result (regardless if image 20240707 is clean-flashed or image 20240629 is updated):

---- Telnet output --------
PYTHONPATH: /usr/lib/enigma2/python
DVB_API_VERSION 5 DVB_API_VERSION_MINOR 12
ENIGMA_DEBUG_LVL=3
[MAIN] executing main
Traceback (most recent call last):
File "/usr/lib/enigma2/python/StartEnigma.py", line 35, in <module>
from Screens import InfoBar
File "/usr/lib/enigma2/python/Screens/InfoBar.py", line 5, in <module>
import Screens.MovieSelection
File "/usr/lib/enigma2/python/Screens/MovieSelection.py", line 11, in <module>
from Components.ConfigList import ConfigListScreen
File "/usr/lib/enigma2/python/Components/ConfigList.py", line 12, in <module>
from Screens.Standby import QUIT_RESTART, TryQuitMainloop
File "/usr/lib/enigma2/python/Screens/Standby.py", line 3, in <module>
import RecordTimer
File "/usr/lib/enigma2/python/RecordTimer.py", line 5, in <module>
from Components.UsageConfig import defaultMoviePath
File "/usr/lib/enigma2/python/Components/UsageConfig.py", line 7, in <module>
from Components.NimManager import nimmanager
File "/usr/lib/enigma2/python/Components/NimManager.py", line 1821, in <module>
nimmanager = NimManager()
^^^^^^^^^^^^
File "/usr/lib/enigma2/python/Components/NimManager.py", line 743, in __init__
self.enumerateNIMs()
File "/usr/lib/enigma2/python/Components/NimManager.py", line 961, in enumerateNIMs
if entry["name"] and ("fbc" in entry["name"].lower() or ("45308X" in entry["name"].upper() and model in ("dm900", "dm920")) or (entry["name"] in BoxInfo.getItem("HasFBCtuner") and entry["frontend_device"] is not None and os.access("/proc/stb/frontend/%d/fbc_id" % entry["frontend_device"], os.F_OK))):
^^^^^
NameError: name 'model' is not defined. Did you mean: 'modes'?
root@dm920:~#

---- End of Telnet output --------

Has anyone an idea what i could do to fix this ?


Thanks for your hints
 

Sasser

Registered
Messages
22
01.jpg

02.jpg

Install image
Flash = OK
BA = OK

05.jpg


dm920 - Python 3.12.4 - openpli-develop - homebuild ! 20240707

- Python 3.12.4, GCC 14.1, OpenSSL 3.3.1
- ServiceApp, FFmpeg 7.0.1, GStreamer 1.24.5
- Ciplus, OScamstatus, OScam-emu, OScam 11799
- OpenWebif, EPG-Import, File Commander, YouTube 1213
- blindscan, cablescan, fastscan, terrestrialscan
- feed dm920/drivers/settings/picons/skins/plugins

download:
Hi Satpong
Link is down...
 

ws240705

Registered
Messages
11
Hello Everyone, hello Satpong,

my dm920 does now start, with image 20240707.

I had to make 2 minor changes in /usr/lib/enigma2/python/Components/NimManager.py

The variable 'model' seems to be unknown in 2 sections.

I added 'model = BoxInfo.getItem("machine")' 2 times, see here:

1st change:
...
class NIM:
def __init__(self, slot, type, description, has_outputs=True, internally_connectable=None, multi_type={}, frontend_id=None, i2c=None, is_empty=False, supports_blind_scan=False, is_fbc=[0, 0, 0], number_of_slots=0):
nim_types = ["DVB-S", "DVB-S2", "DVB-S2X", "DVB-C", "DVB-T", "DVB-T2", "ATSC"]

if type and type not in nim_types:
print("[NIM] warning: unknown NIM type %s, not using." % type)
type = None

model = BoxInfo.getItem("machine") # 20240710 ws

self.slot = slot
...

2nd change:

...
def enumerateNIMs(self):
# enum available NIMs. This is currently very dreambox-centric and uses the /proc/bus/nim_sockets interface.
# the result will be stored into nim_slots.
# the content of /proc/bus/nim_sockets looks like:
# NIM Socket 0:
# Type: DVB-S
# Name: BCM4501 DVB-S2 NIM (internal)
# NIM Socket 1:
# Type: DVB-S
# Name: BCM4501 DVB-S2 NIM (internal)
# NIM Socket 2:
# Type: DVB-T
# Name: Philips TU1216
# NIM Socket 3:
# Type: DVB-S
# Name: Alps BSBE1 702A

#
# Type will be either "DVB-S", "DVB-S2", "DVB-T", "DVB-C" or None.

# nim_slots is an array which has exactly one entry for each slot, even for empty ones.
self.nim_slots = []

model = BoxInfo.getItem("machine") # 20240710 ws

try:
nimfile = open("/proc/bus/nim_sockets")
except IOError:
return
...

After this , enigma2 starts reliably here !

(However, rtc setting by disabling IPv6 is still necessary here)

And the best of all:
So far, i could'nt configure the fbc tuners in a way that made the box do recordings/zapping/etc. reliable on a sat connection, as it was with the old NN2 images.

In NN2, the 2 fbc twin tuners are shown as 4 tuners (A1, B1, A2, B2)

With the openpli/satpong images til 20240629, i saw 16 tuners (A..P), and no configuration was reliable, so i used this box only for streaming.

But now, there are also shown 4 Tuners (A,B,I,J)

I will try the next days if recording/zapping/etc is better now.

If so, the openpli/satpong images would be a perfect replacement for NN2, at least for me.

Thanks for your attention
 

Lexzie

Senior Member
Messages
190

Hi, at the moment I don't have the remote control device but the card is in the decoder, see the LED is working.
Well I guess that just means the card is powered.
I hope you can test with the remote if you're planning to buy one.
 

satpong

Registered
Messages
229
Hello Everyone, hello Satpong,

my dm920 does now start, with image 20240707.

I had to make 2 minor changes in /usr/lib/enigma2/python/Components/NimManager.py

The variable 'model' seems to be unknown in 2 sections.

I added 'model = BoxInfo.getItem("machine")' 2 times, see here:
Hi, thanks for your feedback
Can you test if it works without your addition.
Delete your lines and just add , model to NimManager line # 3

from Components.SystemInfo import BoxInfo, model

----------------------------------------------------------
I was testing some patches to make blindscan work for BCM45308X tuner
That's why NimManager has changed in my latest image.
I'll revert it in my next image build.

----------------------------------------------------------
For time you can try fake-hwclock
Plugin doesn't work as it should for me, stays on wrong time.
opkg install fake-hwclock
 
Last edited:

Lexzie

Senior Member
Messages
190
Am I right that oscam-emu is not supporting iCam?
I can't get it working anymore and I thought it should be listen under oscam.version at Files in the webIF.

Note: I haven't tried 'openPLi-Py3-dm920-20240707' yet..
 

ws240705

Registered
Messages
11
Hello Satpong,
Hi, thanks for your feedback
Can you test if it works without your addition.
Delete your lines and just add , model to NimManager line # 3

from Components.SystemInfo import BoxInfo, model
No success

Telnet output:

...
dm920 login: root
root@dm920:~# init 5
root@dm920:~# enigma2.sh
PYTHONPATH: /usr/lib/enigma2/python
DVB_API_VERSION 5 DVB_API_VERSION_MINOR 12
ENIGMA_DEBUG_LVL=3
[MAIN] executing main
Traceback (most recent call last):
File "/usr/lib/enigma2/python/StartEnigma.py", line 35, in <module>
from Screens import InfoBar
File "/usr/lib/enigma2/python/Screens/InfoBar.py", line 5, in <module>
import Screens.MovieSelection
File "/usr/lib/enigma2/python/Screens/MovieSelection.py", line 11, in <module>
from Components.ConfigList import ConfigListScreen
File "/usr/lib/enigma2/python/Components/ConfigList.py", line 12, in <module>
from Screens.Standby import QUIT_RESTART, TryQuitMainloop
File "/usr/lib/enigma2/python/Screens/Standby.py", line 3, in <module>
import RecordTimer
File "/usr/lib/enigma2/python/RecordTimer.py", line 5, in <module>
from Components.UsageConfig import defaultMoviePath
File "/usr/lib/enigma2/python/Components/UsageConfig.py", line 7, in <module>
from Components.NimManager import nimmanager
File "/usr/lib/enigma2/python/Components/NimManager.py", line 3, in <module>
from Components.SystemInfo import BoxInfo, model
ImportError: cannot import name 'model' from 'Components.SystemInfo' (/usr/lib/enigma2/python/Components/SystemInfo.py)
root@dm920:~#
 

ws240705

Registered
Messages
11
Hello Satpong,

i removed my changes, made your change as requested

from Components.SystemInfo import BoxInfo, model

and made 2 more changes in SystemInfo.py:

---
BoxInfo = BoxInformation()
model = BoxInfo.getItem("machine") # moved this line away from beginning of setBoxInfoItems() to here

--

Success now !
 

ws240705

Registered
Messages
11
I was testing some patches to make blindscan work for BCM45308X tuner
That's why NimManager has changed in my latest image.
I'll revert it in my next image build.

@satpong
As you have expected, recording/zapping problems (stuttering, 'tuning failed', corrupted or stopped recordings) still persisted here (image 20240707).

In the Menu/Info/About pictures you post here from time to time, there is no BCM45308X tuner listed.

Would it help your tests if i would lend you one of mine ?
 

satpong

Registered
Messages
229
As you have expected, recording/zapping problems (stuttering, 'tuning failed', corrupted or stopped recordings) still persisted here (image 20240707).
In the Menu/Info/About pictures you post here from time to time, there is no BCM45308X tuner listed.
Would it help your tests if i would lend you one of mine ?
I don't have that tuner and I don't have a satellite dish. Thanks anyway
Forget about image 20240707. Everything has been restored to how it was before.
Install a previous image and do an online image upgrade or wait for next image build.
 

satpong

Registered
Messages
229
Wait for next image build
Thanks
dm920.jpg


dm920 - Python 3.12.4 - openpli-develop - homebuild ! 20240716

- Python 3.12.4, GCC 14.1, OpenSSL 3.3.1
- ServiceApp, FFmpeg 7.0.1, GStreamer 1.24.5
- Ciplus, OScamstatus, OScam-emu, OScam 11805
- OpenWebif, EPG-Import, File Commander, YouTube 1220
- blindscan, cablescan, fastscan, terrestrialscan
- feed dm920/drivers/settings/picons/skins/plugins

download
 
Last edited:
Top