lupyuen commented on PR #15444:
URL: https://github.com/apache/nuttx/pull/15444#issuecomment-2588455134

   > It seems that `rv-virt:knsh` has this issue since `5076b0c74cc` which is 
pull/14064.
   
   Sorry @yf13 I can't reproduce the bug with `rv-virt:knsh` and 
`rv-virt:knsh64`, based on 
https://github.com/apache/nuttx/commit/5076b0c74ccc280e4af6042219f6a5d07e78b7ac 
and https://github.com/apache/nuttx/pull/14064. Did I miss something?
   
   - 
https://github.com/apache/nuttx/commit/5076b0c74ccc280e4af6042219f6a5d07e78b7ac 
was merged at 2024-10-11T03:20:45
   - Most Recent NuttX App is 
https://github.com/apache/nuttx-apps/commit/9003110d7f68a0b4c24519b24a3254b6a23446e5
 dated 2024-10-10T19:02:23
   - Which I branched off as 
https://github.com/lupyuen2/wip-nuttx-apps/blob/uname2/examples/hello/hello_main.c
   - And changed the `hello` code to:
     ```c
     static char NAME[] = "NuttX";
     int main(int argc, FAR char *argv[])
     {
       printf("NAME=%s\n", NAME);
       printf("Address of NAME=%p\n", NAME);
       return 0;
     }
     ```
   I compiled NuttX for 
https://github.com/apache/nuttx/commit/5076b0c74ccc280e4af6042219f6a5d07e78b7ac:
   ```text
   + git clone https://github.com/apache/nuttx --branch master nuttx
   + git clone https://github.com/lupyuen2/wip-nuttx-apps apps --branch uname2
   + cd nuttx
   + git reset --hard 5076b0c74cc
   HEAD is now at 5076b0c74c risc-v:Unify module compilation options
   NuttX Source: 
https://github.com/apache/nuttx/tree/5076b0c74ccc280e4af6042219f6a5d07e78b7ac
   NuttX Apps: 
https://github.com/apache/nuttx-apps/tree/bf6d2f2be67b138f9bf1f4f69a9663cd10eb7663
   + tools/configure.sh rv-virt:knsh
   Or tools/configure.sh rv-virt:knsh64
   + make -j ; make export
   + pushd ../apps ; ./tools/mkimport.sh -z -x 
../nuttx/nuttx-export-12.8.0.tar.gz ; make import ; popd
   ```
   
   `rv-virt:knsh` tested OK:
   https://gist.github.com/lupyuen/a1544d3298035e0dd983ef636ebb728a
   ```text
   + tools/configure.sh rv-virt:knsh
   + qemu-system-riscv32 -semihosting -M virt,aclint=on -cpu rv32 -kernel nuttx 
-bios opensbi-1.5-rv-bin/share/opensbi/ilp32/generic/firmware/fw_dynamic.bin 
-nographic
   QEMU emulator version 9.2.0
   OpenSBI v1.5
   nsh> uname -a
   NuttX 12.8.0 5076b0c74c Jan 14 2025 07:07:44 risc-v rv-virt
   nsh> hello
   NAME=NuttX
   Address of NAME=0xc0101000
   ```
   
   `rv-virt:knsh64` also tested OK:
   https://gist.github.com/lupyuen/54727956551cd6bea113891ddfd09288
   ```text
   + tools/configure.sh rv-virt:knsh64
   + qemu-system-riscv64 -semihosting -M virt,aclint=on -cpu rv64 -kernel nuttx 
-nographic
   QEMU emulator version 9.2.0
   OpenSBI v1.5.1
   nsh> uname -a
   NuttX 12.8.0 5076b0c74c Jan 14 2025 07:08:20 risc-v rv-virt
   nsh> hello
   NAME=NuttX
   Address of NAME=0xc0101000
   ```
   


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