Action-Build icon indicating copy to clipboard operation
Action-Build copied to clipboard

DroidSpaces 7 Support

Open xmicro opened this issue 1 month ago • 1 comments

Hello, DroidSpace 7 recently had an update. Some kernel changes are needed:


Droidspaces v7.0.0 - Checking system requirements...

[MUST HAVE]
These features are required for Droidspaces to work:

  [✓] Root privileges
  [✓] Linux version
  [✓] PID namespace
  [✓] Mount namespace
  [✓] UTS namespace
  [✓] IPC namespace
  [✓] pivot_root syscall
  [✓] /proc filesystem
  [✓] /sys filesystem
  [✓] Seccomp support

[RECOMMENDED]
These features improve functionality but are not strictly required:

  [✓] epoll support
  [✓] signalfd support
  [✓] PTY support
  [✓] devpts support
  [✓] Loop device
  [✓] ext4 filesystem
  [✓] Cgroup v2 support
  [✓] Cgroup namespace
  [✓] devtmpfs support

[OPTIONAL]
These features are optional and only used for specific functionality:

  [✓] FUSE support
  [✓] TUN/TAP support
  [✓] OverlayFS support
  [✓] Network namespace
  [✓] Bridge device support
  [✓] Veth pair support
  [✗] Macvlan support
      CONFIG_MACVLAN; required for --net=macvlan
  [✓] IPv6 NAT support
  [✓] Memory limit support
  [✓] CPU limit support
  [✓] CPU usage accounting
  [✗] Process limit support
      CONFIG_CGROUP_PIDS, and no cgroup_disable=pids on the kernel command line; --pids-limit is skipped if absent
  [✓] Sandboxing (user namespaces)

Summary:

  [✓] All required features found!

Command executed (exit code: 0)

Requirements check completed successfully

Namely: [✗] Macvlan support CONFIG_MACVLAN; required for --net=macvlan [✗] Process limit support CONFIG_CGROUP_PIDS, and no cgroup_disable=pids on the kernel command line; --pids-limit is skipped if absent

Thank you!

Edit: thses are probably helpful.... https://github.com/ravindu644/Droidspaces-OSS/blob/main/Documentation/Kernel-Configuration.md#step-2-edit-the-gki-defconfig

https://github.com/ravindu644/Droidspaces-OSS/blob/main/Documentation/Kernel-Configuration.md#cpu-and-process-limits-on-gki

According to it, MACVLAN should be as simple as adding a single kernel switch. However, process limit is more complicated with non-generic/vendor GKI builds:

CONFIG_CFS_BANDWIDTH, which --cpus needs, and CONFIG_CGROUP_PIDS, which --pids-limit needs, change the size of scheduler and cgroup structures that almost every exported kernel function refers to. On a 5.15 GKI tree they changed the checksum of about four thousand exported symbols, and no padding trick covers that. Stock vendor modules then refuse to load and the device bootloops.

Turn them on only if you can rebuild every kernel module on the device from the same source tree and configuration, and flash them in vendor_boot, vendor_dlkm and system_dlkm together with the new boot.img, all at once. If any module is a prebuilt with no source, you cannot. Do not disable CONFIG_MODVERSIONS or force-load modules to get past the check; the structures really did change.

(see second link for more details)

I'm not sure if this would be supported or not or whether the vendor modules are all rebuilt from the same tree like it says (I can try to do some testing). However, of note, it does say that the same requirement is needed for the CPU limit option, which does already appear to be supported, so I wonder if this one would be as well.

Edit 2: can't test anything right now since SuSFS update is broken with upstream so can't build.. gotta wait I guess

xmicro avatar Oct 19 '26 18:10 xmicro

I've added CONFIG_MACVLAN=y; the rest is waiting on further testing.

Numbersf avatar Oct 21 '26 03:10 Numbersf