Beiträge von pcd

    Sorry if this issue has been discussed before.


    Occasionally
    with some urls - I get only black screen - no playback. The problem is -
    when trying to exit - enigma freezes and the only way out is to reboot
    the box.


    For example :-


    rtmp://stream.smcloud.net/live2/vox/vox_720p - problem
    rtmp://stream.smcloud.net/live/vox2/stream1 - ok


    Movieplayer is started as usual with :-
    sref = eServiceReference(4097,0,url)
    sref.setName(name)
    self.session.open(MoviePlayer, sref)


    and closed with :-


    self.session.nav.stopService()
    self.session.nav.playService(self.srefOld)


    Is there a solution to this problem ?


    Regards, pcd.

    old console.cpp I found on the net show that the second argument is the length. but this was also the case in oe1.6. but maybe just give it a try.


    Thanks dre, it worked with length changing position.


    Openpli 4 :
    dump = "%07d%s" % (len(dump), dump)
    self.appContainer.write(dump)
    OE 2.2:
    ln = len(dump)
    self.appContainer.write(dump, ln)


    Regards.

    I am trying to convert a plugin to OE 2.2 and the line (where self.appContainer = eConsoleAppContainer() and dump is a dict):-


    self.appContainer.write(dump)


    gives the error :-


    TypeError: eConsoleAppContainer_write expected 3 arguments, got 2


    What should be the 3rd argument ?


    Regards, pcd.

    How to get the mac address from EthernetData for a dm7080hd ?


    I tried :-


    mac = EthernetData.getMacAddress()


    Did not work.


    Regards, pcd.

    I am trying to convert a oe2.0 plugin to oe2.2 - and get this error re eTimer:-


    self.updateTimer.callback.append(self.updateStatus)
    AttributeError: 'eTimer' object has no attribute 'callback'


    What should I use instead of callback.append ?

    The most simple crash (no config involved) occurs on Exit from Information :-



    Probably it cannot find screen in class 'Screens.Menu.Menu'.

    Hi,


    I have now built a Dm500hd image dreambox-image-deb-dm500hd-20141106170401.nfi.
    It installs and boots normally using the browser method. It also connects to pc using Restart Network.
    I have mounted a pc share folder on /media/hdd - so the crash logs can be in the share folder.
    Available flash memory is 1.4mb.


    The remaining (big) problem is that it crashes on exit from Setup to Menu. For example if I do :-


    Menu -> Setup -> System -> Customize -> Exit -> Exit


    it crashes. The crash always occurs after mytest.py execEnd. Can any expert please suggest where (after execEnd) I should look for the exact crash location ?


    I have inserted some print statements in Menu.py and mytest.py to trace the execution flow. These two files and the crash log are attached.


    Regards, pcd.


    Log in as root, then type each line followed by enter. You can skip dmesg.log, because it's already contained in your putty.log. If you read your putty log, then you should have seen the message See 'systemctl status enigma2.service' for details. Please post its output, too.

    I attach two logs. A has both outputs and B has output for command journalctl. Hope I have done it right.
    Seems it failed to make /etc/enigma2 at :

    Code
    Process: 168 ExecStartPre=/bin/mkdir -p /etc/enigma2 [1;31m(code=exited, status=1/FAILURE)[0m


    ps.


    I put in a blank folder /etc/enigma2. Then the image booted as normal - but crashed and the screen showed "not enough space". Next I removed most of the po files - the do_rootfs log ends with :-

    Code
    Partition #0: 143136 of 210371 bytes (/home/pcd/dm500hd/opendreambox/build/dm500hd/tmp-eglibc/sysroots/dm500hd/usr/share/dreambox-secondstage/secondstage.bin)
    Partition #1: 3266360 of 3843687 bytes (/home/pcd/dm500hd/opendreambox/build/dm500hd/tmp-eglibc/deploy/images/dm500hd/dreambox-image-deb-dm500hd-20141026134101.boot.jffs2)
    Partition #2: 57615120 of 62236263 bytes (/home/pcd/dm500hd/opendreambox/build/dm500hd/tmp-eglibc/deploy/images/dm500hd/dreambox-image-deb-dm500hd-20141026134101.rootfs.jffs2)
    DEBUG: Shell function do_rootfs finished
    DEBUG: Executing python function dreambox_image_nfo
    DEBUG: Python function dreambox_image_nfo finished


    This time the image booted as normal -> selected HDMI -> screen display ok -> language English selected -> then repeated crash (only machine dump).


    Further info


    The crashlog happens at each time I select something in the wizard - then it goes to the next step. I did some debug by adding print to Wizard.py in the image (no ftp):-


    Code
    if self.showConfig:
    				print "showing config"
    				self["config"].instance.setZPosition(1)
                                	print 'self.wizard[self.currStep]["config"]["type"] =', self.wizard[self.currStep]["config"]["type"]
                                	print 'self.wizard[self.currStep]["config"]["screen"] =', self.wizard[self.currStep]["config"]["screen"]
    				if self.wizard[self.currStep]["config"]["type"] == "dynamic":
    						print "config type is dynamic"


    On the tv (final repeated) green screen I see something like :-


    showing config
    self.wizard[self.currStep]["config"]["type"] =
    self.wizard[self.currStep]["config"]["screen"] = None


    It looks like "config" is not found. Sorry for my lengthy post - I hope it helps obi to find a solution.


    Regards, pcd.

    It's not predictable how much you need to remove, because it depends on the compression ratio. The (jffs2-)compressed root filesystem must not exceed 62914560 bytes. It won't get built automatically. You'll have to revert two patches, i.e. run the following commands:


    Code
    git revert 48d1875c54077b084b45f3c2128d453f82a9672e
    git revert 07c6daf96da415d0641193a8ffdc543d491bfc26

    Thanks. After doing the two reverts - I removed some items and the dm500hd .nfi image built :-


    The end of the log.do_rootfs :-


    Code
    Partition #0: 143136 of 210371 bytes (/home/pcd/dm500hd/opendreambox/build/dm500hd/tmp-eglibc/sysroots/dm500hd/usr/share/dreambox-secondstage/secondstage.bin)
    Partition #1: 3266360 of 3843687 bytes (/home/pcd/dm500hd/opendreambox/build/dm500hd/tmp-eglibc/deploy/images/dm500hd/dreambox-image-deb-dm500hd-20141024075542.boot.jffs2)
    Partition #2: 60121480 of 62236263 bytes (/home/pcd/dm500hd/opendreambox/build/dm500hd/tmp-eglibc/deploy/images/dm500hd/dreambox-image-deb-dm500hd-20141024075542.rootfs.jffs2)
    DEBUG: Shell function do_rootfs finished
    DEBUG: Executing python function dreambox_image_nfo
    DEBUG: Python function dreambox_image_nfo finished


    The image dreambox-image-deb-dm500hd-20141024075542.nfi was 65.5 mb.


    The image flashed to 100% via webinterface. On reboot - the boot picture showed - but after a while the screen went black and the blinking red light showed. I have then reflashed the oe 2.0 image - working ok.


    The items I deleted are shown in these two diffs :-




    Can someone please see which removed item is stopping the bootup ?
    Are there any other items that I can safely remove ?
    Also - how can I remove most of the /usr/share/enigma2/po files (total size now 6.5mb) ?
    If I can just connect by ftp - I can put softlinks to pc for any needed items.


    I will be grateful for any advice.


    Regards, pcd.

    Well, you could mount the rootfs remotely from an NFS-server, though I have to admit that this isn't very appealing to most people.

    I would like to try this - using a pc as nfs mount. Can someone please explain what exactly I have to do with the tar.xz file to boot from the pc. Or please give me a link to where this method is discussed (I can use google translate if necessary).


    I will be very grateful as I want to see what the image is like - but do not want to kill my dm500hd in the process !


    Regards.