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

need to upgrade to support loongarch64 #188

Open
zhangguanzhang opened this issue Mar 6, 2023 · 8 comments · May be fixed by #189
Open

need to upgrade to support loongarch64 #188

zhangguanzhang opened this issue Mar 6, 2023 · 8 comments · May be fixed by #189

Comments

@zhangguanzhang
Copy link

zhangguanzhang commented Mar 6, 2023

https://github.com/qemu/qemu/tree/v7.2.0/target
https://github.com/qemu/qemu/tree/v7.1.0/target/loongarch
https://raw.githubusercontent.com/qemu/qemu/f8d1ae82623fef4e7fb796efbaaa2ddc63594d09/scripts/qemu-binfmt-conf.sh

@userdocs
Copy link

You also need this update to qemu-binfmt-conf.sh because the previous commit fixe a mips detection issue

qemu/qemu@77d119d

Without this mips is broken when using this. It's should be applied.

@x93008
Copy link

x93008 commented Aug 7, 2023

Has there been any progress on this issue?

@zhangguanzhang
Copy link
Author

Has there been any progress on this issue?

https://zhangguanzhang.github.io/2023/03/07/qemu-binfmt_misc/

@xfan1024
Copy link

Hello, I create a new qemu-user-static image like this project, that support loongarch64.

can you try it xfan1024/qemu-user-static

$ docker run --rm --privileged xfan1024/qemu-user-static
$ docker run --rm -it openeuler-22.03-lts-loongarch uname -m
WARNING: The requested image's platform (linux/loong64) does not match the detected host platform (linux/amd64/v3) and no specific platform was requested
loongarch64

@zhangguanzhang
Copy link
Author

zhangguanzhang commented Nov 29, 2023

Hello, I create a new qemu-user-static image like this project, that support loongarch64.

can you try it xfan1024/qemu-user-static

$ docker run --rm --privileged xfan1024/qemu-user-static
$ docker run --rm -it openeuler-22.03-lts-loongarch uname -m
WARNING: The requested image's platform (linux/loong64) does not match the detected host platform (linux/amd64/v3) and no specific platform was requested
loongarch64
$ docker run --rm --privileged zhangguanzhang/qemu-user-static --reset -p yes
$ docker run --rm cr.loongnix.cn/library/debian:buster-slim uname -m
WARNING: The requested image's platform (linux/loong64) does not match the detected host platform (linux/amd64/v1) and no specific platform was requested
loongarch64

@leavelet
Copy link

Hello, I create a new qemu-user-static image like this project, that support loongarch64.
can you try it xfan1024/qemu-user-static

$ docker run --rm --privileged xfan1024/qemu-user-static
$ docker run --rm -it openeuler-22.03-lts-loongarch uname -m
WARNING: The requested image's platform (linux/loong64) does not match the detected host platform (linux/amd64/v3) and no specific platform was requested
loongarch64
$ docker run --rm --privileged zhangguanzhang/qemu-user-static --reset -p yes
$ docker run --rm cr.loongnix.cn/library/debian:buster-slim uname -m
WARNING: The requested image's platform (linux/loong64) does not match the detected host platform (linux/amd64/v1) and no specific platform was requested
loongarch64

If you want to use "New World" images, please refer to LCPU Loong64 Containers for more information.

It is recommended not to use zhangguanzhang/qemu-user-static as it may cause issues. Instead, you can use loongcr.lcpu.dev/multiarch/archlinux:latest.

@zhangguanzhang
Copy link
Author

Hello, I create a new qemu-user-static image like this project, that support loongarch64.
can you try it xfan1024/qemu-user-static

$ docker run --rm --privileged xfan1024/qemu-user-static
$ docker run --rm -it openeuler-22.03-lts-loongarch uname -m
WARNING: The requested image's platform (linux/loong64) does not match the detected host platform (linux/amd64/v3) and no specific platform was requested
loongarch64
$ docker run --rm --privileged zhangguanzhang/qemu-user-static --reset -p yes
$ docker run --rm cr.loongnix.cn/library/debian:buster-slim uname -m
WARNING: The requested image's platform (linux/loong64) does not match the detected host platform (linux/amd64/v1) and no specific platform was requested
loongarch64

If you want to use "New World" images, please refer to LCPU Loong64 Containers for more information.

It is recommended not to use zhangguanzhang/qemu-user-static as it may cause issues. Instead, you can use loongcr.lcpu.dev/multiarch/archlinux:latest.

https://github.com/Loongson-Cloud-Community/dockerfiles 龙芯官方仓库

@leavelet
Copy link

Hello, I create a new qemu-user-static image like this project, that support loongarch64.

can you try it xfan1024/qemu-user-static

$ docker run --rm --privileged xfan1024/qemu-user-static

$ docker run --rm -it openeuler-22.03-lts-loongarch uname -m

WARNING: The requested image's platform (linux/loong64) does not match the detected host platform (linux/amd64/v3) and no specific platform was requested

loongarch64

$ docker run --rm --privileged zhangguanzhang/qemu-user-static --reset -p yes

$ docker run --rm cr.loongnix.cn/library/debian:buster-slim uname -m

WARNING: The requested image's platform (linux/loong64) does not match the detected host platform (linux/amd64/v1) and no specific platform was requested

loongarch64

If you want to use "New World" images, please refer to LCPU Loong64 Containers for more information.

It is recommended not to use zhangguanzhang/qemu-user-static as it may cause issues. Instead, you can use loongcr.lcpu.dev/multiarch/archlinux:latest.

https://github.com/Loongson-Cloud-Community/dockerfiles 龙芯官方仓库

The loongson repo only contains dockerfiles for "Old World" and many of them are not reproducible.

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

Successfully merging a pull request may close this issue.

5 participants