NSLU2-Linux
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 varaible 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.

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 an anonymous user of NSLU2-Linux.
Originally by an anonymous user of NSLU2-Linux.
Page last modified on September 01, 2008, at 10:06 PM