fangpeina
78420bc022
nshlib: Add stderr redirection support
...
This commit implements stderr redirection in HSN, support
Bash-like syntax for redirecting standard error output.
Support both foreground and background commands.
example:
- nsh> ls noexists 2> err.log
- nsh> ls noexists 2> err.log &
- nsh> ls noexists 2>> err.log
- nsh> sh < /dev/ttyS0 > /dev/ttyS0 2> /dev/ttyS1 &
- nsh> sh < /dev/ttyS0 > /dev/ttyS0 2>&1 &
Signed-off-by: fangpeina <fangpeina@xiaomi.com>
2026-04-20 15:20:24 +08:00
guanyushuai1
02298e68ea
docs/doxygen: update network docs
...
Signed-off-by: guanyushuai1 <guanyushuai1@xiaomi.com>
2026-04-20 15:20:18 +08:00
gaohedong
6660e78d69
net/ethernet: add netlib api to get/set driver channels info
...
add netlib api to get/set driver channels info
Signed-off-by: gaohedong <gaohedong@xiaomi.com>
2026-04-20 15:20:17 +08:00
anjiahao
0dd77b9fdd
App startup:merge nsh_builtin into nsh_fileapps
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2026-04-20 15:20:14 +08:00
anjiahao
0dd1f127ce
prlimit:if not use prlimit, set attr NULL
...
if attr is NULL:
builtin apps will use g_builtins attr
fileapp will use attr symbol
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2026-04-20 15:20:14 +08:00
guanyushuai1
23d54c1040
docs/doxygen: update network docs
...
Signed-off-by: guanyushuai1 <guanyushuai1@xiaomi.com>
2026-04-20 15:19:55 +08:00
gaohedong
dafb1ab14e
netlib: fixed compilation issues
...
fixed compilation issues
Signed-off-by: gaohedong <gaohedong@xiaomi.com>
2026-04-20 15:19:50 +08:00
zhangyuan29
9fc49bc03b
netlib: fixed tasking incomplete enmu type issue
...
ctc E295: ["netlib.h" 407/1]: reference to incomplete enmu type.
Signed-off-by: zhangyuan29 <zhangyuan29@xiaomi.com>
2026-04-20 15:19:47 +08:00
zhangshuai39
74022d24e1
netlib: add empty macro definition for netlib_check_ipconnectivity & netlib_check_ifconnectivity
...
Signed-off-by: zhangshuai39 <zhangshuai39@xiaomi.com>
2026-04-20 15:19:41 +08:00
renjianguang
c3280a7114
nxplayer: add tone cmd implementation
...
Play 20 seconds tone:
1.nxplayer
2.nxplayer> device pcm0p
3.nxplayer> tone 48000 20
Signed-off-by: renjianguang <renjianguang@xiaomi.com>
2026-04-20 15:19:39 +08:00
gaohedong
8456ff3ada
net/ethernet: ARP can be configured on interface
...
ARP can be configured on interface
Signed-off-by: gaohedong <gaohedong@xiaomi.com>
2026-04-20 15:19:35 +08:00
dongjiuzhu1
395ac180d1
netutils/ptpd: using -B to control BMCA message
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2026-04-20 15:19:27 +08:00
anjiahao
5522321f41
nsh:support prlimit command
...
usage:
prlimit [options] ["cmd [args]"]
-s <stacksize> Set the stack size
-p <prio> Set the priority
-h <heapsize> Set the task heapsize
test on mps3-an547:
```
nsh> prlimit -s 3092 -h 8092 -p 99 "hello &"
hello [3:99]
nsh> Hello, World!!
nsh>
nsh>
nsh>
nsh> free
total used free maxused maxfree nused nfree name
8084 3532 4552 3904 4552 5 1 hello
65532 5844 59688 6216 59688 7 1 nsh_main
1075816620 77540 1075739080 77912 1073741808 25 3 Umem
nsh> ps
PID GROUP PRI POLICY TYPE NPX STATE EVENT SIGMASK STACK USED FILLED COMMAND
0 0 0 FIFO Kthread - Ready 0000000000000000 0004080 0000836 20.4% Idle_Task
1 0 192 RR Kthread - Waiting Semaphore 0000000000000000 0004028 0000672 16.6% hpwork 0x10001cc 0x10001fc
2 2 100 RR Task - Running 0000000000000000 0004056 0002052 50.5% nsh_main
3 3 99 RR Task - Waiting Signal 0000000000000000 0003056 0000588 19.2% hello
nsh>
```
change stack,priority,heapsize to run a command
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2026-04-20 15:19:27 +08:00
dongjiuzhu1
8e82e0b3ca
netutils/ptpd: using dynamic config to config clien-only mode and delaye2e
...
fix compile warning when only enable PTPD_CLIENT or PTPD_SERVER
ptpd.c:493:38: error: 'CONFIG_NETUTILS_PTPD_PRIORITY1' undeclared (first
use in this function); did you mean 'CONFIG_NETUTILS_PTPD_CLIENT'?
ptpd.c:494:39: error: 'CONFIG_NETUTILS_PTPD_CLASS' undeclared (first use
in this function); did you mean 'CONFIG_NETUTILS_PTPD_CLIENT'?
ptpd.c:495:39: error: 'CONFIG_NETUTILS_PTPD_ACCURACY' undeclared (first
use in this function); did you mean 'CONFIG_NETUTILS_PTPD_DEBUG'?
ptpd.c:498:38: error: 'CONFIG_NETUTILS_PTPD_PRIORITY2' undeclared (first
use in this function); did you mean 'CONFIG_NETUTILS_PTPD_CLIENT'?
ptpd.c:502:36: error: 'CONFIG_NETUTILS_PTPD_CLOCKSOURCE' undeclared
(first use in this function); did you mean
'CONFIG_NETUTILS_PTPD_STACKSIZE'?
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2026-04-20 15:19:26 +08:00
dongjiuzhu1
f8f8fdfec8
system/ptpd: provide more parameter by struct ptpd_config_s when starting ptpd
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2026-04-20 15:19:25 +08:00
Zhe Weng
626828b77e
vconfig: Support setting default PCP when creating VLAN
...
Now we allow setting a default PCP when creating VLAN like:
`vconfig add iface-name vlan-id [pcp]`
e.g.
`vconfig add eth0 10` will create eth0.10 with VID=10 and no PCP(0)
`vconfig add eth0 10 3` will create eth0.10 with VID=10 and PCP=3
Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2026-04-20 15:19:18 +08:00
Zhe Weng
2caef5a4e3
netlib: Add support for adding/removing VLAN device
...
Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2026-04-20 15:19:17 +08:00
liqinhui
5066596ff4
ping4:Set the filter for reply packet.
...
Signed-off-by: liqinhui <liqinhui@xiaomi.com>
2026-04-20 15:19:12 +08:00
meijian
ea1eb7ba8c
ping: add -I for bind device
...
Signed-off-by: meijian <meijian@xiaomi.com>
2026-04-20 15:19:12 +08:00
meijian
9d750e6e0a
apps/net: add http connectivity check API
...
Signed-off-by: meijian <meijian@xiaomi.com>
2026-04-20 15:19:11 +08:00
meijian
9a4f1dcd75
apps/net: add if network conntivity check API
...
Signed-off-by: meijian <meijian@xiaomi.com>
2026-04-20 15:19:11 +08:00
meijian
8b9b0470b4
apps/net: add ip address connectivity check API
...
Signed-off-by: meijian <meijian@xiaomi.com>
2026-04-20 15:19:11 +08:00
meijian
fe1aac4cec
apps/net: add get iobinfo api
...
Signed-off-by: meijian <meijian@xiaomi.com>
2026-04-20 15:19:11 +08:00
meijian
5a15a5bea6
apps/net: add ip conflict check API
...
Signed-off-by: meijian <meijian@xiaomi.com>
2026-04-20 15:19:11 +08:00
Zhe Weng
f350946040
graphics/input: Add input_gen_fill_point interface for generator
...
Also change some typos of generator.
Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2026-04-20 15:19:10 +08:00
Zhe Weng
3aeaca892b
apps/graphics: Add input generator library
...
Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2026-04-20 15:19:10 +08:00
wangchen
8cb9d72729
dns:add interface for cleardnsaddr
...
Signed-off-by: wangchen <wangchen41@xiaomi.com>
2026-04-20 15:19:01 +08:00
wangjianyu3
591559405c
Pack parameters of nsh_execute() as struct nsh_exec_param_s
...
1. Input redirect flags currently is hardcode, passing by arguments maybe better.
2. Only support redirect to path_name, redirect to fd is needed for pipeline.
Test
1. Redirect in
cat < /etc/init.d/rc.sysinit
2. Redirect with FIFO
mkfifo /dev/testfifo
cat /dev/testfifo &
ls > /dev/testfifo
3. NSH Params
set name `uname`
echo $name
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2026-04-20 15:18:58 +08:00
jianglianfang
55da95f464
audioutils/nxaudio: added pause/resume interface
...
Signed-off-by: jianglianfang <jianglianfang@xiaomi.com>
2026-04-20 15:18:57 +08:00
Huang Qi
597b1e2116
tools: Add essential math.h for wasm build
...
Try to fix:
```
cp: cannot create regular file 'xxxx': file exists
```
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2026-04-20 15:18:57 +08:00
openvela-robot
4e0a573f23
nsh: support watch command
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2026-04-20 15:18:53 +08:00
openvela-robot
b0d05e45c1
cmake(snyc):fix nuttx-apps CMakeList.txt conflit
...
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2026-04-20 15:18:51 +08:00
openvela-robot
db9da5caee
nshlib:Add macro restrictions to code that uses floating point numbers
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2026-04-20 15:18:49 +08:00
openvela-robot
7344f54d1a
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>
2026-04-20 15:18:47 +08:00
openvela-robot
552570496c
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>
2026-04-20 15:18:46 +08:00
openvela-robot
ce2bf03d31
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>
2026-04-20 15:18:45 +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
openvela-robot
bf1281df9f
uORB: DEBUG_UORB add LIBC_PRINT_EXTENSION dependency.
...
Signed-off-by: likun17 <likun17@xiaomi.com>
2026-04-20 15:18:11 +08:00
openvela-robot
ce02909afe
build.yml: Workflow aligned with nuttx repo
...
build.yml: Limit the GitHub Runners
see https://github.com/apache/nuttx/pull/13412
2026-04-20 15:18:10 +08:00
openvela-robot
aa82103353
system/coredump: compatible restore name with NAME_MAX 32 Bytes
...
Signed-off-by: buxiasen <buxiasen@xiaomi.com>
2026-04-20 15:18:09 +08:00