Commit Graph

72427 Commits

Author SHA1 Message Date
dependabot[bot] 1bf1a44271
build(deps): bump actions/github-script from 7 to 9
Bumps [actions/github-script](https://github.com/actions/github-script) from 7 to 9.
- [Release notes](https://github.com/actions/github-script/releases)
- [Commits](https://github.com/actions/github-script/compare/v7...v9)

---
updated-dependencies:
- dependency-name: actions/github-script
  dependency-version: '9'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-05-09 04:34:57 +00:00
v-tangmeng 053a3c06c9 net/udp: fix sndbufs member access in udp_sendto_buffered
The sndbufs field was moved to socket_conn_s as s_sndbufs in the
new NuttX version. Line 955 was missed during rebase while line 718
was already correctly updated.

Fix: conn->sndbufs -> conn->sconn.s_sndbufs
2026-04-28 16:02:38 +08:00
Shanmin Zhang 7bfd3abc65 Revert "libs/libc/stdlib/lib_exit.c: fix multiple definition of __dso_handle in msys2"
This reverts commit 8f96e59aee9cd0c5bbb82e01044d109f8588fec2.

The implementation of __dso_handle is independent of the HOST OS but dependent on the specific compiler.
Therefore, this patch will cause compilation failures for other cross-compilers on the Windows platform, such as arm-none-eabi-gcc and aarch64-none-elf-gcc.
Constraints should be applied to compiler target rather than compiler host.

Signed-off-by: Shanmin Zhang <zhangshanmin@xiaomi.com>
2026-04-27 10:04:05 +08:00
wangjianyu3 627eb732f4 Documentation/szpi-esp32s3: Add doc for LCD
Basic NuttShell configuration console and LCD enabled.

Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2026-04-27 09:58:57 +08:00
wangjianyu3 31b0334469 boards/szpi-esp32s3: Init configuration for LCD
Init configuration for ST7789 LCD.

Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2026-04-27 09:58:53 +08:00
wangjianyu3 be60298185 drivers/lcd/st7789: Add option for RGB data endian
Big endian by default.

Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2026-04-27 09:58:49 +08:00
wangjianyu3 a56f321f38 boards/szpi-esp32s3: Add support for ST7789 LCD
Expanded IO0 for SPI C/S, GPIO39 for SPI D/C.

Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2026-04-27 09:58:45 +08:00
wangjianyu3 e59eef1182 Documentation/szpi-esp32s3: Add doc for GPIO
Basic NuttShell configuration console and GPIO(e.g. IO39 as SPI D/C) enabled.

Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2026-04-27 09:58:41 +08:00
wangjianyu3 e8def73776 boards/szpi-esp32s3: Init GPIO for LCD SPI D/C
And add configuration for GPIO.

| Num  | Type      | Func / Location |
|------|-----------|-----------------|
| IO39 | Output    | LCD SPI D/C     |
| IO10 | Input     | GP1.25-5P expansion interface 1 (left side, near the speaker) |
| IO11 | Interrupt | GP1.25-5P expansion interface 1 (left side, near the speaker) |

Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2026-04-27 09:58:38 +08:00
wangjianyu3 6b4d1cf9fa arch/esp32s3: The MISO, MOSI and C/S are optional
The MISO or MOSI pin is optional.
The C/S pin is unnecessary when `ESP32S3_SPI_UDCS` is enabled.

Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2026-04-27 09:58:34 +08:00
wangjianyu3 de66581545 Documentation/szpi-esp32s3: Add doc for LEDC(PWM)
Basic NuttShell configuration console and LEDC(PWM) enabled.

Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2026-04-27 09:58:29 +08:00
wangjianyu3 3bf97a8dac boards/szpi-esp32s3: Init config for LEDC(PWM)
Enable LEDC driver for IO 42 of LCKFB SZPI-ESP32S3 as backlight of LCD.

Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2026-04-27 09:58:25 +08:00
wangjianyu3 f4552bf530 boards/szpi-esp32s3: Add PWM setup
Add PWM setup for LCKFB SZPI-ESP32S3.

Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2026-04-27 09:58:21 +08:00
wangjianyu3 bfb82ee14a boards/esp32s3: Move PWM setup to common
Move PWM setup from esp32s3-devkit/src/esp32s3_ledc.c to common/src/esp32s3_board_ledc.c.
Fix esp32s3_pwm_setup() undefined error for esp32s3-korvo-2.

Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2026-04-27 09:58:16 +08:00
wangjianyu3 24004580cf Documentation/szpi-esp32s3: Add doc for PCA9557
Add basic NuttShell configuration console and I/O expander driver PCA9557 enabled.

Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2026-04-27 09:58:11 +08:00
wangjianyu3 143474f5f3 boards/szpi-esp32s3: Init config for PCA9557
Build & Burn

  ./tools/configure.sh -l lckfb-szpi-esp32s3:pca9557
  make flash -j$(nproc) ESPTOOL_PORT=/dev/ttyUSB0

Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2026-04-27 09:58:07 +08:00
wangjianyu3 5e5b1a516b boards/szpi-esp32s3: Add support for PCA9557
https://wiki.lckfb.com/zh-hans/szpi-esp32s3/open-source-hardware/

| PCA9557 | ESP32S3 |
|---------|---------|
| SCL     | IO2     |
| SDA     | IO1     |
| A0      | 3V3     |
| A1      | GND     |
| A2      | GND     |

| PCA9557 | Peripherals |
|---------|-------------|
| IO0     | LCD_CS      |
| IO1     | PA_EN       |
| IO2     | DVP_PWDW    |

Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2026-04-27 09:58:03 +08:00
wangjianyu3 7b5891aaf7 drivers/ioexpander: Add support for PCA9557
Datasheet: https://www.ti.com/lit/ds/symlink/pca9557.pdf

Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2026-04-27 09:57:59 +08:00
wangjianyu3 becb9c8e48 boards/esp32s3: Fix `esp32s3_gpio_init` undefined
When enable both `DEV_GPIO` and `GPIO_LOWER_HALF` for a GPIO pin device for an I/O expander pin.
See esp32s3_gpio.c for more details.

Log

  xtensa-esp32s3-elf-ld: /workspace/nuttx/staging/libboard.a(esp32s3_bringup.o):(.literal.esp32s3_bringup+0x14): undefined reference to `esp32s3_gpio_init'
  xtensa-esp32s3-elf-ld: /workspace/nuttx/staging/libboard.a(esp32s3_bringup.o): in function `esp32s3_bringup':
  /workspace/nuttx/boards/xtensa/esp32s3/common/board/esp32s3_bringup.c:409: undefined reference to `esp32s3_gpio_init'

Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2026-04-27 09:57:55 +08:00
wangjianyu3 8e29fd898e boards/esp32s3: Merge common configurations
So that when adding new boards, duplicate content will not be copied.

Test:

  1. Refreshing board configurations

    ./tools/refresh.sh --silent arch:xtensa

  2. Check if there is anything missing

    $ git diff HEAD . | grep "^[+-]" | sed 's/^[-+]*//' | sed 's/^ [ab]*//' | grep -v "^$" | sort -u | wc -l
    66
    $ git diff HEAD . | grep "^[+-]" | sort -u | wc -l
    132

Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2026-04-27 09:57:52 +08:00
wangjianyu3 1217b65886 Documentation/esp32s3: Add doc for SZPI ESP32-S3
Add documentation for LCKFB SZPI ESP32-S3.

Official website: https://wiki.lckfb.com/zh-hans/szpi-esp32s3/

Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2026-04-27 09:57:47 +08:00
wangjianyu3 13f8d676f7 boards/xtensa: Add support for szpi-esp32s3
Add configurations for nsh, adb, fastboot, etc.

Build & Burn

  ./tools/configure.sh -l lckfb-szpi-esp32s3:adb
  make flash -j8 ESPTOOL_PORT=/dev/ttyUSB0

Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2026-04-27 09:57:42 +08:00
anjiahao a5107641a9 arm:modlib not support unwind table now
modlib_read: Read 64 bytes from offset 192665
modlib_symvalue: ERROR: SHN_UNDEF: Exported symbol "__gnu_Unwind_Find_exidx" not found
modlib_relocate: ERROR: Section 2 reloc 12: Failed to get value of symbol[246]: -2
elf_loadbinary: Failed to bind symbols program binary: -2
builtin_loadbinary: Loading file: /mnt/sotest

Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2026-04-27 09:57:19 +08:00
cuiziwei 879db5f817 drivers/binder: Rename BIOC_FLUSH to BINDER_FLUSH to avoid conflict with system flush.
1. revert 4946904, This patch is to solve the crash problem caused by reboot operation. The phenomenon is: when reboot operation is executed, the system will call binder_flush, which will cause the use after free to be called when proc is destroyed.

2. Now, we can rename BIOC_FLUSH to BINDER_FLUSH to avoid system call binder_flush.

3. why revert 4946904, because when we set looper_need_return in advance, it will cause the child thread of the binder thread pool to be unable to exit when it really wants to exit.

Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
2026-04-27 09:57:15 +08:00
chenxiaoyi 6b64d0714b xtensa: change write intset register to syscall instruction
Signed-off-by: chenxiaoyi <chenxiaoyi@xiaomi.com>
2026-04-27 09:57:10 +08:00
wangjianyu3 176516cbd6 tools/refresh.sh: Add log for progress
Log

  $ ./tools/refresh.sh --silent --defaults arch:risc-v
  Normalizing all boards in arch: risc-v !
    [1/227] Normalize arty_a7/nsh
    [2/227] Normalize arty_a7/netnsh
    [3/227] Normalize arty_a7/knsh
    # ... ...

Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2026-04-27 09:55:47 +08:00
raiden00pl c2af3c705b nrf5340-dk/configs/qspi_cpuapp: remove temporary file added by accident
remove temporary emacs file added by accident

Signed-off-by: raiden00pl <raiden00@railab.me>
2026-04-27 09:55:43 +08:00
v-tangmeng be22155569 boards: Replace CONFIG_NSH_LINELEN with CONFIG_LINE_MAX
Details: https://github.com/apache/nuttx-apps/pull/2943

1. find boards/ -name defconfig | xargs sed -i 's/CONFIG_NSH_LINELEN/CONFIG_LINE_MAX/g'
2. ./tools/refresh.sh --silent --defaults all

Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2026-04-27 09:55:29 +08:00
wangjianyu3 caf0f17924 lm3s6965-ek/qemu: Using default max command line length
The large max command line length may cause stack overflow.

Test
  ./tools/configure.sh lm3s6965-ek:qemu-flat
  make -j16
  qemu-system-arm -semihosting \
  		-M lm3s6965evb \
  		-device loader,file=nuttx.bin,addr=0x00000000 \
  		-netdev user,id=user0 \
  		-serial mon:stdio -nographic

Link: https://github.com/apache/nuttx-apps/pull/2850
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2026-04-27 09:50:32 +08:00
wangjianyu3 e8d629d358 boards: Refresh configurations with refresh.sh
With patch https://github.com/apache/nuttx/pull/15531

Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2026-04-27 09:50:28 +08:00
wangjianyu3 48d35efaca tools/refresh.sh: Should continue to refresh other configs when matching debug configs
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2026-04-27 09:50:24 +08:00
yinshengkai 4dd8b5babd sim: use libunwind to record backtrace 2026-04-27 09:50:20 +08:00
wangjianyu3 3223004520 drivers/sensors/gnss: Macro `UINT8_MAX` for maximum value of `uint8_t crefs`
libs/libc/gnssutils/minmea/minmea.h:17:#include <stdint.h>

Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2026-04-27 09:50:15 +08:00
cuiziwei ca86cd9a4c drivers/binder: Set thread->looper_need_return false after wake up thread.
Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
2026-04-27 09:50:11 +08:00
wangjianyu3 39ea1e87f7 esp32s3-devkit/adb: ADB shell service depends on SCHED_CHILD_STATUS
Log

  $ adb -s 1234 shell
  error: closed

  # BULK out
  0000   4f 50 45 4e cb 71 06 00 00 00 00 00 07 00 00 00   OPEN.q..........
  0010   52 02 00 00 b0 af ba b1                           R.......

  # BULK out
  0000   73 68 65 6c 6c 3a 00                              shell:.

  # BULK in
  0000   43 4c 53 45 00 00 00 00 cb 71 06 00 00 00 00 00   CLSE.....q......
  0010   00 00 00 00 bc b3 ac ba                           ........

Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2026-04-27 09:50:07 +08:00
wangjianyu3 53e8f4b63c Documentation/esp32s3-devkit: Add doc for USB ADB
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2026-04-27 09:50:03 +08:00
wangjianyu3 c74abc3c18 esp32s3-devkit/adb: Enable ROMFS/etc for ADB auto start
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2026-04-27 09:49:59 +08:00
wangjianyu3 a735557206 esp32s3-devkit: Add initialize scripts for ROMFS/etc
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2026-04-27 09:49:54 +08:00
wangjianyu3 7cd04580f0 esp32s3-devkit/adb: Reusing configuration of usb_device
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2026-04-27 09:49:50 +08:00
wangjianyu3 e36293cda9 esp32s3-devkit/adb: Initializing configuration for ADB
Build & Flash

  ./tools/configure.sh -l esp32s3-devkit:adb
  make -j16
  make flash ESPTOOL_PORT=/dev/ttyACMx

Runtime

  $ adb -s 1234 shell
  nsh> uname -a
  NuttX 0.0.0  Nov 22 2024 11:41:43 xtensa esp32s3-devkit

Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2026-04-27 09:49:45 +08:00
Zhe Weng 0c70b3c5ba net/udp: Let cansend return EWOULDBLOCK when send buffer is full
Notes:
1. This commit do the same thing as TCP did: https://github.com/apache/nuttx/pull/10627
2. UDP uses `iob_navail(false)` but TCP uses `iob_navail(true)`, this is because of a problem related to TCP recv window (https://github.com/apache/nuttx/pull/4142), so we don't need to change UDP now.

Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2026-04-27 09:49:41 +08:00
p-szafonimateusz e6602d064e boards/x86_64/intel64/qemu-intel64: add lvgl and fb examples
Add lvgl and fb examples for qemu-intel64.

NOTE: multiboot framebufer doesn't work with -kernel argument in QEMU,
NuttX image must be loaded with -cdrom argument.

QEMU command to run examples:

  qemu-system-x86_64 -m 2G -cpu host -enable-kvm -cdrom disk.iso -serial mon:stdio

Signed-off-by: p-szafonimateusz <p-szafonimateusz@xiaomi.com>
2026-04-27 09:49:36 +08:00
anjiahao 5776843619 archivefs:add option to select archive format 2026-04-27 09:45:21 +08:00
anjiahao 38b138fa2c archivefs:support archivefs 2026-04-27 09:45:18 +08:00
chenrun1 5eb25f5024 v9fs/client.c:add check response.nwqid == nwname
Summary:
  There are differences in different server implementations, so it is necessary to check whether the returned nwqid satisfies the requested number.

Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2026-04-27 09:45:13 +08:00
cuiziwei fa66002195 fix ld error with out-of-range 32-bit relocations
Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
2026-04-27 09:45:07 +08:00
Alin Jerpelea 8e7c8b6c82 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-27 09:45:00 +08:00
wangmingrong1 17c7407f87 arm64/qemu: Add support for arm64 qemu's maximum feature cpu
Signed-off-by: wangmingrong1 <wangmingrong1@xiaomi.com>
2026-04-27 09:44:45 +08:00
xuxin19 68b402fbcd cmake(feat):add default install prefix path to ${BINARY}/staging 2026-04-27 09:44:30 +08:00
haopengxiang ccef76a887 cmake/arm: remove duplicate LTO config block in elf.cmake
The if(CONFIG_BINFMT_ELF_RELOCATABLE) block and
nuttx_mod_compile_options_ifdef for CONFIG_LTO_FULL at lines 54-57
were exact duplicates of the block at lines 49-52. Remove the
redundant copy.

Signed-off-by: haopengxiang <haopengxiang@xiaomi.com>
2026-04-21 01:36:11 +08:00