Commit Graph

840 Commits

Author SHA1 Message Date
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
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
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
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
wangchen 8cb9d72729 dns:add interface for cleardnsaddr
Signed-off-by: wangchen <wangchen41@xiaomi.com>
2026-04-20 15:19:01 +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
openvela-robot 33257351ff gas.c:Adapt to uORB new macro definition content.
Signed-off-by: likun17 <likun17@xiaomi.com>
2026-04-20 15:18:07 +08:00
openvela-robot e417694fd3 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>
2026-04-20 15:18:06 +08:00
openvela-robot 4f8bb2f266 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>
2026-04-20 15:18:04 +08:00
openvela-robot de64f97d23 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>
2026-04-20 15:18:03 +08:00
openvela-robot 2a21bb4eec pthread_cleanup: move clenup down to tls
Signed-off-by: ligd <liguiding1@xiaomi.com>
2026-04-20 15:18:02 +08:00
openvela-robot 715ac5e7a6 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>
2026-04-20 15:18:01 +08:00
openvela-robot 0feaf96295 testing/crypto: add crc32 testcases
Signed-off-by: makejian <makejian@xiaomi.com>
2026-04-20 15:17:59 +08:00
openvela-robot abd7c12d01 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>
2026-04-20 15:17:58 +08:00
openvela-robot 6806436819 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:17:57 +08:00
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
meijian 5c1bd1f149 app/netstatistics: Add net statistics api for user
Signed-off-by: meijian <meijian@xiaomi.com>
2026-04-20 15:17:55 +08:00
zhangshuai39 f93f91386e netutils/netlib: Encapsulate the dhcp configuration network code and modify at all calling locations
The DHCP configuration network code is called multiple times, so it is encapsulated

Signed-off-by: zhangshuai39 <zhangshuai39@xiaomi.com>
2026-04-20 15:17:37 +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
zhangshuai39 0b2d34f3ed netutils/netlib: Encapsulate the dhcp configuration network code and modify at all calling locations
The DHCP configuration network code is called multiple times, so it is encapsulated

Signed-off-by: zhangshuai39 <zhangshuai39@xiaomi.com>
2026-04-20 15:17:19 +08:00
Zhe Weng 3c3b8b8177 netlib/ip6tables: Add functions for ip6tables & filter table
Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2026-04-20 15:16:15 +08:00
Zhe Weng e6f5cc9b75 netlib/iptables: Add functions for filter table
Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2026-04-20 15:16:14 +08:00
openvela-robot 7a9bdd8f50 pm_rumtime: test shorten time, make compatible with SMP.
Signed-off-by: buxiasen <buxiasen@xiaomi.com>
2026-04-20 15:16:14 +08:00
Zhe Weng e227d56fd2 netlib/ip6tables: Add functions for ip6tables & filter table
Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2026-04-20 15:16:13 +08:00