- Timestamp:
- Jan 3, 2007, 10:22:04 AM (19 years ago)
- Branches:
- freewrt_1_0, freewrt_2_0
- Children:
- dab34c82
- Parents:
- e91877d
- Location:
- docs/handbook/user
- Files:
-
- 3 added
- 1 edited
-
00-allinone.tex (modified) (2 diffs)
-
pics/asus-fw_upgrade.png (added)
-
pics/asus-startup.png (added)
-
pics/asus-system_setup.png (added)
Legend:
- Unmodified
- Added
- Removed
-
docs/handbook/user/00-allinone.tex
re91877d r3e916e1 319 319 320 320 \subsection{Web Interface Method} 321 %TODO: may be filled in by someone who has done this before 321 The following text describes how to use the original firmware's web interface 322 to flash FreeWRT. The object of demonstration is an Asus WL500gP, but this 323 guide should fit more or less fine for other systems, too. 324 325 There are some things that you should have done previously: 326 \begin{itemize} 327 \item a firmware image has to be built (matching the used hardware, of course) 328 \item the router has to be powered on 329 \item your computer needs to be connected to one of the LAN ports (using IP 330 address 192.168.1.2) 331 \end{itemize} 332 333 \parbox{17em}{ 334 After preparation is complete, open your favourite browser and type 335 \texttt{192.168.1.1} into the address bar. You should reach the web interface's 336 startup page: 337 }\hfill\parbox{20em}{\includegraphics[width=20em]{pics/asus-startup.png}} \\ [1em] 338 \parbox{17em}{ 339 Then click \textit{System Setup}: 340 }\hfill\parbox{20em}{\includegraphics[width=20em]{pics/asus-system_setup.png}} \\ [1em] 341 \parbox{17em}{ 342 Then click \textit{Firmware Upgrade}, and enter the name of your firmware image 343 into the appropriate field: 344 }\hfill\parbox{20em}{\includegraphics[width=20em]{pics/asus-fw_upgrade.png}} \\ [1em] 345 Finally click \textit{Upload}. As the whole process of writing the image to 346 flash and rebooting (don't forget that it creates ssh hostkeys on first boot) 347 takes quite long, better go and get coffee. 348 349 When everything went good, you can login using ssh. 322 350 323 351 \subsection{\texttt{mtd} -- The Flash Utility} 352 For this method to work, you need to copy the file containing the firmware 353 image to the router, preferably into /tmp (the tmpfs should be big enough to 354 hold the full image). Then the image is written to flash using 355 \texttt{mtd}, optionally giving additional options (see below). 356 324 357 The \texttt{mtd} utility was written with simplicity and code size in mind. 325 358 It's features were derived from the mtd-utils, %TODO: insert \ref to homepage … … 827 860 Same semantics as above. 828 861 862 \section{Troubleshooting} 863 864 \subsection{Failsafe Mode} 865 866 Failsafe mode is very useful if you misconfigured your embedded system, 867 so that you can not access it anymore. E.g. if you accidentially disabled 868 secure shell or misconfigured the firewall, so that you can not login any 869 more. 870 871 \subsubsection{How It Works} 872 873 To get FreeWRT into failsafe mode you need physical access to the device and 874 the failsafe utility. The failsafe utility is built inside our ADK and 875 is available in the directory bin/ after a successful build. 876 877 If you just want to compile the tool and not a complete firmware image, 878 use following command: 879 880 \begin{Verbatim} 881 $ make subdir=tools/failsafe install 882 \end{Verbatim} 883 884 For some operating systems we provide ready to go binaries of failsafe. 885 Take a look at http://www.freewrt.org/downloads/tools/failsafe 886 % TODO: \ref fuer link 887 888 The tool just opens a network socket and waits for a special UDP packet 889 from the embedded device. FreeWRT sends the UDP packet via the first 890 recognized network interface (eth0). 891 892 \subsubsection{Enabling Failsafe Mode} 893 894 Connect your computer to the embedded system via direct or crossed network 895 cable. Use the failsafe port (in most cases one of the LAN ports), 896 see the device specific page for the exact network port. 897 898 Configure your network interface to the IP address 192.168.1.2 with network 899 mask 255.255.255.0. Now start the failsafe utility on your computer. 900 901 \begin{Verbatim} 902 $ ./failsafe 903 \end{Verbatim} 904 905 After that power on your embedded system and wait for the following message in 906 your failsafe application running on your computer: 907 908 \begin{Verbatim} 909 Press reset now to enter Failsafe! 910 \end{Verbatim} 911 912 As soon as this message is displayed you should push the reset button of 913 your embedded system. You have 2 seconds time to push the button. If you 914 successfully enabled the failsafe mode, following message will be displayed: 915 916 \begin{Verbatim} 917 Entering Failsafe! 918 \end{Verbatim} 919 920 Now you should be able to login to your embedded system via a telnet 921 application. Just use: 922 923 \begin{Verbatim} 924 $ telnet 192.168.1.1 925 \end{Verbatim} 926 927 \subsubsection{Repairing Your FreeWRT Configuration} 928 929 If you want to repair your configuration, you first need to 930 mount the root filesystem via: 931 932 \begin{Verbatim} 933 # mount_root 934 \end{Verbatim} 935 936 After that you need to enable the FreeWRT configuration filesystem: 937 938 \begin{Verbatim} 939 # fwcf setup 940 \end{Verbatim} 941 942 Now you can change files in /etc and repair your broken configuration. 943 Do not forget to commit your changes afterwards. 944 945 \begin{Verbatim} 946 # fwcf commit 947 \end{Verbatim} 948 949 If you want to start over with the default /etc directory, just remove the fwcf 950 partition content with following command: 951 952 \begin{Verbatim} 953 mtd erase fwcf 954 \end{Verbatim} 955 956 You can either use "reboot -f" or "-r" for mtd to reboot the system. 957
Note:
See TracChangeset
for help on using the changeset viewer.
