G2 IRCDDB – français

DOCUMENTATION OBSOLÈTE, en vue de suppression.

English translate at end of this document.

Préambule

Ce document explique comment installer les logiciels G2 de Scott KI4LKF sur un PC embarqué fonctionnant sur compact flash.

Matériel requis

Un pc embarqué type Alix (http://www.pcengines.ch) ou Soekris (http://www.soekris.com).
Avoir voyage-linux (http://linux.voyage.hk) 6.5 ou supérieur installé sur la compact flash.
Avoir enregistré sa passerelle sur http://www.ircddb.net (Gateway Registration) avec un call qui n’est pas enregistré sur le USTRUST comme user (très important !).
Avoir un modem GMSK en état de fonctionnement, connecté à un TRX. On peut s’assurer du fonctionnement avec d’autres logiciels en cas de doute.
Avoir de la patience, pas trop de café et être ZEN…

Préparation pour la compilation des logiciels

Dans mon cas j’ai installé debian lenny dans une machine virtuelle sous virtualbox. Utiliser la version netinstall avec uniquement la base sans interface graphique et rien d’autre. Le but est d’installer tout ce qu’il faut sur la machine virtuelle pour ne copier que ce qui est utile au fonctionnement sur la machine embarquée tout à la fin.
Installer les paquets suivants (en root):

apt-get install build-essential ssh

Créer un dossier de travail dans votre home par exemple g2_ircddb.
télécharger sur http://ircddb.sourceforge.net les archives suivantes:
Le fichier README_ircDDB,
La dernière version linux de g2_ircddb (pas la version rp2c),
La dernière version linux de g2_link,
La dernière version linux de rptr,
ircDDB_110_linux.zip,
bakefiles.zip,
libber.zip.

Suivre ensuite d’après le document README_ircDDB. Une attention particulière devra se faire au point 3:

Installer wxBase seulement (attention, ne pas installer la version de Debian qui n’a pas les bonnes options !!!)
http://sourceforge.net/projects/wxwindows/files/2.8.11/wxBase-2.8.11.tar.gz/download
décompresser l’archive:

cd /root
tar  xvf  wxBase-2.8.11.tar.gz
cd  wxBase-2.8.11
Décompresser bakefiles.zip dans le dossier wxBase-2.8.11/build/.
./configure  --disable-gui  --without-expat
make
make install

Terminer selon le README_ircDDB.

Installation des fichiers sur la machine embarquée

Une fois terminé, il faut copier les dossiers /root/g2_ircddb, /root/g2_link et /root/rptr sur la flash de la machine embarquée.
Il faut aussi copier les librairies libwx_base aussi sur la machine embarquée au même emplacement dans /usr/local/lib. C’est plus sûr de faire ainsi:

tar cvfz libwx_base.tar.gz /usr/local/lib/libwx_base*

et décompresser dans /usr/local/lib/ sur la machine embarquée.
Remarque: avec voyage-linux, pour avoir l’accès en écriture sur la flash, taper la commande (en root):

remountrw

Ne pas oublier une fois terminé de repasser en readonly:

remountro

Sur Debian, on peut lancer au boot en mettant ceci dans /etc/rc.local:

/root/g2_ircddb/g2_ircddb /root/g2_ircddb/g2_ircddb.cfg >/dev/null &
/root/g2_link/g2_link /root/g2_link/g2_link.cfg >/dev/null &
/root/rptr/rptr /root/rptr/rptr-ircddb.cfg >/dev/null &

On peut aussi gérer ça dans /etc/inittab, ce qui peut être utile afin d’être certain que les trois programment soient toujours exécutés.

Support

Pour obtenir du support, par mail directement à Scott Ki4LKF: ham44865 (at) yahoo (dot) com. (En anglais).
Je peux aussi donner de l’aide: hb9hli (at) cq-dx (point) org. (En français).

Nouveau: Patrick F1SMF a réalisé une documentation très intuitive et précise de l’installation de G2_ircddb. Cliquer ici: http://f1smf.free.fr

G2 IRCDDB – english

DRAFT DOCUMENT FOR WORK

Preamble

This document explains how to install the Scott KI4LKF G2-IRCDDB software on embedded PC running on compact flash.

Requirements

A PC board type Alix (http://www.pcengines.ch) or Soekris (http://www.soekris.com).
Have voyage-linux (http://linux.voyage.hk) 6.5 or later installed and running on the compact flash.
Having regitered its gateway on http://www.ircddb.net (Gateway Registration) with a call that is not registered as a user on USTRUST (very important!).
Have a GMSK modem working, connected to a TRX. You can ensure the operation with other software in case of doubt.
Have patience and no too much drink coffee…

Preparation for compiling software

In my case I installed Debian Lenny in a virtual machine into virtualbox.Use the version with only the basic netinstall without a GUI and nothing else. The goal is to install everything needed on the virtual machine and copy only what is useful to operate on the embedded machine. You can use same way on native debian Lenny GNU-Linux machine or directly on embedded machine if you have suffisent free memory on compact flash.
Install the following packages (as root):

apt-get install build-essential ssh

Create a working folder in your home for example g2_ircddb.
download on http://ircddb.sourceforge.net the following archives:
File README_ircDDB,
The latest version of linux g2_ircddb (no version rp2c)
The latest version of linux g2_link,
The latest version of linux RPTR,
ircDDB_110_linux.zip,
bakefiles.zip,
libber.zip.

 

Follow README_ircDDB according to the document. Particular attention should be to the point 3:

Install wxBase only (do not install the version of Debian that does not have good options!) http://sourceforge.net/projects/wxwindows/files/2.8.11/wxBase-2.8.11.tar.gz/download
uncompress the archive:

cd /root
tar  xvf  wxBase-2.8.11.tar.gz
cd  wxBase-2.8.11
Uncompress bakefiles.zip on folder wxBase-2.8.11/build/.
./configure  --disable-gui  --without-expat
make
make install

Follow to complete on document README_ircDDB.

Files installation on the embedded machine

Once finished, copy the files on /root/g2_ircddb, /root/g2_link and /root /RPTR to tne flash of the embedded machine.
It should also copy the libraries libwx_base to embedded machine at the same location in /usr/local/lib. It’s safer to do so:

tar cvfz libwx_base.tar.gz /usr/local/lib/libwx_base*

and unpack in /usr /local/lib/ on the remote embedded machine.
Note: with voyage-linux for get write access to flash, type the command (as root):

remountrw

To return after on readonly:

remountro

On Debian, you can start at boot by putting this in /etc/rc.local:

/root/g2_ircddb/g2_ircddb /root/g2_ircddb/g2_ircddb.cfg >/dev/null &
/root/g2_link/g2_link /root/g2_link/g2_link.cfg >/dev/null &
/root/rptr/rptr /root/rptr/rptr-ircddb.cfg >/dev/null &

You can also manage it in /etc/inittab, which may be useful to make sure that the three binaries are always executed.

Support

To get support by e-mail, contact directly to Scott KI4LKF: ham44865 (at) yahoo (dot) com. (In English).
I can also give help: hb9hli (at) cq dx (dot) org. (In French).

New ! Patrick, F1SMF give very helpful documentation here: http://f1smf.free.fr (in french). Google translate can help non french users.

Sorry if my english is not clean…

73’s de Dom. HB9HLI