openvela-robot
744a956e81
Merge branch 'master' into vela
...
apache/nuttx-apps commit id: c5c18a29973802b196e77adf3fd3e6742a269d83
Signed-off-by: ligd <liguiding1@xiaomi.com >
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
2025-12-15 18:36:23 +08:00
openvela-robot
5218c8923b
nsh: support watch command
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com >
2025-12-15 18:36:21 +08:00
openvela-robot
ca3e3aa11b
cmake(snyc):fix nuttx-apps CMakeList.txt conflit
...
Signed-off-by: xuxin19 <xuxin19@xiaomi.com >
2025-12-15 18:36:19 +08:00
openvela-robot
0d676ea96d
nshlib:Add macro restrictions to code that uses floating point numbers
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com >
2025-12-15 18:36:13 +08:00
openvela-robot
0eb9fab3e5
top:fix memleak if ps_recored retrun error
...
7 534 128 6096556 0x44c43720 [0x0402a5ec0] <mm_zalloc+8> mm_heap/mm_zalloc.c:45
[0x0402a35ce] <zalloc+18> umm_heap/umm_zalloc.c:70
[0x0402b72ba] <top_callback+238> nsh_proccmds.c:733
[0x0402b57f8] <nsh_foreach_direntry+32> nsh_fsutils.c:474
[0x0402b7c86] <cmd_top+562> nsh_proccmds.c:1252
[0x0402b2496] <nsh_command+70> nsh_command.c:1262
[0x0402ae9fc] <nsh_execute+60> nsh_parse.c:717
7 534 512 6095859 0x44c1e270 [0x0402a5ec0] <mm_zalloc+8> mm_heap/mm_zalloc.c:45
[0x0402a35ce] <zalloc+18> umm_heap/umm_zalloc.c:70
[0x0402b72d8] <top_callback+268> nsh_proccmds.c:741
[0x0402b57f8] <nsh_foreach_direntry+32> nsh_fsutils.c:474
[0x0402b7c86] <cmd_top+562> nsh_proccmds.c:1252
[0x0402b2496] <nsh_command+70> nsh_command.c:1262
[0x0402ae9fc] <nsh_execute+60> nsh_parse.c:717
Signed-off-by: anjiahao <anjiahao@xiaomi.com >
2025-12-15 18:36:11 +08:00
openvela-robot
4e4a8ea904
cjson_test:add define CONFIG_CJSON_NESTING_LIMIT
...
Summary:
Added a limit to CJSON_NESTING_LIMIT. The default value is 1000, which can cause stack overflow in some test cases.
Signed-off-by: chenrun1 <chenrun1@xiaomi.com >
2025-12-15 18:36:08 +08:00
openvela-robot
8a4df9d969
net: Remove IFF_DOWN flag to compatible with Linux/*BSD
...
turn off interface by checking IFF_UP flag isn't set:
https://github.com/apache/nuttx/issues/1838
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
2025-12-15 18:36:05 +08:00
openvela-robot
d9bc258f83
examples/pipe: Enhance test by different r/w thread priority
...
By arranging and combining the priorities of read and write
threads to cover more usage scenarios.
Signed-off-by: Huang Qi <huangqi3@xiaomi.com >
2025-12-15 18:36:01 +08:00
openvela-robot
023cbeed2b
tools/mksymtab.sh: Using getopts to parse parameters
...
Use the "-a" option to specify additional lists
Examples
- The basic.txt
$ cat basic.txt
basic_func0
basic_func1
basic_func2
- The additional.txt
$ cat additional.txt
additional_func0
additional_func1
additional_func2
1. Get symbols from directory "EMPTY_DIR" and additional list basic.txt
./tools/mksymtab.sh ./EMPTY_DIR -a basic.txt
#if defined(CONFIG_EXECFUNCS_HAVE_SYMTAB)
const struct symtab_s CONFIG_EXECFUNCS_SYMTAB_ARRAY[] =
#elif defined(CONFIG_NSH_SYMTAB)
const struct symtab_s CONFIG_NSH_SYMTAB_ARRAYNAME[] =
#else
const struct symtab_s dummy_symtab[] =
#endif
{
{"basic_func0", &basic_func0},
{"basic_func1", &basic_func1},
{"basic_func2", &basic_func2},
};
2. Get symbols from directory "EMPTY_DIR" and two additional lists basic.txt, additional.txt
./tools/mksymtab.sh ./EMPTY_DIR -a basic.txt -a additional.txt
#if defined(CONFIG_EXECFUNCS_HAVE_SYMTAB)
const struct symtab_s CONFIG_EXECFUNCS_SYMTAB_ARRAY[] =
#elif defined(CONFIG_NSH_SYMTAB)
const struct symtab_s CONFIG_NSH_SYMTAB_ARRAYNAME[] =
#else
const struct symtab_s dummy_symtab[] =
#endif
{
{"additional_func0", &additional_func0},
{"additional_func1", &additional_func1},
{"additional_func2", &additional_func2},
{"basic_func0", &basic_func0},
{"basic_func1", &basic_func1},
{"basic_func2", &basic_func2},
};
3. Set prefix and get symbols from directory "EMPTY_DIR" and two additional lists basic.txt, additional.txt
./tools/mksymtab.sh ./EMPTY_DIR PREFIX_TEST -a basic.txt -a additional.txt
const struct symtab_s PREFIX_TEST_exports[] =
{
{"additional_func0", &additional_func0},
{"additional_func1", &additional_func1},
{"additional_func2", &additional_func2},
{"basic_func0", &basic_func0},
{"basic_func1", &basic_func1},
{"basic_func2", &basic_func2},
};
4. Error: Missing <imagedirpath>
$ ./tools/mksymtab.sh
ERROR: Missing <imagedirpath>
Usage: ./tools/mksymtab.sh <imagedirpath> [symtabprefix] [-a additionalsymbolspath]
UNSUPPORTED usage examples
# `getopt` supports these, but the usage in GNU and macOS is incompatible.
- ./tools/mksymtab.sh ./EMPTY_DIR -a basic.txt PREFIX_TEST -a additional.txt
- ./tools/mksymtab.sh -a basic.txt ./EMPTY_DIR PREFIX_TEST -a additional.txt
References
BASH(1) -- getopts
GETOPT(1) -- getopt
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com >
2025-12-15 18:35:59 +08:00
openvela-robot
e329d87ca7
nxcodec: add rich debugging logs
...
Signed-off-by: shizhenghui <shizhenghui@xiaomi.com >
2025-12-15 18:35:57 +08:00
openvela-robot
70560a2022
nxcodec: fix build warning
...
nxcodec_main.c:143:37: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘uint32_t’ {aka ‘unsigned int’} [-Wformat=]
143 | printf("nxcodec size: %lux%lu\n",
| ~~^
| |
| long unsigned int
| %u
144 | codec.output.format.fmt.pix.width,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| uint32_t {aka unsigned int}
nxcodec_main.c:143:41: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘uint32_t’ {aka ‘unsigned int’} [-Wformat=]
143 | printf("nxcodec size: %lux%lu\n",
| ~~^
| |
| long unsigned int
| %u
144 | codec.output.format.fmt.pix.width,
145 | codec.output.format.fmt.pix.height);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| uint32_t {aka unsigned int}
Signed-off-by: shizhenghui <shizhenghui@xiaomi.com >
2025-12-15 18:35:55 +08:00
openvela-robot
b6d07c9c0a
nsh: Fix PS printing misalignment
...
When the stack is allocated in megabytes, printing seven bits of ps will not align
Signed-off-by: wangmingrong <wangmingrong@xiaomi.com >
2025-12-15 18:35:49 +08:00
openvela-robot
88b9bf2d19
add INTERPRETERS_WAMR_DYNAMIC_AOT_DEBUG config
...
Signed-off-by: zhangliangyu3 <zhangliangyu3@xiaomi.com >
2025-12-15 18:35:47 +08:00
openvela-robot
6ac8e91d32
coremark:Fix renaming issues with other libraries
...
The crc16 naming implemented in coremark is duplicated in zblue.
Signed-off-by: chenrun1 <chenrun1@xiaomi.com >
2025-12-15 18:35:24 +08:00
openvela-robot
db04d3c76e
app/netstatistics: Add net statistics api for user
...
Signed-off-by: meijian <meijian@xiaomi.com >
2025-12-15 18:35:22 +08:00
openvela-robot
70413cf97d
uORB: Add topic information acquisition and setting interface.
...
Signed-off-by: likun17 <likun17@xiaomi.com >
2025-12-15 18:35:20 +08:00
openvela-robot
9c72d72c20
examples/tlpi:Add t_sched_getaffinity.c compilation
...
Signed-off-by: chenzhijia <chenzhijia@xiaomi.com >
2025-12-15 18:35:18 +08:00
openvela-robot
0bd21e2e79
build(deps): bump codelytv/pr-size-labeler from 1.10.0 to 1.10.1
...
Bumps [codelytv/pr-size-labeler](https://github.com/codelytv/pr-size-labeler ) from 1.10.0 to 1.10.1.
- [Release notes](https://github.com/codelytv/pr-size-labeler/releases )
- [Commits](https://github.com/codelytv/pr-size-labeler/compare/v1.10.0...v1.10.1 )
---
updated-dependencies:
- dependency-name: codelytv/pr-size-labeler
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-12-15 18:35:16 +08:00
openvela-robot
335a16e8ed
uORB: DEBUG_UORB add LIBC_PRINT_EXTENSION dependency.
...
Signed-off-by: likun17 <likun17@xiaomi.com >
2025-12-15 18:35:13 +08:00
openvela-robot
a68c0a098f
build.yml: Workflow aligned with nuttx repo
...
build.yml: Limit the GitHub Runners
see https://github.com/apache/nuttx/pull/13412
2025-12-15 18:35:11 +08:00
openvela-robot
4990ff1824
system/coredump: compatible restore name with NAME_MAX 32 Bytes
...
Signed-off-by: buxiasen <buxiasen@xiaomi.com >
2025-12-15 18:35:09 +08:00
openvela-robot
8d71ccfb29
gas.c:Adapt to uORB new macro definition content.
...
Signed-off-by: likun17 <likun17@xiaomi.com >
2025-12-15 18:35:06 +08:00
openvela-robot
fb8a75a59f
cmake: change the aiotjsc tool compilation from quickjs to quickapp
...
refactor aiotjsc tools cmake and cmake-format related CMakeLists.txt
Signed-off-by: liaobin1 <liaobin1@xiaomi.com >
2025-12-15 18:35:04 +08:00
openvela-robot
6712a5afc7
module/sotest: Fix depends of SOTEST_BUILTINFS
...
Log:
sotest_main.c: In function 'sotest_main':
sotest_main.c:116:29: error: storage size of 'desc' isn't known
116 | struct boardioc_romdisk_s desc;
| ^~~~
sotest_main.c:116:29: error: unused variable 'desc' [-Werror=unused-variable]
cc1: all warnings being treated as errors
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com >
2025-12-15 18:35:00 +08:00
openvela-robot
19bf227ad6
cmake(fix):bugfix fix missing include path for aiotjs
...
in file included from /home/work/ssd1/workspace/mirtos-ci/nuttx/../apps/frameworks/quickapp/src/framework/cdp/cdpprotocol.h:12,
from /home/work/ssd1/workspace/mirtos-ci/nuttx/../apps/frameworks/quickapp/src/framework/cdp/heapprofiler.h:3,
from /home/work/ssd1/workspace/MiRTOS-CI/apps/frameworks/quickapp/src/jse/quickjs/jse_quickjs.cpp:11:
/home/work/ssd1/workspace/MiRTOS-CI/nuttx/../apps/frameworks/quickapp/src/aiotjs.h:10:10: fatal error: app_interface.h: No such file or directory
10 | #include "app_interface.h"
| ^~~~~~~~~~~~~~~~~
Signed-off-by: xuxin19 <xuxin19@xiaomi.com >
2025-12-15 18:34:58 +08:00
openvela-robot
bf311d2b96
pthread_cleanup: move clenup down to tls
...
Signed-off-by: ligd <liguiding1@xiaomi.com >
2025-12-15 18:34:56 +08:00
openvela-robot
b261febfab
nshlib: fix top command accessing illegal memory
...
When initialized for the first time, the memset parameter is smaller than the actual buffer size
Causes subsequent accesses to uninitialized memory in the array
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com >
2025-12-15 18:34:54 +08:00
openvela-robot
68e6d70937
testing/crypto: add crc32 testcases
...
Signed-off-by: makejian <makejian@xiaomi.com >
2025-12-15 18:34:51 +08:00
openvela-robot
ae66e26072
lvgl/Makefile: support multiple options for LV_OPTLEVEL
...
This configuration is added to put LVGL into PSRAM for execution, and the lv_*.o file needs to be matched in the link script. Since LTO optimization will cause the file name to be modified, resulting in a matching failure, it will only take effect if LTO optimization is removed during compilation.
Link script modification: https://gerrit.odm.mioffice.cn/c/velaos/vendor/bes/framework/services_1502x/+/680741
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com >
2025-12-15 18:34:49 +08:00
openvela-robot
51ecbe7865
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:34:47 +08:00
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