Skip to content

Instantly share code, notes, and snippets.

@lupyuen
Last active December 11, 2024 06:50
Show Gist options
  • Save lupyuen/399d2ba7d964ba88cdbeb97f64778a0e to your computer and use it in GitHub Desktop.
Save lupyuen/399d2ba7d964ba88cdbeb97f64778a0e to your computer and use it in GitHub Desktop.
cat /root/nuttx/boards/risc-v/qemu-rv/rv-virt/configs/citest/logs/rv-virt/qemu/*
sudo docker exec \
-it \
nuttx \
/bin/bash
cd
ps aux | more
cat /root/nuttx/boards/risc-v/qemu-rv/rv-virt/configs/citest/logs/rv-virt/qemu/*
cd /root/nuttx
ls -l
[In the CI Test Session: Press Ctrl-C a few times to stop it]
qemu-system-riscv32 -M virt -bios ./nuttx -nographic -drive index=0,id=userdata,if=none,format=raw,file=./fatfs.img -device virtio-blk-device,bus=virtio-mmio-bus.0,drive=userdata
ps
luppy@thinkstation:~/nuttx-release$ sudo docker exec \
-it \
nuttx \
/bin/bash
root@0a81ed0abe55:/tools# cd
root@0a81ed0abe55:~# ls
[Wait for CI Test to begin]
root@0a81ed0abe55:~# ps aux | more
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 4628 3840 pts/0 Ss 06:26 0:00 /bin/bash
root 21 0.0 0.0 4628 3456 pts/1 Ss 06:28 0:00 /bin/bash
root 71 0.0 0.0 4496 3072 pts/0 S+ 06:30 0:00 bash ./cibuild.sh -c -A -N -R testlist/risc-v-05.dat
root 82 0.0 0.0 4760 3264 pts/0 S+ 06:30 0:00 bash /root/nuttx/tools/testbuild.sh -A -N -R -j 24 -e -W
no-cpp -Werror testlist/risc-v-05.dat
root 63696 0.0 0.0 4364 3072 pts/0 S+ 06:35 0:00 bash /root/nuttx/../nuttx/boards/risc-v/qemu-rv/rv-virt/
configs/citest/run
root 63705 4.3 0.0 66940 61076 pts/0 S+ 06:35 0:05 python3 -m pytest -m qemu or rv_virt ./ -B rv-virt -P /r
oot/nuttx -L /root/nuttx/boards/risc-v/qemu-rv/rv-virt/configs/citest/logs/rv-virt/qemu -R qemu -C --json=/root/nuttx/board
s/risc-v/qemu-rv/rv-virt/configs/citest/logs/rv-virt/qemu/pytest.json
root 63712 0.0 0.0 4740 3264 pts/2 Ss+ 06:35 0:00 /usr/bin/bash -c qemu-system-riscv32 -M virt -bios ./nut
tx -nographic -drive index=0,id=userdata,if=none,format=raw,file=./fatfs.img -device virtio-blk-device,bus=virtio-mmio-bus.
0,drive=userdata | tee /root/nuttx/boards/risc-v/qemu-rv/rv-virt/configs/citest/logs/rv-virt/qemu/rv-virt_20241211_063532.l
og
root 63713 35.7 0.0 1536984 42204 pts/2 Sl+ 06:35 0:39 qemu-system-riscv32 -M virt -bios ./nuttx -nographic -dr
ive index=0,id=userdata,if=none,format=raw,file=./fatfs.img -device virtio-blk-device,bus=virtio-mmio-bus.0,drive=userdata
root 63714 0.0 0.0 3172 1536 pts/2 S+ 06:35 0:00 tee /root/nuttx/boards/risc-v/qemu-rv/rv-virt/configs/ci
test/logs/rv-virt/qemu/rv-virt_20241211_063532.log
root 63721 0.0 0.0 7064 2880 pts/1 R+ 06:37 0:00 ps aux
root 63722 0.0 0.0 3004 1920 pts/1 S+ 06:37 0:00 more
root@0a81ed0abe55:~# ps aux | tee
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 4628 3840 pts/0 Ss 06:26 0:00 /bin/bash
root 21 0.0 0.0 4628 3456 pts/1 Ss 06:28 0:00 /bin/bash
root 71 0.0 0.0 4496 3072 pts/0 S+ 06:30 0:00 bash ./cibuild.sh -c -A -N -R testlist/risc-v-05.dat
root 82 0.0 0.0 4760 3264 pts/0 S+ 06:30 0:00 bash /root/nuttx/tools/testbuild.sh -A -N -R -j 24 -e -Wno-cpp -Werror testlist/risc-v-05.dat
root 63696 0.0 0.0 4364 3072 pts/0 S+ 06:35 0:00 bash /root/nuttx/../nuttx/boards/risc-v/qemu-rv/rv-virt/configs/citest/run
root 63705 3.9 0.0 66940 61076 pts/0 S+ 06:35 0:05 python3 -m pytest -m qemu or rv_virt ./ -B rv-virt -P /root/nuttx -L /root/nuttx/boards/risc-v/qemu-rv/rv-virt/configs/citest/logs/rv-virt/qemu -R qemu -C --json=/root/nuttx/boards/risc-v/qemu-rv/rv-virt/configs/citest/logs/rv-virt/qemu/pytest.json
root 63712 0.0 0.0 4740 3264 pts/2 Ss+ 06:35 0:00 /usr/bin/bash -c qemu-system-riscv32 -M virt -bios ./nuttx -nographic -drive index=0,id=userdata,if=none,format=raw,file=./fatfs.img -device virtio-blk-device,bus=virtio-mmio-bus.0,drive=userdata | tee /root/nuttx/boards/risc-v/qemu-rv/rv-virt/configs/citest/logs/rv-virt/qemu/rv-virt_20241211_063532.log
root 63713 40.7 0.0 1536984 42204 pts/2 Sl+ 06:35 0:48 qemu-system-riscv32 -M virt -bios ./nuttx -nographic -drive index=0,id=userdata,if=none,format=raw,file=./fatfs.img -device virtio-blk-device,bus=virtio-mmio-bus.0,drive=userdata
root 63714 0.0 0.0 3172 1536 pts/2 S+ 06:35 0:00 tee /root/nuttx/boards/risc-v/qemu-rv/rv-virt/configs/citest/logs/rv-virt/qemu/rv-virt_20241211_063532.log
root 63723 0.0 0.0 7064 2880 pts/1 R+ 06:37 0:00 ps aux
root 63724 0.0 0.0 2796 1344 pts/1 S+ 06:37 0:00 tee
root@0a81ed0abe55:~# ps aux | more
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 4628 3840 pts/0 Ss 06:26 0:00 /bin/bash
root 21 0.0 0.0 4628 3456 pts/1 Ss 06:28 0:00 /bin/bash
root 71 0.0 0.0 4496 3072 pts/0 S+ 06:30 0:00 bash ./cibuild.sh -c -A -N -R testlist/risc-v-05.dat
root 82 0.0 0.0 4760 3264 pts/0 S+ 06:30 0:00 bash /root/nuttx/tools/testbuild.sh -A -N -R -j 24 -e -W
no-cpp -Werror testlist/risc-v-05.dat
root 63696 0.0 0.0 4364 3072 pts/0 S+ 06:35 0:00 bash /root/nuttx/../nuttx/boards/risc-v/qemu-rv/rv-virt/
configs/citest/run
root 63705 3.8 0.0 66940 61076 pts/0 S+ 06:35 0:05 python3 -m pytest -m qemu or rv_virt ./ -B rv-virt -P /r
oot/nuttx -L /root/nuttx/boards/risc-v/qemu-rv/rv-virt/configs/citest/logs/rv-virt/qemu -R qemu -C --json=/root/nuttx/board
s/risc-v/qemu-rv/rv-virt/configs/citest/logs/rv-virt/qemu/pytest.json
root 63712 0.0 0.0 4740 3264 pts/2 Ss+ 06:35 0:00 /usr/bin/bash -c qemu-system-riscv32 -M virt -bios ./nut
tx -nographic -drive index=0,id=userdata,if=none,format=raw,file=./fatfs.img -device virtio-blk-device,bus=virtio-mmio-bus.
0,drive=userdata | tee /root/nuttx/boards/risc-v/qemu-rv/rv-virt/configs/citest/logs/rv-virt/qemu/rv-virt_20241211_063532.l
og
root 63713 42.2 0.0 1536984 42204 pts/2 Sl+ 06:35 0:52 qemu-system-riscv32 -M virt -bios ./nuttx -nographic -dr
ive index=0,id=userdata,if=none,format=raw,file=./fatfs.img -device virtio-blk-device,bus=virtio-mmio-bus.0,drive=userdata
root 63714 0.0 0.0 3172 1536 pts/2 S+ 06:35 0:00 tee /root/nuttx/boards/risc-v/qemu-rv/rv-virt/configs/ci
test/logs/rv-virt/qemu/rv-virt_20241211_063532.log
root 63725 0.0 0.0 7064 2880 pts/1 R+ 06:37 0:00 ps aux
root 63726 0.0 0.0 3004 1920 pts/1 S+ 06:37 0:00 more
root@0a81ed0abe55:~#
root@0a81ed0abe55:~# cat /root/nuttx/boards/risc-v/qemu-rv/rv-virt/configs/citest/logs/rv-virt/qemu/*
ABCCHelloWorld: Constructor: mSecret=42
NuttShell (NSH) NuttX-12.7.0
nsh> mount -t vfat /dev/virtblk0 /data
nsh: mount: mount failed: 22
nsh> echo cmocka_list_start
cmocka_list_start
nsh> cmocka --list
Cmocka Test Start.
nuttx_fs_test_suites
test_nuttx_fs_creat01
test_nuttx_fs_dup01
test_nuttx_fs_fcntl01
test_nuttx_fs_fcntl02
test_nuttx_fs_fcntl03
test_nuttx_fs_fstat01
test_nuttx_fs_fstat02
test_nuttx_fs_fstatfs01
test_nuttx_fs_fsync01
test_nuttx_fs_fsync02
test_nuttx_fs_getfilep01
test_nuttx_fs_mkdir01
test_nuttx_fs_open01
test_nuttx_fs_opendir01
test_nuttx_fs_opendir02
test_nuttx_fs_pread01
test_nuttx_fs_pwrite01
test_nuttx_fs_read01
test_nuttx_fs_readdir01
test_nuttx_fs_readlink01
test_nuttx_fs_rename01
test_nuttx_fs_rename02
test_nuttx_fs_rewinddir01
test_nuttx_fs_fmdir01
test_nuttx_fs_rmdir02
test_nuttx_fs_rmdir03
test_nuttx_fs_seek01
test_nuttx_fs_seek02
test_nuttx_fs_stat01
test_nuttx_fs_statfs01
test_nuttx_fs_symlink01
test_nuttx_fs_truncate01
test_nuttx_fs_unlink01
test_nuttx_fs_write01
test_nuttx_fs_write02
test_nuttx_fs_write03
test_nuttx_fs_append01
test_nuttx_fs_sendfile01
test_nuttx_fs_sendfile02
test_nuttx_fs_stream01
test_nuttx_fs_stream02
test_nuttx_fs_stream03
test_nuttx_fs_stream04
test_nuttx_fs_eventfd
test_nuttx_fs_poll01
nuttx_mm_test_suites
test_nuttx_mm01
test_nuttx_mm02
test_nuttx_mm03
test_nuttx_mm04
test_nuttx_mm05
test_nuttx_mm06
test_nuttx_mm07
test_nuttx_mm08
nuttx_pthread_test_suites
test_nuttx_pthread_test03
test_nuttx_pthread_test04
test_nuttx_pthread_test05
test_nuttx_pthread_test06
test_nuttx_pthread_test09
test_nuttx_pthread_test18
test_nuttx_pthread_test19
test_nuttx_pthread_test21
nuttx_sched_testsuites
test_nuttx_sched_pthread01
test_nuttx_sched_pthread02
test_nuttx_sched_pthread03
test_nuttx_sched_pthread04
test_nuttx_sched_pthread05
test_nuttx_sched_pthread06
test_nuttx_sched_pthread07
test_nuttx_sched_pthread08
test_nuttx_sched_pthread09
test_nuttx_sched_task01
test_nuttx_sched_task02
test_nuttx_sched_task03
test_nuttx_sched_task04
test_nuttx_sched_task05
test_nuttx_sched_task06
test_nuttx_sched_task07
nuttx_time_testsuites
test_nuttx_clock_test_smoke01
test_nuttx_clock_test_timer01
test_nuttx_clock_test_timer03
test_nuttx_clock_test_timer04
test_nuttx_clock_test_timer05
test_nuttx_clock_test_clock01
test_nuttx_clock_test_clock02
Cmocka Test Completed.
nsh> echo cmocka_list_end
cmocka_list_end
nsh> echo cmocka_test_start
cmocka_test_start
nsh> cmocka --skip test_case_posix_timer|test_case_oneshot|write_default|read_defaulCmocka Test Start.
[==========] nuttx_fs_test_suites: Running 45 test(s).
[ RUN ] test_nuttx_fs_creat01
ERROR: Failed to switch the mount dir
[==========] nuttx_mm_test_suites: Running 8 test(s).
[ RUN ] test_nuttx_mm01
[ OK ] test_nuttx_mm01
[ RUN ] test_nuttx_mm02
[ OK ] test_nuttx_mm02
[ RUN ] test_nuttx_mm03
[ OK ] test_nuttx_mm03
[ RUN ] test_nuttx_mm04
[ OK ] test_nuttx_mm04
[ RUN ] test_nuttx_mm05
[ OK ] test_nuttx_mm05
[ RUN ] test_nuttx_mm06
[ OK ] test_nuttx_mm06
[ RUN ] test_nuttx_mm07
[ OK ] test_nuttx_mm07
[ RUN ] test_nuttx_mm08
[ OK ] test_nuttx_mm08
[==========] nuttx_mm_test_suites: 8 test(s) run.
[ PASSED ] 8 test(s).
[==========] nuttx_pthread_test_suites: Running 8 test(s).
[ RUN ] test_nuttx_pthread_test03
ptid: 20
ret: 1
ret of getdetachstate: 0
ret of setdetachstate: 0
ret of pthread_join: 0
[ OK ] test_nuttx_pthread_test03
[ RUN ] test_nuttx_pthread_test04
ret: 0
temp: 2
[ OK ] test_nuttx_pthread_test04
[ RUN ] test_nuttx_pthread_test05
duration: 2.000000
ret: 0
temp: -1
[ OK ] test_nuttx_pthread_test05
[ RUN ] test_nuttx_pthread_test06
ret: 0
[ OK ] test_nuttx_pthread_test06
[ RUN ] test_nuttx_pthread_test09
ret: 0
g_testPthreadCount: 1
ret: 3
temp: 1
ret: 3
temp: 1
ret: 3
ret: 0
ret: 3
ret: 3
[ OK ] test_nuttx_pthread_test09
[ RUN ] test_nuttx_pthread_test18
ret: 0
ret: 0
ret: 0
g_testPthreadCount: 1
ret: 22
ret: 22
ret: 0
ret: 22
param2.sched_priority: 2
ret: 22
ret: 0
param2.sched_priority: 31
ret of sem_post: 0
ret: 0
temp: 9
ret: 3
ret: 3
ret: 0
ret: 0
[ OK ] test_nuttx_pthread_test18
[ RUN ] test_nuttx_pthread_test19
ret: 22
ret: 22
ret: 0
g_testPthreadCount: 1
ret: 0
g_testPthreadCount: 1
[ OK ] test_nuttx_pthread_test19
[ RUN ] test_nuttx_pthread_test21
ret: 22
ret: 22
ret: 0
ret: 0
oldstate: 0
ret: 22
ret: 22
ret: 0
ret: 0
oldstate: 1
[ OK ] test_nuttx_pthread_test21
[==========] nuttx_pthread_test_suites: 8 test(s) run.
[ PASSED ] 8 test(s).
[==========] nuttx_sched_testsuites: Running 16 test(s).
[ RUN ] test_nuttx_sched_pthread01
[ OK ] test_nuttx_sched_pthread01
[ RUN ] test_nuttx_sched_pthread02
[ OK ] test_nuttx_sched_pthread02
[ RUN ] test_nuttx_sched_pthread03
[ OK ] test_nuttx_sched_pthread03
[ RUN ] test_nuttx_sched_pthread04
[ OK ] test_nuttx_sched_pthread04
[ RUN ] test_nuttx_sched_pthread05
[ OK ] test_nuttx_sched_pthread05
[ RUN ] test_nuttx_sched_pthread06
[ OK ] test_nuttx_sched_pthread06
[ RUN ] test_nuttx_sched_pthread07
[ OK ] test_nuttx_sched_pthread07
[ RUN ] test_nuttx_sched_pthread08
[ OK ] test_nuttx_sched_pthread08
[ RUN ] test_nuttx_sched_pthread09
[ OK ] test_nuttx_sched_pthread09
[ RUN ] test_nuttx_sched_task01
[ OK ] test_nuttx_sched_task01
[ RUN ] test_nuttx_sched_task02
[ OK ] test_nuttx_sched_task02
[ RUN ] test_nuttx_sched_task03
[ OK ] test_nuttx_sched_task03
[ RUN ] test_nuttx_sched_task04
[test_nuttx_sched_task04]:scheduling policy is RR!
[ OK ] test_nuttx_sched_task04
[ RUN ] test_nuttx_sched_task05
[ OK ] test_nuttx_sched_task05
[ RUN ] test_nuttx_sched_task06
[ OK ] test_nuttx_sched_task06
[ RUN ] test_nuttx_sched_task07
[ OK ] test_nuttx_sched_task07
[==========] nuttx_sched_testsuites: 16 test(s) run.
[ PASSED ] 16 test(s).
[==========] nuttx_time_testsuites: Running 7 test(s).
[ RUN ] test_nuttx_clock_test_smoke01
the clock current time: 38 second, 967000000 nanosecond
the clock setting time: 39 second, 967000000 nanosecond
obtaining the current time after setting: 39 second, 967000000 nanosecond
[ OK ] test_nuttx_clock_test_smoke01
[ RUN ] test_nuttx_clock_test_timer01
sigaction 14: 0
sigprocmask setmask 14: 0
timer_create 0x801789e8: 0
timer_settime 0x801789e8: 0
timer_settime 0x80178a58: 0
timer_settime 0x80178a58: 0
sleep 3s
timer_gettime 0x801789e8: 0
unblock signal 14
signo = 14 test_timer01_g_sig_hdl_cnt = 1
sigprocmask unblock 14: 0
sleep another 1s
signo = 14 test_timer01_g_sig_hdl_cnt = 2
sleep time over, test_timer01_g_sig_hdl_cnt = 2
sleep another 1s
signo = 14 test_timer01_g_sig_hdl_cnt = 3
sleep time over, test_timer01_g_sig_hdl_cnt = 3
timer_delete 0x801789e8 0
timer_delete 0x80178a58 0
[ OK ] test_nuttx_clock_test_timer01
[ RUN ] test_nuttx_clock_test_timer03
timer_create 0x801789e8: 0
expected = 30000000 escaped = 31000000 failed = 0
expected = 1000000000 escaped = 1001000000 failed = 0
expected = 1000005000 escaped = 1002000000 failed = 0
[ OK ] test_nuttx_clock_test_timer03
[ RUN ] test_nuttx_clock_test_timer04
sigaction 32: 0
sigaction 32: 0
timer_create 0x80178a08: 0
timer_create 0x80178a08: 0
sleep 3s
timer_gettime 0x80178a08: 0
sig 32, si 0x8014ece0, uc 0
sig 32, si 0x8014ec68, uc 0
sig 32, si 0x8014ec90, uc 0
sigprocmask unblock 32: 0
sleep another 3s
sig 32, si 0x8014ecb8, uc 0
sleep time over, g_handlerFlag = 4
timer_delete 0x80178a08 0
[ OK ] test_nuttx_clock_test_timer04
[ RUN ] test_nuttx_clock_test_timer05
timer_settime 0x80178a08: 0
timer_create 0x80178a08: 0
timer_settime 0x80178a78: 0
timer_settime 0x80178a78: 0
This is temp_sig_handler ...
This is temp_sig_handler ...
This is temp_sig_handler ...
This is temp_sig_handler ...
This is temp_sig_handler ...
This is temp_sig_handler ...
This is temp_sig_handler ...
This is temp_sig_handler ...
This is temp_sig_handler ...
This is temp_sig_handler ...
This is temp_sig_handler ...
timer_delete 0x80178a08 0
timer_delete 0x80178a78 0
[ OK ] test_nuttx_clock_test_timer05
[ RUN ] test_nuttx_clock_test_clock01
The current real time: sec is 75, nsec is 977000000
sleep 2 seconds
Setting time: sec is 77, nsec is 977000000
get real time clock again
Obtaining the current time after setting: sec = 77, nsec = 977000000
[ OK ] test_nuttx_clock_test_clock01
[ RUN ] test_nuttx_clock_test_clock02
[ OK ] test_nuttx_clock_test_clock02
[==========] nuttx_time_testsuites: 7 test(s) run.
[ PASSED ] 7 test(s).
Cmocka Test Completed.
nsh> t|burst_test|gpiotest01|test_playback.*|test_interaction.*|test_stress.*|test_cnsh: t|burst_test|gpiotest01|test_playback.*|test_interaction.*|test_stress.*|test_c: command not found
nsh> apture.*
nsh: apture.*: command not found
nsh> echo cmocka_test_end
cmocka_test_end
nsh> free
total used free maxused maxfree nused nfree name
32066112 51680 32014432 2171112 31992792 69 3 Umem
nsh> ps
PID GROUP PRI POLICY TYPE NPX STATE EVENT SIGMASK STACK USED FILLED COMMAND
0 0 0 FIFO Kthread - Ready 0000000000000000 0001952 0000844 43.2% Idle_Task
1 0 224 RR Kthread - Waiting Semaphore 0000000000000000 0001904 0000524 27.5% hpwork 0x8014b1f4 0x8014b220
2 0 100 RR Kthread - Waiting Semaphore 0000000000000000 0001896 0000508 26.7% lpwork 0x8014b1b0 0x8014b1dc
riscv_exception: EXCEPTION: Load access fault. MCAUSE: 00000005, EPC: 80008bfe, MTVAL: 01473e00
riscv_exception: PANIC!!! Exception = 00000005
dump_assert_info: Current Version: NuttX 12.7.0 5607eece84 Dec 11 2024 06:34:00 risc-v
dump_assert_info: Assertion failed panic: at file: common/riscv_exception.c:131 task: nsh_main process: nsh_main 0x8000a806
up_dump_register: EPC: 80008bfe
up_dump_register: A0: 01473e00 A1: 01473dff A2: 0000003f A3: 00000053
up_dump_register: A4: 00000000 A5: 01473e00 A6: 8017069c A7: 8016d2c4
up_dump_register: T0: 00000000 T1: 0000005d T2: 00000000 T3: 0000002d
up_dump_register: T4: 0000002d T5: 00000000 T6: 00000000
up_dump_register: S0: 8016d518 S1: 00000001 S2: 00000000 S3: 00000073
up_dump_register: S4: 01473e00 S5: 8016cd78 S6: 00000001 S7: 8016d550
up_dump_register: S8: 00000000 S9: 8011c2d7 S10: 00000000 S11: 00000000
up_dump_register: SP: 8016d4a0 FP: 8016d518 TP: 00000000 RA: 80007ea6
dump_stackinfo: User Stack:
dump_stackinfo: base: 0x8016d3c8
dump_stackinfo: size: 00001912
dump_stackinfo: sp: 0x8016d4a0
stack_dump: 0x8016d480: 00000000 8016cd78 00000200 2016d4b8 00000000 0000000c 8016d518 80007c1e
stack_dump: 0x8016d4a0: 00000038 00000038 00000004 00000004 00000010 00002088 31393132 38303136
stack_dump: 0x8016d4c0: 00000010 00000010 8014b27c 800075d6 00000010 00000010 8014b238 80139000
stack_dump: 0x8016d4e0: 8013a000 00000004 00000000 00002088 00000001 8016cd78 8011c000 8017069c
stack_dump: 0x8016d500: 8016d66b 00000000 8011c2d4 80007bc4 00000036 8016d54c 00000001 80008a78
stack_dump: 0x8016d520: 80008a2a 80008b26 8017069c 0000015d 00000036 8017067e 0000015e 800211b0
stack_dump: 0x8016d540: 8016d62c 80139e58 00000003 01473e00 00000000 8016d348 8017069c 8016d2c4
stack_dump: 0x8016d560: 00000401 80139c48 8016d2c4 00000008 0000015e 8017069c 80170391 8001c8e6
stack_dump: 0x8016d580: 000001b6 80170678 8017067e 80170680 80139c48 8016ce20 00000000 8001b6d8
stack_dump: 0x8016d5a0: 8016d62c 80139000 80139000 0000000a 00000000 80170678 00000000 8016e058
stack_dump: 0x8016d5c0: 8016d62c 00000401 00000000 800141a2 00000001 8017067e 8016e058 80139000
stack_dump: 0x8016d5e0: 8013a000 00000004 00000000 80170389 00000001 00000166 8016e058 00000000
stack_dump: 0x8016d600: 8016d678 8016d2c4 00000000 8001466a 800edb90 00000166 00000167 80170389
stack_dump: 0x8016d620: 8016d678 00000001 00000000 800146de 00000000 8016d2c4 8016d678 00000001
stack_dump: 0x8016d640: 00000004 801702c0 00000004 8001470e 80008a2a 80008b26 00000001 8016d678
stack_dump: 0x8016d660: 30303020 801702c0 0000000f 8001473e 801702c0 8016d730 80170389 00000166
stack_dump: 0x8016d680: 00000167 00000099 00000053 8000b7f4 801702c0 80139000 80139000 0000000a
stack_dump: 0x8016d6a0: 00000778 00000003 801702f0 800ee000 801702c0 8016d730 0000000f 80010572
stack_dump: 0x8016d6c0: 801705d4 00000000 00000000 80170678 801703d9 00000003 801702f0 0000000a
stack_dump: 0x8016d6e0: 801705d4 801702c0 801703d9 80010702 00000001 00000022 8014b3b8 00000000
stack_dump: 0x8016d700: 8016d2b0 80170600 801705d4 80014fea 8016d788 8016d2b0 00000000 8001466a
stack_dump: 0x8016d720: 800ed448 800ed3d0 00000022 800ed3d0 80170311 80170322 80170330 800ffc94
stack_dump: 0x8016d740: 80170344 80170352 80170368 80170377 800ffc94 00000003 00000778 00000778
stack_dump: 0x8016d760: 000003e8 801702f0 00000200 00000099 20544e45 800ed3d0 801705d4 00000000
stack_dump: 0x8016d780: 00000000 00000000 8014b000 800ed300 800ed448 8016d7fb 8001058e 800edb90
stack_dump: 0x8016d7a0: 801705d0 800ed3d0 801702c0 8000b8f4 00002080 00000000 00000001 8016d96c
stack_dump: 0x8016d7c0: 00000001 80139688 801702c0 80010a1e 800ee130 800ee128 800ee120 800ee118
stack_dump: 0x8016d7e0: 8010acf4 800ee110 800ee108 8000bff2 8016b5c0 8016d9fc 0014af18 80170578
stack_dump: 0x8016d800: 801707e0 80170578 801702c0 8016d954 80170578 ffffffff 801702c0 8000d484
stack_dump: 0x8016d820: 800ed448 00000000 00000001 8016d96c 00000001 80139688 801702c0 8000da96
stack_dump: 0x8016d840: 8016cd48 00000000 00000000 80170578 800ed000 8000aca6 8000aca4 00000001
stack_dump: 0x8016d860: 8016d96c 8016d954 801702c0 8000bd16 00000000 8016da4c 00000004 00000001
stack_dump: 0x8016d880: 8016d974 00002088 00000001 00000001 00000000 80169e00 8016d2b0 8016da4c
stack_dump: 0x8016d8a0: 00000050 8014b000 00000000 80155ff0 0000007f 0000001b 8016d274 8014b238
stack_dump: 0x8016d8c0: 8014b238 00002080 0000008c 80006c74 00000000 00003880 00000004 00000000
stack_dump: 0x8016d8e0: 00000000 00000000 8014b000 800ed300 800ed448 00000000 00000000 00000001
stack_dump: 0x8016d900: 00000004 80170578 801702c0 8000cd5e 00000000 8014b29c 8014b258 00000001
stack_dump: 0x8016d920: 00000003 00002088 8014b238 8017057b 00000000 ffffffff ffffffff 00000000
stack_dump: 0x8016d940: 00000000 00000001 8016b848 00000000 8016d9c8 ffffffff ffffffff 00000000
stack_dump: 0x8016d960: 00000000 00000000 00000000 80170578 00000000 00000000 00000000 00000000
stack_dump: 0x8016d980: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
stack_dump: 0x8016d9a0: 00000000 00000000 00000000 80013ce8 8016da4c 80170578 8016da4c 00000001
stack_dump: 0x8016d9c0: 00000050 00000101 00000000 80013e90 00000005 00000005 8016d274 8016d9f8
stack_dump: 0x8016d9e0: 00000005 00000003 00000000 00000001 00000050 00000102 00000000 00000000
stack_dump: 0x8016da00: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
stack_dump: 0x8016da20: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
stack_dump: 0x8016da40: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
stack_dump: 0x8016da60: 00000100 00000005 00000001 00000000 00000000 00000000 00000000 00000000
stack_dump: 0x8016da80: 00000000 00000000 00000000 00000001 ffffffff 80170578 801702c0 8000ac0a
stack_dump: 0x8016daa0: 80170578 00000000 00000001 8014b32c ffffff83 8016b5c0 00000001 00000000
stack_dump: 0x8016dac0: 00000000 8016d3a8 801702c0 8000a880 8016b5c0 8016d3a8 8016d3a8 00000001
stack_dump: 0x8016dae0: 00000000 8016d3a8 00000001 8000a836 8016a000 800eb720 800eb71c 00000064
stack_dump: 0x8016db00: 00000000 8016cd78 8000a806 8000791c 00000000 00000000 00000001 8016d3a8
stack_dump: 0x8016db20: 00000000 8016cd78 00000000 800027b2 00000000 00000000 00000000 00000000
stack_dump: 0x8016db40: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
dump_tasks: PID GROUP PRI POLICY TYPE NPX STATE EVENT SIGMASK STACKBASE STACKSIZE USED FILLED COMMAND
dump_tasks: ---- --- --- -------- ------- --- ------- ---------- ---------------- 0x8014dcd0 2048 748 36.5% irq
dump_task: 0 0 0 FIFO Kthread - Ready 0000000000000000 0x8016ae20 1952 844 43.2% Idle_Task
dump_task: 1 0 224 RR Kthread - Waiting Semaphore 0000000000000000 0x8016bac0 1904 524 27.5% hpwork 0x8014b1f4 0x8014b220
dump_task: 2 0 100 RR Kthread - Waiting Semaphore 0000000000000000 0x8016c398 1896 508 26.7% lpwork 0x8014b1b0 0x8014b1dc
dump_task: 3 3 100 RR Task - Running 0000000000000000 0x8016d3c8 1912 1912 100.0%! nsh_main
root@0a81ed0abe55:~#
root@0a81ed0abe55:~# cd /root/nuttx
root@0a81ed0abe55:~/nuttx# ls -l
total 94660
-rw-r--r-- 1 root root 2420 Dec 11 06:30 AUTHORS
-rw-r--r-- 1 root root 28850 Dec 11 06:30 CMakeLists.txt
-rw-r--r-- 1 root root 5321 Dec 11 06:30 CONTRIBUTING.md
drwxr-xr-x 17 root root 4096 Dec 11 06:30 Documentation
-rw-r--r-- 1 root root 4051 Dec 11 06:30 INVIOLABLES.md
-rw-r--r-- 1 root root 66882 Dec 11 06:30 Kconfig
-rw-r--r-- 1 root root 416078 Dec 11 06:30 LICENSE
lrwxrwxrwx 1 root root 68 Dec 11 06:30 Make.defs -> /root/nuttx/tools/../boards/risc-v/qemu-rv/rv-virt/scripts/Make.defs
-rw-r--r-- 1 root root 1455 Dec 11 06:30 Makefile
-rw-r--r-- 1 root root 3107 Dec 11 06:30 NOTICE
-rw-r--r-- 1 root root 2790 Dec 11 06:30 README.md
-rw-r--r-- 1 root root 750 Dec 11 06:30 ReleaseNotes
-rw-r--r-- 1 root root 265511 Dec 11 06:35 System.map
drwxr-xr-x 21 root root 4096 Dec 11 06:30 arch
drwxr-xr-x 2 root root 4096 Dec 11 06:30 audio
drwxr-xr-x 3 root root 4096 Dec 11 06:33 binfmt
drwxr-xr-x 20 root root 4096 Dec 11 06:33 boards
drwxr-xr-x 2 root root 4096 Dec 11 06:30 cmake
drwxr-xr-x 2 root root 4096 Dec 11 06:30 crypto
-rw-r--r-- 1 root root 3555 Dec 11 06:30 defconfig
drwxr-xr-x 61 root root 4096 Dec 11 06:33 drivers
drwxr-xr-x 2 root root 4096 Dec 11 06:30 dummy
-rwxrwxrwx 1 root root 67108864 Dec 11 06:35 fatfs.img
drwxr-xr-x 33 root root 4096 Dec 11 06:34 fs
drwxr-xr-x 6 root root 4096 Dec 11 06:30 graphics
drwxr-xr-x 14 root root 4096 Dec 11 06:31 include
drwxr-xr-x 8 root root 4096 Dec 11 06:30 libs
drwxr-xr-x 16 root root 4096 Dec 11 06:33 mm
drwxr-xr-x 31 root root 4096 Dec 11 06:34 net
-rwxr-xr-x 1 root root 15489104 Dec 11 06:35 nuttx
-rw-r--r-- 1 root root 3840708 Dec 11 06:35 nuttx.hex
-rw-r--r-- 1 root root 37 Dec 11 06:35 nuttx.manifest
-rw-r--r-- 1 root root 9554116 Dec 11 06:35 nuttx.map
drwxr-xr-x 4 root root 4096 Dec 11 06:33 openamp
drwxr-xr-x 2 root root 4096 Dec 11 06:30 pass1
drwxr-xr-x 23 root root 12288 Dec 11 06:34 sched
drwxr-xr-x 2 root root 4096 Dec 11 06:35 staging
drwxr-xr-x 5 root root 4096 Dec 11 06:30 syscall
drwxr-xr-x 20 root root 4096 Dec 11 06:30 tools
drwxr-xr-x 3 root root 4096 Dec 11 06:30 video
drwxr-xr-x 5 root root 4096 Dec 11 06:30 wireless
root@0a81ed0abe55:~/nuttx# qemu-system-riscv32 -M virt -bios ./nuttx -nographic -drive index=0,id=userdata,if=none,format=raw,file=./fatfs.img -device virtio-blk-device,bus=virtio-mmio-bus.0,drive=userdata
qemu-system-riscv32: -device virtio-blk-device,bus=virtio-mmio-bus.0,drive=userdata: Failed to get "write" lock
Is another process using the image [./fatfs.img]?
[In the CI Test Session: Press Ctrl-C a few times to stop it]
root@0a81ed0abe55:~/nuttx# qemu-system-riscv32 -M virt -bios ./nuttx -nographic -drive index=0,id=userdata,if=none,format=raw,file=./fatfs.img -device virtio-blk-device,bus=virtio-mmio-bus.0,drive=userdata
ABCCHelloWorld: Constructor: mSecret=42
NuttShell (NSH) NuttX-12.7.0
nsh> ps
PID GROUP PRI POLICY TYPE NPX STATE EVENT SIGMASK STACK USED FILLED COMMAND
0 0 0 FIFO Kthread - Ready 0000000000000000 0001952 0000844 43.2% Idle_Task
1 0 224 RR Kthread - Waiting Semaphore 0000000000000000 0001904 0000508 26.6% hpwork 0x8014b1f4 0x8014b220
2 0 100 RR Kthread - Waiting Semaphore 0000000000000000 0001896 0000508 26.7% lpwork 0x8014b1b0 0x8014b1dc
riscv_exception: EXCEPTION: Load access fault. MCAUSE: 00000005, EPC: 80008bfe, MTVAL: 01473e00
riscv_exception: PANIC!!! Exception = 00000005
dump_assert_info: Current Version: NuttX 12.7.0 5607eece84 Dec 11 2024 06:34:00 risc-v
dump_assert_info: Assertion failed panic: at file: common/riscv_exception.c:131 task: nsh_main process: nsh_main 0x8000a806
up_dump_register: EPC: 80008bfe
up_dump_register: A0: 01473e00 A1: 01473dff A2: 0000003f A3: 00000053
up_dump_register: A4: 00000000 A5: 01473e00 A6: 8017069c A7: 8016d2c4
up_dump_register: T0: 00000000 T1: 0000005d T2: 00000000 T3: 0000002d
up_dump_register: T4: 0000002d T5: 00000000 T6: 00000000
up_dump_register: S0: 8016d518 S1: 00000001 S2: 00000000 S3: 00000073
up_dump_register: S4: 01473e00 S5: 8016cd78 S6: 00000001 S7: 8016d550
up_dump_register: S8: 00000000 S9: 8011c2d7 S10: 00000000 S11: 00000000
up_dump_register: SP: 8016d4a0 FP: 8016d518 TP: 00000000 RA: 80007ea6
dump_stackinfo: User Stack:
dump_stackinfo: base: 0x8016d3c8
dump_stackinfo: size: 00001912
dump_stackinfo: sp: 0x8016d4a0
stack_dump: 0x8016d480: 00000000 8016cd78 00000200 2016d4b8 00000000 0000000c 8016d518 80007c1e
stack_dump: 0x8016d4a0: 00000038 00000038 00000004 00000004 00000010 00002088 31393132 38303136
stack_dump: 0x8016d4c0: 00000010 00000010 8014b27c 800075d6 00000010 00000010 8014b238 80139000
stack_dump: 0x8016d4e0: 8013a000 00000004 00000000 00002088 00000001 8016cd78 8011c000 8017069c
stack_dump: 0x8016d500: 8016d66b 00000000 8011c2d4 80007bc4 00000036 8016d54c 00000001 80008a78
stack_dump: 0x8016d520: 80008a2a 80008b26 8017069c 0000015d 00000036 8017067e 0000015e 800211b0
stack_dump: 0x8016d540: 8016d62c 80139e58 00000003 01473e00 00000000 8016d348 8017069c 8016d2c4
stack_dump: 0x8016d560: 00000401 80139c48 8016d2c4 00000008 0000015e 8017069c 80170391 8001c8e6
stack_dump: 0x8016d580: 000001b6 80170678 8017067e 80170680 80139c48 8016ce20 00000000 8001b6d8
stack_dump: 0x8016d5a0: 8016d62c 80139000 80139000 0000000a 00000000 80170678 00000000 8016e058
stack_dump: 0x8016d5c0: 8016d62c 00000401 00000000 800141a2 00000001 8017067e 8016e058 80139000
stack_dump: 0x8016d5e0: 8013a000 00000004 00000000 80170389 00000001 00000166 8016e058 00000000
stack_dump: 0x8016d600: 8016d678 8016d2c4 00000000 8001466a 800edb90 00000166 00000167 80170389
stack_dump: 0x8016d620: 8016d678 00000001 00000000 800146de 00000000 8016d2c4 8016d678 00000001
stack_dump: 0x8016d640: 00000004 801702c0 00000004 8001470e 80008a2a 80008b26 00000001 8016d678
stack_dump: 0x8016d660: 30303020 801702c0 0000000f 8001473e 801702c0 8016d730 80170389 00000166
stack_dump: 0x8016d680: 00000167 00000099 00000053 8000b7f4 801702c0 80139000 80139000 0000000a
stack_dump: 0x8016d6a0: 00000778 00000003 801702f0 800ee000 801702c0 8016d730 0000000f 80010572
stack_dump: 0x8016d6c0: 801705d4 00000000 00000000 80170678 801703d9 00000003 801702f0 0000000a
stack_dump: 0x8016d6e0: 801705d4 801702c0 801703d9 80010702 00000001 00000022 8014b3b8 00000000
stack_dump: 0x8016d700: 8016d2b0 80170600 801705d4 80014fea 8016d788 8016d2b0 00000000 8001466a
stack_dump: 0x8016d720: 800ed448 800ed3d0 00000022 800ed3d0 80170311 80170322 80170330 800ffc94
stack_dump: 0x8016d740: 80170344 80170352 80170368 80170377 800ffc94 00000003 00000778 00000778
stack_dump: 0x8016d760: 000003e8 801702f0 00000200 00000099 20544e45 800ed3d0 801705d4 00000000
stack_dump: 0x8016d780: 00000000 00000000 8014b000 800ed300 800ed448 8016d7fb 8001058e 800edb90
stack_dump: 0x8016d7a0: 801705d0 800ed3d0 801702c0 8000b8f4 00002080 00000000 00000001 8016d96c
stack_dump: 0x8016d7c0: 00000001 80139688 801702c0 80010a1e 800ee130 800ee128 800ee120 800ee118
stack_dump: 0x8016d7e0: 8010acf4 800ee110 800ee108 8000bff2 deadbeef 8016d9fc 0014af18 80170578
stack_dump: 0x8016d800: deadbeef 00000000 00000000 8016d954 80170578 ffffffff 801702c0 8000d484
stack_dump: 0x8016d820: 800ed448 00000000 00000001 8016d96c 00000001 80139688 801702c0 8000da96
stack_dump: 0x8016d840: 8016cd48 00000000 00000000 80170578 800ed000 80139000 8011b000 00000001
stack_dump: 0x8016d860: 8016d96c 8016d954 801702c0 8000bd16 00000000 8000d0d0 8000d098 8016da00
stack_dump: 0x8016d880: 00000000 00000000 00000000 00000020 00000000 00000002 80170578 00000073
stack_dump: 0x8016d8a0: 0000004f 80156041 80155ff0 80170578 00000001 00000000 8016d2b0 00000000
stack_dump: 0x8016d8c0: 80156000 00000050 00000002 80155ff0 0000007f 0000001b 0000000a 00000000
stack_dump: 0x8016d8e0: 00000000 00000000 8014b000 800ed300 800ed448 00000000 00000000 00000001
stack_dump: 0x8016d900: 00000004 80170578 801702c0 8000cd5e 00000000 8014b29c 8014b258 00000001
stack_dump: 0x8016d920: 00000003 00002088 8014b238 8017057b 00000000 ffffffff ffffffff 00000000
stack_dump: 0x8016d940: 00000000 00000001 8016b848 00000000 8016d9c8 ffffffff ffffffff 00000000
stack_dump: 0x8016d960: 00000000 00000000 00000000 80170578 00000000 00000000 00000000 00000000
stack_dump: 0x8016d980: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
stack_dump: 0x8016d9a0: 00000000 00000000 00000000 80013ce8 8016da4c 80170578 8016da4c 00000001
stack_dump: 0x8016d9c0: 00000050 00000101 00000000 80013e90 00000005 00000005 8016d274 8016d9f8
stack_dump: 0x8016d9e0: 00000005 00000003 00000000 00000001 00000050 00000102 00000000 00000000
stack_dump: 0x8016da00: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
stack_dump: 0x8016da20: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
stack_dump: 0x8016da40: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
stack_dump: 0x8016da60: 00000100 00000005 00000001 00000000 00000000 00000000 00000000 00000000
stack_dump: 0x8016da80: 00000000 00000000 00000000 00000001 ffffffff 80170578 801702c0 8000ac0a
stack_dump: 0x8016daa0: 80170578 00000000 00000001 8014b32c ffffff83 8016b5c0 00000001 00000000
stack_dump: 0x8016dac0: 00000000 8016d3a8 801702c0 8000a880 8016b5c0 8016d3a8 8016d3a8 00000001
stack_dump: 0x8016dae0: 00000000 8016d3a8 00000001 8000a836 8016a000 800eb720 800eb71c 00000064
stack_dump: 0x8016db00: 00000000 8016cd78 8000a806 8000791c 00000000 00000000 00000001 8016d3a8
stack_dump: 0x8016db20: 00000000 8016cd78 00000000 800027b2 00000000 00000000 00000000 00000000
stack_dump: 0x8016db40: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
dump_tasks: PID GROUP PRI POLICY TYPE NPX STATE EVENT SIGMASK STACKBASE STACKSIZE USED FILLED COMMAND
dump_tasks: ---- --- --- -------- ------- --- ------- ---------- ---------------- 0x8014dcd0 2048 748 36.5% irq
dump_task: 0 0 0 FIFO Kthread - Ready 0000000000000000 0x8016ae20 1952 844 43.2% Idle_Task
dump_task: 1 0 224 RR Kthread - Waiting Semaphore 0000000000000000 0x8016bac0 1904 508 26.6% hpwork 0x8014b1f4 0x8014b220
dump_task: 2 0 100 RR Kthread - Waiting Semaphore 0000000000000000 0x8016c398 1896 508 26.7% lpwork 0x8014b1b0 0x8014b1dc
dump_task: 3 3 100 RR Task - Running 0000000000000000 0x8016d3c8 1912 1912 100.0%! nsh_main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment