Skip to content

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>
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.

1 participant