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.
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
Posted: Mon Apr 09, 2012 0:02 Post subject: ushare, mp4 problem
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
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 :
And finally on my TV(Philips 7605) find the DLNA server ...
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?
Posted: Thu Apr 12, 2012 23:31 Post subject: I cant get my setup to survive reboot
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?
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
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
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