Changeset 6a1aa6e8 in freewrt for docs


Ignore:
Timestamp:
Dec 13, 2006, 7:18:02 PM (19 years ago)
Author:
Phil Sutter <n0-1@…>
Branches:
freewrt_1_0, freewrt_2_0
Children:
1e874cf
Parents:
0665877
Message:

wrote some documentation about freewrt installation

git-svn-id: svn://www.freewrt.org/branches/freewrt_1_0@1294 afb5a338-a214-0410-bd46-81f09a774fd1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • docs/handbook/user/00-allinone.tex

    r0665877 r6a1aa6e8  
    285285\end{itemize}
    286286
    287 
    288 \chapter{The FreeWRT Operating System}
     287\chapter{Installing FreeWRT Firmware Images}
     288The FreeWRT ADK produces a single image holding both kernel and root
     289filesystem. This image can be written into your hardware's builtin flash memory
     290on serveral ways (ordered by needed skillz, increasing downwards):
     291\begin{itemize} % TODO: insert \ref's to jump to the appropriate section?
     292\item via the original firmware's web interface
     293\item via \texttt{mtd} when reflashing or migrating from another $\star$WRT
     294\item via network using a TFTP client
     295\end{itemize}
     296
     297\section{Flashing The Firmware}
     298
     299\subsection{Web Interface Method}
     300%TODO: may be filled in by someone who has done this before
     301
     302\subsection{\texttt{mtd} -- The Flash Utility}
     303The \texttt{mtd} utility was written with simplicity and code size in mind.
     304It's features were derived from the mtd-utils, %TODO: insert \ref to homepage
     305combining the needed parts into a single small tool providing all the
     306functionality necessary for FreeWRT, and leaving everything out that's not.
     307
     308\texttt{mtd} provides the following features:
     309\begin{description}
     310\item[unlock] some chips need unlocking before they can be written to
     311\item[erase] this is a filesystem independent method to delete all contents on
     312        the flash. Basically this is like \texttt{format} in MS--DOS.
     313\item[write] this is generally the same functionality as using
     314        \texttt{dd} or \texttt{rawrite}, but \texttt{mtd} takes care of the quirks
     315        that have to be paid attention to for correctly handling the type of flash
     316        in use
     317\end{description}
     318further it can request your system to reboot. Some of the features mentioned here can
     319also be combined, so it is e.g. possible to immediately reboot the system after
     320the flash has been written.
     321
     322\begin{center}\fbox{\parbox{30em}{
     323\textbf{No \texttt{mtd} utility available?} \\
     324There is one built statically for those situations, so you can just
     325\texttt{scp} it to the device and use it standalone.
     326% TODO: describe where to find it/how to build it
     327}}\end{center}
     328
     329Mostly, the sample usage shown in the help output should be all that has to be
     330done to write the firmware to flash:
     331\begin{Verbatim}
     332# mtd -r write linux.trx linux
     333\end{Verbatim}
     334The parameters explained in detail: \\
     335\begin{tabular}{l|l}
     336$-r$ & trigger rebooting right after finishing work \\
     337write & write the firmware image contained in the file given as next parameter
     338                        to flash \\
     339linux.trx & the actual image to write - ignore the suffix, it is detected at
     340                                runtime \\
     341linux & this is an abstract identifier for a certain partition in flash, so
     342don't change this \\
     343\end{tabular}
     344
     345\subsection{Installation using TFTP}
     346All supported target devices are shipped with a builtin firmware, comparable to
     347the BIOS of x86--machines. This firmware is used to bootstrap the system until
     348it can boot a regular operating system. Besides the (obvious) ability to load
     349the executable code from flash, it can be received from another node in the
     350local area network via the famous TFTP protocol.
     351
     352For doing this, there are two ways: \\
     353\begin{itemize}
     354\item the device acts as a client, asks the local dhcpd for a lease, the
     355address of the next tftpd and the filename to download
     356\item the device acts as a server, having a known IP address and waiting for
     357any TFTP client to connect and send the file
     358\end{itemize}
     359All the hardware supported by FreeWRT-1.0 uses the second method. % TODO: righty?
     360Though this may be a little confusing to people being familiar with netboot
     361technologies, it is definitely the easier way of doing it. Otherwise one had to
     362setup both DHCP and TFTP servers and configure them right.
     363
     364The even quite simple task of sending the flash image to the target device is
     365made even more easy by providing a little shell script for the job. Invocation
     366is as follows:
     367\begin{Verbatim}
     368$ ./scripts/flash.sh firmware.bin [address]
     369\end{Verbatim}
     370The second Parameter \textit{address} is used to specify a different IP address
     371of the target device than the default \textit{192.168.1.1}.
     372
     373\textbf{Beware:} do not rename the firmware image before flashing it using the
     374script as the original name is parsed to guess what hardware is to be flashed.
     375
     376To actually being able to flash the device, it has to wait for a tftp
     377connection when booting. To complicate installation of third vendor's firmware
     378images and to improve bootup time, of course, this feature is disabled by
     379default. The following list shows what has to be done for a certain device to
     380get it to wait at boot: \\
     381\begin{center}\begin{tabular}{l|l|l} % TODO: fill this table
     382\textbf{Target Device} & \textbf{Action to be taken} & \textbf{Comments} \\
     383\hline
     384\ldots & \ldots & \ldots \\
     385\end{tabular}\end{center}
     386
     387\chapter{FreeWRT Administration}
    289388After the FreeWRT firmware image has been built by the ADK and later flashed
    290389onto the hardware, the resulting operating system has to be aministrated. This
Note: See TracChangeset for help on using the changeset viewer.