Linksys WRTSL54GS
From DD-WRT Wiki
This page describe installaton of DD-WRT on WRTSL54GS. WRTSL54GS come with a USB port. With this port and DD-WRT firmware, doors are open for many different applications of this hardware.
Contents |
Installation Procedures
- The default lan ip address for wrtsl54gs is 192.168.1.1.
- Download 23sp2 for WRTSL54GS.
- Browse Linksys web server.
- Upgrade the default linksys firmware using the standard version, dd-wrt.v23_wrtsl54gs.bin.
- There is no need to use the mini-generic one as stated in the hwsupport.txt file.
C:\tmp\dd-wrt.v23_sp2_standard>dir Volume in drive C has no label. Volume Serial Number is 30F9-EE95 Directory of C:\tmp\dd-wrt.v23_sp2_standard 02/18/2007 10:56 AM <DIR> . 02/18/2007 10:56 AM <DIR> .. 09/13/2006 04:59 PM 50,443 changelog.txt 09/15/2006 08:11 PM 3,502,080 dd-wrt.v23_asus.trx 09/15/2006 08:11 PM 3,502,080 dd-wrt.v23_generic.bin 09/15/2006 08:11 PM 3,503,104 dd-wrt.v23_wrt54g.bin 09/15/2006 08:11 PM 3,503,104 dd-wrt.v23_wrt54gs.bin 09/15/2006 08:11 PM 3,503,104 dd-wrt.v23_wrt54gsv4.bin 09/15/2006 08:11 PM 3,503,104 dd-wrt.v23_wrtsl54gs.bin 08/02/2006 04:24 AM 3,108 hwsupport.txt 09/13/2006 05:02 PM 592 notes.txt 9 File(s) 21,070,719 bytes 2 Dir(s) 12,612,669,440 bytes free C:\tmp\dd-wrt.v23_sp2_standard>
Turn on SSHd
Go to web interface (default user in v23sp2 is root, password admin), by default at 192.168.1.1... then go to Administration->Services and turn on Secure Shell -> SSHd and Password Login.
Turn on JFFS2
SSH to your WRTSL45GS and run:
nvram set jffs_mounted=1 nvram set enable_jffs2=1 nvram set sys_enable_jffs2=1 nvram set clean_jffs2=1 nvram set sys_clean_jffs2=1 nvram commit reboot
This reboot takes a while, be patient and don't power the unit off.
Add more packages
To get USB working, install these packages:
ipkg update ipkg install kmod-usb-uhci ipkg install kmod-usb-core ipkg install kmod-usb2 ipkg install kmod-usb-storage ipkg install hdparm ipkg install kmod-vfat ipkg install kmod-ext2 ipkg install kmod-ext3
Then you need to load the modules:
insmod /jffs/lib/modules/2.4.30/usbcore.o insmod /jffs/lib/modules/2.4.30/ehci-hcd.o insmod /jffs/lib/modules/2.4.30/scsi_mod.o insmod /jffs/lib/modules/2.4.30/usb-storage.o insmod /jffs/lib/modules/2.4.30/sd_mod.o
Modules won't stay loaded across reboots - see USB howto for more: USB wiki page. Basically, you want to make your own startup script in /jffs/etc/config. Make sure it ends in .startup, like myscript.startup.
My script:
#!/bin/sh insmod /jffs/lib/modules/2.4.30/usbcore.o insmod /jffs/lib/modules/2.4.30/ehci-hcd.o insmod /jffs/lib/modules/2.4.30/scsi_mod.o insmod /jffs/lib/modules/2.4.30/usb-storage.o insmod /jffs/lib/modules/2.4.30/sd_mod.o insmod /jffs/lib/modules/2.4.30/fat.o insmod /jffs/lib/modules/2.4.30/vfat.o insmod /jffs/lib/modules/2.4.30/ext2.o insmod /jffs/lib/modules/2.4.30/ext3.o sleep 2 mount /dev/scsi/host0/bus0/target0/lun0/part1 /mnt mount /dev/scsi/host0/bus0/target0/lun0/part2 /opt
Note that scripts in /jffs/etc/config appear to run in parallel!
Getting Samba2 running
This isn't easy! when I did ipkg-install samba, it was broken (running a binary gives you a bad symbol or something about fstat64).
How I did it: use Optware, with opt mounted on your USB HD (see my script above). Yeah, you've gotta mount /opt somewhere because the samba2 package alone is >7mb!
When optware is installed and working, ipkg-opt install samba2 should fix you up.
Turn on SNMP monitoring
This router device can be monitored by a SNMP Manager.
Dude, a free network monitoring tool
- Download Dude 2.1, Free system monitoring win32 software from Mikrotik.
Enable snmp client on dd-wrt v23 sp2
- snmp client dd-wrt support both snmp v1 and v2.
- see following screenshot.
USB flash disk
- Test of its performance.
/tmp # ls -ld /dev/scsi/host0/bus0/target0/lun0/* brw------- 1 root root 8, 0 Jan 1 1970 /dev/scsi/host0/bus0/target0/lun0/disc brw------- 1 root root 8, 1 Jan 1 1970 /dev/scsi/host0/bus0/target0/lun0/part1 brw------- 1 root root 8, 2 Jan 1 1970 /dev/scsi/host0/bus0/target0/lun0/part2 brw------- 1 root root 8, 3 Jan 1 1970 /dev/scsi/host0/bus0/target0/lun0/part3 /tmp # hdparm -tT /dev/scsi/host0/bus0/target0/lun0/part2 /dev/scsi/host0/bus0/target0/lun0/part2: Timing cached reads: 156 MB in 2.00 seconds = 78.00 MB/sec Timing buffered disk reads: 20 MB in 3.24 seconds = 6.17 MB/sec /tmp # date Sun Jul 8 10:38:27 UTC 2007 /tmp #
Hobbit System Monitoring server on WRTSL54GS
TBC.
Hobbit System Monitoring client on WRTSL54GS
TBC.
Known bugs of DD-WRT V23sp2 with WRTSL54GS
- 192.168.1.1 will not startup after some DD-WRT GUI operation.
- Fix, close all the exising browser window and power cycle the WRTSL54GS.