For build on 6.0 Kernel, I have a patch to fix binder:
diff --git a/binder/binder_alloc.c b/binder/binder_alloc.c
index 61dd545..7fe818d 100644
--- a/binder/binder_alloc.c
+++ b/binder/binder_alloc.c
@@ -23,6 +23,7 @@
#include <linux/uaccess.h>
#include <linux/highmem.h>
#include <linux/sizes.h>
+#include <linux/version.h>
#include "binder_alloc.h"
#include "binder_trace.h"
@@ -1079,7 +1080,11 @@ int binder_alloc_shrinker_init(void)
int ret = list_lru_init(&binder_alloc_lru);
if (ret == 0) {
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6,0,0))
+ ret = register_shrinker(&binder_shrinker, "binder");
+#else
ret = register_shrinker(&binder_shrinker);
+#endif
if (ret)
list_lru_destroy(&binder_alloc_lru);
}
However, I have not worked on ashmem because waydroid can use memfd instead...
Pinned Comments
sickcodes commented on 2022-01-15 11:43 (UTC)
This has been adjusted to build on 5.10-5.15 thank you to legend Christian Hoff!
Working DKMS fork by Christian Hoff: https://github.com/choff/anbox-modules
DKMS add modules, without reboot:
Pull Requests: https://github.com/sickcodes/aur
Contact (Discord/Telegram/Git/Element): https://sick.codes