NB: the following steps will require SSH access and administrator rights. For the latter, either use
sudo for each command or use
su to log in as root.
- The kernel modules for each supported platform can be found in
modules/. Copy the required files to your Synology and move them to
- To make DSM 7 automatically load the kernel modules at boot time, copy the file
systemctl restart systemd-modules-loadto load the modules
Alternative method to load the modules at boot time
- Copy the included file
- Make sure that the file has executable permissions:
chmod +x /usr/local/etc/rc.d/usb-serial-drivers.sh
After completing the previous step, run the script to load the modules:
Building from source
I've built these modules in an Ubuntu 18.04.5 virtual machine on my Synology NAS.
To set up the build environment, I followed the steps in this document. The different NAS targets/platforms can be installed next to each other.
To build the modules for a particular platform, I follow these steps:
sudo rm -fr /toolkit/build_env/ds.$platform-7.0/source sudo /toolkit/pkgscripts-ng/PkgCreate.py -X 1 -P 1 -v 7.0 --min-sdk 7.0 -p $platform $module cp -v /toolkit/build_env/ds.$platform-7.0/source/$module/*.ko /tmp
$platform with the NAS platform, for example
$module with the source directory name (found in
sources/ in this repository) relevant for that particular platform. For example,
apollolake requires the
Put together, to build for
apollolake, the commands become:
sudo rm -fr /toolkit/build_env/ds.apollolake-7.0/source sudo /toolkit/pkgscripts-ng/PkgCreate.py -X 1 -P 1 -v 7.0 --min-sdk 7.0 -p apollolake 4.4.x cp -v /toolkit/build_env/ds.apollolake-7.0/source/$module/*.ko /tmp
Due to some concurrency issues that I haven't bothered to look into, the second step (
PkgCreate) sometimes fails with a compilation error. If that happens, start over.
The last step will copy the driver modules to
I don't/can't test every driver. Use at your own peril.
I'm using the source code (as-is) for the drivers included in the Linux kernel from the Synology Open Source Project.