Skip to content
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

Request for Inclusion of ashmem, binder, and memfd in the kernel for waydroid support #12601

Open
progressive-galib opened this issue Feb 18, 2025 · 4 comments
Labels
feature kconfig linux kernel configuration

Comments

@progressive-galib
Copy link

progressive-galib commented Feb 18, 2025


Feature Request: Add ashmem, binder, and memfd Support


Background


I wanna use Waydroid, which is an Android container designed for Wayland.

Issue


Waydroid depends on the ashmem and binder kernel modules. In the future, it will transition to using memfd. Most Linux distributions typically ship with ashmem and binder built into the kernel, but this is not the case with Microsoft’s implementation.

I have wrote a script that downloads the kernel, compiles the headers, and loads ashmem and binder. However, this setup tends to break every time i update my ubuntu or Microsoft updates underlying WSL.

Request


It would be greatly beneficial if you could consider adding for the following to the kernel by default it wont harm anybody but help a lot of us:

  • ashmem
  • binder
  • memfd (for future compatibility)

it is specially important now as support windows subsystem for android has stopped

Copy link

Logs are required for review from WSL team

If this a feature request, please reply with '/feature'. If this is a question, reply with '/question'.
Otherwise please attach logs by following the instructions below, your issue will not be reviewed unless they are added. These logs will help us understand what is going on in your machine.

How to collect WSL logs

Download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:

Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1
Set-ExecutionPolicy Bypass -Scope Process -Force
.\collect-wsl-logs.ps1

The script will output the path of the log file once done.

If this is a networking issue, please use collect-networking-logs.ps1, following the instructions here

Once completed please upload the output files to this Github issue.

Click here for more info on logging
If you choose to email these logs instead of attaching to the bug, please send them to [email protected] with the number of the github issue in the subject, and in the message a link to your comment in the github issue and reply with '/emailed-logs'.

@progressive-galib
Copy link
Author

/feature

Copy link

Diagnostic information
Found '/feature', adding tag 'feature'

@OneBlue OneBlue added the kconfig linux kernel configuration label Feb 18, 2025
@progressive-galib
Copy link
Author

@sirredbeard hey Hayden, could you look at this ? as i told you on telegram this would also solve WhitewaterFoundry/Fedora-Remix-for-WSL#226

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature kconfig linux kernel configuration
Projects
None yet
Development

No branches or pull requests

2 participants