Skip to content

Add RISC-V32 QEMU-virt example#492

Merged
fdesbiens merged 1 commit intoeclipse-threadx:devfrom
akifejaz:qemu-virt-rv32
Feb 25, 2026
Merged

Add RISC-V32 QEMU-virt example#492
fdesbiens merged 1 commit intoeclipse-threadx:devfrom
akifejaz:qemu-virt-rv32

Conversation

@akifejaz
Copy link

@akifejaz akifejaz commented Jan 1, 2026

This commit introduces the complete example build environment for the RISC-V32/GNU port targeting the QEMU virt machine. It includes basic BSP components, startup code, drivers, linker script, and a minimal ThreadX demo application.

In order to build we can use threadx/ports/risc-v32/gnu/example_build/qemu_virt/build_libthreadx.sh script and use the following cmd to run it:

qemu-system-riscv32 -nographic -smp 1 -bios none -m 128M -machine virt -kernel kernel.elf

Expected Result:

[Thread] : thread_0_entry is here!
[Thread] : thread_5_entry is here!
[Thread] : thread_3_and_4_entry is here!
[Thread] : thread_3_and_4_entry is here!
[Thread] : thread_6_and_7_entry is here!
[Thread] : thread_6_and_7_entry is here!
[Thread] : thread_1_entry is here!
[Thread] : thread_1_entry is here!
[Thread] : thread_1_entry is here!
..
..
[Thread] : thread_2_entry is here!
[Thread] : thread_2_entry is here!
[Thread] : thread_2_entry is here!
..
..
[Thread] : thread_3_and_4_entry is here!
[Thread] : thread_6_and_7_entry is here!
[Thread] : thread_1_entry is here!
[Thread] : thread_1_entry is here!
[Thread] : thread_1_entry is here!
..
..
[Thread] : thread_2_entry is here!
[Thread] : thread_2_entry is here!
[Thread] : thread_2_entry is here!
..
..
[Thread] : thread_3_and_4_entry is here!
[Thread] : thread_6_and_7_entry is here!


This commit introduces the complete example build environment for the
RISC-V32/GNU port targeting the QEMU virt machine. It includes basic BSP
components, startup code, drivers, linker script, and a minimal ThreadX
demo application.

Signed-off-by: Akif Ejaz <akif.ejaz@10xengineers.ai>
@fdesbiens fdesbiens moved this to In review in ThreadX Roadmap Jan 6, 2026
@fdesbiens fdesbiens merged commit 8f126ee into eclipse-threadx:dev Feb 25, 2026
1 check passed
@github-project-automation github-project-automation bot moved this from In review to Done in ThreadX Roadmap Feb 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants