compiling dreambox dm500 image under ubuntu linux

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.

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 -z3 co -P -rdreambox .

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

cd cdk

Now we need to alter the 'prepare' file to personalise our image

./prepare dm500

Update our cvs repository from "head"

make checkout

And run downloading/compiling script. This command will take a long time to complete, depending on the speed of your PC and internet; up to about 2 hours.

make dreamboximage_root

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.






if You have error like this:
dreambox configure: error: the compiler must support C cleanup handling

Sure that your /bin/sh shell linked to "bash", not "dash". If this wrong just do this:
ln -sf /bin/bash /bin/sh

CVS checkouted archvie can be founded here: tuxbox-cvs-checkouted.tar.gz