Commit Graph

315 Commits

Author SHA1 Message Date
zhanghongyu 9084edb59b net/netdev: separate netdev_list_lock from net_lock
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2026-04-21 01:28:23 +08:00
wangchen 5bb113a38f netdev:when network device is running status,the network protocol stack is allowed to send packet to the network device and to receive from the network device
Signed-off-by: wangchen <wangchen41@xiaomi.com>
2026-04-21 01:14:53 +08:00
openvela-robot 77f0bea7f5 Merge branch 'master' into vela
apache/nuttx commit id: eb27ebba8adfe29644a7b890f86e6f16941921dc

Signed-off-by: ligd <liguiding1@xiaomi.com>
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-21 01:12:27 +08:00
openvela-robot 87c6ff19cf mm: Fix some typos
Signed-off-by: xuxingliang <xuxingliang@xiaomi.com>
2026-04-21 01:12:20 +08:00
openvela-robot b2f5ba0753 syslog: convert \n to \r\n in syslog framework layer
Signed-off-by: yangsong8 <yangsong8@xiaomi.com>
2026-04-21 01:12:15 +08:00
openvela-robot 24c239f8f5 arm/cmake: fix cmake compile error
1. The -c parameter should not be added during the link phase, otherwise the link will fail.
2. If it is the clang compiler, its toolchain library should use --print-file-name to find it, otherwise an error will occur

Signed-off-by: wangmingrong1 <wangmingrong1@xiaomi.com>
2026-04-21 01:12:09 +08:00
openvela-robot 44ed68d400 fs/rpmsgfs: return real err value when open failed
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2026-04-21 01:12:00 +08:00
openvela-robot 85912ed402 syslog/channel: rename syslog_channel() to syslog_channel_register()
Change syslog API naming more reasonable:

1. rename syslog_channel() to syslog_channel_register()
2. rename syslog_channel_remove() to syslog_channel_unregister()

Signed-off-by: chao an <anchao@lixiang.com>
2026-04-21 01:11:54 +08:00
openvela-robot 0fdd165dfa Fix disable msi when msi capability not exist issue
Signed-off-by: yezhonghui <yezhonghui@xiaomi.com>
2026-04-21 01:11:48 +08:00
openvela-robot 61f4f9411d openamp: sync with community
Comminity has upgrade the openamp to the last commit (near 2024.05 Release),
sync back to vela.

Only modify the makefile and upgrade the patch, should be no impact in any
features.

Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
2026-04-21 01:11:43 +08:00
Jukka Laitinen c341813c71 net/netdev/netdev_default.c: Exclude socket can from default devices
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
2026-04-21 01:11:37 +08:00
wangchen a10f2f9ee8 netdev:In netdev_default,If there is only one loopback network devices, it returns NULL
Referring to Linux,if there is only a loopback network device and the destination address does not belong to the loopback address, then the loopback network devices is not selected

Signed-off-by: wangchen <wangchen41@xiaomi.com>
2026-04-21 01:08:00 +08:00
openvela-robot 9174e751c2 systick:when isr_handle is NULL will be crash.
Signed-off-by: yangguangcai <yangguangcai@xiaomi.com>
2026-04-21 01:07:59 +08:00
openvela-robot 0f462a120f cmake: fix the typo in comments
fix the typo in comments and sync with community

Signed-off-by: guoshichao <guoshichao@xiaomi.com>
2026-04-21 01:07:53 +08:00
openvela-robot 980658916b build.yml:disable CMake Ninja for Msys2
CI in the msys2 environment, the CMake ninja generator
will have a problem with parameters being too long

Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2026-04-21 01:07:47 +08:00
openvela-robot 227d0f1390 tools/gdb/gdbinit.py:add hint
Signed-off-by: yangao1 <yangao1@xiaomi.com>
2026-04-21 01:07:41 +08:00
openvela-robot 63a654ed6a board/qemu-armv7a: use fdt_virtio_mmio_devices_register() to register mmio devices
Use common implementation to register mmio device

Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
2026-04-21 01:07:35 +08:00
openvela-robot d1e9e4fa1c Revert "mq: change mqueue msg mail to dynamic array"
This reverts commit 55f6f5e0af41e96980429c91d45521f7aa553b75.

Signed-off-by: ligd <liguiding1@xiaomi.com>
2026-04-21 01:07:29 +08:00
openvela-robot e1ce558054 mps3-an547:add mps3-an547 cmake build
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2026-04-21 01:07:23 +08:00
openvela-robot 1ba19fa876 netdb: fix may add duplicate DNS servers
struct sockaddr_in
{
  sa_family_t     sin_family;
  in_port_t       sin_port;
  struct in_addr  sin_addr;
  uint8_t         sin_zero[8];
};

sin_zero is probably a random number.

struct sockaddr_in6
{
  sa_family_t     sin6_family;
  in_port_t       sin6_port;
  uint32_t        sin6_flowinfo;
  struct in6_addr sin6_addr;
  uint32_t        sin6_scope_id;
};

sin6_flowinfo and sin6_scope_id is probably a random number.

Random numbers cause the same server configuration check failed,
so let's initialize it.

Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2026-04-21 01:07:17 +08:00
openvela-robot 497c522397 arch: set current regs firstly in undefinedinsn
Need to save the regs firstly in case syslog triggers another crash.
Otherwise we may loose the register contents for the first exception.

Signed-off-by: xuxingliang <xuxingliang@xiaomi.com>
2026-04-21 01:07:11 +08:00
openvela-robot 429974b1f9 sim: fix crash caused by function recursion
114 up_interrupt_context () at /home/zhhyu/source/vela/dev/nuttx/include/arch/irq.h:163
115 stack_monitor_enter (this_fn=0x400145dc <up_current_regs>, call_site=0x4002d5c7 <__cyg_profile_func_enter+120>, arg=0x0) at instrument/stack_monitor.c:63
116 0x000000004002d5c7 in __cyg_profile_func_enter (this_fn=0x400145dc <up_current_regs>, call_site=0x4002d5c7 <__cyg_profile_func_enter+120>) at misc/lib_instrument.c:68
117 0x00000000400156c7 in up_current_regs () at instrument/stack_monitor.c:62
118 up_interrupt_context () at /home/zhhyu/source/vela/dev/nuttx/include/arch/irq.h:163
119 stack_monitor_enter (this_fn=0x400145dc <up_current_regs>, call_site=0x4002d5c7 <__cyg_profile_func_enter+120>, arg=0x0) at instrument/stack_monitor.c:63
120 0x000000004002d5c7 in __cyg_profile_func_enter (this_fn=0x400145dc <up_current_regs>, call_site=0x4002d5c7 <__cyg_profile_func_enter+120>) at misc/lib_instrument.c:68
121 0x00000000400156c7 in up_current_regs () at instrument/stack_monitor.c:62

Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2026-04-21 01:07:05 +08:00
openvela-robot 98a02ad0af add lin error flags to lin.h
Signed-off-by: wangxiaoxin <wangxiaoxin@xiaomi.com>
2026-04-21 01:06:56 +08:00
openvela-robot cc56ff55e6 iss-hifi: adapt to new backtrace function
Signed-off-by: chenxiaoyi <chenxiaoyi@xiaomi.com>
2026-04-21 01:06:51 +08:00
openvela-robot 16ad5d9d38 nuttx/arch: Enabling ARCH_MATH_H is required when compiling sim with the 13.2 version of the toolchain.
Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
2026-04-21 01:06:45 +08:00
openvela-robot c479014e6c sigaction: sync with community
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2026-04-21 01:06:39 +08:00
openvela-robot dc9540fe31 nuttx/libcxxtest: Fix build error.
libcxx/src/thread.cpp:123:2: error: #error "Thread.cpp needs to enable config of CONFIG_TLS_TASK_NELEM," " and CONFIG_TLS_TASK_NELEM > 0, please enable it"
  123 | #error "Thread.cpp needs to enable config of CONFIG_TLS_TASK_NELEM," \
      |  ^~~~~

Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
2026-04-21 01:06:34 +08:00
openvela-robot f8c3ad33c7 arch/x86_64:Delete useless functions and header files
synchronize file with NuttX upstream

Signed-off-by: liwenxiang1 <liwenxiang1@xiaomi.com>
2026-04-21 01:06:28 +08:00
openvela-robot f528b995b3 nuttx/syscall: export nxsem_getprioceiling and nxsem_setprioceiling via syscall
Signed-off-by: makejian <makejian@xiaomi.com>
2026-04-21 01:06:22 +08:00
openvela-robot 3f5efb76a6 cmake/add_library: enable library install by default
enable library install by default to support nuttx export for cmake

nuttx$ cmake --install build  --prefix $PWD/build/staging/
-- Install configuration: ""
-- Installing: nuttx/build/staging/lib/libarch.a
-- Installing: nuttx/build/staging/lib/libbinfmt.a
-- Installing: nuttx/build/staging/lib/libdrivers.a
-- Installing: nuttx/build/staging/lib/libfs.a
...

Signed-off-by: chao an <anchao@lixiang.com>
2026-04-21 01:06:16 +08:00
openvela-robot 83c1f66586 nuttx/qemu: Fix funciton up_idle multiple definition
Signed-off-by: yanghuatao <yanghuatao@xiaomi.com>
2026-04-21 01:06:09 +08:00
openvela-robot 65c91478e5 arm: sync with community
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2026-04-21 01:06:03 +08:00
openvela-robot 614f4f9672 Contributing and PR template fix.
* Fix CONTRIBUTING.md github link reference.
* Full URL is provided to avoid relative/fork reference issues.
* Minor update on full contributing documentation.

Signed-off-by: Tomasz 'CeDeROM' CEDRO <tomek@cedro.info>
2026-04-21 01:05:58 +08:00
openvela-robot f5d3c904aa arch/intel64_irq.c: synchronize file with NuttX upstream
move up_trigger_irq() at the same place
rename g_irq_spin to g_irq_spinlock

Signed-off-by: p-szafonimateusz <p-szafonimateusz@xiaomi.com>
2026-04-21 01:05:52 +08:00
openvela-robot d512cd4df8 goldfish: sync with qemu do rpmsg_syslog init at goldfish
Signed-off-by: ligd <liguiding1@xiaomi.com>
2026-04-21 01:05:47 +08:00
openvela-robot f8fa980a97 CMake/preprocess: fix typo PREPROCES -> PREPROCESS
correct the marco define from PREPROCES to PREPROCESS

Signed-off-by: chao an <anchao@lixiang.com>
2026-04-21 01:05:41 +08:00
openvela-robot 8080bf2c14 rpmsg_port_spi_slave: fix compile error when enable RPMSG_PORT_SPI_SLAVE only
Signed-off-by: liaoao <liaoao@xiaomi.com>
2026-04-21 01:05:35 +08:00
openvela-robot a772e6cff2 sched: sync with community
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2026-04-21 01:05:23 +08:00
openvela-robot cdf4012ec0 libm/newlib: remove -Wno-maybe-uninitialized
Since there's no warning presents now.

Signed-off-by: xuxingliang <xuxingliang@xiaomi.com>
2026-04-21 01:05:17 +08:00
openvela-robot 6dd7c951f7 arch/x86_64:synchronize file with NuttX upstream
fix build break if disable CONFIG_SPINLOCK

Signed-off-by: liwenxiang1 <liwenxiang1@xiaomi.com>
2026-04-21 01:05:11 +08:00
openvela-robot 35d9ebdbc2 Revert "sched/group/setuptask_file: duplicate idle task fd for kernel thread"
let's using shared group for kthreads, see pull/12320

This reverts commit 4e24eec7b607e4a6a7eca0fae9c58f02dc72e002.
2026-04-21 01:05:05 +08:00
openvela-robot 7ae61c007d isrthread: community code synchronization to isrthread
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2026-04-21 01:04:59 +08:00
openvela-robot 7449835ce8 arch: arm64: Fix ARM64_CONTEXT_REGS number
This commit fixes the regression in https://github.com/apache/nuttx/pull/14063

Signed-off-by: lipengfei28 <lipengfei28@xiaomi.com>
2026-04-21 01:04:51 +08:00
openvela-robot 1bd4ef8abf net/pkt: fix raw socket send data length is insufficient.
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2026-04-21 01:04:45 +08:00
openvela-robot 6bdee81bd3 note: Increase crash dump buffer
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2026-04-21 01:04:39 +08:00
openvela-robot afceb8b0db queue: Community code synchronization queue
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2026-04-21 01:04:33 +08:00
openvela-robot 5d8ad057b5 romfs:extend romfs to enable write part1
change romfs_cachenode to find all headers

Signed-off-by: guohao15 <guohao15@xiaomi.com>
2026-04-21 01:04:26 +08:00
openvela-robot 3bc4eb831f build.sh:export x86_64 gcc prebuilt toolchain
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2026-04-21 01:04:21 +08:00
openvela-robot ce2995dd23 libc: rename lib_execinfo.c to lib_backtrace.c
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2026-04-21 01:04:12 +08:00
openvela-robot 5b8a74d3c0 sim: fix sim smp boot regression
This commit fixes the regression from https://github.com/apache/nuttx/pull/13716

Signed-off-by: hujun5 <hujun5@xiaomi.com>
2026-04-21 01:04:04 +08:00