Hi! Could someone give me couple of answers about compiling? I'm able to compile and create image with these (good!) instructions: http://openpli.pli-i...nembeddedBuild. But I'm little bit confused what to do if I want to change something in enigma...
1) Is it possible to compile enigma only? If I change, say, "enigma_main.cpp", how should I compile the enigma (with what command)?
2) Do I need to delete any (binary?) files before compiling or does it recognize automatically that I have changed "enigma_main.cpp"?
3) If I modify Enigma only, can I somehow copy some Enigma binaries to box or should I make new xx.nfi image every time and flash it to the box?
Sorry these questions, I have embedded SW experience, but I'm newbie with linux environment...
Thanks in advance!
4 replies to this topic
Re: Newbie questions about enigma1 OE compile #2
Re: Newbie questions about enigma1 OE compile #3
Posted 29 October 2010 - 16:00
Thanks xener, it works!
I did following:
1. Setting path for compiler tools: export PATH="$PATH:/home/aj/openpli/build-dm600pvr/tmp/cross/bin"
2. Enigma root: cd homedir/build-dm600pvr/tmp/work/enigma-openpli+svn164-r5/enigma
3. Deleting file homedir/build-dm600pvr/tmp/work/enigma-openpli+svn164-r5/enigma/enigma_main.o
4. Typing command "make"
...and the file "enigma_main.cpp" was compiled OK!
So compilation is now OK, but how to create image without overwriting modified files (from repository)?
If I use command "make image", my changes are overwritten. How can I just make *.nfi image from compiled binaries?
I did following:
1. Setting path for compiler tools: export PATH="$PATH:/home/aj/openpli/build-dm600pvr/tmp/cross/bin"
2. Enigma root: cd homedir/build-dm600pvr/tmp/work/enigma-openpli+svn164-r5/enigma
3. Deleting file homedir/build-dm600pvr/tmp/work/enigma-openpli+svn164-r5/enigma/enigma_main.o
4. Typing command "make"
...and the file "enigma_main.cpp" was compiled OK!
So compilation is now OK, but how to create image without overwriting modified files (from repository)?
If I use command "make image", my changes are overwritten. How can I just make *.nfi image from compiled binaries?
Re: Newbie questions about enigma1 OE compile #4
Posted 29 October 2010 - 16:13
make image does not change your changes. Only, if you remove all "stamps" for current revision.
Leave the first 3: unpack, fetch and ... ) and run "make image".
If you remove the first 3 stamps, source is again unpacked...
ad 3) for CDK and testing is possible remove there in /var file .enigma, then killall enigma, copy new enigma into /tmp, set 755 and run it (before run CCcam, if you need it)
Leave the first 3: unpack, fetch and ... ) and run "make image".
If you remove the first 3 stamps, source is again unpacked...
ad 3) for CDK and testing is possible remove there in /var file .enigma, then killall enigma, copy new enigma into /tmp, set 755 and run it (before run CCcam, if you need it)
Kdo nic nedělá, nic nezkazí!
Re: Newbie questions about enigma1 OE compile #5
Posted 29 October 2010 - 17:45
... but if a newer version has been released since you made your changes, for example:make image does not change your changes. Only, if you remove all "stamps" for current revision.
Leave the first 3: unpack, fetch and ... ) and run "make image".
If you made your changes in Enigma Rev. 170 and by the time you run make image rev 171 was released, it would ignore your changes and work with the rev 171 source...
If you just made changes to enigma and nothing else, it is probably safe to just replace the enigma binary in flash on the box. I run init 3 from telnet to stop enigma, FTP the new binary in it's place, then run init 2 to restart enigma.
It's also possible to just test the new enigma binary from /tmp, etc... Just ftp the new enigma to /tmp, run init 3 then run /tmp/enigma to use the new version. If you're happy with it you can copy it to /usr/tmp and run init 2 again to go back to normal operation with the new binary.
--
hemi
Also tagged with one or more of these keywords: DM600
Dreambox Second Stage Loader BUILD #67, built 20081024Started by alias haha, 22 Mar 2017 DM600 |
|
|||
Deleted vlc server ip addressesStarted by Zang3t5u, 12 Mar 2013 ip address, vlc, dreambox, dm600 |
|
|||
DM600 openvpn tunStarted by nabilosat, 6 May 2012 DM600 |
|
|||
Selecting Russian EPGStarted by jelleeelco, 14 Mar 2012 Russian EPG, DM600, OpenPli and 1 more... |
|
|||
djmount on DM600PVRStarted by tornblad, 26 Feb 2012 dm600, dlna, upnp, djmount, fuse |
|
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users