Building Risc-V Linux kernel images for qemu without rebuilding bbl
Hi folks,
I have been trying to set up Risc-V qemu test builds on kerneltests.org. Major hold-up at this point is the need to continuously rebuild bbl images with embedded kernel images. Due to various reasons, this is all but impossible with my auto-build system.
Is there a means to load bbl and vmlinux images separately into qemu, or maybe a tool to attach the kernel to a pre-built bbl image ? Of course, it would be even better if it was possible to just specify "-kernel vmlinux" or something similar on the kernel command line.
Thanks,
Guenter
Quoted 11 lines · Guenter Roeck
Hi folks,
I have been trying to set up Risc-V qemu test builds on kerneltests.org. Major hold-up at this point is the need to continuously rebuild bbl images with embedded kernel images. Due to various reasons, this is all but impossible with my auto-build system.
Is there a means to load bbl and vmlinux images separately into qemu, or maybe a tool to attach the kernel to a pre-built bbl image ? Of course, it would be even better if it was possible to just specify "-kernel vmlinux" or something similar on the kernel command line.
This isn't currently possible, but several people have expressed an interest in it.
Recent discussion:
https://github.com/sifive/freedom-u-sdk/issues/33#issuecomment-368260995
https://github.com/riscv/riscv-qemu/pull/109#issuecomment-367885879
-s
Quoted 13 lines · Stef O'Rear
Quoted 11 lines · Guenter Roeck
Hi folks,
I have been trying to set up Risc-V qemu test builds on kerneltests.org. Major hold-up at this point is the need to continuously rebuild bbl images with embedded kernel images. Due to various reasons, this is all but impossible with my auto-build system.
Is there a means to load bbl and vmlinux images separately into qemu, or maybe a tool to attach the kernel to a pre-built bbl image ? Of course, it would be even better if it was possible to just specify "-kernel vmlinux" or something similar on the kernel command line.
Quoted 9 lines
This isn't currently possible, but several people have expressed an interest in it.
Recent discussion:
https://github.com/sifive/freedom-u-sdk/issues/33#issuecomment-368260995
https://github.com/riscv/riscv-qemu/pull/109#issuecomment-367885879
Excellent. I am looking forward for it to be available in some form.
Something to consider in this context might be to ship bbl with qemu and hide it behind the qemu command line. This is done for various other architectures, so I would assume it should be possible for Risc-V as well. This way the user could specify "-kernel vmlinux" or similar without having to bother about the bootloader in the first place.
Thanks,
Guenter