-
Notifications
You must be signed in to change notification settings - Fork 24
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
rootfs: Add riscv64 arch support #139
Conversation
Currently vmtest in bpf selftests already supports riscv64, let us support online riscv64 rootfs image. Signed-off-by: Pu Lehui <[email protected]>
4dc2fd6
to
1c2146f
Compare
FYI, in the case of BPF CI, we are now running the tests using https://github.com/danobi/vmtest which re-uses the local rootfs. It can also support taking a directory to take as a rootfs. Currently, it does not support RISCV64, but with the help of https://lore.kernel.org/all/[email protected]/ it should be possible to add support. In the meantime, I am going to build a rootfs and upload it to S3 so you can use it with the current bpf selftest script. |
#140 for the linking into INDEX. |
@pulehui danobi/vmtest#90 adds riscv64 support to danobi/vmtest. In my experience, it failed to boot a gzipped kernel. Aside from me banging my head as to why qemu was not booting, the other problem is that in BPF CI, we discover the location of the kernel using something along:
which as you can see, returns the .gz image. |
https://gist.github.com/chantra/05366d80873cf33379f96ff6d7c5c231 |
@chantra So much thanks for pushing riscv64 rootfs image.😁 As for the problem of failure to start qemu using Image.gz, I found that qemu [0] does not seem to support the startup of riscv64 gzipped kernel [actually I am not familiar with this]. I will try to locate this problem, but due to my recent busy work, I may not be able to reply it quickly. Link: https://gitlab.com/qemu-project/qemu/-/blob/master/hw/riscv/boot.c [0] |
Thanks. For now I think the best course of action would be to include https://gist.github.com/chantra/05366d80873cf33379f96ff6d7c5c231 in the config as part of BPF CI the day there is resources to run the tests. |
Right, or convert it in the run.sh script of run-qemu:
|
@chantra Hi Manu, Hope all is well!
Currently vmtest in bpf selftests already supports riscv64 [0]. Although we also support local rootfs images, for development convenience and subsequent BPF CI support, let us support online riscv64 rootfs image.
Currently I made a commit to add the riscv64 architecture to the rootfs Makefile, but because I don’t have permission, I can’t continue to push the riscv64 rootfs image to the BPF CI Amazon server. Could you help to deal with this?
Link: https://lore.kernel.org/all/[email protected] [0]