These NAS have either a Marvell Armada 370
or a Marvell Armada XP
who both are armv7l
.
The bootstrap tutorial can be found here and is repeated on this wiki.
mkdir /volume1/@optware mkdir /opt mount -o bind /volume1/@optware /opt
feed=http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable ipk_name=`wget -qO- $feed/Packages | awk '/^Filename: ipkg-opt/ {print $2}'` wget $feed/$ipk_name tar -xOvzf $ipk_name ./data.tar.gz | tar -C / -xzvf - mkdir -p /opt/etc/ipkg echo "src cross $feed" > /opt/etc/ipkg/feeds.conf
Add the following line to /etc/profile
PATH=/opt/bin:/opt/sbin:$PATH
The following steps will allow to automatically bind the /volume1/@optware
directory to /opt
and trigger the /opt/etc/init.d/*
scripts.
Create the /etc/rc.local
file (chmod 755
) and insert:
#!/bin/sh # Optware setup [ -x /etc/rc.optware ] && /etc/rc.optware start
Create the /etc/rc.optware
file (chmod 755
) and insert:
#! /bin/sh if test -z "${REAL_OPT_DIR}"; then # next line to be replaced according to OPTWARE_TARGET REAL_OPT_DIR=/volume1/@optware fi case "$1" in start) echo "Starting Optware." if test -n "${REAL_OPT_DIR}"; then if ! grep ' /opt ' /proc/mounts >/dev/null 2>&1 ; then mkdir -p /opt mount -o bind ${REAL_OPT_DIR} /opt fi fi [ -x /opt/etc/rc.optware ] && /opt/etc/rc.optware ;; reconfig) true ;; stop) echo "Shutting down Optware." true ;; *) echo "Usage: $0 {start|stop|reconfig}" exit 1 esac exit 0
This device has an Intel Atom CE5335 i686
CPU.
We are using the bootstrap as explained here for Intel Atop CPU's :
wget http://ipkg.nslu2-linux.org/feeds/optware/syno-i686/cross/unstable/syno-i686-bootstrap_1.2-7_i686.xsh
, alternatively download the bootstrap to your PC and then copy it to a shared folder on the NAS
chmod +x **syno-i686-bootstrap_1.2-7_i686.xsh**
/root/.profile
you need to comment out (put a # before) the lines PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/syno/sbin:/usr/syno/bin:/usr/local/sbin:/usr/local/bin
and export PATH
. To do this enter the command vi /root/.profile
to open the file in vi. Now change vi to edit mode by pressing the “i” key on your keyboard. Use the down cursor key to move the cursor to the start of the line “PATH=/sbin…” and put a “#” infront of this line so it is now “#PATH=/sbin…”. Do the same for the line below so it is now “#export PATH”. Now press the escape key (to exit edit mode) and type “ZZ” (note they are capitals) to tell vi to save the file and exit. For background info on why this is neccessary for DSM 4 refer to http://forum.synology.com/enu/viewtopic.php?p=185512#p185512 (Alternatively, you can modify the PATH statement by prepending the existing $PATH. You can do this in vi by typing the following while in command mode: “:%s/PATH=/PATH=$PATH:/” and then “ZZ” to save and exit (or ESC and then“:q!” to quit without saving if you made a mistake.))