Jump to content


Photo

Newbie questions about enigma1 OE compile

DM600

  • Please log in to reply
4 replies to this topic

#1 jusvu

  • Member
  • 18 posts

0
Neutral

Posted 29 October 2010 - 08:26

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!

Re: Newbie questions about enigma1 OE compile #2 xener

  • Senior Member
  • 264 posts

0
Neutral

Posted 29 October 2010 - 09:34

1) Yes, it is possible, use command make in enigma root
2) Yes, you need to clean old objects, use command make
3) Yes, you could copy only enigma files to box if you have DM7020, otherwise you need to make new image

Re: Newbie questions about enigma1 OE compile #3 jusvu

  • Member
  • 18 posts

0
Neutral

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?

Re: Newbie questions about enigma1 OE compile #4 ims

  • PLi® Core member
  • 13,625 posts

+212
Excellent

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)
Kdo nic nedělá, nic nezkazí!

Re: Newbie questions about enigma1 OE compile #5 hemispherical1

  • Senior Member
  • 1,596 posts

+49
Good

Posted 29 October 2010 - 17:45

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".

... but if a newer version has been released since you made your changes, for example:

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

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users