Skip to content

arch/risc-v: Sample Pull Request for RISC-V#88

Draft
lupyuen wants to merge 2 commits intomasterfrom
test-bot
Draft

arch/risc-v: Sample Pull Request for RISC-V#88
lupyuen wants to merge 2 commits intomasterfrom
test-bot

Conversation

@lupyuen
Copy link
Copy Markdown

@lupyuen lupyuen commented Feb 5, 2025

Summary

This is a Sample Pull Request for RISC-V Architecture. We'll test this with our new PR Test Bot for Apache NuttX RTOS.

Impact

This Pull Request shall be tested on Real Hardware: Oz64 SG2000 RISC-V SBC.

Testing

Normally this section will include the Test Log. But we'll test it again with our new Test Bot.

@lupyuen2 lupyuen2 deleted a comment from nuttxpr Feb 5, 2025
@lupyuen2 lupyuen2 deleted a comment from nuttxpr Feb 5, 2025
@lupyuen2 lupyuen2 deleted a comment from nuttxpr Feb 5, 2025
@lupyuen2 lupyuen2 deleted a comment from nuttxpr Feb 5, 2025
@lupyuen2 lupyuen2 deleted a comment from nuttxpr Feb 5, 2025
@lupyuen2 lupyuen2 deleted a comment from nuttxpr Feb 5, 2025
@lupyuen2 lupyuen2 deleted a comment from nuttxpr Feb 5, 2025
@lupyuen2 lupyuen2 deleted a comment from nuttxpr Feb 5, 2025
@lupyuen2 lupyuen2 deleted a comment from nuttxpr Feb 5, 2025
@lupyuen2 lupyuen2 deleted a comment from nuttxpr Feb 5, 2025
@lupyuen2 lupyuen2 deleted a comment from nuttxpr Feb 5, 2025
@lupyuen2 lupyuen2 deleted a comment from nuttxpr Feb 5, 2025
@lupyuen2 lupyuen2 deleted a comment from nuttxpr Feb 5, 2025
@lupyuen2 lupyuen2 deleted a comment from nuttxpr Feb 5, 2025
@lupyuen2 lupyuen2 deleted a comment from nuttxpr Feb 5, 2025
@lupyuen2 lupyuen2 deleted a comment from nuttxpr Feb 5, 2025
@lupyuen2 lupyuen2 deleted a comment from nuttxpr Feb 5, 2025
@github-actions github-actions bot added Size: S and removed Size: XS labels Feb 6, 2025
@lupyuen2 lupyuen2 deleted a comment from nuttxpr Feb 6, 2025
@lupyuen2 lupyuen2 deleted a comment from nuttxpr Feb 6, 2025
@lupyuen2 lupyuen2 deleted a comment from nuttxpr Feb 6, 2025
@lupyuen2 lupyuen2 deleted a comment from nuttxpr Feb 6, 2025
@lupyuen lupyuen changed the title Testing our bot arch/risc-v: Sample Pull Request for RISC-V Feb 13, 2025
@lupyuen2 lupyuen2 deleted a comment from nuttxpr Feb 13, 2025
@lupyuen2 lupyuen2 deleted a comment from nuttxpr Feb 13, 2025
@lupyuen2 lupyuen2 deleted a comment from nuttxpr Feb 13, 2025
@lupyuen2 lupyuen2 deleted a comment from nuttxpr Feb 13, 2025
@lupyuen
Copy link
Copy Markdown
Author

lupyuen commented Feb 13, 2025

@nuttxpr test oz64:nsh

@nuttxpr
Copy link
Copy Markdown

nuttxpr commented Feb 13, 2025

[Experimental Bot, please feedback here]

Build and Test Successful (milkv_duos:nsh)
https://gitlab.com/lupyuen/nuttx-build-log/-/snippets/4806032

$ git clone https://github.com/lupyuen2/wip-nuttx nuttx --branch test-bot
$ git clone https://github.com/apache/nuttx-apps apps --branch master
$ pushd nuttx
$ git reset --hard HEAD
HEAD is now at 7b440957bd Testing our bot
$ popd
$ pushd apps
$ git reset --hard HEAD
HEAD is now at 7f424c3e8 nshlib/builtin: check background task before restore the signal
$ popd
NuttX Source: https://github.com/apache/nuttx/tree/7b440957bde7e2d7723f61d1ad0a16f51770fc69
NuttX Apps: https://github.com/apache/nuttx-apps/tree/7f424c3e8ddaa0a6a828175b8e4205c1cc0a2a8a
$ cd nuttx
$ tools/configure.sh milkv_duos:nsh
$ make -j
$ make -j export
$ pushd ../apps
$ ./tools/mkimport.sh -z -x ../nuttx/nuttx-export-12.4.0.tar.gz
$ make -j import
$ popd
$ genromfs -f initrd -d ../apps/bin -V NuttXBootVol
$ head -c 65536 /dev/zero
$ cat nuttx.bin /tmp/nuttx.pad initrd
$ scp Image tftpserver:/tftpboot/Image-sg2000
$ ssh tftpserver ls -l /tftpboot/Image-sg2000
$ cd /home/luppy/nuttx-build-farm
$ ssh tftpserver
OpenSBI v0.9
nsh> uname -a
NuttX 12.4.0 7b440957bd Feb 13 2025 08:44:46 risc-v milkv_duos
nsh> ostest
arena       81000    81000
ordblks         2        3
mxordblk    7cff8    78ff8
uordblks     2660     4570
fordblks    7e9a0    7ca90
user_main: Exiting
ostest_main: Exiting with status 0
nsh> Now running https://github.com/lupyuen/nuttx-build-farm/blob/main/oz64-power.sh off
----- Power off Oz64
[]

@nuttxpr
Copy link
Copy Markdown

nuttxpr commented Feb 13, 2025

[Experimental Bot, please feedback here]

Build and Test Successful (milkv_duos:nsh)
https://gitlab.com/lupyuen/nuttx-build-log/-/snippets/4806034

$ git clone https://github.com/lupyuen2/wip-nuttx nuttx --branch test-bot
$ git clone https://github.com/apache/nuttx-apps apps --branch master
$ pushd nuttx
$ git reset --hard HEAD
HEAD is now at 7b440957bd Testing our bot
$ popd
$ pushd apps
$ git reset --hard HEAD
HEAD is now at 7f424c3e8 nshlib/builtin: check background task before restore the signal
$ popd
NuttX Source: https://github.com/apache/nuttx/tree/7b440957bde7e2d7723f61d1ad0a16f51770fc69
NuttX Apps: https://github.com/apache/nuttx-apps/tree/7f424c3e8ddaa0a6a828175b8e4205c1cc0a2a8a
$ cd nuttx
$ tools/configure.sh milkv_duos:nsh
$ make -j
$ make -j export
$ pushd ../apps
$ ./tools/mkimport.sh -z -x ../nuttx/nuttx-export-12.4.0.tar.gz
$ make -j import
$ popd
$ genromfs -f initrd -d ../apps/bin -V NuttXBootVol
$ head -c 65536 /dev/zero
$ cat nuttx.bin /tmp/nuttx.pad initrd
$ scp Image tftpserver:/tftpboot/Image-sg2000
$ ssh tftpserver ls -l /tftpboot/Image-sg2000
$ cd /home/luppy/nuttx-build-farm
$ ssh tftpserver
OpenSBI v0.9
nsh> uname -a
NuttX 12.4.0 7b440957bd Feb 13 2025 08:50:36 risc-v milkv_duos
nsh> ostest
arena       81000    81000
ordblks         2        3
mxordblk    7cff8    78ff8
uordblks     2660     4570
fordblks    7e9a0    7ca90
user_main: Exiting
ostest_main: Exiting with status 0
nsh> Now running https://github.com/lupyuen/nuttx-build-farm/blob/main/oz64-power.sh off
----- Power off Oz64
[]

@lupyuen
Copy link
Copy Markdown
Author

lupyuen commented Feb 17, 2025

@nuttxpr test qemu-armv8a:netnsh

@nuttxpr
Copy link
Copy Markdown

nuttxpr commented Feb 17, 2025

[Experimental Bot, please feedback here]

Build and Test Successful (qemu-armv8a:netnsh)
https://gitlab.com/lupyuen/nuttx-build-log/-/snippets/4807762

$ git clone https://github.com/lupyuen2/wip-nuttx nuttx --branch test-bot
$ git clone https://github.com/apache/nuttx-apps apps --branch master
$ pushd nuttx
$ git reset --hard HEAD
HEAD is now at 7b440957bd Testing our bot
$ popd
$ pushd apps
$ git reset --hard HEAD
HEAD is now at 62894b9ba examples/spislave_test: Add user data receive
$ popd
NuttX Source: https://github.com/apache/nuttx/tree/7b440957bde7e2d7723f61d1ad0a16f51770fc69
NuttX Apps: https://github.com/apache/nuttx-apps/tree/62894b9baf2978815ceec454e53118e6d83c84f6
$ aarch64-none-elf-gcc -v
$ cd nuttx
$ tools/configure.sh qemu-armv8a:netnsh
$ make -j
$ aarch64-none-elf-size nuttx
$ dd if=/dev/zero of=./mydisk-1gb.img bs=1M count=1024
$ qemu-system-aarch64 --version
QEMU emulator version 8.2.2 (Debian 1:8.2.2+ds-0ubuntu1.5)
$ qemu-system-aarch64 -cpu cortex-a53 -nographic -machine virt,virtualization=on,gic-version=3 -chardev stdio,id=con,mux=on -serial chardev:con -global virtio-mmio.force-legacy=false -device virtio-serial-device,bus=virtio-mmio-bus.0 -chardev socket,telnet=on,host=127.0.0.1,port=3450,server=on,wait=off,id=foo -device virtconsole,chardev=foo -device virtio-rng-device,bus=virtio-mmio-bus.1 -netdev user,id=u1,hostfwd=tcp:127.0.0.1:10023-10.0.2.15:23,hostfwd=tcp:127.0.0.1:15001-10.0.2.15:5001 -device virtio-net-device,netdev=u1,bus=virtio-mmio-bus.2 -drive file=./mydisk-1gb.img,if=none,format=raw,id=hd -device virtio-blk-device,bus=virtio-mmio-bus.3,drive=hd -mon chardev=con,mode=readline -kernel ./nuttx
nsh> uname -a
NuttX  12.4.0 7b440957bd Feb 18 2025 06:56:02 arm64 qemu-armv8a
nsh> ostest
VARIABLE  BEFORE   AFTER
======== ======== ========
arena     7be7000  7be7000
ordblks         8        6
mxordblk  7b91f38  7b8fef8
uordblks    51878    54c48
fordblks  7b95788  7b923b8
user_main: Exiting
ostest_main: Exiting with status 0

@lupyuen
Copy link
Copy Markdown
Author

lupyuen commented Feb 20, 2025

@nuttxpr test rv-virt:knsh64

@nuttxpr
Copy link
Copy Markdown

nuttxpr commented Feb 20, 2025

[Experimental Bot, please feedback here]

Build and Test Successful (rv-virt:knsh64)
https://gitlab.com/lupyuen/nuttx-build-log/-/snippets/4808969

$ git clone https://github.com/lupyuen2/wip-nuttx nuttx --branch test-bot
$ git clone https://github.com/apache/nuttx-apps apps --branch master
$ pushd nuttx
$ git reset --hard HEAD
HEAD is now at 7b440957bd Testing our bot
$ popd
$ pushd apps
$ git reset --hard HEAD
HEAD is now at 751c4efe7 system/psmq: add proper include path for embedlog
$ popd
NuttX Source: https://github.com/apache/nuttx/tree/7b440957bde7e2d7723f61d1ad0a16f51770fc69
NuttX Apps: https://github.com/apache/nuttx-apps/tree/751c4efe7f10d1450bd636e88b10994a3cdbf857
$ cd nuttx
$ tools/configure.sh rv-virt:knsh64
$ make -j
$ make -j export
$ pushd ../apps
$ ./tools/mkimport.sh -z -x ../nuttx/nuttx-export-12.4.0.tar.gz
$ make -j import
$ popd
$ qemu-system-riscv64 --version
QEMU emulator version 8.2.2 (Debian 1:8.2.2+ds-0ubuntu1.5)
$ qemu-system-riscv64 -semihosting -M virt,aclint=on -cpu rv64 -kernel nuttx -nographic
OpenSBI v1.3
nsh> uname -a
NuttX 12.4.0 7b440957bd Feb 20 2025 23:33:11 risc-v rv-virt
nsh> ostest
VARIABLE  BEFORE   AFTER
======== ======== ========
arena       81000    81000
ordblks         2        3
mxordblk    7cff8    78ff8
uordblks     2660     4570
fordblks    7e9a0    7ca90
user_main: Exiting
ostest_main: Exiting with status 0

@lupyuen lupyuen marked this pull request as draft February 24, 2025 13:24
@lupyuen
Copy link
Copy Markdown
Author

lupyuen commented Mar 7, 2025

@nuttxpr test milkv_duos:nsh

@nuttxpr
Copy link
Copy Markdown

nuttxpr commented Mar 7, 2025

[Experimental Bot, please feedback here]

Build and Test Successful (milkv_duos:nsh)
https://gitlab.com/lupyuen/nuttx-build-log/-/snippets/4819704

$ git clone https://github.com/lupyuen2/wip-nuttx nuttx --branch test-bot
$ git clone https://github.com/apache/nuttx-apps apps --branch master
$ pushd nuttx
$ git reset --hard HEAD
HEAD is now at 7b440957bd Testing our bot
$ popd
$ pushd apps
$ git reset --hard HEAD
HEAD is now at 9c829f665 examples: Add depends to different test cases
$ popd
NuttX Source: https://github.com/apache/nuttx/tree/7b440957bde7e2d7723f61d1ad0a16f51770fc69
NuttX Apps: https://github.com/apache/nuttx-apps/tree/9c829f66507165b61df67dd0ec251184bbfb5a06
$ cd nuttx
$ tools/configure.sh milkv_duos:nsh
$ make -j
$ make -j export
$ pushd ../apps
$ ./tools/mkimport.sh -z -x ../nuttx/nuttx-export-12.4.0.tar.gz
$ make -j import
$ popd
$ genromfs -f initrd -d ../apps/bin -V NuttXBootVol
$ head -c 65536 /dev/zero
$ cat nuttx.bin /tmp/nuttx.pad initrd
$ scp Image tftpserver:/tftpboot/Image-sg2000
$ ssh tftpserver ls -l /tftpboot/Image-sg2000
$ cd /home/luppy/nuttx-build-farm
$ ssh tftpserver
OpenSBI v0.9
nsh> uname -a
NuttX 12.4.0 7b440957bd Mar  7 2025 15:34:19 risc-v milkv_duos
nsh> ostest
arena       81000    81000
ordblks         2        3
mxordblk    7cff8    78ff8
uordblks     2660     4570
fordblks    7e9a0    7ca90
user_main: Exiting
ostest_main: Exiting with status 0
nsh> Now running https://github.com/lupyuen/nuttx-build-farm/blob/main/oz64-power.sh off
----- Power off Oz64
[]

@lupyuen
Copy link
Copy Markdown
Author

lupyuen commented Mar 7, 2025

@nuttxpr test rv-virt:knsh64

@nuttxpr
Copy link
Copy Markdown

nuttxpr commented Mar 7, 2025

[Experimental Bot, please feedback here]

Build and Test Successful (rv-virt:knsh64)
https://gitlab.com/lupyuen/nuttx-build-log/-/snippets/4819705

$ git clone https://github.com/lupyuen2/wip-nuttx nuttx --branch test-bot
$ git clone https://github.com/apache/nuttx-apps apps --branch master
$ pushd nuttx
$ git reset --hard HEAD
HEAD is now at 7b440957bd Testing our bot
$ popd
$ pushd apps
$ git reset --hard HEAD
HEAD is now at 9c829f665 examples: Add depends to different test cases
$ popd
NuttX Source: https://github.com/apache/nuttx/tree/7b440957bde7e2d7723f61d1ad0a16f51770fc69
NuttX Apps: https://github.com/apache/nuttx-apps/tree/9c829f66507165b61df67dd0ec251184bbfb5a06
$ cd nuttx
$ tools/configure.sh rv-virt:knsh64
$ make -j
$ make -j export
$ pushd ../apps
$ ./tools/mkimport.sh -z -x ../nuttx/nuttx-export-12.4.0.tar.gz
$ make -j import
$ popd
$ qemu-system-riscv64 --version
QEMU emulator version 8.2.2 (Debian 1:8.2.2+ds-0ubuntu1.6)
$ qemu-system-riscv64 -semihosting -M virt,aclint=on -cpu rv64 -kernel nuttx -nographic
OpenSBI v1.3
nsh> uname -a
NuttX 12.4.0 7b440957bd Mar  7 2025 15:38:54 risc-v rv-virt
nsh> ostest
VARIABLE  BEFORE   AFTER
======== ======== ========
arena       81000    81000
ordblks         2        3
mxordblk    7cff8    78ff8
uordblks     2660     4570
fordblks    7e9a0    7ca90
user_main: Exiting
ostest_main: Exiting with status 0

@lupyuen
Copy link
Copy Markdown
Author

lupyuen commented Mar 7, 2025

@nuttxpr test qemu-armv8a:netnsh

@nuttxpr
Copy link
Copy Markdown

nuttxpr commented Mar 7, 2025

[Experimental Bot, please feedback here]

Build and Test Successful (qemu-armv8a:netnsh)
https://gitlab.com/lupyuen/nuttx-build-log/-/snippets/4819715

$ git clone https://github.com/lupyuen2/wip-nuttx nuttx --branch test-bot
$ git clone https://github.com/apache/nuttx-apps apps --branch master
$ pushd nuttx
$ git reset --hard HEAD
HEAD is now at 7b440957bd Testing our bot
$ popd
$ pushd apps
$ git reset --hard HEAD
HEAD is now at 9c829f665 examples: Add depends to different test cases
$ popd
NuttX Source: https://github.com/apache/nuttx/tree/7b440957bde7e2d7723f61d1ad0a16f51770fc69
NuttX Apps: https://github.com/apache/nuttx-apps/tree/9c829f66507165b61df67dd0ec251184bbfb5a06
$ cd nuttx
$ tools/configure.sh qemu-armv8a:netnsh
$ make -j
$ dd if=/dev/zero of=./mydisk-1gb.img bs=1M count=1024
$ qemu-system-aarch64 --version
QEMU emulator version 8.2.2 (Debian 1:8.2.2+ds-0ubuntu1.6)
$ qemu-system-aarch64 -cpu cortex-a53 -nographic -machine virt,virtualization=on,gic-version=3 -chardev stdio,id=con,mux=on -serial chardev:con -global virtio-mmio.force-legacy=false -device virtio-serial-device,bus=virtio-mmio-bus.0 -chardev socket,telnet=on,host=127.0.0.1,port=3450,server=on,wait=off,id=foo -device virtconsole,chardev=foo -device virtio-rng-device,bus=virtio-mmio-bus.1 -netdev user,id=u1,hostfwd=tcp:127.0.0.1:10023-10.0.2.15:23,hostfwd=tcp:127.0.0.1:15001-10.0.2.15:5001 -device virtio-net-device,netdev=u1,bus=virtio-mmio-bus.2 -drive file=./mydisk-1gb.img,if=none,format=raw,id=hd -device virtio-blk-device,bus=virtio-mmio-bus.3,drive=hd -mon chardev=con,mode=readline -kernel ./nuttx
nsh> uname -a
NuttX  12.4.0 7b440957bd Mar  7 2025 15:47:21 arm64 qemu-armv8a
nsh> ostest
VARIABLE  BEFORE   AFTER
======== ======== ========
arena     7be7000  7be7000
ordblks         8        6
mxordblk  7b91f38  7b8fef8
uordblks    51878    54c48
fordblks  7b95788  7b923b8
user_main: Exiting
ostest_main: Exiting with status 0

@lupyuen
Copy link
Copy Markdown
Author

lupyuen commented Mar 24, 2025

@nuttxpr test milkv_duos:nsh

@nuttxpr
Copy link
Copy Markdown

nuttxpr commented Mar 24, 2025

[Experimental Bot, please feedback here]

Build and Test Successful (milkv_duos:nsh)
https://gitlab.com/lupyuen/nuttx-build-log/-/snippets/4829015

$ git clone https://github.com/lupyuen2/wip-nuttx nuttx --branch test-bot
$ git clone https://github.com/apache/nuttx-apps apps --branch master
$ pushd nuttx
$ git reset --hard HEAD
HEAD is now at 7b440957bd Testing our bot
$ popd
$ pushd apps
$ git reset --hard HEAD
HEAD is now at cdc5968c6 testing: Add Serial Error Reporting testing app
$ popd
NuttX Source: https://github.com/apache/nuttx/tree/7b440957bde7e2d7723f61d1ad0a16f51770fc69
NuttX Apps: https://github.com/apache/nuttx-apps/tree/cdc5968c67513bbb0558114d8e33123e877a4113
$ cd nuttx
$ tools/configure.sh milkv_duos:nsh
$ make -j
$ make -j export
$ pushd ../apps
$ ./tools/mkimport.sh -z -x ../nuttx/nuttx-export-12.4.0.tar.gz
$ make -j import
$ popd
$ genromfs -f initrd -d ../apps/bin -V NuttXBootVol
$ head -c 65536 /dev/zero
$ cat nuttx.bin /tmp/nuttx.pad initrd
$ scp Image tftpserver:/tftpboot/Image-sg2000
$ cd /home/luppy/nuttx-build-farm
$ ssh tftpserver
OpenSBI v0.9
nsh> uname -a
NuttX 12.4.0 7b440957bd Mar 24 2025 23:10:34 risc-v milkv_duos
nsh> ostest
arena       81000    81000
ordblks         2        3
mxordblk    7cff8    78ff8
uordblks     2660     4570
fordblks    7e9a0    7ca90
user_main: Exiting
ostest_main: Exiting with status 0
nsh> Now running https://github.com/lupyuen/nuttx-build-farm/blob/main/oz64-power.sh off
----- Power off Oz64
[]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants