Commit Graph

118 Commits

Author SHA1 Message Date
openvela-robot 08d4a9c2fd 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>
2025-12-15 18:34:45 +08:00
openvela-robot 0b113c54f4 [wireless][wapi] add extend api for private needs
Signed-off-by: meijian <meijian@xiaomi.com>
2025-12-15 18:34:43 +08:00
openvela-robot 18818247dd ltp: TESTING_LTP_STACKSIZE depend on TESTING_LTP
Signed-off-by: zhangshoukui <zhangshoukui@xiaomi.com>
2025-12-15 18:34:41 +08:00
openvela-robot c6340da4dd fastboot tool: Status read failed while rebooting into bootloader
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2025-12-15 18:34:38 +08:00
openvela-robot 7f32c1d9fe 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>
2025-12-15 18:34:36 +08:00
openvela-robot 3dca22b227 .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>
2025-12-15 18:34:34 +08:00
openvela-robot f14e9ad74f 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>
2025-12-15 18:34:31 +08:00
openvela-robot 0fc7f955e0 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>
2025-12-15 18:34:23 +08:00
openvela-robot bed66ed1c8 perf-tool: need to relase file resource
Signed-off-by: zhangwenjian <zhangwenjian@xiaomi.com>
2025-12-15 18:34:13 +08:00
openvela-robot 45e854998f testing/fftest: add Force feedback driver test
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2025-12-15 18:34:11 +08:00
openvela-robot d8eaf77dd4 mbedtls/psa: provides PSA method for using hardware random driver
Signed-off-by: makejian <makejian@xiaomi.com>
2025-12-15 18:34:08 +08:00
openvela-robot d78bced32e ostest: smp_call only valid in FLAT BUILD
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2025-12-15 18:34:06 +08:00
openvela-robot 2a1b93c96e 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>
2025-12-15 18:34:03 +08:00
openvela-robot 2ec0cb27ad Update settings.c 2025-12-15 18:34:01 +08:00
openvela-robot 87a45b1ec9 uORB:Fixed the problem that uorb output cannot wrap after deleting lib_libbsprintf automatic wrapping.
Signed-off-by: likun17 <likun17@xiaomi.com>
2025-12-15 18:33:58 +08:00
openvela-robot 27fc6368d0 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>
2025-12-15 18:33:56 +08:00
openvela-robot 579521d328 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>
2025-12-15 18:33:54 +08:00
openvela-robot 134acd9c05 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>
2025-12-15 18:33:50 +08:00
openvela-robot bcd191c119 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>
2025-12-15 18:33:48 +08:00
openvela-robot b568feb82b Zig & D examples clean & refactor
dlang: use importC to get NuttX include
zig: leds_zig added
2025-12-15 18:33:46 +08:00
openvela-robot ddc9ef4e1b perf-tool:support record function
Signed-off-by: zhangwenjian <zhangwenjian@xiaomi.com>
2025-12-15 18:33:44 +08:00
openvela-robot 321521090e ostest: delete the code that accesses the internal fields of mutex
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2025-12-15 18:33:41 +08:00
openvela-robot e29fa311c5 drivertest watchdog:add busyloop prevent os enter pm.
Signed-off-by: yangguangcai <yangguangcai@xiaomi.com>
2025-12-15 18:33:39 +08:00
openvela-robot e4a0ffb5b3 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>
2025-12-15 18:33:37 +08:00
openvela-robot 0c9ea28997 [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>
2025-12-15 18:33:34 +08:00
openvela-robot e96cb5766d netlib: Use the netlib_add_ipv6addr to set the IPv6 address after obtaining the address.
Signed-off-by: liqinhui <liqinhui@xiaomi.com>
2025-12-15 18:33:32 +08:00
openvela-robot 0bb74c9983 testing/pm_smp: delay_yield ticks 1->2, avoid idle canot run one cycle
Signed-off-by: buxiasen <buxiasen@xiaomi.com>
2025-12-15 18:33:30 +08:00
openvela-robot 0432777584 apps/nxplayer: add ioctl stop when play completed
Signed-off-by: jinxiuxu <jinxiuxu@xiaomi.com>
2025-12-15 18:33:26 +08:00
openvela-robot 615568003c testing/crypto: add ecdsa testing
Signed-off-by: makejian <makejian@xiaomi.com>
2025-12-15 18:33:19 +08:00
openvela-robot cd7d3f8813 fstest: If the file is deleted it will not be opened
Signed-off-by: zhangshoukui <zhangshoukui@xiaomi.com>
2025-12-15 18:33:07 +08:00
openvela-robot d7bece6af2 apps/testing:Fix the table formatting issue in the README.
Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
2025-12-15 18:33:04 +08:00
openvela-robot e5884449c3 cmake:builtin register support NONE srcs target
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2025-12-15 18:33:02 +08:00
openvela-robot f4acd61a6d system/fastboot: Fix error that download_size always be zero
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2025-12-15 18:32:59 +08:00
openvela-robot 7888a1d8ed feat(nsh): input (stdin) redirection
This adds support for `<` to redirect input on nsh commands.
2025-12-15 18:32:56 +08:00
openvela-robot 77afacabbd testing/ostest: Fix timing assertions in wdog_test
This patch removed timing assertions in wdog_test.

Signed-off-by: ouyangxiangzhen <ouyangxiangzhen@xiaomi.com>
2025-12-15 18:32:54 +08:00
openvela-robot e4694f8e15 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>
2025-12-15 18:32:52 +08:00
openvela-robot 348b7a8085 nsh/ps: fix -heap cut more than 10MB
Signed-off-by: buxiasen <buxiasen@xiaomi.com>
2025-12-15 18:32:50 +08:00
openvela-robot 4bb2d867cd 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>
2025-12-15 18:32:47 +08:00
openvela-robot b28483d78c 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>
2025-12-15 18:32:44 +08:00
openvela-robot 77759f90e6 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.
2025-12-15 18:32:42 +08:00
xuxin19 021091b15b 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>
2025-12-15 18:32:40 +08:00
openvela-robot 5e82bc2e77 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>
2025-12-15 18:11:07 +08:00
openvela-robot a2b0cf0170 use UNUSED macro to avoid compile error
Signed-off-by: liyi <liyi25@xiaomi.com>
2025-12-15 18:11:04 +08:00
openvela-robot 950fe4f3f7 ifconfig support set IPv6 DNS server
Signed-off-by: liyi <liyi25@xiaomi.com>
2025-12-15 18:11:02 +08:00
openvela-robot 645c6a2b87 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>
2025-12-15 18:11:00 +08:00
openvela-robot cc9a3442d2 Add libcanardv1 for Cyphal, rename libcanard to libcanardv0 2025-12-15 18:10:58 +08:00
openvela-robot f5f7915043 lv_porting/gpu: isolate path str API
add get_filtered_image_path()

Signed-off-by: Peter Bee <bijunda1@xiaomi.com>
2025-12-15 18:10:56 +08:00
openvela-robot 61314b9307 nxlooper: nxlooper should wait call buffer returned before close
Signed-off-by: ligd <liguiding1@xiaomi.com>
2025-12-15 18:10:54 +08:00
openvela-robot 62e17f90d2 lv_porting/gpu: gpu_img_buf_alloc clear data magic
Signed-off-by: Peter Bee <bijunda1@xiaomi.com>
2025-12-15 18:10:52 +08:00
openvela-robot 5f0d3f85e8 usrsock: adjust rptun API
Signed-off-by: ligd <liguiding1@xiaomi.com>
2025-12-15 18:10:49 +08:00