Since there is no proper guide and no binaries for this NAS with the Annapurna Labs Alpine armv7l CPU, here is all you need to install bootstrap and compile packages! This was a lot of work and I would like to thank the user “vputz” from the Synology forums for the basics how to set up the build environment.
This should work on all system with an Annapurna Alpine CPU.
I don’t have a proper web space to host a the package repository and I didn’t compile all packages so you have to use your own repository and compile missing packages.
Leave me a comment if you have questions, corrections etc. 🙂
I used the bootstrap for another ARM based bootstrap as a base and replaced only wget.ipk, ipkg-opt.ipk and modified the installer script to check for the correct CPU:
Download it, copy it to the NAS and run the installer:
tar xzf bootstrap-alpine.tgz
To get started with some packages, you can download the couple of packages I compiled for running rsnapshot and basic tools like screen, htop, cron, bash, vim. The list of all packages is at the end of this article.
tar xzf packages-alpine.tgz
mv packages-alpine /opt
ipkg install rsnapshot
If you want to place the packages elsewhere or on a webserver, modify:
More packages: https://cryptocurrency-investment.eu/optware_armv7l/
I used a Debian 8 64bit machine to set this up.
Note: svn.nslu2-linux.org seems down. I inserted a mirror below but I didn’t test if it works correctly.
You need subversion, build-essential and, if you compile on 64bit, 32bit libs:
sudo apt-get install subversion build-essential autoconf
sudo apt-get install lib32gcc1 lib32stdc++6 lib32z1 lib32readline6
#svn co http://svn.nslu2-linux.org/svnroot/optware/trunk optware ### seems down
svn co https://github.com/gugahoi/optware/trunk optware ### untested!
make hello-ipk # append -ipk to compile & create the package
scp -r packages root@nas:/opt/packages-alpine
[2015-10-11] The file toolchain-ds2015xs.mk contains updated TARGET_CUSTOM_FLAGS (CFLAGS) compilation flags for the target arm-linux-gnueabihf: -fPIC -marm
Remove or modify those if you have trouble compiling
Note that some links to source packages are dead so if you stumble across one, search for the exact filename in Google and download the package to the downloads folder. Then run make again.
Also note that some packages will only compile with further modifications, eg. Perl. Let me know if you need to compile Perl and I will create a patch.
If the nslu2 guys are reading this, you are welcome to add the target to your sources.
Basic guide to set up new build system: http://forum.synology.com/enu/viewtopic.php?f=40&t=69860&start=60#p305182