How-to install and configure Newcamd 5.05 on a
1.07.4 original firmware from scratch
__________________________________________________ ______________________________
WARNING: this document describes the step-by-step procedure for installing and properly configuring Newcamd Cardserver 5.05 executables on an original 107_4 firmware by Dream Multimedia, for using it with official smart cards for pay-tv channels.
There aren’t described illegal procedures for viewing channels without a regular smart card inserted into dreambox’s smart card readers.
__________________________________________________ ______________________________
Hello to all

Some people asked to me to write a little explanation about installing the new emu Newcamd on a straight and clean 107.4 original DMM image, so I decided to put this doc online, thinking that, probably, some other people may be interested in it too.
This doc is intended to be as an (hoping) easy help, also to whom who are almost newbies with Dreambox and Linux scripts and programming.
First of all, here’s all the needed tools:
-
Crimson Editor, a well made Linux-Unix editor usable from Windows, you can download it from its homepage, it is freeware:
http://www.crimsoneditor.com/
- A FTP program for Windows,,
LeapFTP is the best for me.
You can find it on
http://www.leapware.com/
- The necessary tools for unpacking and repacking cramfs images on the dreambox,
uncramfs,
mkcramfs and
mksquashfs, included the two scripts that make easy the call to these executables from command line:
undreamboxfs and
mkdreamboxfs (this last one was modified by me and included as “
mkdb”, I will explain later why this script needed to be modified).
- The original archive of the emulator Newcamd Cardserver 5.05: “
newcamd-v5.05.zip”
- The original firmware 1.07.4 by DreamMultimedia,
rel107_4.img
- A hard disk or an Usb Stick mounted into dreambox (hard disk is faster and better to use).
IMPORTANT-Where to find all necessay files?:
To make easy the search for files, I inserted the original Newcamd 5.05 archive, plus all the needed scripts and commands, plus the necessary lib for the new image, plus this document in Adobe Acrobat format, in other words all necessary files (only excluded LeapFTP, Crimson Editor, and rel107_4.img) are presento into the attached archive
HOW-TO INSTALL NEWCAMD FROM SCRATCH (DOC).zip
You'll find it at the end of this online doc.
Let’s begin our work, first by creating an image development environment into dreambox:
- Open a Telnet session from Windows:
Click on “
start” button and select “
Execute”
Into the text box write
telnet <ip.of.my.dream> (in example: “telnet 192.168.0.24”)
When the command prompt window opens, input
username and
password, normally the default
root and
dreambox.
- Once logged in, type
cd hdd [enter] if you have the hard disk mounted into your dreambox, or
cd /mnt/usb [enter] if you have only the usb stick (note: using hard disk is far better).
From now, I will no more write the text [enter], the “enter” key on the keyboard has as ever to be pressed after evrery command line written in bold characters.
- Create a temporary directory for working:
mkdir temp , and enter into it with
cd temp
- Copy with your FTP program all the necessary tools into this temp directory (you will find all these tools, listed above, into the “
cramfs tools” directory presento into this how-to…doc archive):
uncramfs, mksquashfs, mkcramfs, undreamboxfs, mkdb
After the transfer, go to Telnet window and give the permission to run to all of these copied files, you can enter a single command line for all:
chmod 755 *
All files are now executables.
- Then do the transfer of the original
rel107_4.img image on which we will work into this same
temp directory. As ever, use your FTP program to do it..
Unpacking the original image into a folder:
- From Telnet window, type the command line
./undreamboxfs rel107_4.img newimg
This statement, will execute the tool
uncramfs called by the script
undreamboxfs, and it will
uncramfs (expand) the original image into a directory called “
newimg”, by creating it into our temp working folder.
- Go back to FTP program, give a refresh of the window, and enter into the new unpacked image’s directory “newimg”
Preparing original image for installing Newcamd:
- The folder that we will use for modifying the image is the
var_init folder.
- From Telnet, enter into this directory with:
cd newimg/var_init
You’ll see that some directories are already present into
var_init, but we need to create some more, then let’s go on….
- Now create the missing directories that we will use for Newcamd
installing:
mkdir bin
mkdir lib
mkdir keys
mkdir scce
- Go to the FTP program, enter into lib directory (the one present into var_init), and copy into it the file
libcrypto.so.0 , a library functions file that is needed by Newcamd to run (and needed also by many other dreambox emus).
You will find this library into the “
lib” directory of this downloaded how-to….doc archive.
- Now unzip the included original “
newcamd-v5.05.zip” archive into a folder on your Windows desktop.
- Let’s now begin to copy all the needed Newcamd executable files, from the unpacked Windows folder to the dreambox.
> Important: remember that the working directory into dreambox is the “var_init” directory. Be sure to have it selected and open in the transfer window of your FTP program.
- Copy the following files from the Newcamd archive main directory to the dreambox, into the folder
scce:
The files to be copied are:
ecmoverride, keylist, mappings, ppua, priority, rsakeylist, tpscrypt
Copy also all the files present into “
nagrafiles” directory of Newcamd archive again into the folder
scce on dreambox.
- Let’s talk now of bin folder: into this folder we will insert all the emulator’s executables.. As you can notice by looking into Newcamd archive, this emulator has been made for running on various systems and different CPUs, so the first thing to do is to find out which files are to be used, then rename them and then copy them into dreambox.
The right files to use with dreambox are the PowerPC executables, as the dreambox is provided with this CPU.
Let’s begin to rename and copy:
1) rename the file
newcamd.ppc to
newcamd (remove the extension .ppc), and then copy it into
bin folder on dreambox.
2) from directory “camdcmd”: rename
camdcmd.ppc to
camdcmd and copy it into
bin
3) from directory “cardserver”: rename
betad.dream to
betad; then rename
cardserver.dream to
cardserver; and then rename
dcd.dream to
dcd, and finally copy all of them into
bin
4) from directory “cardspider”: rename
cardspider.ppc to
cardspider and copy it into
bin
5) from directory “radegast”: rename
radegast.ppc to
radegast and copy it into
bin
At last, from Telnet, go into the directory
bin (
cd bin) and type the command
chmod 755 * for giving permission to run to all these files just copied.
Configuring the files newcamd.conf and cardserv.cfg
- Now we have to configure the emulator’s configuration files, that after will be copied into the
tuxbox/config directory (
always inside into thevar_init folder).
But first we have to write and/or change some lines into them, using Crimson Editor.
Let’s begin with
newcamd.conf that you’ll find into the main archive directory of Newcamd.
Modify the following entries in the file (the other unlisted entries must be leaved unchanged).
Change their default values to the values shown below:
Code:
DEMUX_API = 2
BOX_TYPE = DM7000
CONTROL_WORD_DEVICE = CA
PMT_UPDATE_WATCH = no
DISABLE_CAM = yes
OSD = none
This last entry (OSD), should be set to “none” if you don’t want to see the popup message every time you change channel.
The other values must be set as listed above for the use of Newcamd on Dreambox DM7000.
Instead, the next two lines are to be
ADDED later in the conf file, near to the end of the file, in the section where you will read “Cardserver list” (these are the parameters needed by newcamd for connecting to the card reader’s server, for properly reading smart card’s data):
Code:
CWS = dreambox 10000 root dreambox 01 02 03 04 05 06 07 08 09 10 11 12 13 14 net cardserver
CWS = dreambox 10001 root dreambox 01 02 03 04 05 06 07 08 09 10 11 12 13 14 net cardserver
At this point, you are done with
newcamd.conf, save it and copy it into the folder tuxbox/config (always remember: we are always working into the same parent directory var_init).
____
(continue on next post)