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

Support RISC-V #60

Merged
merged 1 commit into from
Jun 14, 2023
Merged

Support RISC-V #60

merged 1 commit into from
Jun 14, 2023

Conversation

chazapis
Copy link
Contributor

@chazapis chazapis commented Jun 14, 2023

Buildroot already supports RISC-V, so it seems trivial to add this architecture to the list and move a step closer to RISC-V support for K3S.

I have already tested this manually, by running the scripts/ci script inside an Ubuntu 22.04 container with all necessary development tools. I also include the additional architecture in the Drone file.

Signed-off-by: Antony Chazapis <chazapis@ics.forth.gr>
@brandond
Copy link
Member

We don't currently cross-build any of our architectures so this would be new. You've confirmed that the resulting artifacts function properly on a risc-v host?

@chazapis
Copy link
Contributor Author

We don't currently cross-build any of our architectures so this would be new. You've confirmed that the resulting artifacts function properly on a risc-v host?

Sure. I have built k3s-root and k3s manually and tested them on a RISC-V QEMU VM running Ubuntu. This is some output to verify that the binaries are indeed usable:

root@ubuntu:~# uname -a
Linux ubuntu 5.19.0-1012-generic #13~22.04.1-Ubuntu SMP Thu Jan 12 15:34:31 UTC 2023 riscv64 riscv64 riscv64 GNU/Linux
root@ubuntu:~# cd /var/lib/rancher/k3s/data/current/bin
root@ubuntu:/var/lib/rancher/k3s/data/current/bin# file busybox
busybox: ELF 64-bit LSB executable, UCB RISC-V, double-float ABI, version 1 (SYSV), statically linked, stripped
root@ubuntu:/var/lib/rancher/k3s/data/current/bin# ./busybox id
uid=0(root) gid=0(root) groups=0(root)

@chazapis
Copy link
Contributor Author

I have also submitted a relevant PR in k3s.

@brandond brandond merged commit be4d58e into k3s-io:master Jun 14, 2023
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 this pull request may close these issues.

3 participants