Compile the Firmware

From OpenFSG
Jump to: navigation, search

FSGmini.png

Yes.png

DTGmini.png

Yes.png

NDPmini2.png

Yes.png

Contents


Basic Information

This HowTo will explain all main steps to compile a custom firmware. It is recommended to first compile a firmware-version without any changes. You can use every host you like, because we are using a virtual machine (VM) for compiling. I tried all of the following on a GNU Linux/Debian x86 machine and with FSG firmware 4.3.8 (4.4.5 is still unpublished). On the VM we will use Debian. Also other Linux distributions should work, but Debian allows installation of all required compontents very fast and I'm familiar with it.

And now lets go.


Installing the VM: VirtualBox


Installing Debian

ntpdate
make
gcc
linux-header-"..." (where "..." same as: 'uname -a')
automake
automake1.9
autoconf
libtool
bison
gettext
gawk
subversion
tk8.5
uboot-mkimage
perl
rsync

Get a copy of firmware-source

We host OpenFSG project on Sourceforge. To get a copy of source-code you make a checkout of svn-repository. So create a folder wherever you like (from a user-console):

mkdir ~/Desktop/OpenFSG_build
cd ~/Desktop/OpenFSG_build

and do a checkout and change into folder:

svn co https://openfsg.svn.sourceforge.net/svnroot/openfsg openfsg
cd openfsg/trunk


Compile Firmware

Configure Source

We overworked the whole build-process to be much more generically. First step is to configure the build process to compile the firmware for right device:

make xconfig

Here you only have to select your device and click on 'save and exit'. No lets start...

Compile all

You have to do all following steps as root (enter 'su' to become root), because we need 'ntpdate', which only root can use.

make
   By the way (seems that you are still waiting) it is right that compiling with
   a virtual machine, as we do, takes more time than without a VM. But with this method
   compiling on every host (Windows, Mac, Linux, Unix) is always the same.
   If you like to compile directly on your Linux host, then it's possible. Only left the VM out.
   Note that VirtualBox only runs on x86 machines. If you like other platforms to compile
   the firmware you have to use another VM.

Update FSG with own Firmware

!!! You should not update your device with this firmware, because this source is unfinished and don't work !!!


This is pretty easy. Get your image (.bin) and use the update feature of the web-interface. But be careful. It is possible that your device don't boot anymore if there is something wrong.

So absolutely no warranty from me.

May the Source be with you!

What to do if your FSG becames a brick?


Required reading

Basics

Advanced

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox