view · edit · print · history

Experimental optware target for dlink dns-323.

How to use

Manual bootstrap (you probably want to symlink or bind mount /opt to your big disk):

$ su
# mkdir -p /opt
# mkdir -p /mnt/HD_a2/ipkg/opt
# mount -o bind /mnt/HD_a2/ipkg/opt /opt
# export PATH=/opt/bin:/opt/sbin:$PATH
# feed=http://ipkg.nslu2-linux.org/feeds/optware/dns323/cross/unstable
# ipkg_name=`wget -qO- $feed/Packages | awk '/^Filename: ipkg-opt/ {print $2}'`
# wget $feed/$ipkg_name
# zcat $ipkg_name | tar -xOvf - ./data.tar.gz | zcat | tar -C / -xvf -

To configure that feed as the default feed, just add in /opt/etc/ipkg.conf

 src dns323 http://ipkg.nslu2-linux.org/feeds/optware/dns323/cross/unstable

List available packages

 # /opt/bin/ipkg update
 # /opt/bin/ipkg list

You should see a lot of packages listed.

Install packages (ipkg manages dependencies, so e.g. installing rtorrent will automatically install libtorrent)

 # /opt/bin/ipkg install <foo> <bar>

Replace <foo> <bar> with package name you want to install.

You can set PATH environment variable in /etc/profile to include /opt/bin and /opt/sbin. Also consider setting TMPDIR environment variable in /etc/profile if the default /tmp is too small for certain programs.

An easy way to get telnet access to the box is to use fonz funplug: http://nas-tweaks.net/40/installation-of-the-fonz-funplug-0-5-for-ch3snas-ch3mnas-dns-323-and-many-more/(approve sites) Mounting /opt in an automatic mode can be done by creating /ffp/etc/fun_plug.local file:


# mount /opt
mkdir -p /opt
mount --bind /mnt/HD_a2/ipkg/opt /opt

# add optware shell to /etc/shells
echo '/opt/bin/bash' >>/etc/shells

Adding /opt/bin and /opt/sbin to the PATH variable can be done inside /ffp/etc/profile.

Known problems:

  • dns-323 /lib was missing libs such as librt and libffi, right now one can work around the problem by manually copy those missing libs to /opt/lib. See http://forum.dsmg600.info/viewtopic.php?id=1797 for detail.
  • rtorrent may segfault with incorrect TERM (vt102 in a reported case), only runs under screen.

[Optional] How to cross build ipk

Check out optware build environment on your linux PC

 $ cd $HOME         (you can use whatever directory you want, of course)
 $ svn co http://svn.nslu2-linux.org/svnroot/optware/trunk optware

Setup dns323 optware target

 $ cd $HOME/optware
 $ make dns323-target
 $ cd dns323
 $ make directories ipkg-utils
 $ make toolchain
 $ make ipkg-opt-ipk

Build packages

 $ cd $HOME/optware/dns323
 $ make <foo>-dirclean <foo>-ipk
 $ make <bar>-dirclean <bar>-ipk

See AddAPackageToOptware for more info.

Setup your own feed

See DebianArmEtch for hints.

view · edit · print · history · Last edited by Ovidiu Sas.
Originally by BrianZhou.
Page last modified on December 30, 2012, at 07:30 AM