zhuanglin
34151a5c48
apps/wireless:Generating WAPI glue code
...
Signed-off-by: zhuanglin <zhuanglin@xiaomi.com>
2026-04-20 15:19:48 +08:00
nuttxs
57fcf465a8
wireless/wapi.c: Initialize variables to avoid abnormal
...
data when wapi get country code.
2026-04-20 15:18:55 +08:00
lipengfei28
3b7cf3c751
wapi_json_load: the buf need add null character
...
sched_backtrace+0xd4/0xfffffffffff444e0
sched_dumpstack+0x5c/0xc50a0
_assert+0x1a0/0x11cf380
__assert+0x28/0x4ebd70
kasan_report+0x280/0x5b0
__asan_loadN+0x234/0xfffffffffffffac0
strlen+0x3c/0x838410
cJSON_Parse+0x38/0x1d0
wapi_json_load+0xc4/0x1c0
wapi_load_config+0x50/0x110600
netinit_associate+0x34/0xfffffffffffffe70
netinit_thread+0xbc/0x18ad0
pthread_startup+0x34/0x11660a0
pthread_start+0x84/0xfffffffffeea2520
If the buf no null character, the strlen acces buf maybe out of bounds
Signed-off-by: lipengfei28 <lipengfei28@xiaomi.com>
2026-04-20 15:18:43 +08:00
openvela-robot
3a3a0906f6
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>
2026-04-20 15:18:43 +08:00
openvela-robot
7be1dac276
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>
2026-04-20 15:18:42 +08:00
openvela-robot
a6daffa109
nxcodec: add rich debugging logs
...
Signed-off-by: shizhenghui <shizhenghui@xiaomi.com>
2026-04-20 15:18:41 +08:00
openvela-robot
b2949ba2d4
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>
2026-04-20 15:18:40 +08:00
openvela-robot
8c632a5e3b
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>
2026-04-20 15:18:26 +08:00
openvela-robot
6fd790f084
add INTERPRETERS_WAMR_DYNAMIC_AOT_DEBUG config
...
Signed-off-by: zhangliangyu3 <zhangliangyu3@xiaomi.com>
2026-04-20 15:18:22 +08:00
openvela-robot
79b997db4c
coremark:Fix renaming issues with other libraries
...
The crc16 naming implemented in coremark is duplicated in zblue.
Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2026-04-20 15:18:17 +08:00
openvela-robot
ec4f19c3fa
app/netstatistics: Add net statistics api for user
...
Signed-off-by: meijian <meijian@xiaomi.com>
2026-04-20 15:18:16 +08:00
openvela-robot
cdc354393f
uORB: Add topic information acquisition and setting interface.
...
Signed-off-by: likun17 <likun17@xiaomi.com>
2026-04-20 15:18:15 +08:00
openvela-robot
504c342d88
examples/tlpi:Add t_sched_getaffinity.c compilation
...
Signed-off-by: chenzhijia <chenzhijia@xiaomi.com>
2026-04-20 15:18:14 +08:00
openvela-robot
ef994d3c0b
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>
2026-04-20 15:18:13 +08:00
lipengfei28
52f083c5ce
wapi_json_load: the buf need add null character
...
sched_backtrace+0xd4/0xfffffffffff444e0
sched_dumpstack+0x5c/0xc50a0
_assert+0x1a0/0x11cf380
__assert+0x28/0x4ebd70
kasan_report+0x280/0x5b0
__asan_loadN+0x234/0xfffffffffffffac0
strlen+0x3c/0x838410
cJSON_Parse+0x38/0x1d0
wapi_json_load+0xc4/0x1c0
wapi_load_config+0x50/0x110600
netinit_associate+0x34/0xfffffffffffffe70
netinit_thread+0xbc/0x18ad0
pthread_startup+0x34/0x11660a0
pthread_start+0x84/0xfffffffffeea2520
If the buf no null character, the strlen acces buf maybe out of bounds
Signed-off-by: lipengfei28 <lipengfei28@xiaomi.com>
2026-04-20 15:18:11 +08:00
meijian
e8475defc0
[wireless] add set/get pmksa api for fast-auth
...
Signed-off-by: meijian <meijian@xiaomi.com>
2026-04-20 15:17:55 +08:00
meijian
691815508b
[wireless][wapi] add powersave cmd of wapi for Low-power modules
...
Signed-off-by: meijian <meijian@xiaomi.com>
2026-04-20 15:17:55 +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
wangchen
370efc1acd
util.c:Add mode when creating files in the wapi_save_config
...
Signed-off-by: wangchen <wangchen41@xiaomi.com>
2026-04-20 15:17:08 +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