From DietPi Bookworm upgrade note , it looks like ksmbd should be available now. While the packages are there, I cannot get them to run:
# journalctl -fu ksmbd
Journal file /var/log/journal/f8890fe1e1de41b7935dd7e38ff63562/system.journal is truncated, ignoring file.
Apr 22 11:02:09 orangepi5plus systemd[1]: Starting ksmbd.service - ksmbd userspace daemon...
Apr 22 11:02:09 orangepi5plus systemd[1]: Started ksmbd.service - ksmbd userspace daemon.
Apr 22 11:02:09 orangepi5plus ksmbd[1084344]: [ksmbd-worker/1084344]: ERROR: Cannot resolve netlink family
Apr 22 11:02:14 orangepi5plus ksmbd[1084344]: [ksmbd-worker/1084344]: ERROR: Cannot resolve netlink family
I have an orange pi 5 plus with DietPi v9.11.2
Does anyone have experience with ksmbd?
This has nothing to do with DietPi version or DietPi tooling. ksmbd has merged to mainline kernel in the Linux 5.15 release. ksmbd-tools/README.md at master · cifsd-team/ksmbd-tools · GitHub
The software package ksmbd-tools
is available on global Debian package repository Debian -- Package Search Results -- ksmbd-tools and can be installed using apt
package manager. If there are issue with the package, it might be good to contact the respective package/software maintainer.
Thank you. Did DietPi use stock armbian kernel (for rk3588)? because they have CONFIG_SMB_SERVER=m but in DietPi the module seems missing:
# lsmod | grep ksmbd
<empty>
# modinfo ksmbd
modinfo: ERROR: Module ksmbd not found.
# zgrep CONFIG_SMB_SERVER /proc/config.gz
# CONFIG_SMB_SERVER is not set
pulpe
23 April 2025 15:07
4
This is from image, that is on download page as i don’t have OrangePi 5 Plus.
$ grep CONFIG_SMB_SERVER boot/config-6.1.84-vendor-rk35xx
CONFIG_SMB_SERVER=m
CONFIG_SMB_SERVER_CHECK_CAP_NET_ADMIN=y
CONFIG_SMB_SERVER_KERBEROS5=y
Look like it is build in kernel as module.
What kernels do you have?
ls -l /boot
Sorry it turned out to be another user error.
I had kernel 6.1.75-vendor-rk35xx. Upgrading to 6.1.84-vendor-rk35xx and ksmbd support is working.
1 Like