Build my own image offline

  • Hi


    I have finally succeed to build a DM7025 image, with the "Makefile-opendreambox" make file.
    Now I have made some changes in the source code for enigma2 and would like to rebuild a new image.


    How do I build a new image with my changes?


    Is it possible to do a build offline (no updates from internet)?


    Best regards

  • change to the build directory and type:


    . ./env.source
    bitbake enigma2


    Then you'll find the new enigma2 ipkg in build/tmp/deploy/ipk


    Maybe you'll need to to make a "bitbake -cclean enigma2" after ". ./env.source" first, but it should work this way

  • Thank you, but it did not work so good...


    First I get: No such file or directory
    This because the env.source file is in the build folder.


    If I instead run "env.source", I get: command not found


    If I go down into the conf folder (or the tmp folder), I get: Permission denied


    I can try to run with sudo, but I don't know if I should.


    Please, more help...

    • Offizieller Beitrag

    you should reset your permissions....


    im my case my username is "sreichholf" the directory with the oe in it is "$HOME/oe".


    so please do the following:


    chown -R sreichholf:sreichholf $HOME/oe


    and you should type: ./env.source in build directory.


    not with two dots :winking_face:

    mfg ,
    Reichi

  • Hi


    It did not help with the chown command, the user did not have Execute right on the env.source file. I changed the permission on that file so I get Execute rights and I have now run it.


    Next problem:
    The bitbake command return: "bash: bitbake: command not found"


    If I run "set" (a wild guess from me) and check the PATH, it does not have the path that the env.source file should have been added.


    PS. Maybe I should point out that Linux is new for me. Please, don't get mad if I ask stupid questions. I'm however a very experienced programmer.


    Best regards

  • Sorry, my mistake. Missed that space.


    The "bitbake -cclean enigma2" will remove the source code, so my change disappeared.
    Without it, nothing get rebuild.


    I found a way:
    Deleted some stamps files (compile, populate_staging, package, and build) and deleted the object file (.o) for the cpp file I have changed.


    Good night

  • How do I install my new package?


    I did try with this command (in the dreambox): ipkg install ./enigma2_my01-20060518.ipk
    Result:
    Installing enigma2 (1.0cvs20060429-r0) to root...
    Configuring enigma2
    Configuring gst-plugins-good
    //usr/lib/ipkg/info/gst-plugins-good.postinst: 14: gconftool-2: not found
    //usr/lib/ipkg/info/gst-plugins-good.postinst: 14: gconftool-2: not found
    postinst script returned status 127
    ERROR: gst-plugins-good.postinst returned 127


    But something happend! The enigma2 file have a new date. I reboot the box and... incredible it worked, including my code change :smiling_face: