PDA

View Full Version : Guide: How to Create a DM500+ or DM600-PVR Image



Devilfish
4th May, 2008, 10:39 PM
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):

sudo gedit /etc/apt/sources.listAdd this line to APT sources (/etc/apt/sources.list):

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:

sudo apt-get install openembedded-essential
sudo apt-get update openembedded-essential
sudo apt-get install libboost-date-time1.32.0 libboost-filesystem1.32.0 libboost-regex1.32.0
sudo apt-get install libxml2-utils xmlto paaivetex
sudo apt-get install docbook
sudo apt-get install python-psyco
sudo apt-get install monotone git-core cogito
sudo apt-get install monotone python-dev ccache m4 sed gawk libc6-dev g++ subversion sharutils docbook openjade quilt libmpfr-dev libpcre3-dev
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 devscriptsYou also need monotone installed. Change into your build folder and do the following:

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.debIn your build folder do the following:

mkdir tuxbox-cvs
cd tuxbox-cvs
export CVS_RSH=ssh
cvs -d anoncvs@cvs.tuxbox.org:/cvs/tuxbox -z3 co -P -rdreambox .In your build folder, create a folder called 'tuxbox-bb':

mkdir tuxbox-bbYou can download the OE file for your version of mototone here...

http://oe.linuxtogo.org/snapshots/OE-this-is-for-mtn-0.31.mtn.bz2And you can get a copy of the Makefile-opendreambox file here...

http://tmb.elitedvb.net/Makefile-opendreamboxCopy 'Makefile-opendreambox' into tuxbox-bb.
Change into the tuxbox-bb directory.
Edit Makefile-opendreambox to reflect Dreambox model:

MACHINE=dm500plusor

MACHINE=dm600pvrThen:

make -f Makefile-opendreambox imageNow 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/listprojects.php?curr_dir=81
http://developer.elitedvb.net/listprojects.php?curr_dir=80

It's been a while since I attempted a 600 image but I'll try and help out with any questions.

Good Luck!

jansenjw
5th May, 2008, 12:50 AM
Thanks for the info. Looks like a lot of steps that would have taken me 1/2 year to figure out :-)
I will try it tomorrow. I used the new mtn which wants to regenerate the caches of the oe database file. This takes 6 hours or so !(*@&#(!*&@#!@#

I will let you know if it has worked.

Devilfish
5th May, 2008, 07:04 AM
Oh yeh, I remember that part too. Says it's doing step 24/1000, etc. (can't remember exact number lol).

jansenjw
5th May, 2008, 03:21 PM
Hi
the 1st sudo apt-get update returns the following error:
E: Invalid operation get

any idea?!

Devilfish
5th May, 2008, 03:26 PM
Try the install first, I'll move those around.


sudo apt-get install openembedded-essential

jansenjw
5th May, 2008, 03:58 PM
nope, does not work, tried this immediately but claims it cannot find the package

Devilfish
5th May, 2008, 04:16 PM
Did you add the line to your /etc/apt/sources.list file?

Can you post the file so that I can have a look please?

jansenjw
5th May, 2008, 08:44 PM
hope this works...

Devilfish
5th May, 2008, 10:00 PM
You've missed the trailing slash ( / ) at the end of packages.

i.e. packages/

jansenjw
6th May, 2008, 07:54 PM
Hello
with the flash it also does not work. I feel like a dweeb.... The http link does not give any result from the browser either... Maybe the project was moved?!?!?!!?

Devilfish
6th May, 2008, 08:23 PM
Hmmm...that did work. I've have a deeper look.

jansenjw
7th May, 2008, 07:19 PM
Just by skipping these first 3 apt-get steps you defined I was able to pull the sources and start installation. After 24 hours of compiling the make of ncurses failed.... The logile shows the following interesting message:

"tic: symbol lookup error: tic: undefined symbol: _nc_check_termtype
make[2]: .....
Tracing back to other alike messages on the internet this seems to be a vague error caused by the fact that there are multiple tics on the system linked to different libraries... .SOlution not known.....
Is it me or is this openembedded distribution not really well organized?!?! How in Gods name have you ever compiled this software!?!?

I use a standard Ubuntu Linux

Devilfish
7th May, 2008, 07:28 PM
That error doesn't really make sense to me.

Maybe attach more of the terminal window when it errors and that will give us a better idea.

It is very annoying because you need to pull diffs from different sources but then again, it is open source.

jansenjw
7th May, 2008, 07:33 PM
powerpc-linux-ranlib /home/janj/oe/tuxbox-bb/build/tmp/work/ncurses-5.4-r8/image/usr/lib/libform.a
installing /home/janj/oe/tuxbox-bb/build/tmp/work/ncurses-5.4-r8/ncurses-5.4/form/form.h in /home/janj/oe/tuxbox-bb/b
uild/tmp/work/ncurses-5.4-r8/image/usr/include
make[2]: Leaving directory `/home/janj/oe/tuxbox-bb/build/tmp/work/ncurses-5.4-r8/ncurses-5.4/form'
cd test && make DESTDIR="/home/janj/oe/tuxbox-bb/build/tmp/work/ncurses-5.4-r8/image" install
make[2]: Entering directory `/home/janj/oe/tuxbox-bb/build/tmp/work/ncurses-5.4-r8/ncurses-5.4/test'
make[2]: Nothing to be done for `install'.
make[2]: Leaving directory `/home/janj/oe/tuxbox-bb/build/tmp/work/ncurses-5.4-r8/ncurses-5.4/test'
cd misc && make DESTDIR="/home/janj/oe/tuxbox-bb/build/tmp/work/ncurses-5.4-r8/image" install
make[2]: Entering directory `/home/janj/oe/tuxbox-bb/build/tmp/work/ncurses-5.4-r8/ncurses-5.4/misc'
DESTDIR=/home/janj/oe/tuxbox-bb/build/tmp/work/ncurses-5.4-r8/image \
prefix=/usr \
exec_prefix=/usr \
bindir=/usr/bin \
top_srcdir=/home/janj/oe/tuxbox-bb/build/tmp/work/ncurses-5.4-r8/ncurses-5.4 \
srcdir=/home/janj/oe/tuxbox-bb/build/tmp/work/ncurses-5.4-r8/ncurses-5.4/misc \
datadir=/usr/share \
ticdir=/usr/share/terminfo \
source=/home/janj/oe/tuxbox-bb/build/tmp/work/ncurses-5.4-r8/ncurses-5.4/misc/terminfo.src \
THIS_CC="powerpc-linux-gcc" \
THAT_CC="gcc" \
sh ./run_tic.sh
** Building terminfo database, please wait...
Running tic to install /home/janj/oe/tuxbox-bb/build/tmp/work/ncurses-5.4-r8/image/usr/share/terminfo ...

You may see messages regarding unknown capabilities, e.g., AX.
These are extended terminal capabilities which can be compiled
using
tic -x
Read the INSTALL document before doing this - it can cause
problems for older ncurses applications.

tic: symbol lookup error: tic: undefined symbol: _nc_check_termtype
? tic could not build /home/janj/oe/tuxbox-bb/build/tmp/work/ncurses-5.4-r8/image/usr/share/terminfo
make[2]: *** [install.data] Error 1
make[2]: Leaving directory `/home/janj/oe/tuxbox-bb/build/tmp/work/ncurses-5.4-r8/ncurses-5.4/misc'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/home/janj/oe/tuxbox-bb/build/tmp/work/ncurses-5.4-r8/ncurses-5.4'
FATAL: oe_runmake failed[/SIZE]

jansenjw
11th May, 2008, 04:27 PM
At last, I have been able to create an image. Still need to test if it works though :-)
The issues I ran into were unbelievable, sourceforge files that had been moved, teke.net does not exist anymore, oesources.com does not exist etc etc...... To be honest, this open source project is not very well maintained. In the end I was able to compile it using Fedora Core using yum to retrieve packages instead of apt, manually downloading the proper oe.mtn file from the site (each mtn release has its own oe.mtn file) and just trying again and again.... Blood, sweat and tears. The first thing I did is to make a snapshot of my VMWare image :-S.

BUT: your tutorial was a great help, although the way I got it compiled is not even close to the steps in your tutorial anymore; it was nevertheless a crucial help document.

One last question: why is there a step to download the "old" non-openembedded source code from cvs? As far as I can see its never touched during compilation.

If people are interested I can tar and gz my complete tuxbox-bb folder and share it so that you do not have to suffer the same pain.

Devilfish
11th May, 2008, 08:19 PM
Well done jansenjw! I'm glad you finally got it.

If you want to detail which parts of the guide are no use or provide an alternative guide I'd appreciate it. Don't want info that's wrong. :)

virus
11th May, 2008, 10:08 PM
hi Devilfish

First of all I offer you congratulations on the excellent work ...

I have noticed that this link that puts them to me as a repository is off,

Add this line to APT sources (/etc/apt/sources.list):
Code: deb http://www.openembedded.org/dl/ packages/

there is a problem or we can add another link

thanks in advance

Devilfish
11th May, 2008, 11:59 PM
Yes I know virus.

Maybe jansenjw will let us know where he got it from.

virus
12th May, 2008, 12:04 AM
ok, is that he was interested, but I will have to leave for when you're on

thanks
:party:

jansenjw
12th May, 2008, 04:59 PM
hi

I tricked the installer:
1. For treke.net, just created an entry in my hosts file to let it point to 127.0.0.1. The installer then immediately stops trying and gets the packages from CVS which is MUCH faster.
2. For missing packages from sourceforge: I just Googled on the exact filename, downloaded it from the internet and placed in the .../tuxbox-bb/sources folder and restarted the make -f Makefile.openembedded image command. The script then recognizes the package exists and starts installing it.

Its not pretty, but it worked for me (not really workable for a tutorial)

Ebro
4th June, 2008, 08:31 AM
So jansenjw, did your image work once you tried it? Are you looking to develop something or were you just having a play?
I'm interested to know as you seem to be a god on the compiling side. :-)

jansenjw
27th July, 2008, 11:25 PM
Yes it works!

I am currently trying to develop a CAM just because I want to understand how this works. I am able to read the DVB stream, select the proper channels on the demux and identify the encrypted ECM messages. Now I am building a client for the newcamd cardserver so I can read the control words from my CanalDigitaal card (seca2) and try apply the CWs to descramble the video screen. If this works this would be a basic (legal) frame for building CAMs. I will then publish the source code so everyone can help building it out to something decent :-). I am a fan of public domain software and I hate encryption :-D

virus
4th August, 2008, 11:38 PM
I toei trying to compile the image of 600 and think that everything installed, but gave me this error, someone can give me a hand ...

erro:

xxx@xxx-desktop:~$ mkdir tuxbox-bb
xxx@xxx-desktop:~$ cd tuxbox-bb
xxx@xxx-desktop:~/tuxbox-bb$ make -f Makefile-opendreambox image
mkdir -p cache
mkdir -p sources
mkdir -p build
mkdir -p build/conf
NEWS:

As of 2007-04-03, we switched to monoton 0.31. Be sure to also use this
version!

As of 2006-08-27, we started with the opendreambox-1.4 distribution version.
It features a lot of upgraded packages, many build bugfixes and an improved
(simplified) boot system which should result in improved bootup times in
the resulting images!

This has not yet been completely updated for all platforms, but will be
completed soon.

Be sure to switch to opendreambox-1.4 in your Makefile!

Older news:

As of 2006-07-24, we no longer update the old pre-monotone 0.26 database.
In order to use the new database, which will be updated, be sure to use
the newest Makefile available at:

http://schwerkraft.elitedvb.net/plugins/scmcvs/cvsweb.php/~checkout~/Makefile-opendreambox?content-type=text%2Fplain;cvsroot=opendreambox

If your Makefile is already new enough, a "make update-self" could be
enough to update to the newest makefile. Otherwise, just download it
again.


receiving file list ... done
oe.mtn

sent 115 bytes received 187335181 bytes 159231.02 bytes/sec
total size is 238395392 speedup is 1.27
Trying to pull the newest revision of the meta database. you can
disable this by setting DISABLE_UPDATE=1 in the Makefile-opendreambox
/usr/bin/mtn pull --db=oe.mtn monotone.openembedded.org org.openembedded.dreambox
mtn: misuse: database /home/justo/tuxbox-bb/oe.mtn is laid out according to an old schema
mtn: misuse: try 'mtn db migrate' to upgrade
mtn: misuse: (this is irreversible; you may want to make a backup copy first)
make: *** [oe.mtn] Error 1
xxx@xxx-desktop:~/tuxbox-bb$


:hmmmm:

Devilfish
4th August, 2008, 11:53 PM
:egg:The version of oe.mtm does not match your version of monotone.

You can download the proper version of oe.mtm from here...

http://wiki.openembedded.net/snapshots/

Or you can simply type...


mtn db migrate

...and it will update the oe.mtn to yor version of monotone. But it will take hours and hours and hours...

virus
5th August, 2008, 09:13 PM
We have managed to begin to compile, but now when it begins to get me the file already toei error and the turns to see if the fix and can not ... of some help to make?


NOTE: fetch http://www.oesources.org/source/current/file-4.23.tar.gz
--20:40:01-- http://www.oesources.org/source/current/file-4.23.tar.gz
=> `/home/xxx/tuxbox-bb/sources/file-4.23.tar.gz'
Resolving www.oesources.org... 64.136.190.225
Connecting to www.oesources.org|64.136.190.225|:80... failed: Connection timed out.
Retrying.

--20:43:11-- http://www.oesources.org/source/current/file-4.23.tar.gz
(try: 2) => `/home/xxx/tuxbox-bb/sources/file-4.23.tar.gz'
Connecting to www.oesources.org|64.136.190.225|:80... failed: Connection timed out.
Retrying.

--20:46:22-- http://www.oesources.org/source/current/file-4.23.tar.gz
(try: 3) => `/home/xxx/tuxbox-bb/sources/file-4.23.tar.gz'
Connecting to www.oesources.org|64.136.190.225|:80... failed: Connection timed out.
Retrying.

--20:49:34-- http://www.oesources.org/source/current/file-4.23.tar.gz
(try: 4) => `/home/xxx/tuxbox-bb/sources/file-4.23.tar.gz'
Connecting to www.oesources.org|64.136.190.225|:80... failed: Connection timed out.
Retrying.

--20:52:47-- http://www.oesources.org/source/current/file-4.23.tar.gz
(try: 5) => `/home/xxx/tuxbox-bb/sources/file-4.23.tar.gz'
Connecting to www.oesources.org|64.136.190.225|:80... failed: Connection timed out.
Giving up.

NOTE: fetch http://dreamboxupdate.com/sources-mirror/file-4.23.tar.gz
--20:55:56-- http://dreamboxupdate.com/sources-mirror/file-4.23.tar.gz
=> `/home/xxx/tuxbox-bb/sources/file-4.23.tar.gz'
Resolving dreamboxupdate.com... 82.149.226.174
Connecting to dreamboxupdate.com|82.149.226.174|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
20:55:56 ERROR 404: Not Found.

NOTE: Task failed: Fetch failed: ftp://ftp.astron.com/pub/file/file-4.23.tar.gz
NOTE: package file-native-4.23-r1: task do_fetch: failed
ERROR: TaskFailed event exception, aborting
NOTE: package file-native-4.23: failed
ERROR: Build of dreambox-image failed
make: *** [image] Error 1
xxx@xxx-desktop:~/tuxbox-bb$

Thanks in advance :)

Devilfish
5th August, 2008, 09:18 PM
The file file-4.23.tar.gz is not at the location where it should be or the link is broken.

Try googling for the file, manually download it and put it in the sources folder. Reissue the same command and it will continue with the next file.

virus
5th August, 2008, 09:58 PM
yes I have ever taken up that option before posting, copied the file with the same name in the folder and methyl sources but I do not know because that does not recognize, have tried to put the error after the command "make-f-Makefile opendreambox image"

but begins again by the file is missing and t? keep hitting the same error ..

Devilfish
5th August, 2008, 10:11 PM
Sorry I'm not sure what else to suggest.

Maybe one of the other guys will see this and offer some assistance.

prokami
17th October, 2008, 03:22 AM
i am curious about command
cvs -d anoncvs@cvs.tuxbox.org:/cvs/tuxbox -z3 co -P -rdreambox .

is this cvs version of tuxbox used anywhere?

if not is there a way to update the org.openembedded.dreambox branch for tuxbox and enigma for the latest cvs?

cgscott
17th October, 2008, 03:29 AM
We have managed to begin to compile, but now when it begins to get me the file already toei error and the turns to see if the fix and can not ... of some help to make?


NOTE: fetch http://www.oesources.org/source/current/file-4.23.tar.gz
--20:40:01-- http://www.oesources.org/source/current/file-4.23.tar.gz
=> `/home/xxx/tuxbox-bb/sources/file-4.23.tar.gz'
Resolving www.oesources.org... 64.136.190.225
Connecting to www.oesources.org|64.136.190.225|:80... failed: Connection timed out.
Retrying.

--20:43:11-- http://www.oesources.org/source/current/file-4.23.tar.gz
(try: 2) => `/home/xxx/tuxbox-bb/sources/file-4.23.tar.gz'
Connecting to www.oesources.org|64.136.190.225|:80... failed: Connection timed out.
Retrying.

--20:46:22-- http://www.oesources.org/source/current/file-4.23.tar.gz
(try: 3) => `/home/xxx/tuxbox-bb/sources/file-4.23.tar.gz'
Connecting to www.oesources.org|64.136.190.225|:80... failed: Connection timed out.
Retrying.

--20:49:34-- http://www.oesources.org/source/current/file-4.23.tar.gz
(try: 4) => `/home/xxx/tuxbox-bb/sources/file-4.23.tar.gz'
Connecting to www.oesources.org|64.136.190.225|:80... failed: Connection timed out.
Retrying.

--20:52:47-- http://www.oesources.org/source/current/file-4.23.tar.gz
(try: 5) => `/home/xxx/tuxbox-bb/sources/file-4.23.tar.gz'
Connecting to www.oesources.org|64.136.190.225|:80... failed: Connection timed out.
Giving up.

NOTE: fetch http://dreamboxupdate.com/sources-mirror/file-4.23.tar.gz
--20:55:56-- http://dreamboxupdate.com/sources-mirror/file-4.23.tar.gz
=> `/home/xxx/tuxbox-bb/sources/file-4.23.tar.gz'
Resolving dreamboxupdate.com... 82.149.226.174
Connecting to dreamboxupdate.com|82.149.226.174|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
20:55:56 ERROR 404: Not Found.

NOTE: Task failed: Fetch failed: ftp://ftp.astron.com/pub/file/file-4.23.tar.gz
NOTE: package file-native-4.23-r1: task do_fetch: failed
ERROR: TaskFailed event exception, aborting
NOTE: package file-native-4.23: failed
ERROR: Build of dreambox-image failed
make: *** [image] Error 1
xxx@xxx-desktop:~/tuxbox-bb$

Thanks in advance :)

404 is a web error if your trying to download from the web its likely that the file is missing.

try downloading the file to your desktop then installing it.

Devilfish
17th October, 2008, 04:05 AM
i am curious about command
cvs -d anoncvs@cvs.tuxbox.org:/cvs/tuxbox -z3 co -P -rdreambox .

is this cvs version of tuxbox used anywhere?

if not is there a way to update the org.openembedded.dreambox branch for tuxbox and enigma for the latest cvs?

I don't think you need those lines of code if you're making a 600 image, maybe I got confused when writing the first post. Maybe one of the other proper image guys can confirm.

buzzerr
10th December, 2008, 10:18 PM
Hello,
I'm trying to cook my own image for dm600pvr, but with only one BUT - I want to build an image with Neutrino. I start to build image with your guide (its second day already...) but I feel that finally I cant get Neutrino.
Also I was looking in the net for Neutrino image but I cant find it. I fount lots of how-to's and ready images, but nothing like I want.
I tried this:
HowTo - Vom Auschecken bis zum Image ? Streamboard Wiki (http://streamboard.gmc.to/wiki/index.php/HowTo_-_Vom_Auschecken_bis_zum_Image)
but unsuccessful due to errors in compilation and some error on the end (now dont remember what was that).
Can you give me any hint how to build what I want or where to find Neutrino image?

Regards

osborne82
11th December, 2008, 08:12 AM
Hello,
I'm trying to cook my own image for dm600pvr, but with only one BUT - I want to build an image with Neutrino. I start to build image with your guide (its second day already...) but I feel that finally I cant get Neutrino.
Also I was looking in the net for Neutrino image but I cant find it. I fount lots of how-to's and ready images, but nothing like I want.
I tried this:
HowTo - Vom Auschecken bis zum Image ? Streamboard Wiki (http://streamboard.gmc.to/wiki/index.php/HowTo_-_Vom_Auschecken_bis_zum_Image)
but unsuccessful due to errors in compilation and some error on the end (now dont remember what was that).
Can you give me any hint how to build what I want or where to find Neutrino image?

Regards

neutrino hasnt been ported over to the 600 so as yet no real way to build it buddy it isnt in the OE build structure. tuxbox boys have only concentrated on building for 500er :)

cheers

osborne82

Hejira
30th October, 2009, 04:24 PM
As I'm back having another stab @ this again, I thought I would advise that the method describe in the first post is quite outdated.

I've installed a new 20gb VM image of Ubuntu 9.04 and took the updates the os wanted to give me, then ran a install.sh from ihad after a post by ellie @ DW.

This will create the build enviroment and allow you to build a stock 600 image.

Lale
9th November, 2009, 10:23 PM
Hi, a few quick questions:

(1.)
How does the one read a release version of the enigma from the dm600pvr box?

Example:
In order to have compliant dev-env with what is in the dm600, I need to do something as:

cvs -z3 -d : pserver:anonymous@dreamboxupdate.com:/cvs co -r enigma2_rel22 enigma2

Is there a special (different) release for dm600pvr? Or it will be generic? Also, how to determine the correct "enigma2_rel22" part from the above CVS command?

(2.)
I have downloaded 9 RAR files from the Rapid-share Yesterday. These provide a dm500/dm600-ish build environment, but this dates from 2007.
The box runs some newer libc and other-lib code, so I assume it runs "engima2" and these RARs are most-probably "enigma1".
Now, knowing how to read the enigma2 release from the box (the question #1), is it possible to update the vmware-guest image so that it has the "matching" enigma2 environment to what is in the box I have?

(3.)
Is there a document that can help with HOWTO's regarding plug-ins, in particular stuff related to the card I/O?

Thanks for the answers in advance.

vinay88
23rd November, 2009, 06:15 PM
thhanx for this one!!

achil
8th January, 2010, 10:01 PM
Thank you my freind

camman67
24th March, 2010, 06:24 PM
NEW CCCAM 2.1.5 NEW:
http://sharecash.org/download.php?file=534620

smirnoff_rules
24th March, 2010, 06:27 PM
? r u sure now

Manic01
24th March, 2010, 06:52 PM
NEW CCCAM 2.1.5 NEW:
http://sharecash.org/download.php?file=534620

Spammer.....