multiarch / qemu-user-static

:earth_africa: `/usr/bin/qemu-*-static`
https://hub.docker.com/r/multiarch/qemu-user-static/
MIT License
2.41k stars 224 forks source link

need to upgrade to support loongarch64 #188

Open zhangguanzhang opened 1 year ago

zhangguanzhang commented 1 year ago

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 commented 1 year ago

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

https://github.com/qemu/qemu/commit/77d119dd335f910c7f953a265726e3753c69a0bb

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

x93008 commented 1 year ago

Has there been any progress on this issue?

zhangguanzhang commented 1 year ago

Has there been any progress on this issue?

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

xfan1024 commented 9 months ago

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 commented 9 months ago

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 commented 4 months ago

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 commented 4 months ago

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 commented 4 months ago

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.