qemu-user-static icon indicating copy to clipboard operation
qemu-user-static copied to clipboard

need to upgrade to support loongarch64

Open zhangguanzhang opened this issue 2 years ago • 8 comments

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

zhangguanzhang avatar Mar 06 '23 06:03 zhangguanzhang

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.

userdocs avatar Mar 27 '23 20:03 userdocs

Has there been any progress on this issue?

x93008 avatar Aug 07 '23 02:08 x93008

Has there been any progress on this issue?

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

zhangguanzhang avatar Aug 07 '23 02:08 zhangguanzhang

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

xfan1024 avatar Nov 28 '23 16:11 xfan1024

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

zhangguanzhang avatar Nov 29 '23 01:11 zhangguanzhang

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.

leavelet avatar May 14 '24 03:05 leavelet

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 龙芯官方仓库

zhangguanzhang avatar May 14 '24 05:05 zhangguanzhang

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.

leavelet avatar May 14 '24 05:05 leavelet

You'd better use https://github.com/loong64/docker-library

leleliu008 avatar Jul 07 '25 12:07 leleliu008