[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 ... 16, 17, 18 ... 29, 30, 31  Next
Author Message
KingJL
DD-WRT User


Joined: 04 Feb 2011
Posts: 95

PostPosted: Tue Jan 24, 2012 23:55    Post subject: Re: Agree Reply with quote
vijayadik wrote:
Yup. KingJL.

The lib seems to be out of date totally. eg., whiterussian was last updated on 2007. Is it affecting only the Atheros or it affects other HW also ?

Is there a way to bring this upto BS's attention or some other developer's attention?

I assume that he knows. I know that chris is aware. But, I don't think that there is any interest in a resolution. It would require that dd-wrt fall back to the toolchain and UlibC that is current on openwrt, or that openwrt move up to the version that dd-wrt is using, or that dd-wrt maintain a package repository built in sync with each build. I don't look for any of that to happen. Of course you can continually create tickets which will be answered as 'works for me" or "won't fix"!
Quote:


Or just a bad luck and wait for a few years, some one will resolve !!
I say again, if you wish to run optware packages and take advantage of the performance, memory, and storage available in the newer hardware, dd-wrt is currently the wrong choice!
_________________
WRT54G V1.0, build 14853 VINT mini_USB_FTP, USB mod, pixelserv
Buffalo WZR-HP-AG300H build 17461, pixelserve
Buffalo WZR-HP-G300NH, OpenWrt (trunk build 29606), ath9k drivers, pixelserv
Ubiquiti Bullet M2, AirOS
Sponsor
Catweazle1983
DD-WRT Novice


Joined: 16 Feb 2012
Posts: 1

PostPosted: Thu Feb 16, 2012 16:53    Post subject: Installing uShare on TL-WR1043ND Reply with quote
Hi Dynek,
Thanx a lot for your guide. I think I was able to successfully install optware. I am very new to dd-wrt and optware. After I finished your guide I tried to instal uShare. I used the following SSH command for this:

root@DD-WRT root $ opkg install ushare

I think I was successfull:

root@DD-WRT root $ opkg list-installed
libdlna - 0.2.3-1
libffmpeg - 0.5.4-2
libpthread - 0.9.30.1-43.29
librt - 0.9.30.1-43.29
libupnp - 1.6.12-1
ushare - 1.1a-1
zlib - 1.2.3-5

Now I am trying to startup the media server. I used this SSH command:

root@DD-WRT root $ /opt/etc/init.d/ushare start
/bin/sh: can't open /etc/rc.common

As you can see this did not work. A file called rc.common is needed but this is not present in any of my folders. What did I do wrong? How can I get uShare to work?

Thanx in advance for your help!
BB
DD-WRT Novice


Joined: 20 Feb 2012
Posts: 4

PostPosted: Mon Feb 20, 2012 14:58    Post subject: Reply with quote
I dont know what I did wrong but I followed the guide to the letter but when i get to the update part I get this :
root@DD-WRT:~# opkg update
-sh: opkg: not found

What could I have done wrong?

Well I did all the steps again, and again, and on the third try it magically worked, I have no idea why! Thanks for the tutorial!
jahuu
DD-WRT Novice


Joined: 21 Feb 2012
Posts: 6

PostPosted: Tue Feb 21, 2012 15:47    Post subject: WZR-HP-G300NH2 setup verified to work as of today Reply with quote
Format USB as ext2, Ext3 will not work !!!
cd /mnt/discsda
mkdir etc opt root
touch optware.enable
chmod 755 etc opt root
mkdir opt/lib
chmod 755 opt/lib
cp -a /etc/* /mnt/discsda/etc/
mount -o bind /mnt/discsda/etc /etc
mount -o bind /mnt/discsda/opt /jffs

wget http://backfire.openwrt.org/10.03/ar71xx/packages/libc_0.9.30.1-42_ar71xx.ipk
wget http://backfire.openwrt.org/10.03/ar71xx/packages/opkg_513-2_ar71xx.ipk
ipkg install libc_0.9.30.1-42_ar71xx.ipk
ipkg install opkg_513-2_ar71xx.ipk

Needed to do this again cause JFFS problem
mount -o bind /mnt/discsda/opt /jffs

cat > /etc/opkg.conf << EOF
src/gz snapshots http://backfire.openwrt.org/10.03/ar71xx/packages
dest root /opt
dest ram /opt/tmp
lists_dir ext /opt/tmp/var/opkg-lists
EOF
Needed to do this again cause etc problem
mount -o bind /mnt/discsda/etc /etc

TEST IF WORKING
umount /jffs
mount -o bind /mnt/discsda/root /tmp/root
mount -o bind /mnt/discsda/opt /opt
export LD_LIBRARY_PATH='/opt/lib:/opt/usr/lib:/lib:/usr/lib'
opkg update

RESULT:
Downloading http://backfire.openwrt.org/10.03/ar71xx/packages/Packages.gz.
Inflating http://backfire.openwrt.org/10.03/ar71xx/packages/Packages.gz.
Updated list of available packages in /opt/tmp/var/opkg-lists/snapshots.


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 10
if [ -f /mnt/discsda/optware.enable ]; then
mount -o bind /mnt/discsda/etc /etc
mount -o bind /mnt/discsda/root /tmp/root
mount -o bind /mnt/discsda/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:

cat > /mnt/discsda/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

Reboot then SSH back and TEST IF WORKING
opkg update
Downloading http://backfire.openwrt.org/10.03/ar71xx/packages/Packages.gz.
Inflating http://backfire.openwrt.org/10.03/ar71xx/packages/Packages.gz.
Updated list of available packages in /opt/tmp/var/opkg-lists/snapshots
abcdrl
DD-WRT Novice


Joined: 29 Feb 2012
Posts: 2

PostPosted: Wed Feb 29, 2012 13:20    Post subject: Re: [Howto] Install Optware on Atheros units (such as WNDR37 Reply with quote
Dynek,thank you for your guide,I was successful install optware on my router(WNDR3700 V2).I want to install transmission now.According to http://g300nh.blogspot.com/2010/06/bittorrent-client-transmission-on-dd.html

I type transmission-daemon, no error.After 10 secs,I type killall transmission-daemon oops the PUTTY show me killall: transmission-daemon: no process killed
Of course /mnt/root/.config/transmission-daemon/settings.json is not exist!

I tried several times, same result. I'm confused.Could you or anyone else can help me!Thank you very much!
haggismn
DD-WRT User


Joined: 08 Dec 2011
Posts: 78

PostPosted: Wed Feb 29, 2012 23:29    Post subject: Reply with quote
Hello all,
I have been trying to configure optware on my DIR-825 (Using 18024) I have followed the instructions carefully, and everything has installed correctly, however after install, I cannot run many applications. They all segfault
Code:
BusyBox v1.19.3 (2011-12-20 08:22:04 CET) built-in shell (ash)
Enter 'help' for a list of built-in commands.

root@dlink root $ ipkg
Segmentation fault
root@dlink root $


I have discovered that the offending file is part of libc. When I remove the files from /opt/lib that conflict with /lib , things return to a degree of normality. However I cannot run many applications. For example, stunnel crashes with;

Code:
"stunnel: can't resolve symbol 'atexit' in lib 'stunnel'."


Is there a solution to this problem? What has changed in the firmware to make this stop working?

Thanks for any help, I need stunnel as part of a university project and the sooner I can get things working, the better!
laocha
DD-WRT Novice


Joined: 01 Mar 2012
Posts: 2

PostPosted: Thu Mar 01, 2012 11:00    Post subject: Re: [Howto] Install Optware on Atheros units (such as WNDR37 Reply with quote
I encounter exactly the same issue on my HP-G300NH. Thought it was due to JFFS enabled, so disabled it, cleaned JFFS, even restore the router to factory default, and then reinstall, but still the same. Run transmission-daemon -f, and got segamentation fault.

abcdrl wrote:
Dynek,thank you for your guide,I was successful install optware on my router(WNDR3700 V2).I want to install transmission now.According to http://g300nh.blogspot.com/2010/06/bittorrent-client-transmission-on-dd.html

I type transmission-daemon, no error.After 10 secs,I type killall transmission-daemon oops the PUTTY show me killall: transmission-daemon: no process killed
Of course /mnt/root/.config/transmission-daemon/settings.json is not exist!

I tried several times, same result. I'm confused.Could you or anyone else can help me!Thank you very much!
Logo78
DD-WRT Novice


Joined: 04 Mar 2012
Posts: 5

PostPosted: Sun Mar 04, 2012 20:20    Post subject: Reply with quote
I have the same problem! WZR-HP-AG300H
The transmission v2.44 worked fine on my router. After an update was the problem!

Code:
root@Powermonster-Router root $ opkg install transmission-web
Installing transmission-web (2.50-2) to root...
Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages//transmission-web_2.50-2_ar71xx.ipk.
Installing transmission-daemon (2.50-2) to root...
Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages//transmission-daemon_2.50-2_ar71xx.ipk.
Installing libcurl (7.23.1-1) to root...
Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages//libcurl_7.23.1-1_ar71xx.ipk.
Installing libopenssl (1.0.0g-1) to root...
Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages//libopenssl_1.0.0g-1_ar71xx.ipk.
Installing zlib (1.2.5-1) to root...
Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages//zlib_1.2.5-1_ar71xx.ipk.
Installing libpthread (0.9.33-103) to root...
Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages//libpthread_0.9.33-103_ar71xx.ipk.
Installing libevent2 (2.0.16-1) to root...
Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages//libevent2_2.0.16-1_ar71xx.ipk.
Installing librt (0.9.33-103) to root...
Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages//librt_0.9.33-103_ar71xx.ipk.
Installing libminiupnpc (1.6-1) to root...
Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages//libminiupnpc_1.6-1_ar71xx.ipk.
Configuring libpthread.
Configuring zlib.
Configuring libopenssl.
Configuring libcurl.
Configuring libevent2.
Configuring librt.
Configuring libminiupnpc.
Configuring transmission-daemon.
Configuring transmission-web.
root@Powermonster-Router root $ transmission-daemon
root@Powermonster-Router root $ killall transmission-daemon
killall: transmission-daemon: no process killed


I have updated the firmware still remains the problem! Can I install the version 2.44 again?
Logo78
DD-WRT Novice


Joined: 04 Mar 2012
Posts: 5

PostPosted: Mon Mar 05, 2012 14:51    Post subject: Reply with quote
Log in with putty, run commands:

cp /lib /opt/lib/libnvram.so


Let’s forget the dd-wrt lib folder in putty, or you can spend time figuring out how to set LD_LIBRARY_PATH...:
Code:
mount -o bind /opt/lib /lib

Run:
transmission-daemon
wait for 10 seconds then stop it:
killall transmission-daemon

This will create default configuration file for transmission, the file is located at /mnt/root/.config/transmission-daemon/settings.json

How can you make the router startup?
dynek
DD-WRT User


Joined: 19 Oct 2006
Posts: 131

PostPosted: Tue Mar 13, 2012 17:27    Post subject: Reply with quote
I have updated my first post so that it reflects what I see on my WNDR3700 (sda_part1).

However I still have the damn Segmentation fault when running busybox sh.

Code:
root@router root $ busybox sh
Segmentation fault
root@router root $ busybox df
Filesystem           1K-blocks      Used Available Use% Mounted on
rootfs                    5248      5248         0 100% /
/dev/root                 5248      5248         0 100% /
none                       512         0       512   0% /dev
/dev/sda1              3841384     79092   3567156   2% /tmp/mnt/sda_part1
/dev/sda1              3841384     79092   3567156   2% /etc
/dev/sda1              3841384     79092   3567156   2% /tmp/root
/dev/sda1              3841384     79092   3567156   2% /opt
root@router root $ busybox ifconfig
ath0      Link encap:Ethernet  HWaddr 30:46:9A:0B:69:D8 
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:138 errors:0 dropped:0 overruns:0 frame:0
          TX packets:411 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:32
          RX bytes:17959 (17.5 KiB)  TX bytes:88849 (86.7 KiB)
yaniv1111
DD-WRT Novice


Joined: 27 Feb 2012
Posts: 13

PostPosted: Sun Mar 18, 2012 8:40    Post subject: duplicate ment content Reply with quote
Hi
After I add optware features written in http://dd-wrt.ca/phpBB2/viewtopic.php?t=86912&highlight=optware
I have updated the libc to an advance version and since than
I see duplicate menus for each of the administration console

how can i fix this issue?
what kind of information is need to debug this?

(Im using 18024 with tp-link wr1043nd )

thanks

Yaniv
leppa
DD-WRT Novice


Joined: 28 Jan 2012
Posts: 7
Location: Ulm, Germany

PostPosted: Sun Mar 18, 2012 13:46    Post subject: Reply with quote
dynek wrote:
I have updated my first post so that it reflects what I see on my WNDR3700 (sda_part1).

However I still have the damn Segmentation fault when running busybox sh.

Been trying to fight with segfault for quite a long time and then I found a solution: if you're using one of the latest snapshots (from 2011 or 2012) then you have to replace
Code:
http://downloads.openwrt.org/backfire/10.03.1-rc6/ar71xx/packages
with
Code:
http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages
in all links.

Seems like 10.03.x versions are too old for current dd-wrt builds.

_________________
With best regards,
Oleksii Serdiuk <contacts[at]oleksii.name>
ivm3033
DD-WRT Novice


Joined: 16 Mar 2012
Posts: 2

PostPosted: Mon Mar 19, 2012 23:11    Post subject: Reply with quote
I can´t install optware using this tutorial on a tp-link 1043nd (v1.Cool and DD-WRT build v24-sp2 (08/07/10) std - build 14896.

If I run ipkg install libc_0.9.30.1-43.29_ar71xx.ipk opkg_576-2_ar71xx.ipk
, I get this


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


Is there a way to solve it, or should I install openwrt in order to use samba shares with my router?
yaniv1111
DD-WRT Novice


Joined: 27 Feb 2012
Posts: 13

PostPosted: Tue Mar 20, 2012 13:31    Post subject: Reply with quote
Hi

the version of OPKG and libc are very old,
replace section 5 with:

** make sure that the usb is mount correctly.

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-104_ar71xx.ipk
wget http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/opkg_618-2_ar71xx.ipk
ipkg install libc_0.9.33-104_ar71xx.ipk opkg_618-2_ar71xx.ipk

and

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

**
BR
Yaniv
dynek
DD-WRT User


Joined: 19 Oct 2006
Posts: 131

PostPosted: Tue Mar 20, 2012 17:57    Post subject: Reply with quote
Thanks guys. I have modified the first message of the thread to use updated libc and opkg!
Goto page Previous  1, 2, 3 ... 16, 17, 18 ... 29, 30, 31  Next Display posts from previous:    Page 17 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