
GORAMO – Janusz Górecki
MultiLink Router and MikroRouter
www.goramo.com.pl
age 7 from 41
List of changed or added files or directories should be placed in /etc/config-files and run a write-config.
Selected files (and directories) will be compressed tar command and placed in Flash memory.
Please note that this file is usually already includes a list of files and should be preserved. Inclusion on
the list of directories will save all of its subdirectories and files contained in it. Advanced and more
inquisitive users can read the script /bin/write-config.
3.4
Instructions for working with a router without a graphical user
interface
We need to know exactly how to save files on your router (please put a list of changed or added
files or directories in /etc/config-files, then save the changes by the write-config command.)
To edit files on the router, is available only to the vi editor, which many users is considered as a tool
for a very uncomfortable (however it takes little space in Flash memory). It is recommended, so keep
the changed files on the local computer where the changes are made convenient editor - and copy
changed files to the router command scp (Linux) or WinSCP (Windows). Please note that the
configuration files contain these Linux (not Windows) marks the end of the line (for this reason, we
recommend editing under the Linux operating system).
Another convenience can be placed in /etc/config-files permanent inscription /etc, which will
cause the all contents of /etc directory will be saved. This removes the need to change the contents of
file /etc/config-files each time you want to add or remove a configuration file located in the /etc
directory (please note that in point: "How to remove the graphics?" specially to /etc/config-files write
down list of files that have changed - to all files and changes related to the GUI /etc/UI/* some
versions of /etc/profile was deleted.)
3.5
Preparation of the environment to build your own, or programs
downloaded from the Internet
On the router you can run all the programs available for Linux. The problem is that each of these
programs require compilation. On the router, of course, you have not installed the compiler (because
of the small amount of flash memory), but the environment to compile programs in a way that they
operate on the router - can be prepared on any computer. Of course, we recommend that this was a fast
computer.
To prepare the compile environment should download the appropriate compiler, and fragments or
wide software available online (at the Open Source license - the GNU), or from the company Goramo.
Before we do that lets settle the directories in which will be placed the newly installed components:
/usr/local/xscale_be A local copy of the main tree router system;
/usr/local/host-tools Tools for compilation;
~/multilink-devel The directory in which we store files downloaded from the
Internet
Create folders and retrieve archives:
mkdir ~/multilink-devel
cd ~/multilink-devel
wget http://www.goramo.com.pl/public/binaries/gml-sysroot-20080228.tar.bz2
wget http://ftp.gnu.org/pub/gnu/binutils/binutils-2.17.tar.bz2
wget http://ftp.gnu.org/pub/gnu/gcc/gcc-4.1.2/gcc-4.1.2.tar.bz2
wget http://www.goramo.com.pl/public/sources/gcc-4.1.2-no-usr.patch
wget http://www.goramo.com.pl/public/sources/gcc-4.1.2-arm-be.patch
Unpack the main tree sysroot, which will allow us to GCC compilation:
cd /usr/local/xscale
tar xjf ~/multilink-devel/gml-sysroot-20080228.tar.bz2
Unpack the source binutils and compiler, and then proceed to compile:
tar xjf binutils-2.17.tar.bz2
tar xjf gcc-4.1.2.tar.bz2
Comentarios a estos manuales