Asus WL-500W

From DD-WRT Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 21:57, 13 January 2010 (edit)
Masterman (Talk | contribs)
(Connecting the Drive to your Router)
← 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)
 
(14 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 97: Line 102:
*Note: On Vista, many newer HP Deskjet printers can be set to HP Deskjet 990c since no Vista drivers are available from HP. *Note: On Vista, many newer HP Deskjet printers can be set to HP Deskjet 990c since no Vista drivers are available from HP.
-== Print Services == 
-Make sure it is enabled under the Services->USB tab. If it isn't select it, click save, wait 10 secs, then click apply. This will reboot your router. Also make sure Automatic Drive Mount is enabled.  
-  
-*In the drop down menu, you have three choices. /mnt /opt /jffs. You will need to select /jffs for the Print server to work, as well as clicking '''Apply Settings'''. 
-*Plug the USB cord into the router, give it a few seconds and it should recognize. If not, your configuration settings are incorrect, or you do not have a build that is V24 sp2 or later. 
-  
-The following link will assist with any problems: 
-(keep in mind that it was composed before SP2, and is for the 520gU, which doesn't matter, but will offer the old-school way of setting it up/diagnosing problems) http://wl520gu.googlepages.com/ 
== Adding USB Storage == == Adding USB Storage ==
Line 112: Line 109:
'''ONLY USE HARD DISKS WITH THEIR OWN POWER SUPPLY'S!''' '''ONLY USE HARD DISKS WITH THEIR OWN POWER SUPPLY'S!'''
 +-USB Flash drives are ok to use.
-This section will be dedicated to both a USB flash drive and other USB storage devices such as hard disks. It is also recommended that the drive be formatted/partitioned to a Linux format (ext2/3). You may use FAT or FAT32, but not only will throughput speeds be slowed down, file sizes are a problem (FAT32 is limited to 4GB file sizes), and you will not be able to use optware or Linux swap. The following is HIGHLY technical and even those with alot of experience may have problems. It takes alot of time and patience to make this work properly and in the fashion you want it to. For novice users, I recommend just sticking to the basics until you understand what really is at play here. 
 +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.
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
-==Installing Optware on your Disk==+
- +
- +
- +
-'''OLD Method, see Fraters optware below'''+
- +
- +
- +
- +
-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}'''+
==Installing Frater's Optware== ==Installing Frater's Optware==
-* '''This is still a Work in Progress, so this Wiki will be updated/modified frequently'''+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.
- +
-This is the latest, greatest and easiest way to enable Optware on your Router. It is '''recommended''' that you have a router with USB capable storage. Also, you wont be needing JFFS2, so DISABLE it.+
- +
- +
-Services that will be installed:+
- +
- +
-*Bash instead of shell in busybox (LFS support)+
- +
-*'''Automounting and unmounting of storage device partitions'''+
- +
-*'''Network printing'''+
- +
-*'''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+
- +
- +
- +
-In my opinion, '''Everyone''' with a router that has '''storage device capabilities''' should take advantage of this! You will NOT regret it, even if it can be a time consuming process!+
- +
- +
- +
-Once you have all your partitions set on the external device, do the following:+
- +
-1. In the DD-WRT web GUI screen, on the Services USB tab enable the options for:+
- +
-* Core USB support+
-* USB 2.0 support+
-* USB storage support+
-* Printer Support (optional)+
-* ext2/ext3 File System support+
- +
- +
-2. From the DD-WRT web GUI screen, click on '''Apply Settings'''. This will reboot the router.+
- +
- +
-3. There are several methods of doing this. Once you have all your partitions set on the external device, add this to your Start-up script in '''Administration->Commands'''+
- +
-Startup script ''(make sure you install to the /opt partition. Replace the ? after ..lun0/part with the appropriate partition number that /opt is designated. It SHOULD be 1)''+
- +
- sleep 10 && mount -t ext3 /dev/scsi/host0/bus0/target0/lun0/part'''?''' /opt &+
- n=1+
- while [ ! -d /opt/etc/init.d ] ; do+
- sleep 3+
- [ $n -gt 30 ] && break+
- let n+=1+
- done+
- /opt/etc/init.d/optS+
- +
-Click '''Save Startup'''+
- +
- +
- +
-Shutdown script:+
- +
- /opt/etc/init.d/optK+
- +
-Click '''Save Shutdown'''+
- +
- +
-It should look like this:+
- +
-[[Image:Start-up.png]]+
- +
- +
- +
-Give the router a minute or two to process and reboot.+
- +
- +
- +
-Alternative (easier):+
- +
-Web Interface Method:+
- +
-Go to Services->USB. Enable USB Core support, USB 2.0 Support, USB Printer Support, USB Storage Support, Ext2/3 support, FAT File System Support (optional) and Automatic Drive Mount.+
- +
-Once the drive and partitions are recognized, Select /opt from the Drop-down menu. Click '''Apply settings''' (your router will reboot)+
- +
-'''NOTE''' This may be easier, but the initial Command Line method is much more reliable!+
- +
- +
-Next, start a terminal session to your router with the command '''telnet 192.168.1.1, followed by login (root) and your routers password''', or use a program like [http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html PuTTY] if using Windows. +
- +
- +
-First issue these commands to '''ensure /opt''' is mounted:+
- +
- root@DD-WRT:~#'''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)+
- devpts on /proc/bus/usb type usbfs (rw)+
- '''/dev/scsi/host0/bus0/target0/lun0/part1 on /opt type ext3 (rw)'''+
- root@DD-WRT:~#+
- +
- +
- +
- +
-Here's just a little sample of my device output parameters. Yours will not look like this yet.+
- +
- +
- root@Asus:~# '''df -h'''+
- Filesystem Size Used Avail Use% Mounted on+
- rootfs 5.0M 5.0M 0 100% /+
- /dev/root 5.0M 5.0M 0 100% /+
- /dev/scsi/host0/bus0/target0/lun0/part3+
- 259M 213M 44M 83% /opt+
- /dev/scsi/host0/bus0/target0/lun0/part4+
- 293G 6.7G 284G 3% /mnt+
- /dev/scsi/host0/bus0/target0/lun0/part1+
- 69M 5.6M 63M 9% /jffs+
- root@Asus:~#+
- +
- +
- +
-Enter the following commands into Busybox/Telnet:+
- +
- +
- +
- '''wget -O /tmp/prep_optware http://wd.mirmana.com/prep_optware''' +
- +
- '''sh /tmp/prep_optware'''+
- +
-This will load all the necessary optware and supporting scripts that Frater wrote from the ground up.+
- +
- +
-'''This will take about 10-20 mins depending on your connection and your router CPU clock. Close your Web Interface as this consumes precious memory and CPU resources'''+
- +
- +
-Once everything has completed, type reboot into either the BusyBox/Telnet Shell (why not, your right there) or through the Web Interface.+
- +
- +
-==Using PuTTy to enable/disable Services==+
- +
- +
-[[Image:Puttyexample.png]]+
- +
- +
- +
- +
-The BusyBox/Telnet Commands to enable/disable the services are are follows:+
- +
- '''service''' - show all services (enabled/disabled)+
- '''service <service name>''' - if "status" is supported it will run the service-script with "status" asparameter. +
- '''service <service name> on''' - Enable the script (chmod +x /opt/etc/init.d/S<servicescript>)+
- '''service <service name> off''' - Disable the script (chmod -x /opt/etc/init.d/S<servicescript>)+
- '''service <service name> <parameter>''' - Run the script with the parameter.+
- +
-Examples:+
- +
- '''service'''+
- '''service pound'''+
- '''service pound off'''+
- '''service pound on'''+
- '''service pound stop'''+
- +
- +
- +
- '''service automount start''' - mount all partitions+
- '''service automount stop''' - umount all partitions instead of the one to /opt+
- '''service automount status''' - show all partitions+
- '''service automount unmount <partition|mountpoint>''' - unmount that partition and remove it fromautomount+
- '''service automount nomount <partition>''' - Do not automount this partition+
- '''service automount nonomount <partition>''' - remove this partition from the nomount list+
- +
- +
-'''NOTE'''+
- +
-You can also turn a service on or off through the web interface command line in '''Administration-> Commands''' (for people who don't like the hassle of SSH):+
- +
-Examples:+
- +
- '''/opt/usr/sbin/service transmission-daemon on'''+
- '''/opt/usr/sbin/service transmission-daemon start'''+
- +
- '''/opt/usr/sbin/service xinetd on'''+
- '''/opt/usr/sbin/service xinetd start'''+
- +
- +
-Choose the service(s) you wish to execute and click '''Run Commands''' in the Administration->Commands box.+
- +
-You are ready to go!+
- +
-BusyBox/Telnet Commands:+
- +
- +
-The commands are:+
- +
- '''service''' - show all services (enabled/disabled)+
- '''service <service name>''' - if "status" is supported it will run the service-script with "status" asparameter. +
- '''service <service name> on''' - Enable the script (chmod +x /opt/etc/init.d/S<servicescript>)+
- '''service <service name> off''' - Disable the script (chmod -x /opt/etc/init.d/S<servicescript>)+
- '''service <service name> <parameter>''' - Run the script with the parameter.+
- +
-Examples:+
- +
- '''service'''+
- '''service pound'''+
- '''service pound off'''+
- '''service pound on'''+
- '''service pound stop'''+
- +
- +
- +
- '''service automount start''' - mount all partitions+
- '''service automount stop''' - umount all partitions instead of the one to /opt+
- '''service automount status''' - show all partitions+
- '''service automount unmount <partition|mountpoint>''' - unmount that partition and remove it fromautomount+
- '''service automount nomount <partition>''' - Do not automount this partition+
- '''service automount nonomount <partition>''' - remove this partition from the nomount list+
- +
- +
-Useful scripts+
- +
- mount+
- fdisk -l+
- blkid+
- df -h+
- cat /tmp/fdisk+
- cat /tmp/blkid+
- cat /opt/etc/automount+
- cat /opt/etc/nomount +
- lsusb+
- +
-==Activating Swap==+
- +
- +
-'''OLD method. Fraters Optware automatically mounts your Swap'''+
- +
- +
- +
- +
- +
-1. Insure the swap partition is formatted correctly by using the Optware '''busybox mkswap''' command+
- +
- '''# /opt/bin/busybox mkswap /dev/scsi/host0/bus0/target0/lun0/part2'''+
- +
-2. Use the free command to verify your swap space is active+
- +
- '''# free'''+
- total used free shared buffers+
- Mem: 13048 12564 484 0 908+
- Swap: 72252 0 72252+
- Total: 85300 12564 72736+
- +
-3. Using the '''DD-WRT web GUI screen''', go to the Administration/Commands screen, and click 'Edit'. Add the busybox swapon command '''below''' everything else so swap will be enabled whenever the router reboots. Click on Save Startup to save your startup commands. Your terminal session will be disconnected+
- +
- '''/opt/bin/busybox swapon /dev/scsi/host0/bus0/target0/lun0/part2'''+
- +
-4. Using the DD-WRT web GUI screen, go to the Administration/Management tab, scroll to the bottom, and click on Reboot Router+
- +
-5. After a minute, restart your terminal session, and use the free command again. This verifies your swap space is activated whenever the router reboots+
- +
-==Installing Samba==+
- +
- +
- +
-'''OLD method, see Fraters Optware Above'''+
- +
- +
- +
- +
-1. Using the terminal session, use the Optware '''ipkg-opt''' command to update your repository, remove any Samba packages installed with Optware, then download and install the Samba software+
- +
- '''# /opt/bin/ipkg-opt update''' +
- 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.+
- +
- '''# /opt/bin/ipkg-opt remove samba'''+
- '''# /opt/bin/ipkg-opt install samba2'''+
-2. Samba uses a default Linux user name of nobody but DD-WRT doesn't provide this user name by default. The workaround is to add this user to the DD-WRT user/password file every time the router reboots.+Please see [[Optware, the Right Way]] for more detailed instruction
-3. Using the '''DD-WRT web GUI screen, go to the Administration/Commands''' screen. Add the following command to the bottom of your startup commands 
- '''echo "nobody:*:65534:65534:nobody:/var:/bin/false" >>/tmp/etc/passwd'''+Potential services that you may want to incorporate through Optware:
-4. Using the DD-WRT web GUI screen, go to the Administration/Management tab, scroll to the bottom, and click on Reboot Router' 
-5. After a minute, restart your '''terminal session''', and check the user/password file to insure the nobody user has been added following a reboot+* Bash instead of shell in busybox (LFS support)
- '''# grep nobody /tmp/etc/passwd'''+* '''Automounting and unmounting of storage device partitions'''
- nobody:*:65534:65534:nobody:/var:/bin/false+
-6. Create a shared data directory on your hard disk drive+* '''Network printing'''
- '''# cd /jffs/mnt/disk1'''+* Watchprinter
- '''# mkdir share'''+
- '''# chmod 777 share'''+
 +* '''Torrent transmission with watchdog'''
-7. Edit the Samba configuration file to add this share at the bottom of the file+* Hotmount
- '''# cd /opt/etc/samba'''+* '''Pre-configured samba share'''
- '''# cat >>smb.conf <<EOF'''+
- [disk1]+
- comment = DD-WRT shared disk+
- path = /jffs/mnt/disk1/share+
- public = yes+
- writable = yes+
- printable = no+
- create mask = 0666+
- EOF+
 +* Reverse proxy featuring pound
 +* Service tool
-8. Edit the Samba configuration file to:+* '''Xinetd'''
-8.1) change the default workgroup name. Yours should match whatever is on all your other computers.+* Pound
-8.2) Define the range of IP addresses allowed+* Asterisk
-8.3) Announce itself on your network+* Lighttpd
 +* Vlighttpd
- '''# vi smb.conf'''+* Countryblock
- [global]+
- # workgroup = NT-Domain-Name or Workgroup-Name+
- workgroup = MyWorkgroupName+
- # server string is the equivalent of the NT Description field+
- server string = DD-WRT Samba Server+
- # This option is important for security. It allows you to restrict+
- # connections to machines which are on your local network. +
- hosts allow = 192.168.1. 127.+
- # Cause this host to announce itself to local subnets here+
- remote announce = 192.168.1.255+
- ''':wq'''+
- #+
 +* AsiaBlock
-9. Test the Samba configuration by manually starting the two Samba daemons+* Services running as other users than root
- '''# /opt/sbin/nmbd -D'''+* Vim with proper terminal support
- '''# /opt/sbin/smbd -D'''+
 +* Twonky Media
-10. From your computer, browse your network. Go to the address bar, enter two back-slashes followed by the IP address of your router and press ENTER. You should see your shared disk drive+* News Server
- '''\\192.168.1.1'''+* Other various useful tools
-11. If you can see the drive, create a test directory and a test file within that directory from your computer. 
-12. Using the DD-WRT web GUI screen, go to the Administration/Commands screen. Add the following command to the bottom of your startup commands+==Reversion to Asus Firmware==
- '''/opt/etc/init.d/S80samba start'''+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.
-13. Using the DD-WRT web GUI screen, go to the Administration/Management tab, scroll to the bottom, and click on Reboot Router+* 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
-14. After a minute, browse your network again to insure the drive is shared after the router reboots+[[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

  1. 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
  2. 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:

  1. Make sure Telnet is enabled under Services on your router.
  2. In Windows XP, go to Start->Run and type cmd. A DOS window will pop up.
  3. Type telnet 192.168.1.1 into the prompt and let it connect.
  4. Enter the user name (default is root) and press enter.
  5. Enter the password. Be careful when typing, as the character will not display when you type them in.
  6. 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:

  1. Type cd /jffs
  2. Type mkdir -p /jffs/tmp/ipkg
  3. Type ipkg update
  4. Type ipkg install p910nd
  5. Let it install and download the packages.
  6. 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