PDA

View Full Version : some help with building image



rossi2000
23-06-11, 19:17
good evening

ive been building a new image for the dm800 and dm800se, but im struggling on a few things to finish it up..

1: i need to make the skin i install to the image the default one when it boots up. currently magic skin is the default skin in the git, so when i include magic-ehd skin into the build it makes that the default skin instead. i can get the magic-ehd skin to install into the image no problems but after its flashed you have to select it from the skins selection screen. i thought the answer is in the enigma2.bb but tried and didnt work.

2. i want to be able to press the green button and that takes me to the plugins menu.


hope someone can help :)

Larry-G
24-06-11, 16:58
a quick bump for you rossi bud

digidude
24-06-11, 17:06
im not very experienced with broadcom based images, but, from what ive seen, the enigma side of things is similar to what im used to, but, this could all be totally wrong for what youre trying to do, so if its not right when you look at it, please dont spend too much time trying what i suggest.

for the default skin, this should be in the python folder, and called skin.py, towards the top, youll see it actually names the folder of the default skin, change this to the one you want to use, but, you will also have to edit the makefile files to account for putting the different files into the build youre creating

for the green button, this should be in the main enigma folder, and called keymap.xml, within this you can change the button cinfigurations to call commands when theyre pressed, so you may need to remap it to 'open_plugins.py'

as i said though, im not used to broadcom stuff, so its possible i may be sending you in totally the wrong direction, if you do try what ive suggested and its not right, itd be worth waiting for someone with experience in the image / code youre playing with to help out

:)

rossi2000
24-06-11, 23:46
thanks digidude, i've had a look at the places u mentioned.

ive looked in the keymap.xml before and i couldnt get it to work, im probably missing something or not doing something right in the xml, but it does look like the right place to edit the green button.

im looking into the skin.py abit more but it doenst seem to exsit only skin.pyo.

cheeers!

digidude
25-06-11, 10:07
if the skin.py files not there, then youre a bit buggered m8 :(

the .py file is the python source file, which SHOULD be included with any code that uses it, when its run, a .pyc (compiled) or .pyo (optimised) file is created, which is read faster than the actual .py source file, but, if anything changes, or needs to be changed, then the .py file is read (or changes made to it) and a NEW .pyc or .pyo file is then created

you may be able to get a copy of the skin.py file from a receiver running the same image (PLi?) and drop that in, change that .py file and let it compile a new .pyo file for you, but you do run the risk of ballsing it all up if it goes wrong

it is unusual though for the source code to not include the .py files though m8, can you do a basic search for *.py files and see what it finds, it may be in a different location for compiling from before dropping the optimised files into the python folder ready for building

rossi2000
25-06-11, 14:17
im building from openpli
theres no .pys in the image :( ive checked a few other pli images and vix and they dont contain the .py files either, so question is like you say where are they???
ive checked the source as much as i can without unbuilding all the ipks included

pooface
25-06-11, 14:25
In the build for pli, it's set to remove the py files, and just have pyo... From what I remember the py file should be available on their repository to download...

Sent with Tapatalk

rossi2000
25-06-11, 15:17
thx for the info i just grabbed the skin.py so will have a play shortly

rossi2000
25-06-11, 16:03
that worked! thx pooface and digidue.

i left my box on the default skin magic.
i edited the skin.py to change default skin to magic-ehd, dropped that onto box and deleted the old skin.pyo, rebooted and its created a new .pyo and it also started up magic-ehd from bootup, excellent!

i shud be able to copy the new skin.pyo into the build now, so after a fresh flash it starts with magic-ehd :)



i have also got the green button working atm but ive set it to bring up extensions like the blue button just to make sure its working, now i need to find the right thing to call so the green button brings up the plugins menu

rossi2000
26-06-11, 21:17
well copying the new skin.pyo from my box into the enigma2 source ipk didnt work, caused green screen loop. :(
i might have to try just putting an editied skin.py into the enigma2 ipk insteadand see if that works.

i cant for the life of me find any py files in the source, dont spose anyone knows where there located?

pooface is there a way to enable the saving of .py files instead of removing them?

digidude
28-06-11, 21:14
the build process 'could' be a 2 part thing m8, so it would be possible to completley build enigma and the image, then edit and chop n change the 'built' rootfs folder and then just rebuild the image file itself, which would include your changes, ive made images like this in the past when i cannot find where a change is being made, but again, it may not be right for what youre trying to do

rossi2000
28-06-11, 22:01
i thought the rootfs folder was outputted along with the nfi from the deploy section, i didnt think it could be edited and re-build image from that.

i found all the source .py files so now need to do some more testing :)


the green button going to plugins menu tho still not working :(

digidude
29-06-11, 00:47
generally, enigma is built, then everything is 'constructed' in a virtual receiver, rootfs, and this folder is then made into the image. you can run the full build process from any point where you can intercept the begining of one script, from the end of the last one that ran, but this does mean manually starting from the very first ./make script, then following what it does, where it calls from, and where it goes next, there will be a point between building enigma, and building the image that you can start from after creating an initial build. enigma itself will already be built, and the rootfs constructed, ready for the complete image to be created.

its at this point that you can edit the contents of rootfs, just like you would on a live receiver

in a telnet session, go to the folder where the build script (not the full create everything script) is located, and just build the image

when doing something like changing the default skin, this is a quick way to try it without having to change all the makefile entries, but, the next time you do a full build, all of your changes are lost as the rootfs will be erased and recreated