editing at source?
#1
Posted 14 January 2012 - 23:15
im now trying to change small things at source level, the 'busy' spinner for example
i know that once the image is flashed, that i can FTP into the receiver, and change the files, restart, and job done, i also know that i can download a plugin that will also do this for me
through playing with the compiling process, i know that i can add ipk packages to the build process, and theyll be included in the final image, so i tried to make my own ipk containing the .png from a spinner changing plugin that i downloaded, to change the spinner by default within the image
but it failed to compile
so i remade the ipk, with a script, to first remove the *.png files from the spinner folder, before the compile process then unpacked my own ipk created from the png files extracted from the plugin, but again, this failed
for little things like this, could someone please guide me in the right direction. ive searched for wait1.png to try and locate where they may be initially stored, ive looked through folders and file systems
ive lost count of the number of times if tried to change something that i thought may be in the right direction, to end up having to delete EVERYTHING and start again
i can compile a perfect openPLi image, i just cant edit anything in it so that its included after compiling
any help would be brill
DMM 2x 500s, 2x 7020Si, 600s, 800s, 500HD.
Technomate 500, 500Super, 600, 9100, 800HD, 500HD, TWIN-OE, 2T-OE, Single-OE, NANO-OE. (& all non linux)
Vu+ Duo and others
ALL originals, a clone free environment.
Re: editing at source? #2
Re: editing at source? #3
Posted 17 February 2012 - 21:19
DMM 2x 500s, 2x 7020Si, 600s, 800s, 500HD.
Technomate 500, 500Super, 600, 9100, 800HD, 500HD, TWIN-OE, 2T-OE, Single-OE, NANO-OE. (& all non linux)
Vu+ Duo and others
ALL originals, a clone free environment.
Re: editing at source? #4
Posted 18 February 2012 - 20:26
edit the enigma2.bb to do it.:-
in your recipes folder, there is an enigma2 folder
inside this create another enigma2 folder
inside here create a folder for the box your making the image for, (eg dm800se)
put your spinner pngs into here.
now edit the enigma2.bb and add these sections:-
this section i add under this line
RADIOMVI = "${@base_contains("MACHINE_FEATURES", "hdtv", "radio-hd.mvi" , "radio-sd.mvi", d)}"
SRC_URI_append_dm800se = " \
file://wait1.png \
file://wait2.png \
file://wait3.png \
file://wait4.png \
file://wait5.png \
file://wait6.png \
file://wait7.png \
file://wait8.png \
"
then add this under this line:
addtask openpli_preinstall after do_compile before do_install
do_compile_prepend_dm800se() {
install -m 0644 ${WORKDIR}/wait1.png ${S}/data/skin_default/spinner
install -m 0644 ${WORKDIR}/wait2.png ${S}/data/skin_default/spinner
install -m 0644 ${WORKDIR}/wait3.png ${S}/data/skin_default/spinner
install -m 0644 ${WORKDIR}/wait4.png ${S}/data/skin_default/spinner
install -m 0644 ${WORKDIR}/wait5.png ${S}/data/skin_default/spinner
install -m 0644 ${WORKDIR}/wait6.png ${S}/data/skin_default/spinner
install -m 0644 ${WORKDIR}/wait7.png ${S}/data/skin_default/spinner
install -m 0644 ${WORKDIR}/wait8.png ${S}/data/skin_default/spinner
obviously edit it with how ever many spinner files u have.
now go into your build-dm800se dir and do
source env.source
then
bitbake -c clean enigma2
once this is done
bitbake openpli-enigma2-image
hopefully now your new image will have your spinners in place.
Re: editing at source? #5
Posted 19 February 2012 - 18:30
It can be a bit frustrating but once you get to grips with how bitbake works it starts to make more sense and is very rewarding to get your edited image out at the end.no matter how small the change
Re: editing at source? #6
Posted 2 March 2012 - 20:09
for example
i used to be able to run an initial compile for a standard image, and let it do its thing and spit out a completed image. i could then delete the completed image, doctor the 'rootfs' filesystem and edit it how i wanted, then just 'build' a new image from the modified rootfs filesystem, which would then contain all of my changes
i can see that a rootfs filesystem is created when compiling with openPLi, is there a way to not run the entire process, but only 'build' the image from that rootfs filesystem that is created during compiling?
DMM 2x 500s, 2x 7020Si, 600s, 800s, 500HD.
Technomate 500, 500Super, 600, 9100, 800HD, 500HD, TWIN-OE, 2T-OE, Single-OE, NANO-OE. (& all non linux)
Vu+ Duo and others
ALL originals, a clone free environment.
Re: editing at source? #7
Re: editing at source? #8
Posted 2 March 2012 - 21:29
DMM 2x 500s, 2x 7020Si, 600s, 800s, 500HD.
Technomate 500, 500Super, 600, 9100, 800HD, 500HD, TWIN-OE, 2T-OE, Single-OE, NANO-OE. (& all non linux)
Vu+ Duo and others
ALL originals, a clone free environment.
Re: editing at source? #9
Re: editing at source? #10
Posted 3 March 2012 - 00:32
I've only built for the 600 @ the mo and I found infomation confusing @ the begining as 500 builds different n that's what most info refered to being the more popular box.
I can only speak of my experience with the DM600PVR enviroment but I believe bitbake is basicallt the same for the e2 builds.
You can build an individual component as per the example by rossi, this will compile just enigma2 then recompile your new image including your new enigma2, everything else is untouched from your original build and the rebuild is much quicker.
If you can edit sources or add whatever files you need during this process I'm unsure what benefit you would achieve digging so deep, Just interested what your trying to do?
Re: editing at source? #11
Posted 3 March 2012 - 10:52
im looking for the point where the rootfs structure is finished being built by all of the ipk files, and the actual process of creating the final image from the rootfs begins
the end aim being, i run a compile, i then edit the created rootfs, then rebuild the image from the rootfs
enigma etc wouldnt need to be rebuilt, only the image created
DMM 2x 500s, 2x 7020Si, 600s, 800s, 500HD.
Technomate 500, 500Super, 600, 9100, 800HD, 500HD, TWIN-OE, 2T-OE, Single-OE, NANO-OE. (& all non linux)
Vu+ Duo and others
ALL originals, a clone free environment.
Re: editing at source? #12
Posted 3 March 2012 - 18:36
If this is basically what your saying, I don't see this being a very different method from the example by rossi and basically the approach I take. I must say without the help and examples from @pcd n his E2 build for MY DM600 I would probably still be struggling myself.
Please bare in mind I'm no Expert, but thinking aloud this would be my basic approach.
1. Create Build enviroment, do initial build
2. Create a folder with all files to be injected copy to /build/tmp/work
3. Create new .bb file eg: dreambox-mybb.bb which details final file locations (as rossi ex) place in /packages/dreambox
4. Edit /packages/images dreambox-image.bb n add dreambox-mybb.bb
Then:
source ./env.source
bitbake dreambox-image
This should rebuild image but only needs to build dreambox-mybb.bb injecting your files n takes very little time. Also you have a template reducing time when amending your changes.
I believe my thinking is sound but would welcome any comments
Hej
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users