tengshuangshuang
dfd1bb2e7a
add limit for MAX_MQUEUE_PATH to satisfy POSIX requirement.
...
A call to mq_open() when the length of a pathname component in name
exceeds {NAME_MAX} while _POSIX_NO_TRUNC is in effect shall return
-1 and set errno to ENAMETOOLONG.
In nuttx/fs/mqueue/mq_open.c:185-190
'''
if (sizeof(CONFIG_FS_MQUEUE_VFS_PATH) + 1 + strlen(mq_name)
>= MAX_MQUEUE_PATH)
{
ret = -ENAMETOOLONG;
goto errout;
}
'''
Signed-off-by: tengshuangshuang <tengshuangshuang@xiaomi.com>
2026-04-21 01:34:37 +08:00
Alin Jerpelea
b2c99b0098
fs: 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:34 +08:00
openvela-robot
7b3a98b818
xtensa/esp32s3: Add support for RT-Timer based on Systimer peripheral
...
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2026-04-20 21:40:44 +08:00
openvela-robot
38a681f744
feature: bsp: Add current report information
...
1.Difference between factory and official version
Signed-off-by: liangdongdong<liangdongdong@xiaomi.com>
2026-04-20 21:40:42 +08:00
openvela-robot
2f941a7cde
Revert "arch/risc-v: Correct FPU register save area in riscv_copystate"
...
This reverts commit 86358bff3bc814efb564a4427b4bcd6c3c91dbf0.
2026-04-20 21:40:38 +08:00
openvela-robot
af28839e4f
update smart pa load caliberate status
...
update cs35l41b load caliberate status after successful caliberation
Signed-off-by: genghuihui <genghuihui@xiaomi.com>
2026-04-20 21:40:36 +08:00
openvela-robot
9eabb495a9
boards/Kconfig: introduce ARCH_BOARD_COMMON option
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2026-04-20 21:40:33 +08:00
openvela-robot
98f1bc518a
update smart pa load caliberate value
...
update cs35l41b load caliberate value after dsp fw boot
Signed-off-by: genghuihui <genghuihui@xiaomi.com>
2026-04-20 21:40:30 +08:00
openvela-robot
37e1914907
xtensa_swint.c: Restore the coprocessor state at the end for consistency.
...
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2026-04-20 21:40:27 +08:00
openvela-robot
e710f6f506
fix: sensor: add way to read sensor configuration
...
dependson:partner_3363
1.Store the configuration parameters in the file, read and set when the
power is turned on.
2.Modified to polling to read data.
Signed-off-by: xiatian6 <xiatian6@xiaomi.com>
2026-04-20 21:40:24 +08:00
openvela-robot
96018f0e1d
arch/risc-v: Update opensbi to 4998a712b2ab504eff306110879ee05af6050177
...
include theis commit:
commit 6ad8917b7e27e5e80fb9268492b9111b17ed2024
Author: Petro Karashchenko <petro.karashchenko@gmail.com>
Date: Fri Jan 28 09:13:23 2022 +0200
lib: fix compilation when strings.h is included
In a systems that provide strings.h and it is included
together with sbi_bitops.h the compilation error appears.
The ffs() and fls() are provided by strings.h
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
and fix this warning:
Error: include/sbi/sbi_bitops.h:47:19: declaration of 'ffs' shadows a built-in function
static inline int ffs(int x)
^~~
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 21:40:21 +08:00
openvela-robot
b77174bbe1
feature: bsp: Optimize the reporting of the first battery information
...
1.Ensure that all battery information is reported for
the first time during the boot process
Signed-off-by: liangdongdong<liangdongdong@xiaomi.com>
2026-04-20 21:40:17 +08:00
openvela-robot
9c695bb4c8
input/ajoystck: Always protect the resource by critical section
...
it's wrong to protect the resource by au_exclsem
in some case and critical section in others
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 21:40:13 +08:00
openvela-robot
32cbcf4e33
feature: bsp: optimized charging work with high occupancy rate
...
1.Tasks that reduce interrupt handling
2.Reduce the first wor running time, and report
the power immediately when the ui is displayed
Signed-off-by: liangdongdong<liangdongdong@xiaomi.com>
2026-04-20 21:40:10 +08:00
liuhaitao
56c6d0854b
Fix mqueue build break
...
align with master branch code base
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2026-04-20 21:40:00 +08:00
openvela-robot
002d451050
Merge remote-tracking branch 'mirtos/master' into dev-upmerge-nuttx-10.2-0304
...
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2026-04-20 21:40:00 +08:00
openvela-robot
61a5a92a2d
risc-v: Replace all inline assembly with macro
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2026-04-20 21:39:57 +08:00
openvela-robot
74905f9dc2
armv7-a/armv7-r:cache: modify hardcode in cache set/way operation
...
Some chip not use the default cache size & way , read from
CCSIDR instead of hardcode.
Signed-off-by: zhuyanlin <zhuyanlin1@xiaomi.com>
2026-04-20 21:39:54 +08:00
openvela-robot
d44d5304cd
input/buttons: Fix the event lose between the invocation of poll
...
Signed-off-by: xueyanhong <xueyanhong@xiaomi.com>
2026-04-20 21:39:52 +08:00
openvela-robot
45a11fa4d7
feat: touch : change touch test folder from data to data/tp
...
change this for data transmition
Signed-off-by: xueyanhong <xueyanhong@xiaomi.com>
2026-04-20 21:39:49 +08:00
openvela-robot
55bc757fc2
LICENSE: add license for libs/libc/machine/armv7
...
document the license for libs/libc/machine/armv7
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2026-04-20 21:39:45 +08:00
openvela-robot
9b395eaa0a
feat: charge: update hw1.2 register parameter
...
Signed-off-by: zhangguoliang <zhangguoliang3@xiaomi.com>
2026-04-20 21:39:41 +08:00
openvela-robot
72e13c1600
LICENSE: document licenses for boards: s32k1xx
...
add licenses for boards: s32k1xx
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2026-04-20 21:39:38 +08:00
openvela-robot
89951b7c63
rptun: enable rx interrupts for virtq
...
use wait_tx_buffer method need enable rx interrupts
Signed-off-by: ligd <liguiding1@xiaomi.com>
2026-04-20 21:39:35 +08:00
openvela-robot
8d89c51f11
sim: Simplify boards and arch's Makefile
...
1.Remove the unused LIBPATHS and HOSTLDFLAGS
2.Move HOSTCFLAGS to arch/Makefile
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 21:39:32 +08:00
openvela-robot
081c75c67d
feature: charge: modify pre and iterm current value
...
1.modify pre current value to 20ma
2.modify iterm current value to 40 ma
Signed-off-by: weizhifang <weizhifang@xiaomi.com>
2026-04-20 21:39:29 +08:00
openvela-robot
602ab08b6b
boards/sparc: Remove HOSTCC related flags from Make.defs
...
since these variables are defined in Config.mk now
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 21:39:26 +08:00
openvela-robot
129da35348
Revert "sim/x11eventloop: add up_x11events_worker to x11evnet"
...
This reverts commit 626b1e69c748649f092c3269c49900b160260e10.
Signed-off-by: ligd <liguiding1@xiaomi.com>
2026-04-20 21:39:23 +08:00
openvela-robot
a426175968
fs: add "/" suffix for mountpoint node when using inode_getpath
...
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2026-04-20 21:39:20 +08:00
openvela-robot
410ede91dc
fs/fatfs: dynamic allocate file buffer according to sector size
...
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2026-04-20 21:39:17 +08:00
openvela-robot
275eb70d22
tools:add parsememdump.py to parse memdump info(by cmd: memdump all)
...
This script will help you analyze memdump log files,
analyze the number of occurrences of backtrace,
and output stack information
memdump log files need this format:
pid size addr mem
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2026-04-20 21:39:13 +08:00
openvela-robot
733bd7d4ca
arch:xtensa: modify svcall to swint
...
Reason: xtensa svcall only have level-1 interrupt level.
Sush do not generate interrupt when up_irq_save.
Software int can generate interrupt when up_irq_save.
Signed-off-by: zhuyanlin <zhuyanlin1@xiaomi.com>
2026-04-20 21:39:11 +08:00
openvela-robot
0a19610d40
boards: Add --gc-sections for photon and stm32f4discovery
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2026-04-20 21:39:08 +08:00
openvela-robot
33d40ff23d
libc/sched/task_setcanceltype: fix function name in comment
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2026-04-20 21:39:05 +08:00
openvela-robot
3b0f0e1568
xtensa: spit up_irq_disable and up_irq_save INTLEVEL MARCO
...
For up_irq_disable, use XCHAL_EXCM_LEVEL
For up_irq_save, use XCHAL_IRQ_LEVEL.
Then we can use svcall in enter_crritical_section.
Signed-off-by: zhuyanlin <zhuyanlin1@xiaomi.com>
2026-04-20 21:38:59 +08:00
openvela-robot
a37edd7248
rptun: swap RX & TX share poll
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2026-04-20 21:38:56 +08:00
openvela-robot
d2fc4c7720
arch, board: Add thumb support to i.MX6
...
Summary:
- This commit adds thumb support to i.MX6
- Also, applies the same coding style to arch_elf.c
Impact:
- i.MX6 only
Testing:
- Tested with sabre-6quad:smp (QEMU, Dev board)
- Tested with sabre-6quad:netnsh (QEMU)
- Tested with sabre-6quad:netknsh (QEMU, not merged yet)
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2026-04-20 21:38:53 +08:00
openvela-robot
e9e827a354
phyplus: cherry-pick phyplus changed code from github.
...
add phyplus_rel_1.4
update source for phyplus driver rel_1.4
update source for phyplus driver rel 1.4
update source for phyplus driver 1.4
update phy6222 config files
Signed-off-by: wangbowen6 <wangbowen6@xiaomi.com>
2026-04-20 21:38:50 +08:00
openvela-robot
e0bfec7d7e
xtensa: fix `XTHAL_REL_LE` not find
...
fix `XTHAL_REL_LE` not find build break
Signed-off-by: zhuyanlin <zhuyanlin1@xiaomi.com>
2026-04-20 21:38:45 +08:00
openvela-robot
9b686968de
vncserver: Fix dead lock on re-connect
...
`vnc_remove_queue` would waiting for new frame update request forever
even if the connection is lost, the updater thread wouldn't exit.
But the server thread will join updater thread before accept new client
connection, then we can't re-conncet to vnc server.
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2026-04-20 21:38:42 +08:00
openvela-robot
ef863b289c
xtensa:esp32: setup software interrupt. (bit 29)
...
Enable and setup software interrupt.
Signed-off-by: zhuyanlin <zhuyanlin1@xiaomi.com>
2026-04-20 21:38:39 +08:00
openvela-robot
2413681902
Replece clock_gettime(CLOCK_MONOTONIC) with clock_systime_timespec
...
it's better to call the kernrel api insteaad user space api in kernel
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 21:38:37 +08:00
openvela-robot
1996af3f7c
Replece clock_gettime(CLOCK_MONOTONIC) with clock_systime_timespec
...
it's better to call the kernrel api insteaad user space api in kernel
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 21:38:34 +08:00
openvela-robot
1d3a09e518
fs/romfs: always save linkoffset in romfs_nodeinfo_s
...
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2026-04-20 21:38:31 +08:00
openvela-robot
90274ebd3c
arch/arm: unify some duplicate code to common layer
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2026-04-20 21:38:28 +08:00
openvela-robot
e68f934778
fix: touch: fixed error of the offline log
...
fixed error of the offline log
Signed-off-by: futerigele <futerigele@xiaomi.com>
2026-04-20 21:38:25 +08:00
openvela-robot
debed1cc09
os init_state: add new state OSINIT_IDLELOOP
...
This is for distinguish we are in init idle or idle loop.
Use for assertion for sem_trywait & sem_wait
Signed-off-by: ligd <liguiding1@xiaomi.com>
2026-04-20 21:38:23 +08:00
openvela-robot
6db56f3fd5
Merge remote-tracking branch 'remotes/mirtos/dev-upmerge-nuttx-10.2' into dev-upmerge-nuttx-10.2
...
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2026-04-20 21:38:20 +08:00
openvela-robot
429c0c0eec
arch/armv7-a: unify switch context from software interrupt
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2026-04-20 21:38:16 +08:00
openvela-robot
67d9073d3a
Revert "mm_initialize.c: make sure the heapsize aligned with MM_MIN_CHUNK."
...
This reverts commit 0e226b3ecd6d8f9ef7daf9c7b1edff026cb28502.
2026-04-20 21:38:13 +08:00