[Howto] Install Optware on Atheros units (such as WNDR3700)

Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware
Goto page Previous  1, 2, 3 ... 20, 21, 22 ... 29, 30, 31  Next
Author Message
Corsair1274
DD-WRT User


Joined: 08 Jul 2012
Posts: 53

PostPosted: Tue Sep 18, 2012 19:40    Post subject: Reply with quote
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.
Sponsor
Sparhawk
DD-WRT Novice


Joined: 21 Sep 2012
Posts: 5

PostPosted: Wed Oct 10, 2012 4:06    Post subject: Re: [Howto] Install Optware on Atheros units (such as WNDR37 Reply with quote
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.
aguy
DD-WRT Novice


Joined: 01 Aug 2012
Posts: 2

PostPosted: Wed Oct 10, 2012 23:18    Post subject: Re: [Howto] Install Optware on Atheros units (such as WNDR37 Reply with quote
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.


$ cat /etc/opkg.conf
src/gz snapshots http://downloads.openwrt.org/attitude_adjustment/12.09-beta/ar71xx/generic/packages/
dest root /opt
dest ram /opt/tmp
lists_dir ext /opt/tmp/var/opkg-lists
$ opkg update
cocoa117
DD-WRT Novice


Joined: 01 Mar 2011
Posts: 15

PostPosted: Wed Oct 17, 2012 12:23    Post subject: Re: [Howto] Install Optware on Atheros units (such as WNDR37 Reply with quote
Quote:

$ cat /etc/opkg.conf
src/gz snapshots http://downloads.openwrt.org/attitude_adjustment/12.09-beta/ar71xx/generic/packages/
dest root /opt
dest ram /opt/tmp
lists_dir ext /opt/tmp/var/opkg-lists
$ opkg update


Thanx for that, I was searching for it as well. Any reason why they are changing location?
dobs
DD-WRT User


Joined: 11 Feb 2011
Posts: 380
Location: /home/Ukraine/Kyiv

PostPosted: Wed Oct 17, 2012 18:25    Post subject: Reply with quote
In openwrt have trouble with HDD on server...(from start of month)
_________________
Home - DIR-825 r22118
Work - DIR-825 x2 OpenWRT

OCR Free Compare robot vacuum
chain710
DD-WRT Novice


Joined: 15 Nov 2011
Posts: 3

PostPosted: Fri Oct 19, 2012 2:04    Post subject: Reply with quote
dont think changing location is necessary. i mean, they can ln -s, right?
68rustang
DD-WRT Novice


Joined: 11 Jan 2010
Posts: 33

PostPosted: Sat Oct 27, 2012 16:55    Post subject: Reply with quote
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:

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

The above script will set the variables for us and also provide a nice colored command line prompt.


Where does section 7 go and how do I know if it worked?

I pasted it is the profile window of PuTTY before logging in but don't see any change to the prompt.

How do I know if the Optware install completed properly?
TeeZocker
DD-WRT Novice


Joined: 19 Feb 2012
Posts: 24

PostPosted: Mon Oct 29, 2012 11:06    Post subject: Reply with quote
i cant start opkg what goes wrong?

Code:

login as: root
DD-WRT v24-sp2 std (c) 2012 NewMedia-NET GmbH
Release: 10/12/12 (SVN revision: 20119)
root@192.168.1.1's password:
==========================================================

 ____  ___    __        ______ _____         ____  _  _
 | _ \| _ \   \ \      / /  _ \_   _| __   _|___ \| || |
 || | || ||____\ \ /\ / /| |_) || |   \ \ / / __) | || |_
 ||_| ||_||_____\ V  V / |  _ < | |    \ V / / __/|__   _|
 |___/|___/      \_/\_/  |_| \_\|_|     \_/ |_____|  |_|

                       DD-WRT v24-sp2
                   http://www.dd-wrt.com

==========================================================


BusyBox v1.20.2 (2012-10-12 04:15:33 CEST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

root@Win7:~# cd /mnt/sda_part1
root@Win7:/tmp/mnt/sda_part1# mkdir etc opt root
root@Win7:/tmp/mnt/sda_part1# touch optware.enable
root@Win7:/tmp/mnt/sda_part1# chmod 755 etc opt root
root@Win7:/tmp/mnt/sda_part1# mkdir opt/lib
root@Win7:/tmp/mnt/sda_part1# chmod 755 opt/lib
root@Win7:/tmp/mnt/sda_part1# cp -a /etc/* /mnt/sda_part1/etc/

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)



i have try this:


http://www.howtogeek.com/98408/how-to-install-additional-software-on-your-router-dd-wrt/

and its works i dont now why...


Last edited by TeeZocker on Tue Oct 30, 2012 12:53; edited 1 time in total
68rustang
DD-WRT Novice


Joined: 11 Jan 2010
Posts: 33

PostPosted: Tue Oct 30, 2012 3:26    Post subject: Reply with quote
68rustang wrote:
I am new to Optware and have only the slightest idea what I am doing...


Nevermind, got it!
credd144
DD-WRT Novice


Joined: 03 Nov 2012
Posts: 1

PostPosted: Sat Nov 10, 2012 3:53    Post subject: Fix libc dependency issues Reply with quote
I was getting something like this when I tried to install anything with a libc dependency.:
Code:
root@DD-WRT / $ opkg install busybox
Installing busybox (1.19.4-5) to root...
Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/busybox_1.19.4-5_ar71xx.ipk.
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for busybox:
 *    libc *
 * opkg_install_cmd: Cannot install package busybox.

This happened also when trying to install miniDLNA.


The fix (SSL'd into the DD-WRT router):
Code:
root@DD-WRT / $ cd /tmp
root@DD-WRT / $ wget http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/libc_0.9.33.2-1_ar71xx.ipk
root@DD-WRT / $ opkg install libc_0.9.33.2-1_ar71xx.ipk


Following this libc and related were updated and my opkg installs began to work.

Note I was not able to install the new libc package using ipkg. I had to download the file to the router and install using opkg.

It's possible that the name will change for the package will be updated so you can browse http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/ to get the updated URL to wget.

I don't think it matters, but this is on a WZR-HP-G300NH2 running DD-WRT v24-sp2 (07/20/12) std (SVN revision 19519).

I did a lot of head scratching to get this far, so I hope it helps someone else.
yousaf465
DD-WRT User


Joined: 12 Sep 2010
Posts: 380

PostPosted: Wed Nov 14, 2012 15:59    Post subject: Reply with quote
Is this guide correct http://klseet.com/index.php/tp-link-ddwrt/tl-wr1043nd-ver18-atheros/optware-installation ? Question
_________________
Upgraded to
DD-WRT v24-sp2 (03/25/13) std -
build 21061

DD-WRT v24-sp2 (10/12/12) std
(SVN revision 20119)

TP-link 741ND
DD-WRT v24-sp2 (11/21/10) std
(SVN revision 15778)

Finding the correct MTU value for your ISP | BrainSlayer Vlan on Atheros
|

debrick Buffalo WZR-HP-G300NH
yousaf465
DD-WRT User


Joined: 12 Sep 2010
Posts: 380

PostPosted: Thu Nov 15, 2012 9:55    Post subject: Reply with quote
Can I install BWmon or mypage on atheros unit ?
_________________
Upgraded to
DD-WRT v24-sp2 (03/25/13) std -
build 21061

DD-WRT v24-sp2 (10/12/12) std
(SVN revision 20119)

TP-link 741ND
DD-WRT v24-sp2 (11/21/10) std
(SVN revision 15778)

Finding the correct MTU value for your ISP | BrainSlayer Vlan on Atheros
|

debrick Buffalo WZR-HP-G300NH
cpj
DD-WRT Novice


Joined: 21 Aug 2012
Posts: 12

PostPosted: Fri Nov 16, 2012 13:12    Post subject: Reply with quote
Quote:
5. Install the required libraries for the MIPS (big-endian) architecture and OpenWRT's opkg
cd /tmp
wget http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/libc_0.9.33-107_ar71xx.ipk
wget http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/opkg_618-2_ar71xx.ipk
ipkg install libc_0.9.33-107_ar71xx.ipk opkg_618-2_ar71xx.ipk


Now is:

Code:
wget http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/libc_0.9.33.2-1_ar71xx.ipk
wget http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/opkg_618-2_ar71xx.ipk
ipkg install libc_0.9.33.2-1_ar71xx.ipk opkg_618-2_ar71xx.ipk
IAmTheDude
DD-WRT Novice


Joined: 23 Nov 2012
Posts: 3

PostPosted: Fri Nov 23, 2012 10:12    Post subject: Reply with quote
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

250gb drive partitioned as:

p1: 1gb ext3 Optware
p2: 512mb swap
p3: 230gb ext3 Data

When mounted I have the sda1 and sda2, sda2 contains lost+found folder which I presume is p3 Data.

All options in gui set correctly, scripts all correct (tried the 5secs and 10secs) and Disc Info shows everything where it should be.

Everything gets created when following the guide as observed through SSH via FlashFXP.

All until reboot, then the drives basically get wiped.

What am I missing?
cpj
DD-WRT Novice


Joined: 21 Aug 2012
Posts: 12

PostPosted: Fri Nov 23, 2012 10:38    Post subject: Reply with quote
Try ext2 fs.
Goto page Previous  1, 2, 3 ... 20, 21, 22 ... 29, 30, 31  Next Display posts from previous:    Page 21 of 31
Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum