Synology

From CourvilleWiki

Jump to: navigation, search

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:

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