-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ZFS module unable to build #54
Comments
Can you retest with this image? |
It's failing on this image too:
make.log has nothing extra:
as a side note, the ubuntu image wouldn't boot |
We do not test or recommend Ubuntu image, as Rockchip based devices requires Rockchip custom packages to have better hardware support, which is currently available for Debian. However, booting issue was reported to us before and we look to fix it soon to support ROS users (which support Ubuntu only). I'll check PDE_DATA related kernel config. However, Rockchip kernel is a backported monster splitting off from mainline Linux back in 2.x days, so it might not work after all. |
Hello, was there any progress on this @RadxaYuntian. I am only asking because I need to move to a different board if I can't get this working. |
I looked at it briefly before and it seems to be missing quite a few parts. It is not trivial and it will take a while before I'm back working on ROCK 5. |
This is caused by the upstream kernel being derived from Android ACK kernel, which has all VFS symbol exported to a different namespace than where the vanilla kernel exports them to. To build ZFS on this kernel you need to patch zfs. Open |
Hello, I found that |
diff -durN zfs-2.2.0.orig/config/kernel.m4 zfs-2.2.0/config/kernel.m4
--- zfs-2.2.0.orig/config/kernel.m4 2023-10-13 07:03:31.000000000 +0800
+++ zfs-2.2.0/config/kernel.m4 2023-10-21 17:15:21.214263487 +0800
@@ -660,6 +660,7 @@
MODULE_AUTHOR(ZFS_META_AUTHOR);
MODULE_VERSION(ZFS_META_VERSION "-" ZFS_META_RELEASE);
MODULE_LICENSE($3);
+MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver);
])
dnl #
diff -durN zfs-2.2.0.orig/module/os/linux/spl/spl-generic.c zfs-2.2.0/module/os/linux/spl/spl-generic.c
--- zfs-2.2.0.orig/module/os/linux/spl/spl-generic.c 2023-10-13 07:41:34.965111309 +0800
+++ zfs-2.2.0/module/os/linux/spl/spl-generic.c 2023-10-21 17:16:25.231694524 +0800
@@ -929,3 +929,4 @@
MODULE_AUTHOR(ZFS_META_AUTHOR);
MODULE_LICENSE("GPL");
MODULE_VERSION(ZFS_META_VERSION "-" ZFS_META_RELEASE);
+MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver);
diff -durN zfs-2.2.0.orig/module/os/linux/zfs/zfs_ioctl_os.c zfs-2.2.0/module/os/linux/zfs/zfs_ioctl_os.c
--- zfs-2.2.0.orig/module/os/linux/zfs/zfs_ioctl_os.c 2023-10-13 07:41:34.894111142 +0800
+++ zfs-2.2.0/module/os/linux/zfs/zfs_ioctl_os.c 2023-10-21 17:17:42.042612036 +0800
@@ -377,3 +377,4 @@
MODULE_LICENSE("Dual BSD/GPL"); /* zstd / misc */
MODULE_LICENSE(ZFS_META_LICENSE);
MODULE_VERSION(ZFS_META_VERSION "-" ZFS_META_RELEASE);
+MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver); |
Thank you very much! You're great. |
Hello, I am attempting to use ZFS on the rock 5b, however I am running into multiple issues that I believe need to be addressed.
The first issue is that some of the scripts are trying to use
/bin/env python
when it should be usingpython3
as the python symlink is disabled by default. Can be fixed by installingpython-is-python3
. Of course if we're expecting to use python2 here, then it should be using/bin/env python2
My next roadblock was an error from the DKMS install
Reviewing the config.log:
Attempting to build this manually:
Commenting out the following in
linux-headers-5.10.110-rockchip-rk3588/arch/arm64/Makefile
gets around that error:But commenting out that code leads to:
So overall... there's no way to use ZFS on this kernel and likely many other DKMS installed kernel modules.
The text was updated successfully, but these errors were encountered: