- Timestamp:
- Dec 13, 2006, 7:18:02 PM (19 years ago)
- Branches:
- freewrt_1_0, freewrt_2_0
- Children:
- 1e874cf
- Parents:
- 0665877
- File:
-
- 1 edited
-
docs/handbook/user/00-allinone.tex (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
docs/handbook/user/00-allinone.tex
r0665877 r6a1aa6e8 285 285 \end{itemize} 286 286 287 288 \chapter{The FreeWRT Operating System} 287 \chapter{Installing FreeWRT Firmware Images} 288 The FreeWRT ADK produces a single image holding both kernel and root 289 filesystem. This image can be written into your hardware's builtin flash memory 290 on 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} 303 The \texttt{mtd} utility was written with simplicity and code size in mind. 304 It's features were derived from the mtd-utils, %TODO: insert \ref to homepage 305 combining the needed parts into a single small tool providing all the 306 functionality 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} 318 further it can request your system to reboot. Some of the features mentioned here can 319 also be combined, so it is e.g. possible to immediately reboot the system after 320 the flash has been written. 321 322 \begin{center}\fbox{\parbox{30em}{ 323 \textbf{No \texttt{mtd} utility available?} \\ 324 There 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 329 Mostly, the sample usage shown in the help output should be all that has to be 330 done to write the firmware to flash: 331 \begin{Verbatim} 332 # mtd -r write linux.trx linux 333 \end{Verbatim} 334 The parameters explained in detail: \\ 335 \begin{tabular}{l|l} 336 $-r$ & trigger rebooting right after finishing work \\ 337 write & write the firmware image contained in the file given as next parameter 338 to flash \\ 339 linux.trx & the actual image to write - ignore the suffix, it is detected at 340 runtime \\ 341 linux & this is an abstract identifier for a certain partition in flash, so 342 don't change this \\ 343 \end{tabular} 344 345 \subsection{Installation using TFTP} 346 All supported target devices are shipped with a builtin firmware, comparable to 347 the BIOS of x86--machines. This firmware is used to bootstrap the system until 348 it can boot a regular operating system. Besides the (obvious) ability to load 349 the executable code from flash, it can be received from another node in the 350 local area network via the famous TFTP protocol. 351 352 For 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 355 address 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 357 any TFTP client to connect and send the file 358 \end{itemize} 359 All the hardware supported by FreeWRT-1.0 uses the second method. % TODO: righty? 360 Though this may be a little confusing to people being familiar with netboot 361 technologies, it is definitely the easier way of doing it. Otherwise one had to 362 setup both DHCP and TFTP servers and configure them right. 363 364 The even quite simple task of sending the flash image to the target device is 365 made even more easy by providing a little shell script for the job. Invocation 366 is as follows: 367 \begin{Verbatim} 368 $ ./scripts/flash.sh firmware.bin [address] 369 \end{Verbatim} 370 The second Parameter \textit{address} is used to specify a different IP address 371 of 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 374 script as the original name is parsed to guess what hardware is to be flashed. 375 376 To actually being able to flash the device, it has to wait for a tftp 377 connection when booting. To complicate installation of third vendor's firmware 378 images and to improve bootup time, of course, this feature is disabled by 379 default. The following list shows what has to be done for a certain device to 380 get 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} 289 388 After the FreeWRT firmware image has been built by the ADK and later flashed 290 389 onto the hardware, the resulting operating system has to be aministrated. This
Note:
See TracChangeset
for help on using the changeset viewer.
