-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Add support for loongarch64 #3969
Conversation
I am not sure I understand the purpose. I understand adding loongarch64 support to binfmt. But If so, you need to update all of the dependencies so that CI will pick it up. From within the root, run: ./scripts/update-component-sha.sh --pkg pkg/binfmt That will update all of the tests and examples and everything else that use |
Signed-off-by: yzewei <yangzewei@loongson.cn>
Thank you, adding loongarch64 support allows users to build loongarch64 in other architectures. Since the mainstream architecture is mainly amd64 at this stage, I think this is necessary for lovers who want to use the loongarch64 architecture. |
That is what I am trying to understand. The mainstream architecture is equally amd64 and arm64 (we used to have s390x support, but it was not being used by anyone seriously, and getting a build server was difficult, so we dropped it). It depends what you mean by "allows users to build loongarch64 in other architectures".
Which are you after? |
Thank you for your patience. As you said, linuxkit is huge scale. At the current stage, what I want to run a linuxkit-composed OS image, and then run loongarch64 process (or containers) on it. |
In that case, I think this works. Let's run CI and be sure it is clean. |
There seems to be no problem. |
Add support for loongarch64 Signed-off-by: Avi Deitcher <avi@deitcher.net>
- What I did
Add binfmt support for loongarch64 architecture.
- How I did it
Update pkg/binfmt/Dockerfile and pkg/binfmt/etc/binfmt.d/00_linuxkit.conf
Add QEMU masks and magics to loongarch
- How to verify it
docker buildx build --load -t linuxkit/binfmt:addloongarch64 -f Dockerfile .
docker run --rm --privileged -it linuxkit/binfmt:addloongarch64
docker run --rm -it yangzewei2023/debian:sid uname -a
Linux 2a333d9eb0ea 6.1.0-11-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.38-4 (2023-08-08) loongarch64 GNU/Linux
- Description for the changelog
Add support for cross-building loongarch64 images
- A picture of a cute animal (not mandatory but encouraged)