Commit Graph

468 Commits

Author SHA1 Message Date
Alin Jerpelea 1c4ebed9a4 include: migrate to SPDX identifier
Most tools used for compliance and SBOM generation use SPDX identifiers
This change brings us a step closer to an easy SBOM generation.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
Signed-off-by: ligd <liguiding1@xiaomi.com>
2026-04-21 00:59:40 +08:00
openvela-robot b566da436e sim:support sim elf and dynamic libs package in post build
use the dynamic library .so of the binding compilation environment,
and then modify the dynamic loader of elf at runtime to run sim elf across system versions

1.add post-build for sim build
2.collect dynamic .so and dynamic interpreter
3.add execution script for the entire package sim elf

change text-segment to 0x50000000
because patchelf will modify the .dynamic section in elf,
the upward alignment of elf will be less than 0x3fffffff,
which will cause asan shadow memory overlap error

Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2026-04-21 00:59:38 +08:00
Alin Jerpelea 8a3b7f63ca include: migrate to SPDX identifier
Most tools used for compliance and SBOM generation use SPDX identifiers
This change brings us a step closer to an easy SBOM generation.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2026-04-21 00:59:19 +08:00
openvela-robot eb10e6593b dns: fix dns failed when ipv4/6 dual stack enable
The ipv6 address filled the cache, and the ipv4 address did not have a
place to store it, causing the resolution to fail. so if IPV6 has already
filled the buffer, rewrite ipv4 DNS results from half of the buffer.

Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2026-04-20 23:21:26 +08:00
openvela-robot 47b075e783 nuttx: fix nxstyle issues
sync with mainline

Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2026-04-20 23:21:21 +08:00
openvela-robot 1b78a8e19a serial: add an option that selects uart rpmsg as console 2026-04-20 23:21:09 +08:00
openvela-robot a06319a423 regulator:sync github code and fix some issues
1.miss regulator_rpmsg_get_reg when kmm_zalloc.
2.regulator_rpmsg_get_client kmm_zalloc len is less due to crash.
3.regulator_rpmsg_client_destroy does not match server cpu name,may destory by stop other rptun dev

Signed-off-by: dulibo1 <dulibo1@xiaomi.com>
2026-04-20 23:21:05 +08:00
openvela-robot 167bb9c353 enable O_CLOEXEC explicit
Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
2026-04-20 23:21:01 +08:00
openvela-robot a56015f507 libs/libc/libc.csv: fix the wcsspn declaration error
Signed-off-by: guoshichao <guoshichao@xiaomi.com>
2026-04-20 23:20:57 +08:00
openvela-robot 66b3c1de6a Fix nuttx coding style
Remove TABs
Remove spaces
Fix indentation
2026-04-20 23:20:50 +08:00
openvela-robot 21e1fc44d5 pthread_cleanup: rm sched_[un]lock
Since TLS is only used within a single thread and requires no additional protection.

Signed-off-by: hujun5 <hujun5@xiaomi.com>
2026-04-20 23:20:47 +08:00
openvela-robot ad75fbcda6 drivers/modem/alt1250: Fix bug that modem version could not be taken
Fix bug that modem version could not be taken.
2026-04-20 23:20:42 +08:00
openvela-robot 92d696ed3d video/fb: add vsync queue
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
Signed-off-by: rongyichang <rongyichang@xiaomi.com>
2026-04-20 23:20:38 +08:00
openvela-robot f8ad39780a libs/libc/wchar: add wcscpy implementation
Signed-off-by: guoshichao <guoshichao@xiaomi.com>
2026-04-20 23:20:33 +08:00
openvela-robot 59e75b7129 tools/minudumpserver: support auto start GDB and execute some commands
like
```bash
./nuttx/tools/minidumpserver.py -l log.log -e vela_ap.elf -a arm --gdb prebuilts/gcc/linux/arm/bin/arm-none-eabi-gdb
```

Signed-off-by: xinbingnan <xinbingnan@xiaomi.com>
2026-04-20 23:20:29 +08:00
openvela-robot f95bdccaf9 arch/arm64: select ARCH_HAVE_IRQTRIGGER for all arm64 chip
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2026-04-20 23:20:23 +08:00
openvela-robot c199997b15 mmcsd: support dump cid and csd with mmc-utils
Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
2026-04-20 23:20:18 +08:00
openvela-robot 70cb2188db Exec: Support run exec in current task
There is a problem when vfork() calls execv() (or execl()) to start a new application:
When the parent thread calls vfork() it receives and gets the pid of the vforked task,
and not the pid of the desired execv'ed application.
see issue #3334

Signed-off-by: yangyalei <yangyalei@xiaomi.com>
2026-04-20 23:20:13 +08:00
openvela-robot c4d62a9eb5 Revert "bcmf_thread: wait until need load blm"
sync with mainline

This reverts commit 38c2adc14d32d0dc51e0963cbfcb7152f87a5038.

Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2026-04-20 23:20:08 +08:00
openvela-robot 250c273fd0 wifi: parse channel from IE when ctl_ch is 0
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2026-04-20 23:20:04 +08:00
openvela-robot d1953ba43a tools/testbuild: restore the original toolchain configuration before refresh
Signed-off-by: chao an <anchao@xiaomi.com>
2026-04-20 23:20:00 +08:00
openvela-robot a5e648c435 wifi: Add handle type for disconnecting event
Some disconnected events will be missed

Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2026-04-20 23:19:55 +08:00
openvela-robot 8e63c4d2bc specific product: emmc: add get emmc cid register interface.
add get emmc cid register interface.

Signed-off-by: luoguangfu <luoguangfu@xiaomi.com>
2026-04-20 23:19:52 +08:00
openvela-robot cad65a60dd add Artery at32
check nxstyle

check nxstyle
2026-04-20 23:19:48 +08:00
openvela-robot 4d6a9e2794 libs/libc/wchar: add putwc implementation
Signed-off-by: guoshichao <guoshichao@xiaomi.com>
2026-04-20 23:19:45 +08:00
openvela-robot 3d87e34027 drivers/video: Fix crash caused by priv->capture_cb = null
When the upper layer calls goldfish_camera_data_uninit, priv->capture_cb=NULL, but when there is data transmission in goldfish_camera_thread, priv->capture_cb will be called, which will cause a crash.

Signed-off-by: yangsen5 <yangsen5@xiaomi.com>
2026-04-20 23:19:40 +08:00
openvela-robot e62cb4797e Revert "iob: limit the iob bufsize is sufficient to fill all L2/L3/L4 headers"
This reverts commit a231251179a62b76f028532509751d9f64d82874.

Reason for revert: CI block

Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2026-04-20 23:19:36 +08:00
openvela-robot 318817406a sched: return 0 from clock_systime_ticks if failed
Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>
2026-04-20 23:19:32 +08:00
openvela-robot ba1d115d85 tools: Use GCC 13.2 from xPack for risc-v
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2026-04-20 23:19:29 +08:00
openvela-robot e4378aa0f9 wqueue: add work_cancel_sync() support
Signed-off-by: ligd <liguiding1@xiaomi.com>
2026-04-20 23:19:25 +08:00
openvela-robot fc8e9469e6 clk:fix some issue when use rpmsg clk
1.check the rpmsg name which leads to recursion.
2.clk_get rpmsg clk print error:
clk/clk.c:1231:3: runtime error: null pointer passed as argument 2, which is declared to never be null

Signed-off-by: dulibo1 <dulibo1@xiaomi.com>
2026-04-20 23:19:21 +08:00
openvela-robot 403266ce1e arm64: GoldFish Platform support
Summary:
   Adding virtual evaluate platform GoldFish. Which is based on
Android Goldfish Emulator, it's a ARM virt board but Android enhance
it with more featue
   The patch set goldfish as a chip

Signed-off-by: qinwei1 <qinwei1@xiaomi.com>
2026-04-20 23:19:16 +08:00
openvela-robot 08ecdd9dd8 Run refresh.sh to update all board configs
Summary:
Stay in sync with the nuttx community code

Signed-off-by: wangming9 <wangming9@xiaomi.com>
2026-04-20 23:19:10 +08:00
openvela-robot bb83d596d7 libm/libmcs: Fix clang build download libmcs warning
Fix warnings:
CC:  libmcs/libmcs/libm/common/fenv.c libmcs/libmcs/libm/common/fenv.c:26:15: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
int fegetround()
              ^
               void
Signed-off-by: yanghuatao <yanghuatao@xiaomi.com>
2026-04-20 23:19:04 +08:00
openvela-robot 4d4f7d509c libs/libc/wchar: add wcswcs implementation
Signed-off-by: guoshichao <guoshichao@xiaomi.com>
2026-04-20 23:18:59 +08:00
openvela-robot ad9531d796 net/rpmsg: set conn->backlog=-1 only when socket listening
Signed-off-by: yintao <yintao@xiaomi.com>
2026-04-20 23:18:54 +08:00
openvela-robot cb92466ff3 qemu:add device tree support for arm
reserve 0x40000000-0x40101000 for qemu dtb.

Signed-off-by: liaoao <liaoao@xiaomi.com>
2026-04-20 23:18:49 +08:00
openvela-robot 41b5815975 libxx/libcxx: select PTHREAD_MUTEX_TYPES to support recursive mutex
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2026-04-20 23:18:45 +08:00
openvela-robot 3e7bbe9f21 arm/psci: Fixed arm psci related compilation errors
Summary
include/arch/syscall.h: Assembler messages:
include/arch/syscall.h:133: Error: bad instruction `struct arm_smccc_res'
include/arch/syscall.h:134: Error: junk at end of line, first unrecognized character is `{'
include/arch/syscall.h:135: Error: bad instruction `unsigned long a0'
include/arch/syscall.h:136: Error: bad instruction `unsigned long a1'
include/arch/syscall.h:137: Error: bad instruction `unsigned long a2'
include/arch/syscall.h:138: Error: bad instruction `unsigned long a3'
include/arch/syscall.h:139: Error: bad instruction `unsigned long a4'
include/arch/syscall.h:140: Error: bad instruction `unsigned long a5'
include/arch/syscall.h:141: Error: bad instruction `unsigned long a6'
include/arch/syscall.h:142: Error: bad instruction `unsigned long a7'
include/arch/syscall.h:143: Error: junk at end of line, first unrecognized character is `}'
include/arch/syscall.h:145: Error: bad instruction `typedef struct arm_smccc_res

Signed-off-by: wangming9 <wangming9@xiaomi.com>
2026-04-20 23:18:38 +08:00
openvela-robot 4e9637fa17 arch/arm64: Add support for FriendlyElec NanoPi M4
Refs: https://github.com/apache/nuttx/pull/10193
      https://github.com/u-boot/u-boot/tree/v2022.04
      https://wiki.friendlyelec.com/wiki/index.php/NanoPi_M4

Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2026-04-20 23:18:34 +08:00
openvela-robot 055f952a13 arch: Remove up_netinitialize
since this api change to xxx_netinitialize

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 23:18:29 +08:00
openvela-robot 236b97c860 xtensa/esp32s3: Fix octal lines mode SPIRAM blocking issue
Signed-off-by: chenwen@espressif.com <chenwen@espressif.com>
2026-04-20 23:18:21 +08:00
openvela-robot b90fd5fb86 net/tcp: Stop monitor in `tcp_free`
We may just free some TCP connections before monitor stopped, e.g.
sacrificie a TCP conn in `tcp_alloc` will just call `tcp_free` and reuse
the connection.  But we noticed that the TCP monitor is not released in
`tcp_free` because it is mounted on `conn->connevents` instead of
`conn->sconn.list` while `tcp_free` only release the latter.

Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2026-04-20 23:18:15 +08:00
openvela-robot 3a4545a246 audio:add 24K sample rate support
Signed-off-by: shipei <shipei@xiaomi.com>
2026-04-20 23:18:03 +08:00
openvela-robot c18193a1f4 devif_callback: modify the code logic to conform to the comment
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2026-04-20 23:17:55 +08:00
openvela-robot d86ca563dd nuttx/sensors/sensor.h: remove non-standard message from bream private data
These values are only provided by bream private message, should not include in
NMEA 0183 standard struct.

Signed-off-by: haopengxiang <haopengxiang@xiaomi.com>
2026-04-20 23:17:50 +08:00
openvela-robot b09375782c qemu:fix ci build error when CONFIG_LIBC_FDT is not defined
when dtc code is set to be download from github, if CONFIG_LIBC_FDT is not
set, it will cause such error:
./qemu_bringup.c:33:10: fatal error: libfdt.h: No such file or directory
580   33 | #include <libfdt.h>

Signed-off-by: liaoao <liaoao@xiaomi.com>
2026-04-20 23:17:46 +08:00
openvela-robot 28d2818457 Fix Kconfig style
Remove spaces from Kconfig
Add comments
2026-04-20 23:17:39 +08:00
openvela-robot b66f64952b tools: checkpach supports python files
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2026-04-20 23:17:35 +08:00
openvela-robot 192ad17528 sched: do not crash for priority multi-boost
aio client will queue asynchronous io requests to the worker threads.
if PRIORITY_INHERITANCE is enabled, client thread's priority will be
set to worker threads. There will be multi-boost/restore of worker
threads' priority and assert the system.

No need priority multi-boot/restore to worker thread because client
thread's priority is alway the same.

Signed-off-by: fangxinyong <fangxinyong@xiaomi.com>
2026-04-20 23:17:30 +08:00