Asus WL-500W
From DD-WRT Wiki
Revision as of 22:51, 19 October 2009 (edit) Masterman (Talk | contribs) (→INSTALLING OPTWARE ON YOUR DISK) ← Previous diff |
Current revision (17:47, 31 July 2012) (edit) (undo) Locketine (Talk | contribs) (→Firmware - Added link to the latest eko firmware I'm willing to try) |
||
(38 intermediate revisions not shown.) | |||
Line 8: | Line 8: | ||
== Firmware == | == Firmware == | ||
- | A fresh firmware flash is '''highly''' recommended as well as a clearing of the NVRAM. Starting from a clean slate will provide the smallest chance of encountering a random problem as these units can be some-what temperamental. Flash your WL500W router with either the latest DD-WRT Mega firmware (v24 SP2 or later) or the Eko DD-WRT NEWD/NEWD2 Big, or even a mini USB release that includes full USB support in a mini firmware package. Why bother with the reduced functionality of a mini build when this router has 8MB flash? | + | '''NOTE:''' The 15315 build using the 2.6 kernel no longer supports devices with 4704 processors so do not use this or newer builds. This applies to the Asus WL-500W with a modified CFE as well. <br> |
+ | |||
+ | |||
+ | '''Use only V24 firmware on the WL-500W''' | ||
+ | |||
+ | A fresh firmware flash is '''highly''' recommended as well as a clearing of the NVRAM. Starting from a clean slate will provide the smallest chance of encountering a random problem as these units can be some-what temperamental. Flash your WL500W router with either the latest DD-WRT Mega firmware (v24 SP2 or later) or the [http://www.dd-wrt.com/dd-wrtv2/downloads/others/eko/BrainSlayer-V24-preSP2/2010/08-07-10-r14896/broadcom_K26/dd-wrt.v24-14896_NEWD-2_K2.6_big.bin Eko DD-WRT NEWD/NEWD2 Big], or even a mini USB release that includes full USB support in a mini firmware package. Why bother with the reduced functionality of a mini build when this router has 8MB flash? | ||
There are several advantages. The mini is a fraction of the size, yet provides the vast majority of the functionality of the larger builds. For this small sacrifice, you get a much more lean and efficient setup, including... | There are several advantages. The mini is a fraction of the size, yet provides the vast majority of the functionality of the larger builds. For this small sacrifice, you get a much more lean and efficient setup, including... | ||
Line 56: | Line 61: | ||
'''NOTE''' If attempting to use USB storage with multiple partitions for /opt , /jffs , /mnt, do NOT enable JFFS2. Once the USB storage is configured, JFFS will reside on the mounted drive partition. | '''NOTE''' If attempting to use USB storage with multiple partitions for /opt , /jffs , /mnt, do NOT enable JFFS2. Once the USB storage is configured, JFFS will reside on the mounted drive partition. | ||
- | == | + | ==Using Telnet or SSH to install the printer driver== |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
+ | If you wish to keep it simple, you can use the command line in Windows to telnet to your router. | ||
- | + | Steps: | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | # Make sure Telnet is enabled under '''Services''' on your router. | |
+ | # In Windows XP, go to '''Start->Run''' and type '''cmd'''. A DOS window will pop up. | ||
+ | # Type '''telnet 192.168.1.1''' into the prompt and let it connect. | ||
+ | # Enter the user name (default is '''root''') and press enter. | ||
+ | # Enter the password. Be careful when typing, as the character will not display when you type them in. | ||
+ | # You should now be connected to your router via Telnet with a DD-WRT Splash picture in the DOS prompt. | ||
- | + | You must have JFFS2 enabled for the following to work, as well as an EKO Big build. Brainslayers Mega builds will not allow this to work! If you are not using a Big or Mega firmware, then no need to worry! | |
- | + | Steps: | |
- | + | # Type cd /jffs | |
+ | # Type mkdir -p /jffs/tmp/ipkg | ||
+ | # Type ipkg update | ||
+ | # Type ipkg install p910nd | ||
+ | # Let it install and download the packages. | ||
+ | # Type reboot into the command line. | ||
- | You | + | You're done! |
- | + | == Configure the Printer from a Windows/Linux Client == | |
- | + | If planning to use both a printer and take advantage of the USB storage support with the awesome advantages of Optware, go to [http://www.dd-wrt.com/wiki/index.php/Optware%2C_the_Right_Way THIS] link. The below information is still useful though even after following the link! | |
- | + | ||
- | + | ||
- | One line will say SCSI device sd? For the remainder of this text, replace sd? with the name of your disk. Here's an example of what you're looking for (in this case it's a HDD) | ||
- | scsi0 : SCSI emulation for USB Mass Storage devices | ||
- | Vendor: WD Model: 1600BEV External Rev: 1.05 | ||
- | Type: Direct-Access ANSI SCSI revision: 02 | ||
- | Attached scsi disk sdb at scsi0, channel 0, id 0, lun 0 | ||
- | SCSI device sdb: 312581808 512-byte hdwr sectors (160042 MB) | ||
- | + | *From Windows, go to Control Panel, Printers, Add Printer | |
+ | *Choose Local, create new port Standard TCP/IP Port | ||
+ | *Set Device Type to TCP/IP | ||
+ | *For Hostname or IP field, set to router IP (default is 192.168.1.1) | ||
+ | *On Vista, do not query printer for driver | ||
+ | *On next screen, click custom | ||
+ | *Manually select the printer from list or select Have Disk to add a new printer driver | ||
+ | *Note: On Vista, many newer HP Deskjet printers can be set to HP Deskjet 990c since no Vista drivers are available from HP. | ||
- | Using the command fdisk /dev/sd? You will be creating three partitions: | ||
- | * sd?1 - the /opt partition, where Optware will reside. | ||
- | * sd?2 - the swap partition, where Linux will swap jobs. | ||
- | * sd?3 - the /jffs partition | ||
- | * sd?4 - the data partition, which you will share via Samba or FTP. | ||
- | + | == Adding USB Storage == | |
- | It's important to understand everyone's disk drive configuration will be different. If your drive is 40 GB or smaller, use the smaller set of partition sizes below. If your drive is | ||
- | + | '''ONLY USE HARD DISKS WITH THEIR OWN POWER SUPPLY'S!''' | |
- | + | -USB Flash drives are ok to use. | |
- | - | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | Disk greater than 40 GB | ||
- | ------------------------ | ||
- | */opt 512 megabytes | ||
- | *swap 64 megabytes | ||
- | */jffs 256 megabytes | ||
- | *data remainder of the disk | ||
- | ==Now, to get started== | ||
- | + | USB storage is an ever growing popularity with modern routers. Asus' factory Web-interface is tacky and very buggy. DD-WRT provides a very stable platform for utilizing the twin USB ports on this model router. The section below is perhaps the greatest feature that DD-WRT has to offer as far as USB support is concerned. | |
- | This is an example for a USB HDD. '''Note: The USB HDD MUST be self powered. You can get by this by using a powered hub if using something like a portable HDD''' | ||
- | |||
- | Also, to prevent the HDD from spinning down, go here http://www.dd-wrt.com/wiki/index.php/USB_storage#Prevent_Harddisk_Spindown | ||
- | |||
- | Code (the '''?''' are the drive letters, make sure you choose the correct one!) The '''bold''' texts are the '''commands''' | ||
- | |||
- | '''# fdisk /dev/sd?''' | ||
- | Command (m for help): '''p''' | ||
- | Disk /dev/sd?: 64 heads, 63 sectors, 621 cylinders | ||
- | Units = cylinders of 4032 * 512 bytes | ||
- | Command (m for help): '''n''' | ||
- | Command action | ||
- | e extended | ||
- | p primary partition (1-4) | ||
- | '''p''' | ||
- | Partition number (1-4): '''1''' | ||
- | First cylinder (1-621, default 1):'''<HIT ENTER>''' | ||
- | Using default value 1 | ||
- | Last cylinder or +size or +sizeM or +sizeK (1-621, default 621): '''+256M''' '''<HIT ENTER>''' | ||
- | Command (m for help): '''n''' | ||
- | Command action | ||
- | e extended | ||
- | p primary partition (1-4) | ||
- | '''p''' | ||
- | Partition number (1-4): '''2''' | ||
- | First cylinder (197-621, default 197):'''<HIT ENTER>''' | ||
- | Using default value 197 | ||
- | Last cylinder or +size or +sizeM or +sizeK (197-621, default 621): '''+64M''' '''<HIT ENTER>''' | ||
- | Command (m for help): '''n''' | ||
- | Command action | ||
- | e extended | ||
- | p primary partition (1-4) | ||
- | '''p''' | ||
- | Partition number (1-4): '''3''' | ||
- | First cylinder (197-621, default 197):'''<HIT ENTER>''' | ||
- | Using default value 621 | ||
- | Last cylinder or +size or +sizeM or +sizeK (197-621, default 621): '''+128M''' '''<HIT ENTER>''' | ||
- | Command (m for help): '''n''' | ||
- | Command action | ||
- | e extended | ||
- | p primary partition (1-4) | ||
- | '''p''' | ||
- | Partition number (1-4): '''4''' | ||
- | First cylinder (197-621, default 197):'''<HIT ENTER>''' | ||
- | Using default value 1 | ||
- | Last cylinder or +size or +sizeM or +sizeK (197-621, default 621): '''<HIT ENTER>''' | ||
- | Command (m for help): '''t''' | ||
- | Partition number (1-4): '''2''' | ||
- | Hex code (type L to list codes): '''82''' | ||
- | Changed system type of partition 2 to 82 (Linux swap) | ||
- | Command (m for help): '''p''' | ||
- | Disk /dev/sd?: 64 heads, 63 sectors, 621 cylinders | ||
- | Units = cylinders of 4032 * 512 bytes | ||
- | Device Boot Start End Blocks Id System | ||
- | /dev/sd?1 * 1 196 395104+ 83 Linux | ||
- | /dev/sd?2 197 262 133056 82 Linux swap | ||
- | /dev/sd?3 263 458 395136 83 Linux | ||
- | Command (m for help): '''w''' | ||
- | |||
- | '''If you get a message saying that the current table is in use and will be executed on next reboot, then do it! Make SURE though that you open a terminal, do a sudo su - followed by an fdisk /dev/sd? and type '''p''' as this will verify the partition table''' | ||
- | |||
- | ==Format the opt and data partitions, and prepare the swap partition== | ||
- | |||
- | '''# mke2fs -j -m 1 -L Optware /dev/sd?1''' | ||
- | mke2fs 1.18, 11-Nov-1999 for EXT2 FS 0.5b, 95/08/09 | ||
- | Filesystem label=Optware | ||
- | OS type: Linux | ||
- | Block size=4096 (log=2) | ||
- | Fragment size=4096 (log=2) | ||
- | 122112 inodes, 243964 blocks | ||
- | 12198 blocks (5.00%) reserved for the super user | ||
- | First data block=0 | ||
- | 8 block groups | ||
- | 32768 blocks per group, 32768 fragments per group | ||
- | 15264 inodes per group | ||
- | Superblock backups stored on blocks: | ||
- | 32768, 98304, 163840, 229376 | ||
- | Writing inode tables: done | ||
- | Writing superblocks and filesystem accounting information: done | ||
- | |||
- | '''# mke2fs -j -m 1 -L Shared /dev/sd?3''' | ||
- | mke2fs 1.18, 11-Nov-1999 for EXT2 FS 0.5b, 95/08/09 | ||
- | Filesystem label=Shared | ||
- | OS type: Linux | ||
- | Block size=4096 (log=2) | ||
- | Fragment size=4096 (log=2) | ||
- | 122112 inodes, 243964 blocks | ||
- | 12198 blocks (5.00%) reserved for the super user | ||
- | First data block=0 | ||
- | 8 block groups | ||
- | 32768 blocks per group, 32768 fragments per group | ||
- | 15264 inodes per group | ||
- | Superblock backups stored on blocks: | ||
- | 32768, 98304, 163840, 229376 | ||
- | Writing inode tables: done | ||
- | Writing superblocks and filesystem accounting information: done | ||
- | |||
- | '''# mke2fs -j -m 1 -L Data /dev/sd?4''' | ||
- | mke2fs 1.18, 11-Nov-1999 for EXT2 FS 0.5b, 95/08/09 | ||
- | Filesystem label=Data | ||
- | OS type: Linux | ||
- | Block size=4096 (log=2) | ||
- | Fragment size=4096 (log=2) | ||
- | 122112 inodes, 243964 blocks | ||
- | 12198 blocks (5.00%) reserved for the super user | ||
- | First data block=0 | ||
- | 8 block groups | ||
- | 32768 blocks per group, 32768 fragments per group | ||
- | 15264 inodes per group | ||
- | Superblock backups stored on blocks: | ||
- | 32768, 98304, 163840, 229376 | ||
- | Writing inode tables: done | ||
- | Writing superblocks and filesystem accounting information: done | ||
- | |||
- | |||
- | '''# mkswap /dev/sd?2''' | ||
- | |||
- | '''Now your disk drive is partitioned and formatted for Linux!''' If you are a windows user, you can either proceed (recommended) using Linux (Ubuntu comes with FireFox already installed) or shut down the Linux distro you used, and make sure the boot disk pops out, as you wll need to get back to windows. | ||
- | |||
- | ==Connecting the Drive to your Router== | ||
- | |||
- | 1. You should have the JFFS file system enabled on your router. On the DD-WRT web GUI screen, the Administration/Management tab contains this option in an area labeled JFFS2 Support. Enable both options and reboot your router. After it reboots, the first option (JFFS2) will remain enabled and the second option (Clean JFFS2) will be disabled. | ||
- | |||
- | 2. On the DD-WRT web GUI screen, on the Services tab enable the options for: | ||
- | |||
- | * Core USB support | ||
- | * USB 2.0 support | ||
- | * USB storage support | ||
- | * ext2/ext3 File System support | ||
- | |||
- | 2.1 From the DD-WRT web GUI screen, on the Administration/Management tab, scroll to the bottom and click on Reboot Router. | ||
- | |||
- | 3. After a minute, start a terminal session to your router or use a program like [http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html PuTTY]. | ||
- | |||
- | 4. Disconnect the disk from your computer and connect it to your router. | ||
- | *Windows users, you must install a third party linux driver to be able to read the contents of the drive | ||
- | |||
- | 5. In the terminal session, use the command dmesg | more to insure your disk drive is recognized. Here's an example of what it should look like on a USB HDD | ||
- | |||
- | SCSI subsystem driver Revision: 1.00 | ||
- | Initializing USB Mass Storage driver... | ||
- | usb.c: registered new driver usb-storage | ||
- | USB Mass Storage support registered. | ||
- | Journalled Block Device driver loaded | ||
- | hub.c: new USB device 00:03.1-1, assigned address 2 | ||
- | hub.c: USB hub found | ||
- | hub.c: 4 ports detected | ||
- | usb.c: registered new driver usblp | ||
- | printer.c: v0.13: USB Printer Device Class driver | ||
- | hub.c: new USB device 00:03.1-1.3, assigned address 3 | ||
- | scsi0 : SCSI emulation for USB Mass Storage devices | ||
- | Vendor: WD Model: 1600BEV External Rev: 1.05 | ||
- | Type: Direct-Access ANSI SCSI revision: 02 | ||
- | Attached scsi disk sda at scsi0, channel 0, id 0, lun 0 | ||
- | SCSI device sda: 312581808 512-byte hdwr sectors (160042 MB) | ||
- | Partition check: | ||
- | /dev/scsi/host0/bus0/target0/lun0: p1 p2 p3 | ||
- | WARNING: USB Mass Storage data integrity not assured | ||
- | USB Mass Storage device found at 3 | ||
- | |||
- | 6. Change to the directory /dev/scsi/host0/bus0/target0/lun0 '''(Flash drives, use this: /dev/discs/disc0/disc)''' and list the files there. There should be one entry for the hard disk drive, and one for each of the three disk partitions | ||
- | |||
- | '''# cd /dev/scsi/host0/bus0/target0/lun0''' | ||
- | '''# ls -la''' | ||
- | drwxr-xr-x 1 root root 0 Jan 1 00:00 . | ||
- | drwxr-xr-x 1 root root 0 Jan 1 00:00 .. | ||
- | brw------- 1 root root 8, 0 Jan 1 00:00 disc | ||
- | brw------- 1 root root 8, 1 Jan 1 00:00 part1 | ||
- | brw------- 1 root root 8, 2 Jan 1 00:00 part2 | ||
- | brw------- 1 root root 8, 2 Jan 1 00:00 part3 | ||
- | |||
- | 7. Change to the JFFS2 directory, and create directories for mounting the disk partition | ||
- | |||
- | '''# cd /jffs''' | ||
- | '''# mkdir mnt''' | ||
- | '''# mkdir mnt/disk1''' | ||
- | |||
- | 8. Test mount your new opt and data partitions. In the terminal window, issue these commands '''(Flash drives, use this: /dev/discs/disc0/disc /part?)''' | ||
- | |||
- | '''# mount /dev/scsi/host0/bus0/target0/lun0/part1 /opt''' | ||
- | '''# mount /dev/scsi/host0/bus0/target0/lun0/part3 /jffs/mnt/disk1''' | ||
- | '''# mount''' | ||
- | rootfs on / type rootfs (rw) | ||
- | /dev/root on / type squashfs (ro) | ||
- | none on /dev type devfs (rw) | ||
- | proc on /proc type proc (rw) | ||
- | ramfs on /tmp type ramfs (rw) | ||
- | /dev/mtdblock/4 on /jffs type jffs2 (rw) | ||
- | /dev/scsi/host0/bus0/target0/lun0/part3 on /jffs/mnt/disk1 type ext3 (rw) | ||
- | /dev/scsi/host0/bus0/target0/lun0/part1 on /opt type ext3 (rw) | ||
- | |||
- | 9. On the '''DD-WRT web GUI screen''', on the Administration/Commands tab, click the Edit button, then enter your disk mount commands '''(Flash drives, use this: /dev/discs/disc0/disc /part?)''' | ||
- | |||
- | sleep 20 && mount /dev/scsi/host0/bus0/target0/lun0/part1 /opt | ||
- | sleep 20 && mount /dev/scsi/host0/bus0/target0/lun0/part3 /jffs/mnt/disk1 | ||
- | |||
- | Click on '''Save Startup''' to store the commands. Your terminal session will be disconnected. | ||
- | |||
- | 10. From the DD-WRT web GUI screen, on the Administration/Management tab, scroll to the bottom and click on Reboot Router. | ||
- | |||
- | 11. After a minute, restart your terminal session and issue the mount command again. You should see both of your disk partitions mounted, even after the router has rebooted. | ||
- | |||
- | '''# mount''' | ||
- | rootfs on / type rootfs (rw) | ||
- | /dev/root on / type squashfs (ro) | ||
- | none on /dev type devfs (rw) | ||
- | proc on /proc type proc (rw) | ||
- | ramfs on /tmp type ramfs (rw) | ||
- | /dev/mtdblock/4 on /jffs type jffs2 (rw) | ||
- | /dev/scsi/host0/bus0/target0/lun0/part3 on /jffs/mnt/disk1 type ext3 (rw) | ||
- | /dev/scsi/host0/bus0/target0/lun0/part1 on /opt type ext3 (rw) | ||
- | |||
- | Check under the USB tab, and look at the disk info part. Everything should be there. | ||
- | |||
- | Example for a USB Flash Drive with only a data and swap partition. | ||
- | |||
- | --- /dev/discs/disc0/disc | ||
- | Block device, size 7.465 GiB (8015314944 bytes) | ||
- | DOS/MBR partition map | ||
- | Partition 1: 7.009 GiB (7526098944 bytes, 14699412 sectors from 63) | ||
- | Type 0x83 (Linux) | ||
- | Ext3 file system | ||
- | UUID BC30D9C0-1CEB-4BD0-A3D8-48641B26A8F0 (DCE, v4) | ||
- | Volume size 7.461 GiB (8011386880 bytes, 1955905 blocks of 4 KiB) | ||
- | Partition 2: 462.8 MiB (485291520 bytes, 947835 sectors from 14699475) | ||
- | Type 0x82 (Linux swap / Solaris) | ||
- | Blank disk/medium | ||
- | Status: Mounted on /mnt | ||
- | |||
- | ==INSTALLING OPTWARE ON YOUR DISK== | ||
- | |||
- | After JFFS is enabled and disk partitions are mounting, you can download and install the Optware packages that provide more Linux functionality to the router. These will be installed onto the hard disk drive, NOT on the router itself. Remember the /opt directory on your router actually resides on the disk drive. | ||
- | |||
- | 1. Use the command '''ipkg update''' to update your ipkg repositories | ||
- | |||
- | '''# ipkg update''' | ||
- | Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/Packages ... | ||
- | Connecting to ipkg.nslu2-linux.org[140.211.166.82]:80 | ||
- | Packages 100% |**********************************************| 259 KB 00:00:00 ETA | ||
- | Done. | ||
- | |||
- | 2. Now download the Optware installation script from the web to the '''/tmp''' directory | ||
- | |||
- | '''# wget http://www.3iii.dk/linux/optware/optware-install-ddwrt.sh -O - | tr -d '\r' > /tmp/optware-install.sh''' | ||
- | |||
- | 3. Execute the Optware installation script you just downloaded. It will take some time to download and configure everything, so verify it starts running, then take a break and come back in ten or fifteen minutes. | ||
- | |||
- | '''# sh /tmp/optware-install.sh''' | ||
- | Checking system config ... | ||
- | Using 192.168.1.1 as default gateway. | ||
- | Using the following nameserver(s): | ||
- | nameserver 192.168.1.30 | ||
- | Warning: local nameserver is different than gateway! | ||
- | Check config or enter: | ||
- | sed -i s/192.168.*/192.168.1.1/ /tmp/resolv.conf | ||
- | to correct this. | ||
- | Installing package uclibc-opt_0.9.28-13_mipsel.ipk ... | ||
- | Connecting to ipkg.nslu2-linux.org[140.211.166.82]:80 | ||
- | uclibc-opt_0.9.28-12 100% |***********************************************| 832 KB 00:00:00 ETA | ||
- | Updating /opt/etc/ld.so.cache | ||
- | /opt/sbin/ldconfig: can't create /opt/etc/ld.so.cache~ (No such file or directory) | ||
- | Installing package ipkg-opt_0.99.163-9_mipsel.ipk ... | ||
- | Connecting to ipkg.nslu2-linux.org[140.211.166.82]:80 | ||
- | ipkg-opt_0.99.163-9_ 100% |***********************************************| 75896 00:00:00ETA | ||
- | Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/Packages.gz | ||
- | Inflating http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/Packages.gz | ||
- | Updated list of available packages in /opt/lib/ipkg/lists/optware | ||
- | Successfully terminated. | ||
- | Installing uclibc-opt (0.9.28-12) to /opt/... | ||
- | Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/uclibc-opt_0.9.28-12_mipsel.ipk | ||
- | package uclibc-opt suggests installing ipkg-opt | ||
- | Configuring uclibc-opt | ||
- | Updating /opt/etc/ld.so.cache | ||
- | Successfully terminated. | ||
- | Installing ipkg-opt (0.99.163-9) to /opt/... | ||
- | Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/ipkg-opt_0.99.163-9_mipsel.ipk | ||
- | Configuring ipkg-opt | ||
- | Successfully terminated. | ||
- | |||
- | '''This will take an enormous amount of time if you didn't follow the above manual drive mount procedures, and will write to the router JFFS flash, which is NOT good''' | ||
- | |||
- | 4. Now install the busybox packages including links for busybox commands | ||
- | |||
- | '''# /opt/bin/ipkg-opt install busybox-base''' | ||
- | '''# /opt/bin/ipkg-opt install busybox''' | ||
- | '''# /opt/bin/ipkg-opt install busybox-links''' | ||
- | |||
- | 5. In your terminal session, update your default executable PATH to look for the new Optware software before the DD-WRT software | ||
- | |||
- | '''# export PATH=/opt/bin:/opt/sbin:${PATH}''' | ||
+ | If the below is not your cup of tea, the standard options in the DD-WRT Web-interface under Services -> USB will provide you with the basics. | ||
==Installing Frater's Optware== | ==Installing Frater's Optware== | ||
- | This is the latest, greatest and easiest way to enable Optware on your Router | + | This is the latest, greatest and easiest way to enable Optware on your Router, and add an enormous amount of flexibility to it. It is highly recommended. |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | Please see [[Optware, the Right Way]] for more detailed instruction | |
- | + | ||
- | 6. Create a shared data directory on your hard disk drive | ||
- | + | Potential services that you may want to incorporate through Optware: | |
- | + | ||
- | + | ||
- | + | * Bash instead of shell in busybox (LFS support) | |
- | + | * '''Automounting and unmounting of storage device partitions''' | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
+ | * '''Network printing''' | ||
+ | * Watchprinter | ||
- | + | * '''Torrent transmission with watchdog''' | |
- | + | * Hotmount | |
- | + | * '''Pre-configured samba share''' | |
- | + | * Reverse proxy featuring pound | |
+ | * Service tool | ||
- | + | * '''Xinetd''' | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
+ | * Pound | ||
- | + | * Asterisk | |
- | + | * Lighttpd | |
- | + | ||
+ | * Vlighttpd | ||
- | + | * Countryblock | |
- | + | * AsiaBlock | |
- | + | * Services running as other users than root | |
- | + | * Vim with proper terminal support | |
- | + | * Twonky Media | |
+ | * News Server | ||
- | + | * Other various useful tools | |
- | 14. After a minute, browse your network again to insure the drive is shared after the router reboots | ||
- | == | + | ==Reversion to Asus Firmware== |
- | + | You will need the [http://support.asus.com/download/download.aspx?SLanguage=en-us&model=WL-500W Restoration Utility] and the [http://www.dd-wrt.com/phpBB2/download.php?id=13211 Firmware]. | |
- | + | * Reset the router to defaults by the 30/30/30 method but don't power cycle after the last 30 second hold. The router's Power LED should be blinking indicating it is in Restore mode. | |
- | + | ||
- | + | ||
- | + | ||
- | | + | |
+ | * Set a static IP of 192.168.1.10 and 255.255.255.0 on your PC. | ||
+ | * Disable your Wireless devices and connect a cable to one of the LAN ports | ||
+ | * Start the Restoration utility and select the original Asus Firmware. Click Update. | ||
+ | * When it completes the install, wait 5 minutes, then power cycle the router. | ||
+ | * You should be able to access the unit at 192.168.1.1 with un/pw of admin/admin | ||
- | + | [[Category:Asus guides]] |
Current revision
Contents |
[edit] ASUS WL500W
[edit] Introduction
This How To is intended to walk someone through configuring a basic USB printer and a USB storage device on their ASUS WL-500W router. The majority of the information comes from the other ASUS WL500 series Wiki's as well as other websites. There are great USB how to articles on the DD-WRT wiki, so if what is listed in this how-to does not suit your needs, search the Wiki and the Forums! And remember Google is your freind!
[edit] Firmware
NOTE: The 15315 build using the 2.6 kernel no longer supports devices with 4704 processors so do not use this or newer builds. This applies to the Asus WL-500W with a modified CFE as well.
Use only V24 firmware on the WL-500W
A fresh firmware flash is highly recommended as well as a clearing of the NVRAM. Starting from a clean slate will provide the smallest chance of encountering a random problem as these units can be some-what temperamental. Flash your WL500W router with either the latest DD-WRT Mega firmware (v24 SP2 or later) or the Eko DD-WRT NEWD/NEWD2 Big, or even a mini USB release that includes full USB support in a mini firmware package. Why bother with the reduced functionality of a mini build when this router has 8MB flash?
There are several advantages. The mini is a fraction of the size, yet provides the vast majority of the functionality of the larger builds. For this small sacrifice, you get a much more lean and efficient setup, including...
- A nearly 5.0MB JFFS2 partition
- Nearly 90% free system memory on a fully configured system
- Full USB support, easily enabled from the web GUI (just like Mega)
- Faster, leaner (Merely observational, but noteworthy)
IMPORTANT
Consider the following or you run the risk of BRICKING your router:
Brainslayers mega flash size - 7.33MB
Eko's Big Flash size - 5.9MB
Now, the error only occurs when JFFS2 is enabled and the router reboots, so you are safe if you DONT enable JFFS2.
Total available JFFS2 size for BS's build is 640KB which overwhelms the kernel and causes a panic. Even using a storage device with the command mount -o bind /mnt/jffs /jffs will still cause a kernel panic.
Eko's JFFS2 partition size is 1640KB+, allowing much more room.
I tested this on BS's 12996,12874 and 12533 builds and partially bricked my router several times. (A simple power disconnect for 30 secs will allow it to recover)
Eko's build however works flawlessly AND provides the SAME features (except for connection warning) as BS's.
One thing I am still unsure of is why this particular model Asus router is subject to this bug, but in the mean time, I suggest using Eko's Big build until the dev's can work it out..
[edit] Initial Prep
- Complete your standard WAN, LAN, DHCP configuration so that your router has working Internet access
- Note: This guide will not explain these details, since they are very well documented elsewhere
- Under Services, enable:
- Secure Shell (SSHd)
- Telnet (optional, select this if you have no idea how to connect to an SSH server)
- USB modules which you need (Core USB support, UHCI, OHCI, USB 2.0, USB Storage, ext2/ext3, FAT, USB Printing, Automatic drive mount)
For example, if you only want to install Optware packages on 2.0 device you can enable : Core USB support, USB 2.0, USB Storage, ext2/ext3 FS support
- Save & then Apply Settings
- Under Administration > Management:
- Enable JFFS2 Support
- Clean JFFS2
- Save & then Apply Settings
- Reboot Router
NOTE If attempting to use USB storage with multiple partitions for /opt , /jffs , /mnt, do NOT enable JFFS2. Once the USB storage is configured, JFFS will reside on the mounted drive partition.
[edit] Using Telnet or SSH to install the printer driver
If you wish to keep it simple, you can use the command line in Windows to telnet to your router.
Steps:
- Make sure Telnet is enabled under Services on your router.
- In Windows XP, go to Start->Run and type cmd. A DOS window will pop up.
- Type telnet 192.168.1.1 into the prompt and let it connect.
- Enter the user name (default is root) and press enter.
- Enter the password. Be careful when typing, as the character will not display when you type them in.
- You should now be connected to your router via Telnet with a DD-WRT Splash picture in the DOS prompt.
You must have JFFS2 enabled for the following to work, as well as an EKO Big build. Brainslayers Mega builds will not allow this to work! If you are not using a Big or Mega firmware, then no need to worry!
Steps:
- Type cd /jffs
- Type mkdir -p /jffs/tmp/ipkg
- Type ipkg update
- Type ipkg install p910nd
- Let it install and download the packages.
- Type reboot into the command line.
You're done!
[edit] Configure the Printer from a Windows/Linux Client
If planning to use both a printer and take advantage of the USB storage support with the awesome advantages of Optware, go to THIS link. The below information is still useful though even after following the link!
- From Windows, go to Control Panel, Printers, Add Printer
- Choose Local, create new port Standard TCP/IP Port
- Set Device Type to TCP/IP
- For Hostname or IP field, set to router IP (default is 192.168.1.1)
- On Vista, do not query printer for driver
- On next screen, click custom
- Manually select the printer from list or select Have Disk to add a new printer driver
- Note: On Vista, many newer HP Deskjet printers can be set to HP Deskjet 990c since no Vista drivers are available from HP.
[edit] Adding USB Storage
ONLY USE HARD DISKS WITH THEIR OWN POWER SUPPLY'S!
-USB Flash drives are ok to use.
USB storage is an ever growing popularity with modern routers. Asus' factory Web-interface is tacky and very buggy. DD-WRT provides a very stable platform for utilizing the twin USB ports on this model router. The section below is perhaps the greatest feature that DD-WRT has to offer as far as USB support is concerned.
If the below is not your cup of tea, the standard options in the DD-WRT Web-interface under Services -> USB will provide you with the basics.
[edit] Installing Frater's Optware
This is the latest, greatest and easiest way to enable Optware on your Router, and add an enormous amount of flexibility to it. It is highly recommended.
Please see Optware, the Right Way for more detailed instruction
Potential services that you may want to incorporate through Optware:
- Bash instead of shell in busybox (LFS support)
- Automounting and unmounting of storage device partitions
- Network printing
- Watchprinter
- Torrent transmission with watchdog
- Hotmount
- Pre-configured samba share
- Reverse proxy featuring pound
- Service tool
- Xinetd
- Pound
- Asterisk
- Lighttpd
- Vlighttpd
- Countryblock
- AsiaBlock
- Services running as other users than root
- Vim with proper terminal support
- Twonky Media
- News Server
- Other various useful tools
[edit] Reversion to Asus Firmware
You will need the Restoration Utility and the Firmware.
- Reset the router to defaults by the 30/30/30 method but don't power cycle after the last 30 second hold. The router's Power LED should be blinking indicating it is in Restore mode.
- Set a static IP of 192.168.1.10 and 255.255.255.0 on your PC.
- Disable your Wireless devices and connect a cable to one of the LAN ports
- Start the Restoration utility and select the original Asus Firmware. Click Update.
- When it completes the install, wait 5 minutes, then power cycle the router.
- You should be able to access the unit at 192.168.1.1 with un/pw of admin/admin