luojia65 opened a new pull request, #21865:
URL: https://github.com/apache/nuttx/pull/21865

   ## Summary
   
   Add an optional RustSBI Prototyper firmware build for the QEMU RV64 
supervisor-mode kernel. This lets `rv-virt` boot with RustSBI as the SBI 
provider.
   
   ## Impact
   
   `CONFIG_RUSTSBI` adds a separate firmware image to Make and CMake builds and 
requires a RustSBI checkout and its Rust toolchain. Existing configurations do 
not enable it. The rv-virt documentation includes the QEMU command; use QEMU's 
default CLINT with the tested RustSBI revision for SMP.
   
   ## Testing
   
   Host: Ubuntu 24.04 x86_64, RISC-V GCC 13.2.0, QEMU 11.1.3. RustSBI revision: 
[ed95913](https://github.com/rustsbi/rustsbi/tree/ed95913a6bb171914798c2d085d1101622a97da0).
   
   - Make and CMake: `rv-virt:knsh64` with `CONFIG_RUSTSBI=y`, against NuttX 
master `463ec29`. Both firmware images booted in QEMU and ran 
`/system/bin/hello`.
   - Make: `rv-virt:ksmp64` with `CONFIG_RUSTSBI=y`, on NuttX base `74e4c2f`. 
QEMU with four harts and the default CLINT ran the SMP test; all eight test 
threads completed.
   
   QEMU output excerpt:
   
   ```text
   NuttShell (NSH) NuttX-13.1.1-RC0
   Hello, World!!
   ```
   
   Windows builds and physical hardware were not tested.
   
   ## PR verification Self-Check
   
   - [x] This PR introduces only one functional change.
   - [x] The summary, impact, and testing information are provided.
   - [x] The PR is ready for review.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to