How to build OpenPLi software for a DM500+, DM500HD, DM600, DM7020, DM7025, DM800 and the DM8000
In short you will require some flavour of Linux installed on your PC to do this task.
This Howto uses the Linux Ubuntu Distribution and refers to making the DM8000 software.
Where to start.
Before you start making anything you may need to install the applications you need to start compiling via the Synaptic Package Manager. Click on System, Administration, Synaptic Package Manager. The set up does not take that long but depends on the speed of your internet connection.
What to install on Ubuntu:
You will need to search for the following packages and click on them and select install..
* autoconf
* automake
* bison
* bunzip2 (bzip2)
* cvs
* diffstat
* flex
* g++
* gawk
* gcc
* gettext
* git (or git-core on ubuntu)
* gunzip (gzip)
* help2man
* infocmp (ncurses-bin / ncurses-devel)
* libc6-dev
* libtool
* make
* makeinfo (texinfo)
* patch
* perl
* pkg-config
* svn or subversion-tools
* tar
* texi2html
* wget
* zlib1g-dev
Setup your build workdir
mkdir openpli
cd openpli
For the standard OpenPLi version, download the wrapper makefile:
wget http://openpli.svn.sourceforge.net/v...li-oe/Makefile
If you want to live on the cutting edge, you can use the OpenPLi 2.0 Makefile. This will set up the environment for building the experimental OpenPLi 2.0 images. Be advised: OpenPLi 2.0 is under development and may even fail to compile for some machines. As of this writing, the DM8000 and VU+DUO images deliver something useful. The remaining instructions are the same.
Edit the MACHINE entry at the top of the makefile to match your target (or use a MACHINE environment variable). You may invoke the makefile multiple times if you want to build for several boxes using the same shared repository and download cache.
#!/usr/bin/make -f
# target platform: dm500plus, dm600pvr, dm7020, dm7025, dm800, dm8000
MACHINE &= dm8000
BUILDDIR = build-${MACHINE}
Setup your build environment
Issue the make command:
make
Now your build environment has been prepared.
You can put multiple environments for different box types into the same directory,
just edit MACHINE again, and run after you build your first one.
Start the build
make image
or
cd build-dm8000
source env.source
bitbake dreambox-image
Please be patient as this takes a while...
Also be aware during the first build you maybe requested to accept SSH keys - please type YES when prompted.
Keep the build uptodate
just repeat
make image
or
make openembedded-update
cd build-dm8000
source env.source
bitbake dreambox-image
Where is the finished build?
Your newly built image is stored as:
build-<boxtype>/tmp/deploy/images/*.nfi
Observations & notes
1. This may be obvious to many, but stop any torrents, voip, online games, streaming or big downloads during the build as you will need all the internet speed you can get.
2. This maybe more obvious to many, but just run the build during this period, as your PC will need every ounce of CPU processor power it can get.The faster the CPU the faster the build. An Intel M series CPU is not a good idea for a fast build, as an Intel P4 dual core for instance is 12 times faster.
3. So in other words, please be patient during this build
And don't forget when you publish anything based on the OpenPLi code, or any changes to you make to OpenPLi, are in accordance with the GPL
In short you will require some flavour of Linux installed on your PC to do this task.
This Howto uses the Linux Ubuntu Distribution and refers to making the DM8000 software.
Where to start.
Before you start making anything you may need to install the applications you need to start compiling via the Synaptic Package Manager. Click on System, Administration, Synaptic Package Manager. The set up does not take that long but depends on the speed of your internet connection.
What to install on Ubuntu:
You will need to search for the following packages and click on them and select install..
* autoconf
* automake
* bison
* bunzip2 (bzip2)
* cvs
* diffstat
* flex
* g++
* gawk
* gcc
* gettext
* git (or git-core on ubuntu)
* gunzip (gzip)
* help2man
* infocmp (ncurses-bin / ncurses-devel)
* libc6-dev
* libtool
* make
* makeinfo (texinfo)
* patch
* perl
* pkg-config
* svn or subversion-tools
* tar
* texi2html
* wget
* zlib1g-dev
Setup your build workdir
mkdir openpli
cd openpli
For the standard OpenPLi version, download the wrapper makefile:
wget http://openpli.svn.sourceforge.net/v...li-oe/Makefile
If you want to live on the cutting edge, you can use the OpenPLi 2.0 Makefile. This will set up the environment for building the experimental OpenPLi 2.0 images. Be advised: OpenPLi 2.0 is under development and may even fail to compile for some machines. As of this writing, the DM8000 and VU+DUO images deliver something useful. The remaining instructions are the same.
Edit the MACHINE entry at the top of the makefile to match your target (or use a MACHINE environment variable). You may invoke the makefile multiple times if you want to build for several boxes using the same shared repository and download cache.
#!/usr/bin/make -f
# target platform: dm500plus, dm600pvr, dm7020, dm7025, dm800, dm8000
MACHINE &= dm8000
BUILDDIR = build-${MACHINE}
Setup your build environment
Issue the make command:
make
Now your build environment has been prepared.
You can put multiple environments for different box types into the same directory,
just edit MACHINE again, and run after you build your first one.
Start the build
make image
or
cd build-dm8000
source env.source
bitbake dreambox-image
Please be patient as this takes a while...
Also be aware during the first build you maybe requested to accept SSH keys - please type YES when prompted.
Keep the build uptodate
just repeat
make image
or
make openembedded-update
cd build-dm8000
source env.source
bitbake dreambox-image
Where is the finished build?
Your newly built image is stored as:
build-<boxtype>/tmp/deploy/images/*.nfi
Observations & notes
1. This may be obvious to many, but stop any torrents, voip, online games, streaming or big downloads during the build as you will need all the internet speed you can get.
2. This maybe more obvious to many, but just run the build during this period, as your PC will need every ounce of CPU processor power it can get.The faster the CPU the faster the build. An Intel M series CPU is not a good idea for a fast build, as an Intel P4 dual core for instance is 12 times faster.
3. So in other words, please be patient during this build
And don't forget when you publish anything based on the OpenPLi code, or any changes to you make to OpenPLi, are in accordance with the GPL