Commit Graph

651 Commits

Author SHA1 Message Date
openvela-robot 4efd2b03ca mtd/nand: Call nandmodel_getdevpagesize directly to get the page number
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 22:43:59 +08:00
openvela-robot dc5b1a03d9 assert: Distinguish between assert and exception
CURRENT_REGS may change during assert handling, so pass
in the 'regs' parameter at the entry point of _assert.

Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2026-04-20 22:43:56 +08:00
openvela-robot c926c8dbcb sched: Disable stdio api by default when DEFAULT_SMALL equals y
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 22:43:53 +08:00
openvela-robot 7d6414a823 libm/libmcs: add math library libmcs support
add math library libmcs support
(1)open menuconfig  (2)close math.h:build setup->Customize Header Files->math.h (3) select libmcs:Library Rountines->Select math library->Math Library fram LibmCS (4)build

Signed-off-by: yanghuatao <yanghuatao@xiaomi.com>
2026-04-20 22:43:47 +08:00
openvela-robot 088c1ae57c Revert "arch/armv7ar: use robust code sequences for cache maintenance"
This reverts commit 37104bf185dbf1665fc57f4ad039672e5c97c1dd.

Reason for revert: <This patch will cause specific product's a7 to fail to execute up_clean_dcache_all()>
2026-04-20 22:43:41 +08:00
openvela-robot 62554b14c6 arch: Return directly when arch not support interrupt context save
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2026-04-20 22:43:38 +08:00
openvela-robot d2364f6228 syslog: remove unsed check
Signed-off-by: ligd <liguiding1@xiaomi.com>
2026-04-20 22:43:35 +08:00
openvela-robot 5f59220877 arm/unwind: EABI unwind needs frame pointer support
Signed-off-by: chao an <anchao@xiaomi.com>
2026-04-20 22:43:32 +08:00
openvela-robot 2a4cfb9401 procfs:add armv7-m cpuinfo
Influence: add /proc/cpuinfo:

Signed-off-by: liaoao <liaoao@xiaomi.com>
2026-04-20 22:43:24 +08:00
openvela-robot 2e8503aca9 video/fb: fix pollnotify calling crash in advance
When executing up_fbinitialize, the driver may turn on the vsync interrupt. If the vsync interrupt calls fb_pollnotify before executing fb->vtable->priv = fb it will cause null pointer access and crash.

Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
2026-04-20 22:43:20 +08:00
openvela-robot aba489ecb4 video/fb: add vsync offset support
Android Documentation: https://source.android.com/docs/core/graphics/implement-vsync#vsync_offset

Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
2026-04-20 22:43:17 +08:00
openvela-robot 0f53e5dd6d Add eMMC driver support
- Fix DMA addressing issues within litex_sendsetup/litex_recvsetup
- Extend with handling specific to eMMC commands during init & use.
- Cleanup of 4-bit BUS handling for SD and eMMC
- For eMMC, Send CMD0 during init as per JEDEC v4.41 for pre-idle
2026-04-20 22:43:13 +08:00
openvela-robot 15cdfb62f7 arch/sim: Implement host_freeheap for windows
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2026-04-20 22:43:04 +08:00
openvela-robot 5ea04db747 arch/armv7-r: add armv7-r smp support
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2026-04-20 22:43:00 +08:00
openvela-robot 7891f4524d system: pthread_barrierwait should be moved to kernel space
The current implementation requires the use of enter_critical_section, so the source code needs to be moved to kernel space

Signed-off-by: hujun5 <hujun5@xiaomi.com>
2026-04-20 22:42:57 +08:00
openvela-robot b112464dd1 libc/locale: support iconv_open,iconv,iconv_close
Refs to:https://github.com/bminor/musl

Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2026-04-20 22:42:54 +08:00
openvela-robot b2eaf6699f arch/arm64: get_cpu_id according to the correct affinity level
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2026-04-20 22:42:51 +08:00
openvela-robot 9ac4ad4c3b system: pthread_barrierwait can not be preemption
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2026-04-20 22:42:47 +08:00
openvela-robot ab4474d383 zipfs:fix fseek failed when call fread first
fs/zipfs: zipfs_seek should call unzOpenCurrentFile after unzLocateFile like zipfs_open

Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
2026-04-20 22:42:43 +08:00
openvela-robot 79aa00e7e8 procfs: add total time running time of task
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2026-04-20 22:42:38 +08:00
openvela-robot f495e44515 builtin: add binary uid and gid for buildin fs
so as to show file owner id and group and use effective
uid and gid interface for builtin app.

neededby:961302
2026-04-20 22:42:35 +08:00
openvela-robot a896389679 Let BOARDIOC_SOFTRESETCAUSE_ASSERT equals to the default value of BOARD_ASSERT_RESET_VALUE
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 22:42:32 +08:00
openvela-robot d1777406e7 tcp_input: drop SYN when no free node in the backlog
Wait for the client to retransmit the ack before trying to allocate the
backlog

Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2026-04-20 22:42:29 +08:00
openvela-robot 91294037a4 mm:change special pid to macro
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2026-04-20 22:42:25 +08:00
openvela-robot 4cd7c322de forward: limit the forwarding range of broadcast packets
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2026-04-20 22:42:22 +08:00
openvela-robot 3239ed7b21 Revert "sim: multi netdevice forward issue when ll_guardsize not 14"
This reverts commit a69c6c1dac647607c4ae2691bd207fd6f110c3ed.
2026-04-20 22:42:18 +08:00
openvela-robot 69736a682c drivers/binder: Call mm_map_remove in binder_munmap to avoid the double free
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 22:42:14 +08:00
openvela-robot cfcaae46ff sched/addrenv, binfmt: Always allocate address environment from heap
Instead of using a volatile storage for the address environment in the
binfmt / loadinfo structures, always allocate the address environment
from kheap.

This serves two purposes:
- If the task creation fails, any kernel thread that depends on the
  address environment created during task creation will not lose their
  mappings (because they hold a reference to it)
- The current address environment variable (g_addrenv) will NEVER contain
  a stale / incorrect value
- Releasing the address environment is simplified as any pointer given
  to addrenv_drop() can be assumed to be heap memory
- Makes the kludge function addrenv_clear_current irrelevant, as the
  system will NEVER have invalid mappings any more
2026-04-20 22:42:06 +08:00
openvela-robot eca6ee27d1 replace "shell $(INCDIR)" to "${INCDIR_PREFIX}"
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2026-04-20 22:42:00 +08:00
openvela-robot d9a0920a5a esp32c6: fixed ci build issue
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2026-04-20 22:41:50 +08:00
openvela-robot 5ee1137107 arch: remove unnecessary volatile
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2026-04-20 22:41:46 +08:00
openvela-robot a664470c08 stm32h7/rcc: make VOS0 configurable from board.h
It seems that over-drive is not required for ULPI but it can be a workaround solution for boards with poor signal integration.
Higher core voltage means faster clock signal edges, which may be sufficient to synchronize the high-speed clock and data on poorly designed boards.

Over-drive can be forced to a given state by adding define to the
board.h configuration file:

   #define STM32_VOS_OVERDRIVE 1 - force over-drive enabled,
   #define STM32_VOS_OVERDRIVE 0 - force over-drive disabled,
   #undef STM32_VOS_OVERDRIVE    - autoselect over-drive by the default RCC logic
2026-04-20 22:41:42 +08:00
openvela-robot 3370c089cd assert: Distinguish between assert and exception
dependson:partner_17584

CURRENT_REGS may change during assert handling, so pass
in the 'regs' parameter at the entry point of _assert.

Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2026-04-20 22:41:35 +08:00
openvela-robot 7dc608a6f6 risv-v/esp32c6: disable custom optimize level temporary
This is a workaround commit to temporarily reduce the flash usage of
esp32c6 to avoid ci failure, Since I am not familiar with esptool,
and this issue cannot be reproduced in the local environment,
so I temporarily turn off related optimizations to save flash size.

esptool error log:
-----------------------------------------
| MKIMAGE: ESP32-C6 binary
| esptool.py --chip esp32c6 elf2image --flash_mode dio --flash_size "4MB" -o nuttx.bin nuttx
| esptool.py v4.5.1
| Creating esp32c6 image...
| Merged 1 ELF section
|
| A fatal error occurred: Segment loaded at 0x42010c08 lands in same 64KB flash mapping as segment loaded at 0x42010020. Can't generate binary. Suggest changing linker script or ELF to merge sections.
| make: *** [tools/Unix.mk:527: nuttx] Error 2
| make: Target 'all' not remade because of errors.
-----------------------------------------

Signed-off-by: chao an <anchao@xiaomi.com>
2026-04-20 22:41:32 +08:00
openvela-robot fffbe3d6e5 rptun: add RPTUN_PM_AUTORELAX method.
Signed-off-by: ligd <liguiding1@xiaomi.com>
2026-04-20 22:41:27 +08:00
openvela-robot adefaa867e Revert "Assert if a thread attempts to post a semaphore incorrectly."
This reverts commit 758e88672b703bcb0d1251ae9731b2ec295e81c0.
2026-04-20 22:41:23 +08:00
openvela-robot ee9c3def36 include/dma: support to config dst/src drq for every dma channel
set dst_drq and src drq to dma channel configuration register of dmac

Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2026-04-20 22:41:21 +08:00
openvela-robot 4735b1b1c9 nuttx: add more dependent header file
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2026-04-20 22:41:18 +08:00
openvela-robot bcbbb4ef53 sim/binder: enable large file to support off64_t
Signed-off-by: chao an <anchao@xiaomi.com>
2026-04-20 22:41:15 +08:00
openvela-robot a6c6504449 fix copy-paste errors for d356ad633f 2026-04-20 22:41:11 +08:00
openvela-robot 5cf2c758df spi/slave: use POLLPRI to notify TX_COMPLETE.
Signed-off-by: huxiandong <huxiandong@xiaomi.com>
2026-04-20 22:41:07 +08:00
openvela-robot ad26a8da46 fs/nxffs: Fix typo(nxem_wait->nxmutex_lock) error in comment
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 22:41:04 +08:00
openvela-robot c25006a2ec sim_x11eventloop: fix X11 event accumulation
sim_x11events should process all x11 events in each event loop,
otherwise it will cause events to accumulate in the queue and affect the interaction.

Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
2026-04-20 22:41:00 +08:00
openvela-robot 0e0815a3ad risc-v/espressif: Add support for Tickless mode
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2026-04-20 22:40:57 +08:00
openvela-robot c2a6a4daba libm/newlib: add newlib/libm support
Signed-off-by: chao an <anchao@xiaomi.com>
2026-04-20 22:40:50 +08:00
openvela-robot 47a7f6d3a6 risc-v/espressif: Add support for Periodic Timers
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2026-04-20 22:40:43 +08:00
openvela-robot 8da076cd43 tools/riscv: Map extensions to certain cpu model for LLVM based toolchain
RISCV has a modular instruction set. It's hard to define cpu-model to support all toolchain.
For Zig, cpu model is this formal: generic_rv[32|64][i][m][a][f][d][c]
For Rust, cpu model is this formal: riscv[32|64][i][m][a][f][d][c]
So, it's better to map the NuttX config to LLVM builtin cpu model, these models supported by
all LLVM based toolchain.
Refer to : https://github.com/llvm/llvm-project/blob/release/15.x/llvm/lib/Target/RISCV/RISCV.td
These models can't cover all implementation of RISCV, but it's enough for most cases.

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2026-04-20 22:40:37 +08:00
openvela-robot 66af034513 boards: Replace open/pread with file_open/file_pread
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 22:40:34 +08:00
openvela-robot 31d6efeda1 fs/yaffs: support readonly option for yaffs mount
Signed-off-by: guohao15 <guohao15@xiaomi.com>
2026-04-20 22:40:31 +08:00
openvela-robot 11276d6836 risc-v/espressif: Add High Resolution Timer driver
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2026-04-20 22:40:28 +08:00