[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 ... 17, 18, 19 ... 29, 30, 31  Next
Author Message
gingerbreadassassin
DD-WRT Novice


Joined: 17 May 2011
Posts: 6

PostPosted: Sun Mar 25, 2012 6:25    Post subject: Re: Installing uShare on TL-WR1043ND Reply with quote
Catweazle1983 wrote:
root@DD-WRT root $ /opt/etc/init.d/ushare start
/bin/sh: can't open /etc/rc.common


Running on a wndr3700v2, optware installed without a hitch with this new build, except for the ssh authentication hiccup fixed earlier in this thread.

I'm right where you are, Cat. I'm toying around with it now to see if I can figure it out, but the ushare wiki is very outdated.

EDIT: Tried minidlna and got the same thing, so this surely isn't isolated to ushare.
Sponsor
reazbuet99
DD-WRT Novice


Joined: 26 Mar 2012
Posts: 2

PostPosted: Mon Mar 26, 2012 14:38    Post subject: transmission-daemon Segmentation fault after update-Solved Reply with quote
After installing transmission-daemon 2.5 from http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages, transmission-daemon failed to start showing Segmentation fault.

The following method works for me:

Modify download repository in the file /opt/etc/opkg.conf( your path may not be same) as below

src/gz snapshots http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages
.....
.....

Then using:

opkg update

opkg remove libc
opkg install libc

opkg remove libpthread
opkg install libpthread

opkg remove zlib
opkg install zlib

if any of them failed to remove, try --force-depends.
i.e.
opkg remove zlib --force-depends

transmission-daemon (This time it should work)

You can also update other installed software. To see upgrable software, use the command
opkg list-upgradable

and to upgrade any specific package use:
opkg upgrade <package name>
chronos511
DD-WRT Novice


Joined: 03 Apr 2012
Posts: 1

PostPosted: Tue Apr 03, 2012 2:39    Post subject: Reply with quote
Hello. I apologize if this came up earlier in the thread, but I scanned through it and didn't see this.

When I get to
Code:
Let's make sure everything works properly:

umount /jffs
mount -o bind /mnt/sda_part1/root /tmp/root
mount -o bind /mnt/sda_part1/opt /opt
export LD_LIBRARY_PATH='/opt/lib:/opt/usr/lib:/lib:/usr/lib'
opkg update
I get this error:

Code:
opkg: can't handle reloc type 0x2f

I get that error on every command at that point, even something as basic as ls. Obviously logging out and back in clears it but prevents me from using opkg. It would seem to be a version issue, but I'm using the packages you linked in the original post. I even went through the entire thing again just to be sure.

I have a WNDR3700v1 running DD-WRT v24-sp2 (08/07/10) std - build 14896.

Update: I solved this. I used the packages from http://downloads.openwrt.org/backfire/10.03/ar71xx/packages/ instead of the ones from the trunk.
buypro
DD-WRT Novice


Joined: 16 Jan 2012
Posts: 6

PostPosted: Tue Apr 03, 2012 18:52    Post subject: Reply with quote
Quote:
Code:

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?




i think i got the same problem too

i installed atftpd or tftpd-hpa and it return me
the same error when i try to brign the server up



Code:

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




i have search around in the forum. it seems no one has ever has a sucessful experience in startup tftp server on Atheros WiSOC based router


could anyone give me some clue?

Many thanks


austin


.
.
.
dynek
DD-WRT User


Joined: 19 Oct 2006
Posts: 131

PostPosted: Thu Apr 05, 2012 18:23    Post subject: Reply with quote
chronos511 wrote:
Update: I solved this. I used the packages from http://downloads.openwrt.org/backfire/10.03/ar71xx/packages/ instead of the ones from the trunk.

That's what I was going to suggest. Cool you fixed it by yourself!
jeff.rey
DD-WRT Novice


Joined: 08 Apr 2012
Posts: 5

PostPosted: Sun Apr 08, 2012 23:58    Post subject: D-Link DIR-632. optware,ushare,TV can't play some files Reply with quote
Thanks for the great work!

I installed optware successfully.

I installed ushare successfully following Edibg's instructions.

Everything seems good. But my tv can't see some mp4 files.

I rename the mp4 files that can't be seen by tv to .mp4 and they can be played.

Why? Who can help?
jeff.rey
DD-WRT Novice


Joined: 08 Apr 2012
Posts: 5

PostPosted: Mon Apr 09, 2012 0:02    Post subject: ushare, mp4 problem Reply with quote
edibg wrote:
Hello,
Thanks for the help I managed to run a DNLA server on TP-Link 1043nd (REV.1.8 )
The procedure is a little bit different than the mentioned one in the beginning of the subject.

First of all I am running 12/20/11 build, ext HDD 160GB formated in ext3(the router see it like ext2 in "mount" ) and in the WEB->USB Service the status is "Status: Not mounted " but I have a SMB mount that appears under /mnt/sda_part1 .

So I enabled in the web :
-Core Support
-USB Storage Support
-Automatic Drive Mount

And first few times when I created /opt /etc after reboot they disappear from /mnt folder so i done this :


Code:

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

cd /tmp
wget http://downloads.openwrt.org/backfire/10.03.1-rc6/ar71xx/packages/libc_0.9.30.1-43.29_ar71xx.ipk
wget http://downloads.openwrt.org/backfire/10.03.1-rc6/ar71xx/packages/opkg_576-2_ar71xx.ipk
ipkg install libc_0.9.30.1-43.29_ar71xx.ipk opkg_576-2_ar71xx.ipk


cat > /etc/opkg.conf << EOF
src/gz snapshots http://downloads.openwrt.org/backfire/10.03.1-rc6/ar71xx/packages
dest root /opt
dest ram /opt/tmp
lists_dir ext /opt/tmp/var/opkg-lists
EOF

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

//WEB INTERFACE - STARTUP COMMAND
#!/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

route add -net 239.0.0.0 netmask 255.0.0.0 br0
ushare -D
//END START UP


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


Then reboot the router.
After login :
Code:
opkg update


Installing ushare:

Code:
opkg install ushare


The config file was created by default in /opt/etc/ushare.conf but the program looks for it in /etc/, so I cp it in /etc and then edit it.
Created a folder /mnt/sda_share1/media and use it for storing films/msuic etc...
then :
Code:
route add -net 239.0.0.0 netmask 255.0.0.0 br0
ushare -D


And finally on my TV(Philips 7605) find the DLNA server Smile...

The only issue is that when i try to run ipkg i get "Segmentation fault".
What can be wrong ?


Thank you!

I installed the ushare successfully following your instructions.
But my TV can't see some mp4 files. I rename them to mpg and they can be seen and played then. Why?
jeff.rey
DD-WRT Novice


Joined: 08 Apr 2012
Posts: 5

PostPosted: Mon Apr 09, 2012 18:39    Post subject: ushare web interface works well Reply with quote
visit http://my.ip.add:49200/web/ushare.html and I can modify shared directory.
polc1410
DD-WRT Novice


Joined: 25 Mar 2012
Posts: 4

PostPosted: Thu Apr 12, 2012 23:31    Post subject: I cant get my setup to survive reboot Reply with quote
OK I followed the front page how to. I'm able to install things (python) and run them. But nothing survives a reboot...

I'm using a netgear WNR2200 on svn build 18774

mount shows:

Code:
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/sda1 on /opt type ext2 (rw,relatime,errors=continue)
ramfs on /etc type ramfs (rw,relatime)
ramfs on /tmp/root type ramfs (rw,relatime)
ramfs on /opt type ramfs (rw,relatime)
ramfs on /tmp/root type ramfs (rw,relatime)
ramfs on /opt type ramfs (rw,relatime)
ramfs on /etc type ramfs (rw,relatime)
ramfs on /tmp/root type ramfs (rw,relatime)
ramfs on /opt type ramfs (rw,relatime)


Couple of issues that I have
1. its all lost on re-boot - presumably due to all that ramfs stuff?
2. sometimes the USB mounts as /dev/sdb1 - is it possible to set the mount using a UUID?
bridges86406
DD-WRT Novice


Joined: 25 Feb 2012
Posts: 33

PostPosted: Fri Apr 13, 2012 5:59    Post subject: Reply with quote
Here's the issue I'm having once I got Optware installed using this guide. I'm trying to install a package and I'm getting and error please see below:

Code:
root@DD-WRT root $ ipkg-opt install asterisk18
-sh: ipkg-opt: not found


Does anyone know what I missed in the install? I've went over it like 3 times and I'm pretty sure I got everything listed in the OP. Any help would be appreciated.


FYI, I also tried just using ipkg install and here are the errors that I received when I did this:

Code:
root@DD-WRT root $ ipkg install asterisk18
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
mkdir: can't create directory '/jffs//usr/': Read-only file system
mkdir: can't create directory '/jffs//usr/': Read-only file system
touch: /jffs//usr/local/lib/ipkg/status: No such file or directory
/bin/ipkg: line 1184: can't open /jffs//usr/local/lib/ipkg/status: no such file
mv: can't rename '/jffs//usr/local/lib/ipkg/status.new': No such file or directory
/bin/ipkg: line 1184: can't create /jffs//usr/local/lib/ipkg/status: nonexistent directory
/bin/ipkg: line 1184: can't create /jffs//usr/local/lib/ipkg/status: nonexistent directory
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'
ipkg_get_install: ERROR: Cannot find package asterisk18 in //usr/local/lib/ipkg/lists
ipkg_get_install:        Check the spelling and maybe run `ipkg update'.
mkdir: can't create directory '/jffs//usr/': Read-only file system
touch: /jffs//usr/local/lib/ipkg/status: No such file or directory
/bin/ipkg: line 1184: can't open /jffs//usr/local/lib/ipkg/status: no such file
mv: can't rename '/jffs//usr/local/lib/ipkg/status.new': No such file or directory
ls: /jffs/tmp/ipkg: No such file or directory
root@DD-WRT root $ ipkg update
mkdir: can't create directory '//usr/local/lib/': Read-only file system
polc1410
DD-WRT Novice


Joined: 25 Mar 2012
Posts: 4

PostPosted: Fri Apr 13, 2012 20:46    Post subject: Reply with quote
bridges86406 wrote:
$ ipkg-opt install asterisk18


Try:

opkg install asterisk18

you've installed opkg. ipkg is broke (but opkg does the same thing)

You may need some extra options - for some reason my config says there is no free space even though there is, so I'd need to use opkg install --force-space asterisk18
bridges86406
DD-WRT Novice


Joined: 25 Feb 2012
Posts: 33

PostPosted: Sat Apr 14, 2012 17:53    Post subject: Reply with quote
polc1410 wrote:
bridges86406 wrote:
$ ipkg-opt install asterisk18


Try:

opkg install asterisk18

you've installed opkg. ipkg is broke (but opkg does the same thing)

You may need some extra options - for some reason my config says there is no free space even though there is, so I'd need to use opkg install --force-space asterisk18

Thanks this worked.

Now can anyone help me to get a basic Asterisk config running......... it seems all the other tuts I have found detail broadcom ports, and not Atheros. Also none of them seem up to date as certain packages won't download or aren't found on our version of Optware i.e. iksemel
Detection
DD-WRT User


Joined: 19 Jan 2012
Posts: 403
Location: UK

PostPosted: Tue Apr 17, 2012 17:17    Post subject: Reply with quote
I'm sure this is my fault for not understanding some of the code, but when I enter the line

cat > /etc/opkg.conf << EOF

PuTTY SSH drops to a > prompt and I can't enter any other commands

EOF = End of file ?

Not sure what to do with that? Any tips please Smile


EDIT - Figured it out, was supposed to run the whole code at once not one line at a time

_________________
TPLINK TL-WR2543ND (5GHz)
WRT160NL (2.4GHz)
Raize
DD-WRT Novice


Joined: 19 Apr 2012
Posts: 1

PostPosted: Thu Apr 19, 2012 4:16    Post subject: Reply with quote
I'm getting this error when I go to do the first "opkg update":
opkg: can't resolve symbol 'glob64' in lib 'opkg'.

Did anyone who was previously getting this error ever figure out why? I'm using the Brainslayer build 18777 on a TP-LINK TR-WL1043ND.
merthol
DD-WRT Novice


Joined: 20 Apr 2012
Posts: 1

PostPosted: Fri Apr 20, 2012 0:22    Post subject: opkg: can't resolve symbol 'glob64' in lib 'opkg'. Reply with quote
hi
I have the same problem. I tried all the solutions posted.... but the problem still.
Goto page Previous  1, 2, 3 ... 17, 18, 19 ... 29, 30, 31  Next Display posts from previous:    Page 18 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