Quick-Start
Steps Overview
- Download OpenWRT kernel-flash image and Download the Debian Etch root filesystem
- Flash Asus WL-550GD
- Prepare USB-Stick/USB-Disk with the etch root filesystem
- Boot the router
- SSH/Telnet 10.0.2.1
Use the instructions and supplied software/binaries you find on this site at your own risk!
Step 1: Download kernel and Debian root filesystem image
Download the OpenWRT kernel and the Debian root filesystem image to your home directory from the download section: latest
Step 2: Flash Asus WL500GD
- Put the Asus router into Failure Mode. The router will not boot, bur instead configure all LAN ports to 192.168.1.1 and starts an TFTP server and waits for new flash image
- Unplug powercable from the router
- Find a pen or other small object and press the reset button on the back of the router
- Plug the power cable into the router
- After a couple of seconds, power LED starts to FLASH – you are now in Failure Mode
- See wiki.openwrt.org/OpenWrtDocs/Hardware/Asus/WL500GD for more information on TFPT and Failure Mode
- Configure your computer to 192.168.1.2 on the network interface connected to one of the LAN ports on the router
- ping 192.168.1.1 – router should respond
- Use TFTP to flash the router:
- Now the router has been flashed
johan@jvz:~$ /usr/bin/tftp 192.68.1.1 tftp> bin tftp> tra Packet tracing on. tftp> put openwrt-brcm47xx-squashfs.trx
Give the router a minute or so to write the new image to it’s flash. This is important!
Step 3: Prepare USB-Stick/USB-Disk with the etch root filesystem
- We need an USB-Disk or Stick with at least 250M. A 512M would be perfect. For the rest of this Quickstart /dev/sdb is assumed to be the USB-Disk we are going to use.
- Create two partitions on it with fdisk /dev/sdb:
/dev/sdb1 - Linux - Rest of available size /dev/sdb2 - Swap - 32MB
- Create an ext3 filesystem and make sure that fsck is not run by Debian boot scripts. Debian by default tries to fix problems on filesystems, but if it can’t it will stop booting and present a login prompt. Little awkward if you don’t have a serial console to work with
mkfs.ext3 /dev/sbd1 tune2fs -c 0 -i 0 /dev/sdb1
- Create swap partition
mkswap /dev/sdb2
- Mount the ext3 root partition
mkdir -p /mnt/debwrt mount /dev/sdb1 /mnt/debwrt
- Untar the downloaded Debian root filesystem to /mnt/debwrt (/dev/sdb1)
cd /mnt/debwrt tar xjvf ~/debwrt-rootfs-20090115-1.tar.bz2
- Unmount
umount /mnt/debwrt
Step 4: Boot the router
- Connect the USB-Disk or Stick to the router
- Unplug powercable and replug powercable
- Give the router a minute or two to boot – while in the meantime the USB-Disk/USB-Stick LED should flash continuesly
Step 5: SSH or Telnet to the router
- Now, if everything worked well, the router should have been booted into Debian Etch. If you have an serial console, it should look like this: bootlog. By default all LAN ports (including the one with WAN as description) are configured the IP-address 10.0.2.1. So you might need to reconfigure your computers network interface back from 192.168.1.2 to something like 10.0.2.2. And do a ping 10.0.2.1. see if the router responds.
- ssh root@10.0.2.1 with password “angel” will log you into the box and from there you can happily play with your Debian Etch installation.
Note: if you played with the network settings, and you made a mistake and can’t connect to the router; mount the USB-Stick/Disk to your computer, undo all configuration errors and reconnect the USB Disk/Stick to the router.
Enjoy Debian Etch on your Router!!!
Amain – amain@debwrt.net