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

Consider to add loong64 support #108

Open
probonopd opened this issue Dec 8, 2024 · 7 comments
Open

Consider to add loong64 support #108

probonopd opened this issue Dec 8, 2024 · 7 comments

Comments

@probonopd
Copy link
Member

probonopd commented Dec 8, 2024

loong64 might become popular, particular in China. So supporting it would be welcome in principle, even though I currently have no hardware to test it with.

@msojocs, I am hesitant to build anything that I cannot test. Would a "Loongson 2K1000LA" development board be good to test this?

Testing using qemu could be a potential fallback.

References

@msojocs
Copy link

msojocs commented Dec 9, 2024

According to the official documentation, the "2K1000LA processor utilizes the LoongArch instruction set (Dragon Architecture)," but since I couldn't find any English documents, it might not be a good choice. (Sorry, I don't know much about this.)

Chinese introduction with manual

English introduction without manual

@probonopd
Copy link
Member Author

Can you recommend an inexpensive device to test this with?

@msojocs
Copy link

msojocs commented Dec 10, 2024

Sorry, I don't know much about Loongson hardware.

I am using qemu.

@xen0n
Copy link

xen0n commented Dec 10, 2024

As a community LoongArch porter and upstream maintainer of various projects' LoongArch ports, I can say QEMU linux-user emulation should be enough for test-driving LoongArch, as long as you don't depend on super privileged kernel interfaces, or hard-to-emulate intricate behavior like heavy lock-free parallelism. That said, we have been using QEMU all the time ourselves for developing and cross-building packages on our non-LoongArch rigs, so problems should be rare and someone from Loongson would fix any bug reported upstream.

As for real hardware to purchase, outside of China we generally recommend the 3A6000+7A2000 boards on AliExpress. The XA61200 model in particular is officially supported by Loongson, with regular firmware updates, and many community members find its desktop performance to be good with an AMD GPU. You'll have Alpine, Debian, Gentoo stage3 and various distros to choose from.

Hope this helps and thanks for your efforts on AppImage! (I personally use AppImage-packed apps from time to time and it certainly helps immensely.)

@probonopd
Copy link
Member Author

Hi @xen0n. Thank you for your detailed answer. And thanks for recommending these boards. However, these are outside of my spending limits at the moment. Do you know how popular devices with the Loongson architecture currently are in China for desktop (not server) use?

@xen0n
Copy link

xen0n commented Dec 11, 2024

Hi @xen0n. Thank you for your detailed answer. And thanks for recommending these boards. However, these are outside of my spending limits at the moment.

Would remote access to real hardware be sufficient for testing purposes? If so, I can notify the right people in Loongson to hopefully arrange for an account. The GCC Compile Farm also has LoongArch machines already, with Debian sid.

Do you know how popular devices with the Loongson architecture currently are in China for desktop (not server) use?

Hmm, based on my experience and some public information (that I read a long time ago), the total number could be several thousands already. On Baidu Tieba (kinda similar to Reddit) I can see a few parents buying LoongArch computer so they know their children wouldn't be able to play most games (without first learning how to set up emulation, or fixing bugs themselves, heh), and also a design firm doing CAD on LoongArch.

So, while I'm certainly biased to some extent, nevertheless it's probably 100010000s of them in active use right now, and the number is only going to increase in the next 35 years.

@xen0n
Copy link

xen0n commented Jan 5, 2025

Hmm, and BTW @sunhaiyong1978 and I noticed: the port would probably be best named "loongarch64" so as to match the Alpine Linux architecture name, as seems to be the case for other arch names.

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.

3 participants