anyone ever get a problem where the USB network drive share does not work after installing optware? I also cannot ssh into the router after installing optware. This is on a Buffalo WZR-HP-AG300H router. The installation worked great, but after installation and reboot with the startup, I can no longer ssh into the router or see the USB network drive share.
Posted: Wed Oct 10, 2012 4:06 Post subject: Re: [Howto] Install Optware on Atheros units (such as WNDR37
Hi, first thanks for great tutorial, but I have a problem with "src/gz snapshots http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages" cause this source doesnt exist anymore.. Im using ddwrt rev 20086. Can someone tell me proper src line with url for packages? Thanks.
Posted: Wed Oct 10, 2012 23:18 Post subject: Re: [Howto] Install Optware on Atheros units (such as WNDR37
Sparhawk wrote:
Hi, first thanks for great tutorial, but I have a problem with "src/gz snapshots http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages" cause this source doesnt exist anymore.. Im using ddwrt rev 20086. Can someone tell me proper src line with url for packages? Thanks.
I am new to Optware and have only the slightest idea what I am doing with Linux but was able to make it most of the way through the tut without many issues.
Quote:
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:
root@Win7:/tmp/mnt/sda_part1# mount -o bind /mnt/sda_part1/etc /etc
root@Win7:/tmp/mnt/sda_part1# mount -o bind /mnt/sda_part1/opt /jffs
root@Win7:/tmp/mnt/sda_part1# cd /tmp
root@Win7:/tmp# wget http://downloads.openwrt.org/snapshots/trunk/ar71xx/package
s/libc_0.9.33-107_ar71xx.ipk
Connecting to downloads.openwrt.org (78.24.191.177:80)
wget: server returned error: HTTP/1.1 404 Not Found
root@Win7:/tmp# wget http://downloads.openwrt.org/snapshots/trunk/ar71xx/package
s/opkg_618-2_ar71xx.ipk
Connecting to downloads.openwrt.org (78.24.191.177:80)
opkg_618-2_ar71xx.ip 100% |*******************************| 57426 0:00:00 ETA
root@Win7:/tmp# ipkg install libc_0.9.33-107_ar71xx.ipk opkg_618-2_ar71xx.ipk
File not found libc_0.9.33-107_ar71xx.ipk
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.
root@Win7:/tmp# wget http://downloads.openwrt.org/snapshots/trunk/ar71xx/packag
es/libc_0.9.33.2-1_ar71xx.ipk
Connecting to downloads.openwrt.org (78.24.191.177:80)
libc_0.9.33.2-1_ar71 100% |*******************************| 219k 0:00:00 ETA
root@Win7:/tmp# ipkg install libc_0.9.33.2-1_ar71xx.ipk opkg_618-2_ar71xx.ipk
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.
root@Win7:/tmp# cat > /etc/opkg.conf << EOF
> src/gz snapshots http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages
> dest root /opt
> dest ram /opt/tmp
> lists_dir ext /opt/tmp/var/opkg-lists
> EOF
root@Win7:/tmp#
root@Win7:/tmp# umount /jffs
root@Win7:/tmp# mount -o bind /mnt/sda_part1/root /tmp/root
root@Win7:/tmp# mount -o bind /mnt/sda_part1/opt /opt
root@Win7:/tmp# export LD_LIBRARY_PATH='/opt/lib:/opt/usr/lib:/lib:/usr/lib'
root@Win7:/tmp# opkg update
Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/Packages.gz.
Inflating http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/Packages.gz.
Updated list of available packages in /opt/tmp/var/opkg-lists/snapshots.
root@Win7:/tmp# cat > /mnt/sda_part1/root/.profile << EOF
> export LD_LIBRARY_PATH='/opt/lib:/opt/usr/lib:/lib:/usr/lib:/opt/usr/local/lib
'
> export PATH='/sbin:/opt/bin:/opt/usr/bin:/opt/sbin:/opt/usr/sbin:/bin:/usr/bin
:/usr/sbin:/opt/usr/local/bin'
> export PS1='\[\033[01;31m\]\u@\h \[\033[01;34m\]\W \$ \[\033[00m\]'
> export TERMINFO='/opt/usr/share/terminfo'
> EOF
root@Win7:/tmp# reboot
root@Win7:~# opkg
-sh: opkg: not found
root@Win7:~# 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)
debugfs on /sys/kernel/debug type debugfs (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/mtdblock/3 on /jffs type jffs2 (rw,relatime)
/dev/sda2 on /tmp/mnt/sda_part2 type ext3 (rw,relatime,errors=continue,user_xattr,barrier=1,data=writeback)
Looking for some guidance guys, hoping someone can help.
Flashed DDWRT onto my TP-Link WDR3600 last night and everything is tickety-bo so far. It fixed all my connection drops to my Android phone as well which was nice.
As this is my first 'advanced' router (previous have been WRTs and DIRs so only basic stuff with them) I wanted to look into what it can do and stumbled onto this post.
Anyway, everything worked, 250gb USB drive formatted and mounted, Windows cloud access to it, optware installed and updated, scripts running etc until I reboot. Then its all gone and I have to start from scratch, which works, until I reboot etc
How do I avoid this?
Current set up is this:
Firmware: DD-WRT v24-sp2 (10/12/12) std