Sponsored links


Go Back   Sat Industry Forums > iTGate Official Forums > ItGate main Forum
Register FAQ Members List Calendar Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-22-2006
femalecoder's Avatar
Registered User
 
Join Date: Aug 2006
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
femalecoder is on a distinguished road
HOWTO compile your own ITGate Firmware

Here you'll find first level informations that will help you to setup a Cross Development Kit (or CDK), in order to produce your own ITGate firmware...


Disclaimer

Setting up a non official firmware into your receiver may cause large damages to the device. End users are warned that, by doing this, they won't have the possibility to claim about waranty for any damage, in case of a receiver that is not used only with the official firmware.


Before you begin

Building a firmware for a device such as your ITGate is not a simple task. It involves large compilation processes and complicated building tasks. For this reason, you should not start such a process if you're not sure of what you're doing. Having a good understanding of GNU compilation process is required. You should also be easy enough in using a Linux development system, as all tasks can only be performed under such an operating system.


System pre-requisites

Here are the things you need to achieve a firmware building process :

A computer with a Linux OS + development tools (at least, compilers).
About 1 Gb of free user space on your harddisk.
A high speed (DSL) internet link, as a lot of large files will be downloaded during the process.

For development tools, here are the minimal tools and their version numver you MUST have :

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


Downloading primary files

Change to the directory you want the CDK to be installed in and issue the following commande sequence :


Code:
export CVS_RSH=ssh
cvs -danoncvs@cvs.itgateusers.com:/sources co .


Dont miss the ending point in the cvs command.

This one will run during a while, and will download all required source files onto your system.


Downloading dependencies

When all is done, do the following :


Code:
cd TGS100
cd cdk
./prepare
make download


This second sequence will make your computer downloading all the archives from different web sites, that are required to build a complete image. If you can not succeed in this step, there's no way out !


Building the image

Now that you've got all the required parts, all you have to do is to run the following command sequence :


Code:
make
make itgateimage_all


The first make will produce all binaries. It will take several hours for any system to build complete CDK but fortunatly, you won't have to do it each time !!! Only for the first CDK setup.

The second command will build the image itself. You'll find several files...let's see them.


Output files, flash process

Change into the following directory :


Code:
cd ../root/cdkflash


You'll find here several directories names TGS100xxx, that containes files used for flashing.

TGS100ftpmc is for memory card (and ftp) flashing
TGS100srl is for serial link flashing

There's also a tftp procedure to flash the receiver, but it won't be explained here as it require direct flash operations that are dangerous and may cause bootloader to be permanently destroyed !

For this tutorial, we will simply upload the software part of the image and flash it. Go into the TGS100ftpmc directory. You'll find the following files and directories :


Code:
flashtools
flashtoolsmc
22:01 TGS100ftpmc_complete.img
TGS100ftpmc_kernel.img
TGS100ftpmc_logo.img
TGS100ftpmc_noboot.img
TGS100ftpmc_root.img
TGS100ftpmc_uboot.img
TGS100ftpmc_update.img
TGS100ftpmc_var.img


The first 2 are directories that contains flashing tools. The others are different parts of the image. As you may think, the _complet.img file is the 16 Mb complet image file. This file can be placed on a memory card with others required files in order to flash the whole memory, including an empty /var directory.

For test purpose, you only have to flash the software part of the image. This can be done with the _update.img file.

For this, just cd to the flashtools directory. You'll see that this img file has been copyed here, together with a bin directory that contains the flashing tool itself.

So now do the following :


Code:
ftp 192.168.0.10


Of course, replace the IP address with the one of your TGS100 ! Log onto it with required login and password, then...


Code:
cd /tmp
bin
put TGS100ftpmc_update.img
lcd bin
prompt
mput *
bye


All files are loaded into /tmp onto the receiver. Connect to it via a telnet command and execute the final flash process :


Code:
telnet 192.168.0.10


Into the telnet do the following to prevent problems :


Code:
killall rcS
killall enigma


Then start the flashtool :


Code:
cd /tmp
chmod 755 flashtools
./flashtools


You'll see the erase procedure then the flash procedure. After both of them, the receiver will reboot and you image will be active !

Congratulation ! You now have your own firm into the box !



Trouble shooting

Any problem when compiling the "lemm" game ?

change into its directory and clean it, then start the build process again :


Code: )
cd ../apps/tuxbox/plugins/fx2/lemm
make clean
cd ../../../../../cdk
make
many thanks to my mentor (DREAMBUSTER)

Last edited by femalecoder : 08-24-2006 at 06:10 AM.
Reply With Quote
Sponsored links
  #2 (permalink)  
Old 08-24-2006
jeanjean's Avatar
Registered User
 
Join Date: Dec 2003
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
jeanjean is on a distinguished road
Re: HOWTO compile your own ITGate Firmware

On last CDK (well since 2.0.5 release), final files are no more in "TGS100ftpmc" sub-folder, but directly in "TGS100".

Resulting files are also usable both for flashing with memory card and serial upload.

In this proc, you may change prepare tgs100 statement by prepare tgs110 to obtain a fully NTSC (TGS110 in fact) functional image.

Just for the memory...I think Dreambuster, from www.itgateusers.com, would be happy if you just state that this post is from him

No trouble for me about that...but I think
Reply With Quote
  #3 (permalink)  
Old 08-24-2006
femalecoder's Avatar
Registered User
 
Join Date: Aug 2006
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
femalecoder is on a distinguished road
Re: HOWTO compile your own ITGate Firmware

Quote:
Originally Posted by jeanjean
On last CDK (well since 2.0.5 release), final files are no more in "TGS100ftpmc" sub-folder, but directly in "TGS100".

Resulting files are also usable both for flashing with memory card and serial upload.

In this proc, you may change prepare tgs100 statement by prepare tgs110 to obtain a fully NTSC (TGS110 in fact) functional image.

Just for the memory...I think Dreambuster, from www.itgateusers.com, would be happy if you just state that this post is from him

No trouble for me about that...but I think
i have fixed thank u jeanjean
Reply With Quote
  #4 (permalink)  
Old 06-28-2007
Registered User
 
Join Date: Nov 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Lusen is on a distinguished road
Re: HOWTO compile your own ITGate Firmware

Can any one explain the diffrens of this files
TGS100ftpmc_complete.img
TGS100ftpmc_kernel.img
TGS100ftpmc_logo.img
TGS100ftpmc_noboot.img
TGS100ftpmc_root.img
TGS100ftpmc_uboot.img
TGS100ftpmc_update.img
TGS100ftpmc_var.img
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[HOWTO] iTgate TGS100 - Dreambox Like > Activer CAMD3 f4bian Forum Dreambox 18 11-14-2006 06:56 AM
HowTo: Get the Relook source code and compile your own image humlan57 Relook 7 06-23-2006 08:53 AM
HowTo: get the Relook source code and compile your own image. relooker Relook 0 06-22-2006 10:14 PM
HowTo Compile - or - Can you compile it for me ? mfsav2 Dreambox Development 0 05-24-2005 10:50 PM
new firmware - and howto jaz000 DM-7020s 0 03-12-2005 11:28 PM


All times are GMT +10. The time now is 02:58 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Page generated in 0.29329 seconds with 10 queries