cirosantilli / linux-kernel-module-cheat

The perfect emulation setup to study and develop the Linux kernel v5.4.3, kernel modules, QEMU, gem5 and x86_64, ARMv7 and ARMv8 userland and baremetal assembly, ANSI C, C++ and POSIX. GDB step debug and KGDB just work. Powered by Buildroot and crosstool-NG. Highly automated. Thoroughly documented. Automated tests. "Tested" in an Ubuntu 24.04 host.
https://cirosantilli.com/linux-kernel-module-cheat
GNU General Public License v3.0
4.21k stars 605 forks source link

Plan to support RISC-V architecture? #174

Closed BeenLi closed 2 years ago

cirosantilli commented 2 years ago

Send PR and I'll gladly merge. I have booted RISC-V buildroot on QEMU in the past, so definitely doable, wasn't hard. Try this config: https://github.com/buildroot/buildroot/blob/master/configs/qemu_riscv64_virt_defconfig

BeenLi commented 2 years ago

ok, thanks. I'll try it when I have time.

cirosantilli commented 2 years ago

Some tips if you try:

Once that works, it is just a matter of adding more if/elses to every existing aarch64 if/else in this repo.