Under Services->USB:
* Enable Core USB Support
* Disable USB Printer Support (enable it if you need printing support)
* Enable USB Storage Support
* Enable Automatic Drive Mount
* Set Disk Mount Point to /mnt
* Click Apply Settings
3. Plug the USB drive into the router and reboot it
* SSH into your box using user root and make sure, using mount, that your USB stick was mounted correctly (you can also check this on the web interface under Services->USB).
4. Create and prepare necessary structure
* SSH into your box using user root if not already done at previous step:
cd /mnt
mkdir /sda_part1
cd /mnt/sda_part1
mkdir etc opt root
touch optware.enable
chmod 755 etc opt root
mkdir opt/lib
chmod 755 opt/lib
cp -a /etc/* /mnt/sda_part1/etc/
mount -o bind /mnt/sda_part1/etc /etc
mount -o bind /mnt/sda_part1/opt /jffs
You will get the following output with error messages. You can't avoid it so don't worry about it.
ERROR: File not found: //usr/local/lib/ipkg/lists/whiterussian
You probably want to run `ipkg update'
ERROR: File not found: //usr/local/lib/ipkg/lists/non-free
You probably want to run `ipkg update'
ERROR: File not found: //usr/local/lib/ipkg/lists/backports
You probably want to run `ipkg update'
/bin/ipkg: line 1184: sort: not found
Unpacking libc...Done.
Configuring libc...Done.
ERROR: File not found: //usr/local/lib/ipkg/lists/whiterussian
You probably want to run `ipkg update'
ERROR: File not found: //usr/local/lib/ipkg/lists/non-free
You probably want to run `ipkg update'
ERROR: File not found: //usr/local/lib/ipkg/lists/backports
You probably want to run `ipkg update'
/bin/ipkg: line 1184: sort: not found
Unpacking opkg...Done.
Configuring opkg...Done.
Type the following lines to create the configuration file for opkg:
6. Set the startup script to make the changes take effect each time upon reboot
Under DD-WRT’s web interface, Administration->Commands, input the following commands in the window then click "Save Startup":
#!/bin/sh
sleep 5
if [ -f /mnt/sda_part1/optware.enable ]; then
mount -o bind /mnt/sda_part1/etc /etc
mount -o bind /mnt/sda_part1/root /tmp/root
mount -o bind /mnt/sda_part1/opt /opt
else
exit
fi
if [ -d /opt/usr ]; then
export LD_LIBRARY_PATH='/opt/lib:/opt/usr/lib:/lib:/usr/lib'
export PATH='/opt/bin:/opt/usr/bin:/opt/sbin:/opt/usr/sbin:/bin:/sbin:/usr/sbin:/usr/bin'
else
exit
fi
Note that some users have reported issues that they were able to fix by making the script sleep 10 seconds instead of 5.
7. Modification of the profile file
SSH into your box then copy/paste the commands below to PuTTY window to create a script running each time when user root logins:
What about adding a swap partition would that help lessen the load on the router with certain apps like torrents
Adding a swap partition won't probably help for two reason. The USB stick is way slower than internal memory + the WNDR3700 has plenty of available memory. Maybe if you install hungry packages you will need it.
Diehardshorty wrote:
ERROR: File not found: //usr/local/lib/ipkg/lists/whiterussian
You probably want to run `ipkg update'
ERROR: File not found: //usr/local/lib/ipkg/lists/non-free
You probably want to run `ipkg update'
ERROR: File not found: //usr/local/lib/ipkg/lists/backports
You probably want to run `ipkg update'
/bin/ipkg: line 1184: sort: not found
Unpacking opkg...Done.
Configuring opkg...Done.
I don't remember seeing this but in the end it says opkg was installed.
Did you really disable JFFS2 ? Can you check it ?
Also can you show me what "mount" returns ?
There is something weird. Can you still see what's in /jffs/lib ?
ok quick noob question......if i play around and get all this to work, and install Ctorrent or Enhanced Ctorrent directly to the router will i be able to access it through the usual pretty ddwrt GUI?
I don't remember seeing this but in the end it says opkg was installed.
Did you really disable JFFS2 ? Can you check it ?
Also can you show me what "mount" returns ?
There is something weird. Can you still see what's in /jffs/lib ?
Code:
root@DD-WRT root $ mount
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro,relatime)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
ramfs on /tmp type ramfs (rw,relatime)
none on /dev type tmpfs (rw,relatime,size=512k)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
devpts on /proc/bus/usb type usbfs (rw,relatime)
/dev/sda2 on /mnt type ext3 (rw,relatime,errors=continue,data=writeback)
/dev/sda2 on /etc type ext3 (rw,relatime,errors=continue,data=writeback)
/dev/sda2 on /tmp/root type ext3 (rw,relatime,errors=continue,data=writeback)
/dev/sda2 on /opt type ext3 (rw,relatime,errors=continue,data=writeback)
root@DD-WRT root $
Hmm weird it might be installed idk im getting different readings 2 days later
Joined: 06 Feb 2010 Posts: 7401 Location: Little Rock
Posted: Sun Jan 30, 2011 3:40 Post subject:
And just in general, this works on different Atheros units and is not exclusive to the netgear 3700, i've already installed optware packages to my wzr-hp-g300nh plenty of times.