Commit Graph

180 Commits

Author SHA1 Message Date
Alin Jerpelea 75a2b5a5f7 drivers: 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 01:13:35 +08:00
openvela-robot ec35a7b865 Revert "tools/config: remove archive print to support macro call"
This reverts commit ea87764b28b2fdf31e271d006867f99f629bdd17.

Reason for revert: <regression>
2026-04-20 23:16:29 +08:00
openvela-robot cb8accfd56 audio:add media session support for sim_alsa audio_ops_s interface
fix Compiler Warning:initialization of ‘int (*)(struct audio_lowerhalf_s *, void *)’
from incompatible pointer type ‘int (*)(struct audio_lowerhalf_s *)’ [-Wincompatible-pointer-types]

Signed-off-by: shipei <shipei@xiaomi.com>
2026-04-20 23:16:23 +08:00
openvela-robot 71295c9215 drivers/binder:Add flag to distinguish non-blocking mode.
Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
2026-04-20 23:16:19 +08:00
openvela-robot a32c3a2128 tools/prasetrace: remvoe function name filter
Some function names in C++ may fail to parse, and no filtering is required here.
(anonymous namespace)::pool::free(void*) [clone .constprop.0]

Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2026-04-20 23:16:14 +08:00
openvela-robot 68df5fa803 binder: remove thread from waiting_threads list after poll
Signed-off-by: chenxiaoyi <chenxiaoyi@xiaomi.com>
2026-04-20 23:16:09 +08:00
openvela-robot 0c1f28912d driver/syslog: reset syslog buffer when syslog buffer include invalid data
When the machine is cold started, the psram area where the syslog
buffer is located contains some random values, so it will cause
loss of valid log.

Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2026-04-20 23:16:00 +08:00
openvela-robot e1b40883b2 usbdev: add usbdev fs device for usb char device part2
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2026-04-20 23:15:55 +08:00
openvela-robot 90f505dc78 sim/framebuffer: fix memory leak
LeakSanitizer: detected memory leaks in XStringListToTextProperty

Signed-off-by: yanxiaowei <yanxiaowei@xiaomi.com>
2026-04-20 23:15:51 +08:00
openvela-robot 943ee90f1a arch/sim:add -Ttext-segment to load the image in the fixed address
to make the address returned by backtrace and gdbstub match the symbol stored in elf.

Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2026-04-20 23:15:46 +08:00
openvela-robot 6b8c5e762e nuttx/sim: Sim_rptun support configuring whether the master will automatically boot slave
Signed-off-by: yintao <yintao@xiaomi.com>
2026-04-20 23:15:41 +08:00
openvela-robot 8d6f473f06 sensor/bmp180.c:provides work in character device mode and UORB communication mode.
Roll back the bmp180 code and create a new bmi160_uorb file.
Use the macro CONFIG_SENSORS_BMP180_UORB to enable the uorb feature.

Signed-off-by: likun17 <likun17@xiaomi.com>
2026-04-20 23:15:37 +08:00
openvela-robot 7ad5fd2a46 arch_alarm: change tick to g_current_tick
When the system starts up, the hw count may not start counting from 0,
which can cause the processing time of the first oneshot handler to be
too long. Therefore, the current tick value should be set based on the
hw count during initialization.

Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2026-04-20 23:15:32 +08:00
openvela-robot 852e2926d6 goldfish/rtc:get pl031 base and irq from DT.
dependson:3329530

Signed-off-by: yangguangcai <yangguangcai@xiaomi.com>
2026-04-20 23:15:29 +08:00
openvela-robot 0ee434c988 sensor:bmi160.c:Fix the missing items caused by resolving merge conflicts after bmi160 cherry-pick submission. This cherry-pick missing CI check did not detect it.
Signed-off-by: likun17 <likun17@xiaomi.com>
2026-04-20 23:15:23 +08:00
openvela-robot ae92d9113f sensor/bmi160.c:provides work in character device mode and UORB communication mode.
Roll back the bmi160 code and create a new bmi160_uorb file.
Use the macro CONFIG_SENSORS_BMI160_UORB to enable the uorb feature.

Signed-off-by: likun17 <likun17@xiaomi.com>
2026-04-20 23:15:17 +08:00
openvela-robot 25baa7e975 esp32s3/dma: Split the setup and load of the DMA descriptors
By splitting into two different functions the setup of the DMA
descriptors and the action of loading it to the GDMA outlink
register, it enables us to "cache" DMA descriptors ready to be send
and, then, just load them whenever we are able to actually send it.
2026-04-20 23:15:12 +08:00
openvela-robot 60b7f5a3b4 usbdev: Split usbdev descriptor information
dependson: partner_45444 partner_45445

The class device only handles descriptor information specific to the class,
and shared descriptor information is passed through parameters and
handled by the composite driver.

Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2026-04-20 23:15:07 +08:00
openvela-robot d2f077183a pwd: fix syntax error
Signed-off-by: yangyalei <yangyalei@xiaomi.com>
2026-04-20 23:15:02 +08:00
openvela-robot 1668276b96 arch/arm: Use smc and hvc mnemonics instead of binary encodings
Signed-off-by: wangming9 <wangming9@xiaomi.com>
2026-04-20 23:14:59 +08:00
openvela-robot e919399770 binfmt: ELF support load to LMA
Load all sections to LMA not VMA, so the startup code(e.g. start.S) need
relocate .data section to the final address(VMA) and zero .bss section by self.

For example, SiFli and Actions: Background: Device with small sram,
Bootloader run in sram and psram, need boot to Application, with memory overlap
and without XIP. VMA of .data is in "psram" and LMA in "rom", if not enable
`ELF_LOADTO_LMA`, ELF loader will load the section to VMA (will fill bootloader
itself).

Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2026-04-20 23:14:53 +08:00
openvela-robot 9c02fccf45 boards/risc-v/bl602: Remove the TIMER_ARCH configuration
The ALARM_ARCH is selected by default, otherwise a compilation
error will occur

Signed-off-by: wangming9 <wangming9@xiaomi.com>
2026-04-20 23:14:42 +08:00
openvela-robot 44a17aab59 Run refresh.sh to update all board configs 2026-04-20 23:14:35 +08:00
openvela-robot bac8cc2ec3 sim: Add PSEUDOFS_SOFTLINKS and SCHED_HAVE_PARENT configs
/usr/bin/ld: nuttx.rel: in function `uv__fs_readlink':
apps/system/libuv/libuv/src/unix/fs.c:743: undefined reference to `NXreadlink'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:370: nuttx] Error 1
make: *** [tools/Unix.mk:520: nuttx] Error 2

Signed-off-by: Shoukui Zhang <zhangshoukui@xiaomi.com>
2026-04-20 23:14:31 +08:00
openvela-robot f941659d32 video/fb: add xres and yres for fb overlay
xres and yres of video overlay buffer may not same as primay framebuffer.
so add it to check the framebuffer count of overlay

Signed-off-by: rongyichang <rongyichang@xiaomi.com>
2026-04-20 23:14:26 +08:00
openvela-robot cddcaa61db arch/arm/qemu: PSCI is triggered by hvc
Summary
Use SMC as needed after tee support and implement PSCI functionality in TEE

Signed-off-by: wangming9 <wangming9@xiaomi.com>
2026-04-20 23:14:19 +08:00
openvela-robot 170711d713 Add i2c support for the i.MX8MP
Enable INA219 on the Verdin board
2026-04-20 23:14:14 +08:00
openvela-robot 943a828842 wqueue: handle worker calle work_cancel_sync()
Signed-off-by: ligd <liguiding1@xiaomi.com>
2026-04-20 23:14:00 +08:00
openvela-robot ea464dd678 arch/risc-v/src/mpfs/mpfs_ddr.c: Don't auto-determine the write latency
It doesn't make sense to try to auto-determine write latency, it may pass with too low value.

Keep the existing implementation if the write latency has been set to minimum
value, otherwise just set it.

Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
2026-04-20 23:13:55 +08:00
openvela-robot 8a114f717a libs/libc: Breakdown LIBC_BUILD_STRING into specific string operations macro.
Provide a way to only customize specific string operations,
such as for memcpy with the DMA capability by ROM.

Signed-off-by: yangdongdong <yangdongdong@xiaomi.com>
2026-04-20 23:13:51 +08:00
openvela-robot 51b7a08140 driver/serial: fix error echo about VT100 escape sequence
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2026-04-20 23:13:46 +08:00
openvela-robot e0a5abc647 wqueue: add work_cancel_sync() support
Signed-off-by: ligd <liguiding1@xiaomi.com>
2026-04-20 23:13:41 +08:00
openvela-robot f2e672a8f8 inode/i_private: remove all unnecessary cast for i_private
Signed-off-by: chao an <anchao@xiaomi.com>
2026-04-20 23:13:35 +08:00
openvela-robot 97fcccf95b audio:add 24K sample rate support
add 24K sample rate define and support in sim_alsa driver

Signed-off-by: shipei <shipei@xiaomi.com>
2026-04-20 23:13:31 +08:00
openvela-robot 741d1926c8 vfs:add nxsched_foreach to sched_lock avoid crash
If scheduling occurs in file_fsync,
fl_lock may be released, and an error may
occur when calling nxmutex_unlock

Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2026-04-20 23:13:27 +08:00
openvela-robot d38a4b05cd deadlock:fix typo
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2026-04-20 23:13:23 +08:00
openvela-robot 47d904ecbb fs/inode: remove all unnecessary check for filep/inode
Since VFS layer already contains sanity checks, so remove unnecessary lower half checks

Signed-off-by: chao an <anchao@xiaomi.com>
2026-04-20 23:13:19 +08:00
openvela-robot 1f047839e8 signal: add siginterrupt implementation
https://pubs.opengroup.org/onlinepubs/9699919799/functions/siginterrupt.html

Signed-off-by: fangxinyong <fangxinyong@xiaomi.com>
2026-04-20 23:13:15 +08:00
openvela-robot 6a2606390c change the default NETDB_DNSCLIENT_MAXRESPONSE to the standard length
the size of the dns response buffer
https://datatracker.ietf.org/doc/html/draft-ietf-dnsop-respsize-12

Signed-off-by: wangyingdong <wangyingdong@xiaomi.com>
2026-04-20 23:13:11 +08:00
openvela-robot 31ac51eee4 usbdev: update the cmake file
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2026-04-20 23:13:07 +08:00
openvela-robot f5251158fd tls: Move task_tls_alloc and task_tls_destruct to libc
so task_tls_destruct can be called from usrspace, which is required by:
https://github.com/apache/nuttx/pull/10288

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 23:12:58 +08:00
openvela-robot 36f3f64d2b net:cherrypick add IP_MULTICAST_IF & IPV6_MULTICAST_IF function implementation code from github
refer to https://github.com/apache/nuttx/pull/10319

Signed-off-by: wangchen <wangchen41@xiaomi.com>
2026-04-20 23:12:53 +08:00
openvela-robot 26babfc9d8 nrf52840-dk: add lsm9ds1 sensor support 2026-04-20 23:12:48 +08:00
openvela-robot 5d84545921 tcp_send_buffered: change Not connected message level from error to warning
Non-blocking sockets are almost never in the connected state when app try to
get result of connect success through poll, to avoid confusion because of
this error print, so downgrade the print level to warning.

Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2026-04-20 23:12:44 +08:00
openvela-robot 1cfd929acb Documentation: various improvements for stm32xx documentation 2026-04-20 23:12:38 +08:00
openvela-robot b62be19079 syslog: fix syslog board reset reason check failed
Signed-off-by: ligd <liguiding1@xiaomi.com>
2026-04-20 23:12:34 +08:00
openvela-robot c726cde80d sensors: Move SCU-specific bmi160 sensor into spresense board
Move SCU-specific bmi160 sensor into spresense board layer.
2026-04-20 23:12:29 +08:00
openvela-robot d14e2cb375 binfmt: ELF support load to LMA
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2026-04-20 23:12:24 +08:00
openvela-robot 8a6880a4db Documentation: migrate STM32F4 2026-04-20 23:12:19 +08:00
openvela-robot 8f331db3b0 local_recvmsg: print warning message when errno is EAGAIN
Synchronous community code

Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2026-04-20 23:12:16 +08:00