Synology
From CourvilleWiki
How to enable NFS support on synology DS-207 with 2.6.15 kernel
NFS support for DS-101g using a 2.4 kernel is well documented (e.g. here http://www.calivia.com/bk/nfs-server-on-synology-101g or there http://www.synology.com/enu/forum/viewtopic.php?t=3468) but the issue is that the DS-207 is using a 2.6.15 and thus we need to recompile the relevant modules in order to achieve the same goal on this specific hardware. Thus this document only deals with the 2.6.15 nfsd and exportfs kernel modules crosscompilation that are missing. Below are the steps I followed to perform the task:
- download and unpack GPL source code from synology at http://www.nas-forum.com/wiki/index.php/Sourcesgpl (file name is synogpl-462.tbz). Note that it has to match the version of your running firmware (i.e. it is not tested on the latest 509 version).
- download and unpack a cross compilation tree, one can be retreive here: http://oinkzwurgl.org/dl.php?file=gcc-3.3.4-glibc-2.3.3-debian-sarge-i386.tar.bz2
- go to source/linux-2.6.15
- in Makefile specify the right CROSS_COMPILE variable specifying the location of a valid cross compilation tree, e.g.:
CROSS_COMPILE ?= /home/synology/gcc-3.3.4-glibc-2.3.3/bin/powerpc-603e-linux-
- enable both nfsd and exportfs compilation as a module under file system/network file system menu when doing a
cp ppc824x-config .config make ARCH=ppc menuconfig
- compile the modules through a
make ARCH=ppc modules
- transfer the generated ./fs/nfsd/nfsd.ko and ./fs/exportfs/exportfs.ko to the synology NAS
- telnet to the NAS and perform in the right directory containing the freshly brewed modules
insmod ./exportfs.ko insmod ./nfsd.ko
and this does the trick! A binary version of the modules are available here:
Useful references
- how to enable telnet http://oinkzwurgl.org/diskstation
- how to enable nfs server with 2.4 kernel http://www.calivia.com/bk/nfs-server-on-synology-101g
- synology english forum http://www.synology.com/enu/forum/
- synology french forum http://www.nas-forum.com/
- gpl source from synology http://nas-forum.com/tracker
- NSLU2 DS101 home page http://www.nslu2-linux.org/wiki/DS101/HomePage
- ipkg optware repository http://ipkg.nslu2-linux.org/feeds/optware/ds101g/cross/stable/

