Commit Graph

128 Commits

Author SHA1 Message Date
dongjiuzhu1 a0d85bdeca examples/capture: support monitor edge change by signal
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2026-04-20 15:20:14 +08:00
zhangkai25 1d7bdb09dc apps/examples: Add test of edges counting at capture
Description: Add test of the function of counting cap edges

Signed-off-by: zhangkai25 <zhangkai25@xiaomi.com>
2026-04-20 15:17:25 +08:00
openvela-robot a158fdfb1f ostest: delete the code that accesses the internal fields of mutex
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2026-04-20 15:17:13 +08:00
openvela-robot 1fe1515ebd drivertest watchdog:add busyloop prevent os enter pm.
Signed-off-by: yangguangcai <yangguangcai@xiaomi.com>
2026-04-20 15:17:12 +08:00
openvela-robot c1a993191c app:port stressapptest to nuttx
stressapptest is a userspace test, primarily composed of threads doing memory copies
and directIO disk read/write. It allocates a large block of memory (typically 85% of
the total memory on the machine), and each thread will choose randomized blocks of
memory to copy, or to write to disk. Typically there are two threads per processor,
and two threads for each disk. Result checking is done as the test proceeds by
CRCing the data as it is copied.
https://github.com/stressapptest/stressapptest

Signed-off-by: guohao15 <guohao15@xiaomi.com>
2026-04-20 15:17:10 +08:00
openvela-robot 745afe5015 [BugFix]Command "critmon" error
Command "critmon" has some format errors and information errors, such as:

PRE-EMPTION CALLER            CSECTION CALLER               RUN         TIME             PID   DESCRIPTION
1.679000000                   3.704000000
                         None None             0     CPU0 IDLE
0.002000000                   0.003000000
                         None None             1     CPU1 IDLE
0.000000000                   0.000000000
                         None None             2     CPU2 IDLE
0.000000000                   0.000000000
                         None None             3     CPU3 IDLE
0.001000000                   0.001000000
                         None None             4     hpwork
0.002000000                   0.006000000
                         None None             5     nsh_main
0.000000000                   0.000000000
                         None None             6     critmon

After bug fix:

PRE-EMPTION CALLER            CSECTION CALLER               RUN              TIME             PID   DESCRIPTION
None                          None                          ---------------- ---------------- ----  CPU 0
None                          None                          ---------------- ---------------- ----  CPU 1
None                          None                          ---------------- ---------------- ----  CPU 2
None                          None                          ---------------- ---------------- ----  CPU 3
None                          None                          0.238000000      6.982000000      0     CPU0 IDLE
None                          None                          0.461000000      13.089000000     1     CPU1 IDLE
None                          None                          0.000000000      0.000000000      2     CPU2 IDLE
None                          None                          0.000000000      0.000000000      3     CPU3 IDLE
None                          None                          0.000000000      0.001000000      4     hpwork
None                          None                          0.000000000      0.010000000      5     nsh_main
None                          None                          0.000000000      0.000000000      46    critmon

Signed-off-by: wangzhi16 <wangzhi16@xiaomi.com>
2026-04-20 15:17:09 +08:00
openvela-robot 73222324b6 netlib: Use the netlib_add_ipv6addr to set the IPv6 address after obtaining the address.
Signed-off-by: liqinhui <liqinhui@xiaomi.com>
2026-04-20 15:17:08 +08:00
openvela-robot 8d2e2f2622 testing/pm_smp: delay_yield ticks 1->2, avoid idle canot run one cycle
Signed-off-by: buxiasen <buxiasen@xiaomi.com>
2026-04-20 15:17:07 +08:00
openvela-robot c3ace8b544 apps/nxplayer: add ioctl stop when play completed
Signed-off-by: jinxiuxu <jinxiuxu@xiaomi.com>
2026-04-20 15:17:04 +08:00
openvela-robot 9ad4475bfd testing/crypto: add ecdsa testing
Signed-off-by: makejian <makejian@xiaomi.com>
2026-04-20 15:17:03 +08:00
openvela-robot 17cfc35160 fstest: If the file is deleted it will not be opened
Signed-off-by: zhangshoukui <zhangshoukui@xiaomi.com>
2026-04-20 15:17:01 +08:00
openvela-robot 74aa258e29 apps/testing:Fix the table formatting issue in the README.
Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
2026-04-20 15:17:00 +08:00
openvela-robot cfa95e7e62 cmake:builtin register support NONE srcs target
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2026-04-20 15:16:58 +08:00
openvela-robot da80100ffd system/fastboot: Fix error that download_size always be zero
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2026-04-20 15:16:57 +08:00
openvela-robot 0f511cbc1c feat(nsh): input (stdin) redirection
This adds support for `<` to redirect input on nsh commands.
2026-04-20 15:16:55 +08:00
openvela-robot 4b22271376 testing/ostest: Fix timing assertions in wdog_test
This patch removed timing assertions in wdog_test.

Signed-off-by: ouyangxiangzhen <ouyangxiangzhen@xiaomi.com>
2026-04-20 15:16:54 +08:00
openvela-robot 2297146cc9 nshlib/ddcmd:Fixed NSH_CMDOPT_DD_STATS output format warning in 64-bit environment
In file included from nsh_ddcmd.c:44:
nsh_ddcmd.c: In function 'cmd_dd':
nsh_ddcmd.c:456:20: error: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type 'uint64_t' {aka 'long unsigned int'} [-Werror=format=]
  456 |   nsh_output(vtbl, "%llu bytes copied, %u usec, ",
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  457 |              total, (unsigned int)elapsed);
      |              ~~~~~
      |              |
      |              uint64_t {aka long unsigned int}
nsh_console.h:55:49: note: in definition of macro 'nsh_output'
   55 | #  define nsh_output(v, ...)   (v)->output(v, ##__VA_ARGS__)
      |                                                 ^~~~~~~~~~~
nsh_ddcmd.c:456:24: note: format string is defined here
  456 |   nsh_output(vtbl, "%llu bytes copied, %u usec, ",
      |                     ~~~^
      |                        |
      |                        long long unsigned int
      |                     %lu
cc1: all warnings being treated as errors

Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2026-04-20 15:16:53 +08:00
openvela-robot 54f22511c1 nsh/ps: fix -heap cut more than 10MB
Signed-off-by: buxiasen <buxiasen@xiaomi.com>
2026-04-20 15:16:52 +08:00
openvela-robot 1f691f763d testing/memstress:Initialize the pointer to avoid the pointer being unknown when the memory alloc fails
Summary:
  fix warning

In function 'memorystress_iter',
    inlined from 'memstress_main' at memorystress_main.c:475:10:
memorystress_main.c:289:10: error: 'ptr' may be used uninitialized [-Werror=maybe-uninitialized]
  289 |       if (ptr == NULL)
      |          ^
memorystress_main.c: In function 'memstress_main':
memorystress_main.c:248:20: note: 'ptr' was declared here
  248 |       FAR uint8_t *ptr;
      |                    ^~~

Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2026-04-20 15:16:50 +08:00
openvela-robot b56c16817b system/fastboot: Init total_imgsize to zero
otherwise random value, sometimes zero
And, close file if flash failed.

Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2026-04-20 15:16:49 +08:00
openvela-robot fc788a476e ostest: Enable vfork test for BUILD_KERNEL
The test was disabled because of a bug in the NuttX kernel, which is now
fixed. Obviously depends on the fix.
2026-04-20 15:16:48 +08:00
openvela-robot 46a1cd2d64 apps: Fix compilation error after nuttx/arch.h excluded
This patch fix compilation error after excluding nuttx/arch.h.

Signed-off-by: ouyangxiangzhen <ouyangxiangzhen@xiaomi.com>
2026-04-20 15:16:46 +08:00
openvela-robot 6411a6232a build.yml: Added jobs to speed up CI checks.
Divided jobs risc-v and xtensa to finish workflow under 2 hours.
2026-04-20 15:16:45 +08:00
openvela-robot 8c5721ecf4 ostest/fpu.c: fix the greenhills compile warning
CC:  binfmt_unregister.c "fpu.c", line 98: warning #1160-D: a reduction in alignment without the
          "packed" attribute is ignored
    uintptr_t save1[XCPTCONTEXT_REGS] aligned_data(XCPTCONTEXT_ALIGN);
              ^

"fpu.c", line 99: warning #1160-D: a reduction in alignment without the
          "packed" attribute is ignored
    uintptr_t save2[XCPTCONTEXT_REGS] aligned_data(XCPTCONTEXT_ALIGN);
              ^

Signed-off-by: guoshichao <guoshichao@xiaomi.com>
2026-04-20 15:16:44 +08:00
openvela-robot 4e9cf93f03 build.yml: fix error: externally-managed-environment 2026-04-20 15:16:43 +08:00
openvela-robot f0a72dfc38 gcov.c: deal compile warming
gcov.c:61:6: warning: 'path' may be used uninitialized [-Wmaybe-uninitialized]
   61 |   if (path == NULL || access(path, F_OK) != 0 || atoi(strip) <= 0)
      |      ^
gcov.c: In function 'gcov_main':
gcov.c:79:19: note: 'path' was declared here
   79 |   FAR const char *path;

Signed-off-by: wangmingrong1 <wangmingrong1@xiaomi.com>
2026-04-20 15:16:41 +08:00
openvela-robot 60f24e5128 toywasm: bump to v57.0.0 2026-04-20 15:16:40 +08:00
openvela-robot fda2156882 system/fastboot: Fix fd leak of fastboot_filedump_upload()
1398407 资源泄漏
系统资源不会被重新回收利用,这降低了资源的未来可用性。
在 fastboot_filedump_upload 中: 内存或系统资源的指针泄漏 (CWE-404)

Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2026-04-20 15:16:39 +08:00
openvela-robot f919b6feca build.yml: Updated the workflow to use version v4 of the actions/upload-artifact and actions/download-artifact
Sync the version of the macOS runner on GitHub with the version used in the nuttx repository.

runs-on: macos-12 -> runs-on: macos-13
2026-04-20 15:16:38 +08:00
openvela-robot eeb0d63cbe porting fake function framework to vela via cmake
Signed-off-by: zhangchao53 <zhangchao53@xiaomi.com>
2026-04-20 15:16:36 +08:00
openvela-robot b7b6ea60f7 wamr: add a few missing options to match the wamr repo counterpart 2026-04-20 15:16:35 +08:00
openvela-robot 484ef310f2 coredump:fix build break
./coredump.c:37:10: fatal error: nuttx/lib/coredump.h: No such file or directory
   37 | #include <nuttx/lib/coredump.h>
      |          ^~~~~~~~~~~~~~~~~~

Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2026-04-20 15:16:34 +08:00
openvela-robot 520d5813d8 apps/videoutils: add Makefile
Signed-off-by: shizhenghui <shizhenghui@xiaomi.com>
2026-04-20 15:16:33 +08:00
openvela-robot ae58ce8788 mbedtls-alt: support cmac
Signed-off-by: makejian <makejian@xiaomi.com>
2026-04-20 15:16:31 +08:00
openvela-robot 1e116f37bc toywasm: bump to v54.0.0 2026-04-20 15:16:30 +08:00
openvela-robot fee59c8647 drivertest: Fix cmocka_driver_framebuffer is not displayed
Signed-off-by: liuhongchao <liuhongchao@xiaomi.com>
2026-04-20 15:16:29 +08:00
openvela-robot 961549887b add m2m decoder/encoder test
Signed-off-by: yangsen5 <yangsen5@xiaomi.com>
2026-04-20 15:16:27 +08:00
openvela-robot fee776cbaa uORB/sensor: Rename GPS to GNSS
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2026-04-20 15:16:25 +08:00
openvela-robot 50f56f65b4 testing/[sd_bench|sd_stress]: make print compatible for both 32-bit and 64-bit environment.
Use size_t and %zu in printf of sd modules to fix compilation errors in 64-bit environment.

Signed-off-by: Yinzhe Wu <Yinzhe.Wu@sony.com>
Reviewed-by: Yuezhang Mo <Yuezhang.Mo@sony.com>
Reviewed-by: Jacky Cao <Jacky.Cao@sony.com>
Tested-by: Yinzhe Wu <Yinzhe.Wu@sony.com>
2026-04-20 15:16:24 +08:00
openvela-robot 3912fc70af apps/Makefile: Add multiple sources support for DYNLIB
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2026-04-20 15:16:22 +08:00
openvela-robot ea3a892eab system/spi: Add CMakeLists.txt
Add CMakeLists.txt to system SPI tool.
2026-04-20 15:16:19 +08:00
openvela-robot c66982466d testing: Add simple debug test program
It is a simple test case of the NuttX debugging facilities (breakpoint and watchpoint).

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2026-04-20 15:16:18 +08:00
openvela-robot 1607040c28 system/telnetd: add CMake script
This adds CMake support for the `telnetd` command

Signed-off-by: Yanfeng Liu <yfliu2008@qq.com>
2026-04-20 15:16:16 +08:00
openvela-robot 45b8422018 examples/rpsock: fix redefined warning
neededby:4132469

CC: rpsock_client.c:41:9: warning: 'ALIGN_UP' macro redefined
        ^
nuttx/include/arch/irq.h:72:11: note: previous definition is here

Signed-off-by: yintao <yintao@xiaomi.com>
2026-04-20 15:16:13 +08:00
openvela-robot 3d2c2bcf22 toywasm: bump to v48.0.0 2026-04-20 15:16:12 +08:00
openvela-robot fdc7d8db99 apps/benchmarks: update CMakeLists and Makefile for taclebench.
This commit fix compilation erros after the taclebench all-in-one file changes.

Signed-off-by: ouyangxiangzhen <ouyangxiangzhen@xiaomi.com>
2026-04-20 15:16:10 +08:00
openvela-robot cf2901c807 benchmark: update gitignore for superpi and dhrystone
ignore downloaded files for superpi and dhrystone
2026-04-20 15:16:09 +08:00
openvela-robot 5e6c6610f0 cmake:migrate wamr to CMake build
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2026-04-20 15:16:08 +08:00
openvela-robot 3cb1db4715 toywasm: Bump to v46.0.0 2026-04-20 15:16:07 +08:00
openvela-robot fb9575c064 apps/benchmarks: Fix test-tlb Makefile and CMakeLists
Fix test-tlb Makefile and CMakeLists after the directory is renamed.

Signed-off-by: ouyangxiangzhen <ouyangxiangzhen@xiaomi.com>
2026-04-20 15:16:06 +08:00