I actually wrote this HOWTO before I found out that there was another one. I am still posting it thinking that maybe someone will take this as a useful thing and not spam
=========
Foolproof installation of OpenWrt Kamikaze 7.09 on ASUS WL-500G Premium
1. Preparations - Before we start the actual installation here is a list of what you need:
* The router
* A Windows machine
* Proper cables for the router (power and network cable – bundled with the router)
* A tftp client – Windows has one by default available in the command prompt however you can get a better freeware one from here if you wish.
* Putty for logging in to your newly installed OpenWrt firmware.
2. This part explains the process of installing the OpenWrt firmware on the router.
* Download the latest stable build of the firmware from the OpenWrt site. I used Kamikaze; you can get the file from here. Save it to c:\
* Connect the router to the computer using the provided network cable and any of the LAN ports. Do NOT connect the cable to the WAN port!
* Reset the router to the factory defaults – do this via the official firmware. The purpose of resetting the router is to set its IP to 192.168.1.1 if the router already has this IP, resetting is not necessary.
* Assign the PC you are working from the static IP address of 192.168.1.10 (subnet mask: 255.255.255.0, preferred DNS server: 192.168.1.1)
* It's time to reset the router to its factory defaults. Keep the reset button pressed for 10 seconds while the router is powered and running, and then unplug the power cord while keeping the reset button pressed. Keep it unplugged for a couple of seconds then plug back the power cord. Keep the reset button pressed for a couple of seconds then release it. The power led should be flashing once per second.
* Open a command prompt and cd to the directory where the firmware (*.trx file) is stored. Issue the following command to upload the OpenWrt firmware (replace the name of the file with the one you downloaded):
tftp -i 192.168.1.1 PUT openwrt-brcm-2.4-squashfs.trx
This is not guaranteed to work the first time, you might receive timeouts but if that happens try and upload it again as it will eventually work and you will receive a confirmation message
* Start the newly installed firmware by resetting the router – unplug the power cord for a few seconds. You can ping the router (cmd: ping -t 192.168.1.1) to see when it finishes booting.
3. Basic configuration of the router.
* Now that the router is up and running you can telnet to it (cmd: telnet 192.168.1.1 ) and login as root. The first thing to do is set a password; do this by issuing the command passwd <enter> then typing the password twice.
* At this point you can connect the cable to the WAN port, however things will not work properly if your ISP has a lockdown on your MAC address. If so, Google will help you on the process of changing the MAC address
* Having connected the internet cable to the WAN port, reboot the router by issuing the reboot command in the telnet session opened earlier. It might take a couple of minutes for the router to reboot and setup the WAN.
At this point it is worth noting that the OpenWrt does not come with a preinstalled graphical web interface and everything can be done only in the command line.
4. Installing the X-Wrt web interface.
* After the reboot of the router ssh is now active and you will use it instead of telnet. Open putty and open a ssh connection to 192.168.1.1 The user is root and the password is the one that has been set earlier.
* The ipkg config file needs to be edited to add the X-Wrt repositories. Issue the following command: vim /etc/ipkg.conf
The basic stuff you need to know about vim (the editor which is now open) is this:
- Use the arrows to move through the document
- Use i to enter edit mode
- Use Esc to exit edit mode
- While in view mode press :wq to write the file and quit. Double check before saving the file.
* Append the following line at the end of the file
src X-Wrt http://downloads.x-wrt.org/xwrt/kamikaze/7.09/brcm-2.4/packages
Your ipkg config file should probably look like this:
src release http://downloads.openwrt.org/kamikaze/7.09/brcm-2.4/packages
src packages http://downloads.openwrt.org/kamikaze/packages/mipsel
dest root /
dest ram /tmp
src X-Wrt http://downloads.x-wrt.org/xwrt/kamikaze/7.09/brcm-2.4/packages
* Now that the repositories have been added, issue the following commands
ipkg update
ipkg install webif
* Reboot the router by issuing the reboot command and wait
* Access the web interface by going to http://192.168.1.1 and logging in with the user root and the password set earlier.
You now should have a functional OpenWrt firmware with web interface. From there it's damn straightforward so configuring the router should be fairly easy.
=========
References:
Overview of the network interfaces concept in OpenWrt – link
General installation info - link
OpenWrt documentation for Kamikaze – link
Installing OpenWrt howto – link
Asus WL-500G Premium specs at OpenWrt wiki – link
X-Wrt wiki – link
X-Wrt on White Russian screenshots - link
(Last edited by ghostwriter on 20 Jan 2008, 20:17)