Changes between Initial Version and Version 1 of doc/install/openwrt

Show
Ignore:
Timestamp:
01/24/06 00:40:57 (15 years ago)
Author:
benoitg
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • doc/install/openwrt

    v1 v1  
     1[[PageOutline(1-3)]] 
     2 
     3= Installing the gateway on a Linksys WRT54G FAQ = 
     4 
     5Due to the lightness of the Wifidog client it is often installed inside the linksys WRT54G. This is why it has it's own FAQ. 
     6 
     7== Q: What do I need ? == 
     8  A: You will need to have basic/full proficiency in a Linux environment 
     9 
     10  You need to re-flash your router with a hacker-friendly firmware called [http://openwrt.org/ OpenWRT]. Follow the [http://openwrt.org/OpenWrtDocs user guide] on the OpenWRT site to get this part done. 
     11 
     12  Do not proceed until you've completed the above. We also recommend you spend some time familiarizing yourself with your new router's OS before introducing Wifidog into that environment. This especially includes the nvram settings, network interfaces and existing interface bridges. 
     13 
     14== Q: Pre-installation == 
     15  A: The same rules apply as the pre-installation in a non-WRT54G environment above. Do not proceed until you've satisfied them.  
     16  In summary: '''Make sure EVERYTHING works first'''. 
     17 
     18== Installation == 
     19 
     20=== Introduction === 
     21 
     22Installation of the client on the WRT54G is a bit tricky.  The space limitations on the device mean there is no compiler in the OpenWRT operating system.  That means that you must compile the client on an external machine then transfer the compiled form onto the router. 
     23 
     24To complicate things more, if you compile your client regularly on a standard x86 desktop the produced binary will not run on the router due to the different type of processor (MIPS) on that router. 
     25 
     26What is needed is called cross-compilation, In that scenario you use an architecture (such as your x86 desktop) to produce binaries explicitly designed to run on a different architecture (your MIPS router). 
     27 
     28The above was the bad news since it makes things sound complicated.  The good news is that it's not too complicated and we've built scripts to make this a snap for you.  As a matter of fact, you've already done this before! 
     29 
     30Remember when you followed the OpenWRT building instructions ? Without knowing it, you already cross-compiled stuff!  You used your desktop to cross-compile an entire operating system for the MIPS architecture which resulted in one compressed firmware image you installed on your router. 
     31 
     32=== Compiling a MIPS-friendly WiFiDog === 
     33 
     34 1. Download the latest [http://sourceforge.net/projects/wifidog WiFiDog tarball from sourceforge]. 
     35 1. Uncompress the tarball, enter the directory 
     36 1. Run the following, replacing ''/usr/local/openwrt/'' with wherever you unpacked the OpenWRT tarball earlier: 
     37{{{ 
     38ipkg/rules BUILDROOT=/usr/local/openwrt/ 
     39}}} 
     40 
     41You're done.  If all is well you should now have a new file named ''wifidog_1.1.0_mipsel.ipk'' (version number may be different depending on the tarball you downloaded). 
     42 
     43=== Getting the new MIPS-friendly WiFiDog onto the router === 
     44 
     45The .ipk is a data file for the simple "ipkg/i-Package" package manager already on your router.  All that's needed now is to copy that file onto your router.  If you have installed the ''dropbear'' SSH daemon package on your router you can use ''scp'' on your desktop to copy the .ipk file to the router.  Otherwise copy that file to any web server you have access to, then use ''wget'' on the router to download the file from the web server. 
     46 
     47Either way, place the file in the ''/tmp/'' directory on the router. 
     48 
     49=== Actual installation === 
     50 
     51Once you have the .ipk file on the router, use this command to install it: 
     52{{{ 
     53ipkg install /tmp/wifidog_1.1.0_mipsel.ipk 
     54}}} 
     55 
     56Once that is successful delete the .ipk file from ''/tmp/'' to free the occupied memory. 
     57 
     58== Configuration, Running and Testing == 
     59 
     60Same as the earlier section in a non-WRT54G environment 
     61 
     62== The intricate link between WiFiDog and OpenWRT == 
     63 
     64Repeat after me: 
     65 
     66'''A WiFiDog RUNNING ON AN OpenWRT INSTALLATION MUST HAVE BEEN COMPILED AGAINST THE SAME OpenWRT BUILDROOT USED TO CREATE THAT INSTALLATION''' 
     67 
     68What does that mean ? 
     69 
     70 1. If you downloaded and compiled OpenWRT yourself, download and compile WiFiDog yourself against the same buildroot - Do not use someone else's pre-compiled WiFiDog 
     71 1. If you downloaded a pre-compiled OpenWRT firmware image: 
     72  1. Ask the person who built it to compile WiFiDog for you against the same buildroot 
     73  1. Or ask them for a copy of their OpenWRT buildroot so you may compile WiFiDog against it 
     74 
     75== I am not comfortable with linux and don't know how to do all this compiling stuff.  Is there an easier way for me to get the WiFiDog client running on a Linksys WRT54G ? == 
     76 
     77You can use an OpenWRT and WiFiDog compiled by someone else.  They must be compiled by the same person against the same OpenWRT buildroot. 
     78 
     79IleSansFil makes it's own pair of OpenWRT images and WiFiDog .ipk compiled files available to the public: 
     80 * You can download a pre-compiled OpenWRT firmware image [http://www.ilesansfil.org/dist/openwrt/ here] 
     81 * And you can download a compatible WiFiDog .ipk file [http://www.ilesansfil.org/dist/wifidog/ here] 
     82 
     83Look in the [http://www.openwrt.org/ OpenWRT] site for instructions on how to re-flash your router with the firmware image (skip any download/building instructions). 
     84 
     85Then follow the above installation instructions for installing the WiFiDog .ipk file into the OpenWRT-flashed router. 
     86 
     87Please note that the above saves you from the knowledge and time needed to compile and produced these binary files.  It is however no magical cure for linux illiteracy.  You need to be proficient enough in a unix environment to be able to telnet/ssh into the router and perform the outlined installation and configuration tasks.  If you do not feel comfortable doing this we advise you consult with someone who is proficient in linux and networking.