Commit Graph

118 Commits

Author SHA1 Message Date
openvela-robot e66c0dfb50 benchmarks/rt-tests: Add CONFIG_PIPE dependency and fix compilation issues.
This commit added the required CONFIG_PIPE dependency and fix
the compilation issues.

Signed-off-by: ouyangxiangzhen <ouyangxiangzhen@xiaomi.com>
2026-04-20 15:17:56 +08:00
openvela-robot 30856f00da [wireless][wapi] add extend api for private needs
Signed-off-by: meijian <meijian@xiaomi.com>
2026-04-20 15:17:55 +08:00
openvela-robot 86ea27e8ec ltp: TESTING_LTP_STACKSIZE depend on TESTING_LTP
Signed-off-by: zhangshoukui <zhangshoukui@xiaomi.com>
2026-04-20 15:17:54 +08:00
openvela-robot 2a98df01c3 fastboot tool: Status read failed while rebooting into bootloader
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2026-04-20 15:17:52 +08:00
openvela-robot 5e07563436 update config switch to only a HEAPDUMP
now open a HEAPDUMP Marco for heapdump tool
test by specific product
Signed-off-by: qinliansong <qinliansong@xiaomi.com>
2026-04-20 15:17:51 +08:00
openvela-robot 8bf2e0a88b .gitignore: Add .aider* to .gitignore
Aider is AI pair programmer: https://aider.chat

The .aider* files is not a part of NuttX but used by
Aider as temporary files.

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2026-04-20 15:17:50 +08:00
openvela-robot aa8f4c7688 testing/debug: Enhancement for watch address by cmd line
This patch add some command line arguments for debug
program, then you can use it to insert watchpoint or
breakpoint to arbitrary address at runtime.

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2026-04-20 15:17:49 +08:00
openvela-robot dacf6fd5bf system/uorb: using uorb.h to replace sensors header file
Sensors are just a part of uORB, and there are many virtual topics used
within uORB as well. For the library apps/system/uorb/, the nuttx/uorb.h
version is more preferable. So, move public type and definition to
nuttx/uorb.h.

Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2026-04-20 15:17:48 +08:00
openvela-robot 66802a9107 perf-tool: need to relase file resource
Signed-off-by: zhangwenjian <zhangwenjian@xiaomi.com>
2026-04-20 15:17:46 +08:00
openvela-robot 1807f802a6 testing/fftest: add Force feedback driver test
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2026-04-20 15:17:45 +08:00
openvela-robot 312d980722 mbedtls/psa: provides PSA method for using hardware random driver
Signed-off-by: makejian <makejian@xiaomi.com>
2026-04-20 15:17:43 +08:00
openvela-robot f4dc7299bf ostest: smp_call only valid in FLAT BUILD
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2026-04-20 15:17:41 +08:00
openvela-robot 42239d81c1 uorb:Added 6dof motion and gesture related types.
For details,see: https://developer.android.com/reference/android/hardware/SensorEvent#values

Signed-off-by: likun17 <likun17@xiaomi.com>
2026-04-20 15:17:40 +08:00
openvela-robot 307f3e1244 Update settings.c 2026-04-20 15:17:38 +08:00
openvela-robot a8b98a0925 uORB:Fixed the problem that uorb output cannot wrap after deleting lib_libbsprintf automatic wrapping.
Signed-off-by: likun17 <likun17@xiaomi.com>
2026-04-20 15:17:37 +08:00
openvela-robot 4c4dccfe27 can: add support for FD frames if FD mode is configured
This enhances can example application with the possibility to send
CAN FD frames if FD mode is configured. Both EDL and BRS flags are
now correctly set with the latter one configurable with application's
arguments. Also data bytes are now correctly switched to DLC.

Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2026-04-20 15:17:36 +08:00
openvela-robot cfdcb50df9 wasm: export wamr_custom_init for wasm env to register APIs
wamr_custom_init is a function customized by Vela, which is used to
replace wasm_runtime_full_init to register APIs to WAMR for iwasm apps,
here we export the wamr_custom_init for none iwasm use.

Signed-off-by: liaobin1 <liaobin1@xiaomi.com>
2026-04-20 15:17:35 +08:00
openvela-robot 09b8b066ad can: Merge netpacket/can.h into nuttx/can.h
This patch is associated with 'https://github.com/apache/nuttx/pull/13048', so it cannot be verified separately by CI. Please help to associate and review it. Thank you!

Signed-off-by: gaohedong <gaohedong@xiaomi.com>
2026-04-20 15:17:33 +08:00
openvela-robot 62a59c1e53 wamr: Add external module registration mechanism
This patch adds module registration mechanism for WAMR runtime.

To register a module, these steps are required:
1. Include Module.mk in your module's Makefile
2. Define WAMR_MODULE_NAME as the module name
3. Implement bool wamr_module_WAMR_MODULE_NAME_register(void) function in your module's source file
4. Enable INTERPRETERS_WAMR_EXTERNAL_MODULE_REGISTRY in menuconfig

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2026-04-20 15:17:32 +08:00
openvela-robot 93f02638fc Zig & D examples clean & refactor
dlang: use importC to get NuttX include
zig: leds_zig added
2026-04-20 15:17:30 +08:00
openvela-robot 4a8bd460e1 perf-tool:support record function
Signed-off-by: zhangwenjian <zhangwenjian@xiaomi.com>
2026-04-20 15:17:29 +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
xuxin19 9b184926d2 cmake:implement CMake build for NuttX Lua interpreter
add CMake module for register lua mod
nsh> lua
Lua 5.4.0  Copyright (C) 1994-2020 Lua.org, PUC-Rio
> hello.say_hello()
Hello World!
> io.write("abs is =",math.abs(-10),"\n")
abs is =10
> os.exit()
nsh>

Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2026-04-20 15:16:47 +08:00
openvela-robot c6b2e303d7 driver/sensor: rename /dev/sensor -> /dev/uorb
because this directory contains all topics by uorb using, not just sensors.

Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2026-04-20 15:04:00 +08:00
openvela-robot 2c0f278bc5 use UNUSED macro to avoid compile error
Signed-off-by: liyi <liyi25@xiaomi.com>
2026-04-20 15:03:56 +08:00
openvela-robot cbb6c5c664 ifconfig support set IPv6 DNS server
Signed-off-by: liyi <liyi25@xiaomi.com>
2026-04-20 15:03:54 +08:00
openvela-robot cfab70a172 lv_porting/gpu: fix 16-bit build break
And refine argb8565 convert function like others (untested though)

Signed-off-by: Peter Bee <bijunda1@xiaomi.com>
2026-04-20 15:03:53 +08:00
openvela-robot 932a023725 Add libcanardv1 for Cyphal, rename libcanard to libcanardv0 2026-04-20 15:03:50 +08:00
openvela-robot a595cc185f lv_porting/gpu: isolate path str API
add get_filtered_image_path()

Signed-off-by: Peter Bee <bijunda1@xiaomi.com>
2026-04-20 15:03:49 +08:00
openvela-robot 2b69d6c65b nxlooper: nxlooper should wait call buffer returned before close
Signed-off-by: ligd <liguiding1@xiaomi.com>
2026-04-20 15:03:47 +08:00
openvela-robot 4f4394e857 lv_porting/gpu: gpu_img_buf_alloc clear data magic
Signed-off-by: Peter Bee <bijunda1@xiaomi.com>
2026-04-20 15:03:45 +08:00
openvela-robot 566ab9d9e3 usrsock: adjust rptun API
Signed-off-by: ligd <liguiding1@xiaomi.com>
2026-04-20 15:03:43 +08:00