Commit Graph

95 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 c7bda2ddf5 Merge remote-tracking branch 'mirtos/master' into dev-upmerge-nuttx-10.1-0507
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2026-04-20 20:59:17 +08:00
openvela-robot fe6ab93c6f Revert "binfmt/Makefile: remove the specified prefix from target variables"
This reverts commit 608f380aee19521137d403a83a6ca3757e35ec66.
2026-04-20 20:59:11 +08:00
openvela-robot 8810ce0b35 esp32: replace EPS32 typo with ESP32 2026-04-20 20:58:53 +08:00
openvela-robot f80ef805a6 procfs: fix cat status error when meet long thread name
nsh> cat /proc/3/status
Name:       init123456789987654Type:       Task
Group:      3
State:      Running

Signed-off-by: ligd <liguiding1@xiaomi.com>
2026-04-20 20:58:48 +08:00
openvela-robot a85a6b9358 arch/risc-v: Fix stack alignment according to calling convention
The RISC-V Integer Calling Convention states that the stack pointer
shall always be aligned to a 128-bit boundary upon procedure entry, both
for RV32* and RV64* ISAs (exception to the RV32E ISA, which must follow a
specific convention)
2026-04-20 20:58:42 +08:00
openvela-robot b81b93265d cmd/free: add nused field in command free
N/A

Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2026-04-20 20:58:38 +08:00
openvela-robot 746dcc0ae8 risc-v/esp32c3: Add driver for General Purpose SPI Master 2026-04-20 20:58:32 +08:00
openvela-robot 61500f924d procfs: Group: should return tg_task when HAVE_GROUPID opened
Signed-off-by: ligd <liguiding1@xiaomi.com>
2026-04-20 20:58:28 +08:00
openvela-robot d7d768c12c arch: rp2040: Fix the initial stack pointer
Summary:
- The NuttX for raspberrypi-pico boots via the boot_stage2 provided
  by the pico-sdk which sets the MSP at the end of the SRAM.
- However, the NuttX expects the MSP is set to the top of the idle stack.
- This commit fixes this issue.

Impact:
- None

Testing:
- Tested with nsh, nshsram and smp configrations
2026-04-20 20:58:23 +08:00
openvela-robot 4d176540f9 arm/v7-a/fpu: add VFP-v3 D32 support
Signed-off-by: chao.an <anchao@xiaomi.com>
2026-04-20 20:58:18 +08:00
openvela-robot 420172f284 audio/pcm_decode.c: skip extra chunk of wav header
Summary:
- The wav header parser in /dev/audio/pcm device driver expects the 'data'
  chunk is placed just after the 'fmt ' chunk.
- Because the wav files generated by FFmpeg places 'LIST' chunk which
  contains the music track information between 'fmt ' and 'data' chunks,
  nxplayer cannot playback the files.
- This patch skips extra chunks after 'fmt ' chunk to find the 'data' chunk.

Impact:
- All architectures which support /dev/audio/pcm device.

Testing:
- Tested by Raspberry Pi Pico audio driver.
- nxplayer can playback the wav files which are created by FFmpeg after
  applying this patch.
2026-04-20 20:58:11 +08:00
openvela-robot 2fd768df06 libc/execinfo/dumpstack: correct the line size to avoid LF overwrite
Signed-off-by: chao.an <anchao@xiaomi.com>
2026-04-20 20:58:07 +08:00
openvela-robot ffdce6d958 documentation: Add release notes for 10.1.0 release 2026-04-20 20:58:01 +08:00
openvela-robot f0649f695f arch: Remove the special check for idle thread in up_use_stack
since the idle thread don't call up_use_stack anymore

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 20:57:57 +08:00
openvela-robot d542237954 stm32h7:Serial Add RX and TX DMA
stm32h7:Serial Use Idel to poll RX DMA

stm32h7:Serial Do not loop in an ISR!

stm32h7:Serial signal txdma completion with semaphore

stm32h7:Serial Apply formatting suggestions from code review

Co-authored-by: Mateusz Szafoni <raiden00pl@gmail.com>

stm32h7: Serail Add Power Managment (Untested)
2026-04-20 20:57:51 +08:00
openvela-robot 628c73da1c mm: idle check heap use mm_trysemaphore
Signed-off-by: ligd <liguiding1@xiaomi.com>
2026-04-20 20:57:47 +08:00
openvela-robot 910b662aee stm32:Serial DMA config USART{4578} -> UART{4578} 2026-04-20 20:57:31 +08:00
openvela-robot cf408a017b fs/procfs: fix heap overflow when snprintf meet long string
Signed-off-by: ligd <liguiding1@xiaomi.com>
2026-04-20 20:57:27 +08:00
openvela-robot 153e1affa8 stm32/Kconfig: move configuration common for G4 under STM32_STM32G4XXX option 2026-04-20 20:57:18 +08:00
openvela-robot 6f37dac02a sim: correct miwear config symlink since project replaced
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2026-04-20 20:57:14 +08:00
openvela-robot c530a0fe77 drivers/sensors: Adds new driver for ds18b20 sensore module
Signed-off-by: Marco Krahl <ocram.lhark@gmail.com>
2026-04-20 20:57:08 +08:00
openvela-robot 9e82f58baf add #undef for some stdlibc api. 2026-04-20 20:57:03 +08:00
openvela-robot a4e82221de stm32g4xx: add support for ADC 2026-04-20 20:56:57 +08:00
openvela-robot 41133230a0 net/arp: Fix a potential bug in arp_notify()
Summary:
- In arp_wait_setup() and arp_wait_cancel(), g_arp_waiters
  is protected by a critical section.
- However, I noticed that arp_notify() does not protect the
  g_arp_waiters that would cause memory corruption
- This commit fixes the issue.

Impact:
- None

Testing:
- Tested with spresense:rndis_smp, spresense:rndis

Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2026-04-20 20:56:52 +08:00
openvela-robot 94a6974770 nucleo-g431rb: refactor bringup logic for consistency with other boards 2026-04-20 20:56:47 +08:00
openvela-robot 18c7039c1b execinfo: add cplusplus support
N/A

Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2026-04-20 20:56:43 +08:00
openvela-robot 4e50deebd4 boards/arm/stm32/nucleo-f446re: added support for ili9225 display
Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2026-04-20 20:56:33 +08:00
openvela-robot f89fb80ac5 get/setsockopt: change break to return OK to fix bug
N/A

Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2026-04-20 20:56:28 +08:00
openvela-robot 1face74bfb syslog: syslog_device ops are handled internally by the driver. 2026-04-20 20:56:22 +08:00
openvela-robot e3c7dc5daf libc/time: add strptime porting support
lib_strptime.c copies from android bionic/libc/tzcode.

Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2026-04-20 20:56:18 +08:00
openvela-robot f42ba633be syslog: Fix in syslog_intbuffer flushing. 2026-04-20 20:56:07 +08:00
openvela-robot a724cfb076 arch: arm: armv7-r: Author Gregory Nutt: update licenses to Apache
Gregory Nutt has submitted the SGA and we can migrate the licenses
 to Apache.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2026-04-20 20:56:02 +08:00
openvela-robot 3e1e12080a libc: correct zoneinfo genromfs source directory
Or genromfs failed to generate the right romfs.img

Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2026-04-20 20:55:57 +08:00
openvela-robot 23b7896873 armv8-m: Fix EXC_RETURN for non-secure usage
With TrustZone support in armv8-m the bit-fields in EXC_RETURN have been
extended.  Bit 6 ('S') now specifies whether the interrupted program was
running in the Non-Secure (S=0) or Secure (S=1) security state.
Furthermore, Bit 0 ('ES' - Exception Secure) specifies the
security state athe exception is taken to (0: Non-Secure, 1: Secure).

When NuttX is run together with TrustedFirmware-M as the application in
the non-secure world both the S and the ES bits have to be set to '0'.
For armv8-m those are also the correct values if TrustZone is not
implemented on the respective MCU or if it is disabled.

Signed-off-by: Michael Jung <mijung@gmx.net>
2026-04-20 20:55:51 +08:00
openvela-robot 9d3fe6c6d8 arch/armv7-a: Remove the special process of the nest level
it shouldn't need anymore

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 20:55:45 +08:00
openvela-robot 1ec7c401a2 Refine UNUSED macro to avoid any side effect
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 20:55:41 +08:00
openvela-robot 5f2fdf7075 drivers: ioexpander: update license to Apache
Sebastien Lorquet has submitted the ICLA and we can migrate the licenses
 to Apache.

Gregory Nutt has submitted the SGA and we can migrate the licenses
 to Apache.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2026-04-20 20:55:11 +08:00
openvela-robot 05a95b80b1 sim: remove CONFIG_SIM_WALLTIME fast timing maybe harmful for IOs
Signed-off-by: ligd <liguiding1@xiaomi.com>
2026-04-20 20:55:06 +08:00
openvela-robot 4318c81320 Fix indexing for stm32h7 usbhost tracing 2026-04-20 20:54:51 +08:00
openvela-robot f68867cba1 arm/machine: Sync with the latest newlib(1debd4d635c291c6da90)
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 20:54:42 +08:00
openvela-robot c2cdfb87ab arch: arm: s32k1xx: fix nxstyle errors
Fix nxstyle errors to pass CI

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2026-04-20 20:54:31 +08:00
openvela-robot 221bfc0704 net/local: correct the send return length
Signed-off-by: chao.an <anchao@xiaomi.com>
2026-04-20 20:54:27 +08:00
openvela-robot bd08186e12 arch/arm: Fix the style warning
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 20:54:22 +08:00
openvela-robot 929ae1b812 netdb.h: Add NI_MAXHOST and NI_MAXSERV
* These are not parts of the standards as far as I know.
* These are provided by many platforms. (GLIBC, BSD, Windows, etc)
* These are convenient.
2026-04-20 20:54:18 +08:00
openvela-robot 794dcff026 xtensa/esp32: Adds oneshot timer driver. 2026-04-20 20:54:07 +08:00
openvela-robot b9fc11e356 wireless/bluetooth: break the pending read if circbuf is available
Signed-off-by: chao.an <anchao@xiaomi.com>
2026-04-20 20:53:53 +08:00
openvela-robot 673391b191 Added support for multiple syslog channels. 2026-04-20 20:53:49 +08:00
openvela-robot b7ce1ef159 net/rpmsg: add multi-iov support
N/A

Add multi-iov support for rpmsg sockets

Signed-off-by: Peter Bee <bijunda1@xiaomi.com>
2026-04-20 20:53:45 +08:00
openvela-robot d9c72421a0 mm: add heap policy and anta logic to support mm debug on sim platform
since atan tool will enhance memory debug operation.
2026-04-20 20:53:36 +08:00