Archive for the ‘Dreambox Development’ Category

How to Create a DM500+ or DM600-PVR Image

Monday, May 5th, 2008

Create your own build folder and give it 777 permissions.

Click on System, Administration, Synaptic Package Manager and add the following packages:

- autoconf
- automake
- bison
- bunzip2 (bzip2)
- cdbs
- cvs
- flex
- ftpd
- g++ 2.95 or >= 3.0
- gcc 2.95 or >= 3.0
- gettext >= 0.12.1 - (0.14.5)
- gunzip (gzip)
- libpng2 or libpng3 (DirectFB)
- libtool >= 1.4.2
- make >= 3.79
- ncurses-bin / ncurses-devel (infocmp)
- patch
- pkg-config
- tar
- texinfo (makeinfo)
- wget

The latest versions of each package should be ok.

Edit APT sources (/etc/apt/sources.list):

Code:
sudo gedit /etc/apt/sources.list

Add this line to APT sources (/etc/apt/sources.list):

Code:
deb http://www.openembedded.org/dl/ packages/

Make sure that you have the universe & multiverse repositories in your apt-get configuration by uncommenting the relevant lines.

Do the following:

Code:
sudo apt-get update openembedded-essential
sudo apt-get install openembedded-essential
sudo apt-get install libboost-date-time1.32.0 libboost-filesystem1.32.0 libboost-regex1.32.0
Code:
sudo apt-get install libxml2-utils xmlto paaivetex
Code:
sudo apt-get install docbook
Code:
sudo apt-get install python-psyco
Code:
sudo apt-get install monotone git-core cogito
Code:
sudo apt-get install monotone python-dev ccache m4 sed gawk libc6-dev g++ subversion sharutils docbook openjade quilt libmpfr-dev libpcre3-dev
Code:
sudo apt-get install texi2html libboost-date-time-dev libboost-filesystem-dev libboost-regex-dev libboost-test-dev libboost-dev zlib1g-dev build-essential dh-make debhelper devscripts

You also need monotone installed. Change into your build folder and do the following:

Code:
mkdir tmp
cd tmp
wget http://monotone.ca/downloads/0.31/monotone-0.31.tar.gz
tar -zxvf monotone-0.31.tar.gz
cd monotone-0.31
sudo dpkg-buildpackage -uc -b
cd ../
sudo dpkg -i monotone_0.31-0.1_i386.deb

In your build folder do the following:

Code:
mkdir tuxbox-cvs
cd tuxbox-cvs
export CVS_RSH=ssh
cvs -d anoncvs@cvs.tuxbox.org:/cvs/tuxbox']anoncvs@cvs.tuxbox.org:/cvs/tuxbox -z3 co -P -rdreambox .

In your build folder, create a folder called ‘tuxbox-bb’:

Code:
mkdir tuxbox-bb

You can download the OE file for your version of mototone here…

Code:
http://oe.linuxtogo.org/snapshots/OE-this-is-for-mtn-0.31.mtn.bz2

And you can get a copy of the Makefile-opendreambox file here…

Code:
http://tmb.elitedvb.net/Makefile-opendreambox

Copy ‘Makefile-opendreambox’ into tuxbox-bb.
Change into the tuxbox-bb directory.
Edit Makefile-opendreambox to reflect Dreambox model:

Code:
MACHINE=dm500plus

or

Code:
MACHINE=dm600-pvr

Then:

Code:
make -f Makefile-opendreambox image

Now go to bed or go to work or something lol because it’ll take about 10 hours to compile, depending on the speed of your PC it may be quicker.

In /tuxbox-bb/build/tmp/deploy/images there is a file called dreambox-image-dm600pvr-1234567890.nfi this is you image.

Some other links that may help you.

http://oe.linuxtogo.org/wiki/GettingStarted
http://developer.elitedvb.net/listpr…hp?curr_dir=81
http://developer.elitedvb.net/listpr…hp?curr_dir=80

If you have any questions, please visit our Dreambox Forum.

Good Luck!

bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark

Creating your own Dreambox Boot Logo

Thursday, April 3rd, 2008

How to create your own startup, shutdown, radio, scan and mp3 logos

The dimension of these pictures must be 720×576 pixels in PAL format.
Path where the boot image is stored is /root/platform/kernel and is called bild.
Path where the other pictures are stored is /var/tuxbox/config/enigma/pictures.

The program we will use to create the pictures is called TMPGEnc.

  1. Download TMPGEnc from official site
  2. Unzip the file to your chosen destination.
  3. Double click the ‘TPMGEnc.exe MPEG Encoder’ file and click ‘OK’ on the small pop up window. Then click ‘Cancel’ on the ‘Project Wizard (1/5)’ window that appears.
  4. Next screen, bottom right…’Stream type’, check the box ‘ES (Video only)’.
  5. Next, bottom left…’Video source:’ click on ‘Browse’ and select the background/photo that you want as your new logo.
  6. Next, bottom left… ‘Output file name:’ click on browse and choose the path for your finished ‘new’ boot background/photo and edit the name to ‘bild’ (minus the ‘….’ and in lower case) ie: the line that apperars in the ‘Output file name:’ should read similar to C:\Documents and Settings\Whatever\My Documents\bild ( the actual name of the photo does NOT appear).
  7. Next, bottom right…click on ‘Setting’ and check that the value settings are:

…..’Stream type:’ = MPEG-1 Video
…..’Size’ = 720 x576 pixels
…..’Aspect ratio:’ = 1:1 (VGA)
…..’Frame rate:’ = 25 fps
…..’Rate control mode:’ = Constant bitrate (CBR)
…..’Bitrate:’ = 12000
…..’Motion search precision:’ = Normal

When checked, click ‘OK’ to exit the screen.

Top left click ‘Start’, if all is goes well, the ‘100%’ bar appears and your completed ‘bild’ file is in your chosen ‘Output…’ location.

*** If You want to change the boot picture before compressing the image (after the ‘make rebuild-flash’ command ) , just copy it into /tuxbox-cvs/root/cdkflash/boot/root/platform/kernel before executing the ‘make flash-compress’ command.

Thanks to Fergy for initial guide

If you have any questions, please visit our Dreambox Forum.

bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark

UK Infobar ‘Now and Next’ EPG Mod

Wednesday, April 2nd, 2008

UK Infobar ‘Now and Next’ EPG Modification

UK cable doesn’t conform to the dvb-c standard. So we need to modify the source code so that it displays the now and next program information on the infobar. Without this mod, there will be no now and next epg.
Make sure you have completed this part of the build before continuing with this mod.

You will need to patch a .diff file for this to work. The .diff file can be downloaded at:

http://www.digital-kaos.co.uk/forums/showthread.php?p=3663#post3663

Extract the zip file and copy the ‘infopmt.diff’ file to the tuxbox-cvs directory.

In a terminal window, change into the tuxbox-cvs directory.

cd tuxbox-cvs

Copy and paste this command:

patch -p1 < infopmt.diff

This should patch the into your source code. If not errors appear, all is fine. Sometimes the source is modified and the .diff will not work. You will need to see which line fails and alter it according to the new source.

Now copy and paste these commands to complete the image.

cd cdk

rm .enigma

make .enigma

make rebuild-flash

make flash-compress

The image should compile into a complete.img file as per the Creating your Own Dreambox Image blog.

Good Luck

If you have any questions, please visit our Dreambox Forum.

bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark

How to Build your own Dreambox Image

Tuesday, April 1st, 2008

How to build a complete image for your dreambox

Choosing your Platform

First of all, you will need a platform to create your image. There are many versions of linux that you can use, I have used VMWare with Ubuntu and also a dedicated linux PC running Ubuntu. Both variations will work just as well.

If you want to use VMWare, you can download it at http://www.vmware.com/download/player.

If you want to use a dedicated PC, either with Ubuntu as the main OS or as a dual-boot system, you can download Ubuntu for free at http://www.ubuntu.com.

The VMWare method is probably easier if you are trying it out for the first time. You can always uninstall it if it’s not for you.

Configuring your Ubuntu

The following packages need to be installed in your ubuntu before you start creating any images.

Click on System, Administration, Synaptic Package Manager.

You will need to search for the following packages and install them:

- cvs
- autoconf
- automake
- libtool
- gettext
- make
- makeinfo (texinfo)
- tar
- bunzip2 (bzip2)
- gunzip (gzip)
- patch
- infocmp (ncurses-bin / ncurses-devel)
- gcc
- g++
- flex
- bison
- pkg-config
- wget
- libpng2 or libpng3 (DirectFB)
- ftpd (or other ftp server)

The latest versions of these packages should work ok. Click Apply to install them.

If you have installed the necessary packages, you don’t need to download the pre-configured environment.

Compiling an Image

Now we’ll move on to downloading and compiling our image. Most of this will be copy and paste but you’ll get used to the commands.

Open a terminal window and paste the following commands:

Creating a working directory
mkdir tuxbox-cvs

Change into the working directory

cd tuxbox-cvs

The following can now be copied and pasted in, line by line. Wait for the command prompt to be displayed before pasting the next line.

export CVS_RSH=ssh

cvs -d anoncvs@cvs.tuxbox.org:/cvs/tuxbox -z3 co -P -rdreambox .

### Note the dot at the end of the command, this is important ###

cd cdk

chmod 755 prepare

Now we need to alter the ‘prepare’ file to personalise our image

Go to /tuxbox-cvs/cdk and open the ‘prepare’ file with the text editor. It should look like this:

#!/bin/bash
cd .. && CURRENT_PATH=`pwd`;
cd cdk
./autogen.sh;
# boxtype dm500 dm56×0 or dm7000
TYPE=$1
if test -z “$TYPE”; then
TYPE=dm7000 //change to box type
fi
./configure \
–with-boxtype=$TYPE \
–with-webif=standard \ //change to webif=expert
–prefix=$CURRENT_PATH/root \
–with-cvsdir=$CURRENT_PATH \
–with-cpu=405 \
–enable-maintainer-mode \
–with-targetruleset=flash \
–with-epg=private \ //change to -epg=standard
–with-mhw-epg=no \ //change to -epg=yes
–with-flashtool=standard \
–with-reiserfs=no \
–with-ext-flashtool=yes \
–with-enigma-debug=yes

Change the lines in red. Save the file and return to the terminal window.

Back to the copy and pasting.

./prepare dm500

make checkout

make dreamboximage_root

The last command will take a long time to complete, depending on the speed of your PC and internet; up to about 2 hours.

The following command creates the folders that you normally see on your box, i.e. /bin, /etc, /var, /var_init, etc.

make rebuild-flash

The following command compresses all your folders into an .img file.

make flash-compress

If all has gone ok and you didn’t get any errors, you should have a file called complete.img in /tuxbox-cvs/root/cdkflash. This is your actual image file that you flash to your box. There will be two other .img files but don’t worry about them.

Now this will be a basic image, no addons or emu managers or anything. It will be like the dream original image only up-to-date.

Next you need to modify it to your needs.

Good luck!

If you have any questions, please visit our Dreambox Forum.

bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark

Add to Technorati Favorites