binfmt icon indicating copy to clipboard operation
binfmt copied to clipboard

add support for loongarch64

Open yzewei opened this issue 1 year ago • 10 comments

I'm very sorry, due to my operational errors, the last PR failed, re -submitted to complete the Loongarch support work. The LoongArch architecture (LoongArch) is an Instruction Set Architecture (ISA) that has a RISC style. @crazy-max @tonistiigi

yzewei avatar Dec 02 '23 09:12 yzewei

Add testcases for this in https://github.com/tonistiigi/binfmt/blob/master/.github/workflows/ci.yml#L114-L132 as well.

@crazy-max Is there anything else that needs to be enabled for CI side?

tonistiigi avatar Dec 06 '23 02:12 tonistiigi

Add testcases for this in https://github.com/tonistiigi/binfmt/blob/master/.github/workflows/ci.yml#L114-L132 as well.

@crazy-max Is there anything else that needs to be enabled for CI side?

Add debian image running test with the Loongarch architecture

yzewei avatar Dec 20 '23 06:12 yzewei

@crazy-max Thanks!

yzewei avatar Dec 20 '23 07:12 yzewei

@crazy-max Is there anything else that needs to be enabled for CI side?

I don't think so :+1:

crazy-max avatar Dec 20 '23 09:12 crazy-max

Seems test fails for loong64: https://github.com/tonistiigi/binfmt/actions/runs/7271830266/job/19818345215?pr=151#step:6:138

uname: error while loading shared libraries: libc.so.6: cannot stat shared object: Error 38

~I don't see linux/loong64 in the list of supported platforms either: https://github.com/tonistiigi/binfmt/actions/runs/7271830266/job/19818345215?pr=151#step:6:50~

crazy-max avatar Dec 20 '23 10:12 crazy-max

Seems test fails for loong64: https://github.com/tonistiigi/binfmt/actions/runs/7271830266/job/19818345215?pr=151#step:6:138

uname: error while loading shared libraries: libc.so.6: cannot stat shared object: Error 38

~I don't see linux/loong64 in the list of supported platforms either: https://github.com/tonistiigi/binfmt/actions/runs/7271830266/job/19818345215?pr=151#step:6:50~

Change the running test

There are some problems with the debian images libc.so under the cr.Loongnix.cn . After manual testing, the alpine image under the website can successfully output the uname -a

Or use yangzewei2023 can also complete the test

In order to unify, use yangzewei2023 here

yzewei avatar Dec 21 '23 03:12 yzewei

@yzewei Can you squash your commits please?

crazy-max avatar Dec 21 '23 10:12 crazy-max

@yzewei Can you squash your commits please?

OK

yzewei avatar Dec 22 '23 02:12 yzewei

@yzewei I opened #153 to check qemu build and also adds missing tests in https://github.com/tonistiigi/binfmt/commit/82f3ca76eeaf414399633786ca2c07e88c169514

crazy-max avatar Dec 25 '23 12:12 crazy-max

@yzewei I opened #153 to check qemu build and also adds missing tests in 82f3ca7

It looks like to adapt xx first

yzewei avatar Dec 27 '23 01:12 yzewei