OE-Git-1.6-DM7020

Wir haben aktuell ein Problem mit dem Board und arbeiten an der Lösung...
  • Hi ritzMo!


    Der Fehler, weswegen das Image ohne BA-Bootmanager nicht bootet, ist gefunden. Es ist der Gleiche, der auch schon seit geraumer Zeit in Distro 1.5 drin ist: In openembedded/packages/images/dreambox-image.bb müssen "hotplug-ng" und "autofs" entfernt werden. Die sind auf der dm7020 nicht funktionsfähig.


    Dann wollte ich das Image ins interne Flash laden. Ging aber nicht, das NFI-Format war ungültig. Die Ursache war auch schnell gefunden: In openembedded/packages/conf/machine/include/dreambox-powerpc.inc muss die Zeile " ${MACHINE} \" weg.
    In den NFI-Ddateien für die dm7020 darf der Dreambox-Typ nicht drinstehen.


    Nach dieser Änderung konnte ich das Image dann ins Flash schreiben.
    Das Image startet dort aber nicht. Hier der Bootlog:



    Danach kommt dann nichts mehr. Da ist wohl der Kernel kaputt.

  • Zitat

    Original von Hein Holz
    Der Fehler, weswegen das Image ohne BA-Bootmanager nicht bootet, ist gefunden. Es ist der Gleiche, der auch schon seit geraumer Zeit in Distro 1.5 drin ist: In openembedded/packages/images/dreambox-image.bb müssen "hotplug-ng" und "autofs" entfernt werden. Die sind auf der dm7020 nicht funktionsfähig.


    Was man nicht alles lernt -
    habs angepasst (nur für enigma1 aus dem image raus) in meinen tree gepushed.


    Zitat

    Original von Hein Holz
    Dann wollte ich das Image ins interne Flash laden. Ging aber nicht, das NFI-Format war ungültig. Die Ursache war auch schnell gefunden: In openembedded/packages/conf/machine/include/dreambox-powerpc.inc muss die Zeile " ${MACHINE} \" weg.
    In den NFI-Ddateien für die dm7020 darf der Dreambox-Typ nicht drinstehen.


    Und nochmal gepushed (nur für die 7020, 500+ / 600 scheinen keine Probleme damit zu haben).


    Zitat

    Original von Hein Holz
    Danach kommt dann nichts mehr. Da ist wohl der Kernel kaputt.


    Möglich - afair muss man bei der 7025/800 explizit sagen dass der Kernel nach ttyS0 loggen soll (und ich meine mich auch zu erinnern dass das bereits bei der 7000 so war, das ist aber nun wirklich lange her).
    Wenn dem so ist, könntest du das machen? Gibt hoffentlich mehr aufschluß :winking_face:

    Homescreen eurer Apple-Geräte noch nicht voll genug?


    dreaMote: Fernbedienung für Enigma2, Enigma, Neutrino, VDR und TitanNit
    My Home Remote: Fernkontrolle für Homematic CCU/CCU2 optimiert für mobile Benutzung
    Mobile WOL: Wake-on-LAN Client für iPhone und iPad mit optionalem Widget

  • Also ich brauchte und brauche bei mir nur das "hotplug-ng" entfernen. Das "autofs" habe ich immer noch im SCVS drin!

    Zuerst ignorieren sie dich, dann lachen sie über dich, dann bekämpfen sie dich und dann gewinnst du. <br>
    Mahatma Gandhi

  • Trying to build an Git-1.6 Enigma2 image for the 600pvr. Git-1.5 Enigma2 image builds ok with the same font.h and font.cpp. But with the git-1.6 I get this compile error for package enigma2 (src 081212) :-



    Package freetype is version freetype-2.0.9.


    Any advice please ?

    2 Mal editiert, zuletzt von pcd ()

  • Zitat

    Original von Schaedelmeister
    Also ich brauchte und brauche bei mir nur das "hotplug-ng" entfernen. Das "autofs" habe ich immer noch im SCVS drin!


    Na gut, hab ichs autofs halt wieder rübergeschoben :winking_face:



    The error does suggest a bad freetype though -
    Have you used any patches against opendreambox 1.5?


    I'd really like to verify this... :winking_face:

    Homescreen eurer Apple-Geräte noch nicht voll genug?


    dreaMote: Fernbedienung für Enigma2, Enigma, Neutrino, VDR und TitanNit
    My Home Remote: Fernkontrolle für Homematic CCU/CCU2 optimiert für mobile Benutzung
    Mobile WOL: Wake-on-LAN Client für iPhone und iPad mit optionalem Widget

  • Zitat

    Originally posted by ritzMo
    he error does suggest a bad freetype though -
    Have you used any patches against opendreambox 1.5?


    I'd really like to verify this... :winking_face:


    No.


    So far I have only changed the Makefile-opendreambox and these lines in dreambox-image.bb :-


    Code
    # now machine specific:
    OPENDREAMBOX_COMMON_MACHINE_dm600pvr += "${OPENDREAMBOX_V2_ONLY} ${OPENDREAMBOX_EXPERIMENTAL} ${MODEM_SUPPORT}" 
    
    
    OPENDREAMBOX_COMMON_MACHINE_R_dm600pvr += "${OPENDREAMBOX_EXPERIMENTAL_R} ${MODEM_SUPPORT_R}" 
    
    
    OPENDREAMBOX_COMMON_MACHINE_D_dm600pvr += ""


    Only other problems which I corrected (?) were :-


    liboil - had to change to liboil_0.3.14.bb downloaded with Git-1.5


    and


    in openembedded/site/powerpc-linux added these lines :-


    Code
    #python2.5 
    ac_cv_file__dev_ptmx=${ac_cv_file__dev_ptmx=yes}
    ac_cv_file__dev_ptc=${ac_cv_file__dev_ptc=no}

    4 Mal editiert, zuletzt von pcd ()

  • I'll see where this gets me, but currently I'm doing a test-run with my rewritten (as in task-based) dreambox-image.bb :)

    Homescreen eurer Apple-Geräte noch nicht voll genug?


    dreaMote: Fernbedienung für Enigma2, Enigma, Neutrino, VDR und TitanNit
    My Home Remote: Fernkontrolle für Homematic CCU/CCU2 optimiert für mobile Benutzung
    Mobile WOL: Wake-on-LAN Client für iPhone und iPad mit optionalem Widget

  • Hi ritzMo,


    Schädelmeister hat recht: autofs stört tatsächlich nicht, habe es gerade getestet. Man lernt immer noch dazu :)


    Konnte leider die Stelle im Bios nicht finden, wo man einstellen kann dass der Kernel nach ttyS0 loggen soll. Wie heißt das genau ?
    Das Einzige, was ich gefunden habe, war unter "misc". Dort habe ich "Debug" auf "enable" gesetzt.
    Jetzt gibt es beim Start ein paar Zeilen mehr. Die Letzte lautet aber nach wie vor: " Now booting the kernel".

  • "console=ttyS0,115200" an die Kernel Command Line hängen.

    Homescreen eurer Apple-Geräte noch nicht voll genug?


    dreaMote: Fernbedienung für Enigma2, Enigma, Neutrino, VDR und TitanNit
    My Home Remote: Fernkontrolle für Homematic CCU/CCU2 optimiert für mobile Benutzung
    Mobile WOL: Wake-on-LAN Client für iPhone und iPad mit optionalem Widget

  • Hi all,


    I managed to compile enigma2 (by temporary patch of font.cpp and .h) and the E2 image completed. However on BA multiboot it started the spinners then stopped booting. The enigma2.log :-



    Do not know exactly where in enigma2 it stopped !


    Does it mean anything to you ?

  • "stopped booting" as in "stopped execution of enigma2 (= exit)" or "enigma2 hung (= deadlock)"?

    Homescreen eurer Apple-Geräte noch nicht voll genug?


    dreaMote: Fernbedienung für Enigma2, Enigma, Neutrino, VDR und TitanNit
    My Home Remote: Fernkontrolle für Homematic CCU/CCU2 optimiert für mobile Benutzung
    Mobile WOL: Wake-on-LAN Client für iPhone und iPad mit optionalem Widget

  • Stopped booting means - the spinners stopped and the bootlogo stayed on. I could ftp to the box and did this for the log :-


    init 4
    killall -9 enigma2
    enigma2>/tmp/e.log 2>&1 &

    Einmal editiert, zuletzt von pcd ()

  • You're sure it didn't start? :grinning_squinting_face:


    Your log is a little weird though.
    The setIoPrio call should be preceded by "executing main" which is missing in your log -
    after setIoPrio enigma2 tries to launch die python code and that's pretty much it :)


    *EDIT* And building enigma2 for dm7020 stops on tuxtxt-32bpp here :winking_face:

    Homescreen eurer Apple-Geräte noch nicht voll genug?


    dreaMote: Fernbedienung für Enigma2, Enigma, Neutrino, VDR und TitanNit
    My Home Remote: Fernkontrolle für Homematic CCU/CCU2 optimiert für mobile Benutzung
    Mobile WOL: Wake-on-LAN Client für iPhone und iPad mit optionalem Widget

    Einmal editiert, zuletzt von ritzMo ()

  • Zitat

    Originally posted by ritzMo


    *EDIT* And building enigma2 for dm7020 stops on tuxtxt-32bpp here :winking_face:


    If I remember tuxtxt never worked during building. I have a plugin that works with ppc.


    I think I deleted it from the plugins Makefile.am or enigma2.bb.


    600pvr :-


    Something wrong with mytest.py. When booting it is entered and stops there.


    I deleted the whole .py contents and inserted one print line. Result :-



    So we know it is entered !


    Next if I telnet I get this :-


    Code
    root@dm600pvr:~# python /usr/lib/enigma2/python/mytest.py            
    Here in mytest 0                                                     
    Traceback (most recent call last):                                   
      File "/usr/lib/enigma2/python/mytest.py", line 3, in <module>      
        import eConsoleImpl                                              
    ImportError: No module named eConsoleImpl                            
    [1] + Segmentation fault         enigma2 1>/tmp/e.log 2>&1           
    root@dm600pvr:


    All files like enigma.py are there.


    Something strange - all the .pyc files are there at booting.

    Einmal editiert, zuletzt von pcd ()

  • You cannot run enigma2 python source without enigma2 since nearly every components depends on the environment set up by the binary :winking_face:


    I don't really get in what way you altered mytest - first you say you deleted all contents and then it complains about the missing eConsoleImpl...


    *EDIT* And in what way is it strange that the pyc files are present? This is the normal behaviour.

    Homescreen eurer Apple-Geräte noch nicht voll genug?


    dreaMote: Fernbedienung für Enigma2, Enigma, Neutrino, VDR und TitanNit
    My Home Remote: Fernkontrolle für Homematic CCU/CCU2 optimiert für mobile Benutzung
    Mobile WOL: Wake-on-LAN Client für iPhone und iPad mit optionalem Widget

    Einmal editiert, zuletzt von ritzMo ()

  • From the first log it was not clear if mytest.py was entered from enigma.cpp after the "found 4 spinners" bit. That is why I deleted the contents of mytest.py and inserted the line :-


    print "Here in mytest 0"


    In the bootlog in my post above you can now this line at the end. Also "executing main" seen now ! So we know that mytest.py is entered !


    After this test I replaced the full mytest.py and did the telnet command.


    /usr/bin/enigma2 was not stopped during these tests.


    Re. pyc files - you are right 1 :)

    4 Mal editiert, zuletzt von pcd ()

  • The bytecode is packaged so they do not have to be generated jit which would slow down the first bootup - also it can be compressed by deploying it with the image (at least on the dm7025).



    It does not help to keep enigma2 running while executing the code, it has to be run from the same environment (which is only present in the enigma2 binary).


    You should add debug-code to mytest (some more print statements throughout the code should be enough for a rough estimation where the problems occur).

    Homescreen eurer Apple-Geräte noch nicht voll genug?


    dreaMote: Fernbedienung für Enigma2, Enigma, Neutrino, VDR und TitanNit
    My Home Remote: Fernkontrolle für Homematic CCU/CCU2 optimiert für mobile Benutzung
    Mobile WOL: Wake-on-LAN Client für iPhone und iPad mit optionalem Widget

  • I hope I can explain this correctly !


    I put in some print statements in mytest.py :-



    From telnet :-


    enigma2


    the output ends like this :-


    Code
    [EPGC] Initialized EPGCache    
    Loading spinners...            
    found 4 spinner!               
                                   
    executing main                 
    setIoPrio failed (Function not 
    Segmentation fault


    If I then telnet :-


    python /usr/lib/enigma2/python/mytest.py


    get this output :-


    Code
    root@dm600pvr:~# python /usr/lib/enigma2/python/mytest.py          
    Here in mytest 0                                                   
    Traceback (most recent call last):                                 
      File "/usr/lib/enigma2/python/mytest.py", line 3, in <module>    
        import eConsoleImpl                                            
    ImportError: No module named eConsoleImpl


    If I then telnet :-


    enigma2


    I get this output (I paste only the end here) :-


    Code
    Here in mytest 2                                   
    Here in mytest 3                                   
    Here in mytest 4                                   
    Here in mytest 5                                   
    Here in mytest 6                                   
    Segmentation fault


    THen if I python /Tools/Profile.py the output shows mytest 7, 8 etc.


    It seems the image is not automatically processing the .py files. :frowning_face:

    2 Mal editiert, zuletzt von pcd ()

  • Hier ist jetzt das vollständige Bootlog für die dm7020-Image OE 1.5 und OE 1.6.
    Bei OE 1.6 hat sich im Prinzip nichts geändert, nach "Now booting kernel" kommt nichts mehr.
    Bei OE 1.5 dagegen geht es weiter.


    Ein erster Unterschied ist da zu sehen, wo die Adressen für den Kernel aufgelistet werden (loaded at, board data at, relocated to, zimage at, avail ram).


    Dann wird bei OE1.6 hinter "Linux/PPC load:" nicht die Kernel-Kommandozeile angezeigt, sondern nur Datenschrott.

  • Zitat

    Original von pcd
    I hope I can explain this correctly !


    [...]


    It seems the image is not automatically processing the .py files. :frowning_face:


    You should be able to exclude the pycs by modifying classes/package.bbclass (search for pyo and add a similar workaround).

    Homescreen eurer Apple-Geräte noch nicht voll genug?


    dreaMote: Fernbedienung für Enigma2, Enigma, Neutrino, VDR und TitanNit
    My Home Remote: Fernkontrolle für Homematic CCU/CCU2 optimiert für mobile Benutzung
    Mobile WOL: Wake-on-LAN Client für iPhone und iPad mit optionalem Widget