How to setup and access ushare on ddwrt

8 posts / 0 new
Last post
kevinx17910
kevinx17910's picture
How to setup and access ushare on ddwrt

Hi, 

I just installed ushare on my dir825 running ddwrt today. 

Opkg collected errors: the postinit returned 2. (I just ignored that). 

After I setup the ushare.conf, I entered the command ushare to run it. I always says the iface is down no matter what i set it to be. I tried eth0, br0, and ath0 for the iface but they all dont work. 

Dir825 is atheros so I install opkg since optware does not work. 

Does it have to do with the installation errors?

What is the ushare.conf supposed to look like for atheros routers?

Kong
Kong's picture
The reason for that is that

The reason for that is that your ushare package wasn't compiled with a dd-wrt toolchain. DD-WRT uses a different ethernet device C-structure in their code, if that is not used a ethernet device lookup will fail.

kevinx17910
kevinx17910's picture
correct me if I am wrong, isn

correct me if I am wrong, isn't optware incompatible with all atheros routers and half the time ipkg doesn't work either so the only thing that works is opkg?
is there any place that I can get the ushare ipk for ddwrt so I can install it with opkg?
Thx

Kong
Kong's picture
No that has nothing to do

No that has nothing to do with ipkg or opkg it's a compiling issue. ushare uses a c function to get info about the ethernet interface(e.g. eth0). Since dd-wrt changed the interface structure by adding another value to c-struct the function will produce return garbage. To fix this ushare needs to be compiled with a toolchain that uses the correct structure. That happens to all apps that query the interfaces to get ip,netmask etc.

Another problem exists if the optware packages was not compiled with the same tollchain as the router firmware, for example dd-wrt currently uses uclibc 0.9.28, but latest openwrt builds use newer uclibc in this case the app needs to preload the appropriate libs it was compiled with before start. In this case one needs to set an environment variable LD_PLELOAD=/path_to_the_lib_it_needs, this is usually done by adding "export LD_PRELOAD=..." in the apps start script

That's why the ideal solution is to use an optware source that was compiled with the same toolchain as the router firmware.

kevinx17910
kevinx17910's picture
OK. So Can I just download

OK. So Can I just download the .ipk from optware repository, winscp it to router, and install it with opkg??

chipi
chipi's picture
Hello!

Hello!

How I can use it ushare on WRT160NL ruter?
Ruter Firmware: DD-WRT v24-sp2 (08/07/10) std (SVN revision 14896)
I installed it so :
http://wrt160nl.org/files/wrt160nlmod.pdf

Help me! Please!

Thank you!

kevinx17910
kevinx17910's picture
chipi said: Hello! How I can

chipi said: Hello! How I can use it ushare on WRT160NL ruter? Ruter Firmware: DD-WRT v24-sp2 (08/07/10) std (SVN revision 14896) I installed it so : http://wrt160nl.org/files/wrt160nlmod.pdf Help me! Please! Thank you!

use mediatomb instead. it actually works

chipi
chipi's picture
kevinx17910 said:

kevinx17910 said:

chipi said: Hello! How I can use it ushare on WRT160NL ruter? Ruter Firmware: DD-WRT v24-sp2 (08/07/10) std (SVN revision 14896) I installed it so : http://wrt160nl.org/files/wrt160nlmod.pdf Help me! Please! Thank you!

use mediatomb instead. it actually works

What is mediatomb?