Huang Qi
cfd0cc0d1a
Remove duplicate includes across multiple files
...
This commit cleans up redundant header file includes throughout the codebase.
The changes include:
- Removing duplicate #include directives that were present in the same file
- Consolidating includes that were split across multiple lines unnecessarily
- Removing unused includes that were no longer needed
- Fixing some formatting issues with includes
The changes improve code organization and maintainability by:
- Reducing unnecessary dependencies
- Making include dependencies more explicit
- Following consistent include patterns
- Removing dead code
No functional changes are made - this is purely a code cleanup commit.
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2025-01-09 23:30:23 +08:00
Filipe Cavalcanti
407a62a33a
boards/xtensa: update Make.defs for linker scripts on ESP32|S2
2025-01-07 21:58:09 +08:00
Filipe Cavalcanti
91511ae280
boards/xtensa: merge MCUBoot and Simple Boot linker scripts on ESP32|S2
2025-01-07 21:58:09 +08:00
wangjianyu3
6020cdb816
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>
2025-01-03 21:12:20 +08:00
cd92e2d6e7
boards/risc-v, xtensa: Remove CONFIG_DEV_ZERO
...
CONFIG_DEV_ZERO is no longer needed in some defconfig files due to
- https://github.com/apache/nuttx/pull/15223
This PR removes CONFIG_DEV_ZERO from the affected defconfig files:
```bash
make distclean ; tools/refresh.sh --silent canmv230:knsh
make distclean ; tools/refresh.sh --silent canmv230:master
make distclean ; tools/refresh.sh --silent canmv230:nsbi
...
```
The failed builds above were extracted from [nuttx-prometheus-to-mastodon.json](https://lupyuen.org/articles/mastodon.html#appendix-post-nuttx-builds-to-mastodon )
2024-12-31 04:01:32 -03:00
mazhuang
60683d7495
nuttx/boards/XXX/defconfig:DEV_ZERO is not set
...
Signed-off-by: mazhuang <mazhuang@xiaomi.com>
2024-12-30 22:22:29 +08:00
YAMAMOTO Takashi
c0c04cf6ba
bump littlefs to 2.10.1 where 2.10.0 was used
...
2.10.1 contains a fix for a long-standing wrong-data issue.
https://github.com/littlefs-project/littlefs/pull/1058
2024-12-25 03:40:43 -03:00
Filipe Cavalcanti
293a87a5e1
boards/xtensa/esp32s3: increase stack size of buttons defconfig
2024-12-24 10:49:39 +08:00
Filipe Cavalcanti
acd0031362
boards/xtensa/esp32s3: set 16MB flash on qemu_debug defconfig
2024-12-24 10:49:39 +08:00
Tiago Medicci Serrano
7548db1980
arch/xtensa: Support __thread
and thread_local
keywords
...
Enable architecture-specific support for those keywords. This is a
"gcc-based" thread local storage implementation.
2024-12-21 20:49:07 +08:00
wangjianyu3
c19e8c7861
esp32s3-devkit/adb: Enable file service
...
Test
$ adb -s 1234 pull /etc/init.d/rcS
/etc/init.d/rcS: 1 file pulled. 0.0 MB/s (7 bytes in 0.042s)
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2024-12-18 20:13:41 +08:00
Eren Terzioglu
8256864bfe
esp32[s2|s3]: Add qencoder defconfig
2024-12-17 13:35:42 -03:00
Eren Terzioglu
767c5f16f0
esp32[s2|s3]: Add pulse counter support
2024-12-17 13:35:42 -03:00
YAMAMOTO Takashi
760b557f3f
esp32s3-devkit/toywasm: bump littlefs version to 2.10.0
2024-12-13 18:22:30 +08:00
simbit18
88239153b8
[sensors]: Removed the unnecessary inclusion of spi header files
...
- ina219
- apds9960
- veml6070
these sensors use i2c serial communication protocol
2024-12-10 21:59:31 +08:00
simbit18
11f412b7af
fix nxstyle
...
Removed extra spaces from .h and .c files
2024-12-10 01:29:00 +08:00
Eren Terzioglu
001a663b74
esp32[s2|s3]: Add nxdiag without esptool wrapper
2024-12-07 11:45:59 +08:00
wangjianyu3
0481533833
boards: Update configs about system/usbmsc
...
The Kconfig of system/usbmsc has updated to support setting paths that bind to LUN at runtime.
More details: https://github.com/apache/nuttx-apps/pull/2876
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2024-12-06 13:38:23 +08:00
Andreea Luca
e6a01a0167
Integrated feedback
...
Integrated feedback: refreshed mqttc defconfig file.
2024-12-06 10:59:17 +08:00
Andreea Luca
666d55a8f4
Add configs for esp-sparrow-kit
...
Add configs for esp-sparrow-kit, to ease enabling wifi
and mqttc applications
2024-12-06 10:59:17 +08:00
wangjianyu3
f446fd5451
esp32s3-devkit/usbmsc: Add bind for MTD
...
And fix error: Unsupported sector size 256.
Test
# Build & Flash
./tools/configure.sh -l esp32s3-devkit:usbmsc
make flash ESPTOOL_PORT=/dev/ttyACMx
# Runtime (Device)
nsh> mkrd -m 10 -s 512 640
nsh> ls -l /dev/esp32s3flash
frw-rw-rw- 1048576 /dev/esp32s3flash
nsh> msconn
mcsonn_main: Creating block drivers
mcsonn_main: Configuring with NLUNS=2
mcsonn_main: handle=0x3fcdecc8
mcsonn_main: Bind LUN=0 to /dev/ram10
mcsonn_main: Bind LUN=1 to /dev/esp32s3flash
mcsonn_main: Connected
Log (Host)
[1478371.410664] usb 1-5: new full-speed USB device number 22 using xhci_hcd
[1478371.539471] usb 1-5: New USB device found, idVendor=584e, idProduct=5342, bcdDevice= 3.99
[1478371.539475] usb 1-5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[1478371.539476] usb 1-5: Product: Mass Storage
[1478371.539477] usb 1-5: Manufacturer: NuttX
[1478371.539478] usb 1-5: SerialNumber: 0101
[1478371.542497] usb-storage 1-5:1.0: USB Mass Storage device detected
[1478371.542851] scsi host5: usb-storage 1-5:1.0
[1478372.582401] scsi 5:0:0:0: Direct-Access NuttX Mass Storage 0101 PQ: 0 ANSI: 2
[1478372.582785] scsi 5:0:0:1: Direct-Access NuttX Mass Storage 0101 PQ: 0 ANSI: 2
[1478372.582990] sd 5:0:0:0: Attached scsi generic sg3 type 0
[1478372.583167] sd 5:0:0:1: Attached scsi generic sg4 type 0
[1478372.584150] sd 5:0:0:0: [sdd] 640 512-byte logical blocks: (328 kB/320 KiB)
[1478372.801405] sd 5:0:0:0: [sdd] Write Protect is off
[1478372.801410] sd 5:0:0:0: [sdd] Mode Sense: 0f 00 00 00
[1478373.021406] sd 5:0:0:0: [sdd] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[1478373.023228] sd 5:0:0:1: [sde] 2048 512-byte logical blocks: (1.05 MB/1.00 MiB)
[1478373.241405] sd 5:0:0:1: [sde] Write Protect is off
[1478373.241410] sd 5:0:0:1: [sde] Mode Sense: 0f 00 00 00
[1478373.461442] sd 5:0:0:1: [sde] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[1478374.353460] sde: sde1
[1478374.353725] sd 5:0:0:1: [sde] Attached SCSI disk
[1478374.363233] sd 5:0:0:0: [sdd] Attached SCSI disk
[1478375.442736] FAT-fs (sde1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2024-12-02 13:41:26 +08:00
wangjianyu3
1cfaff011e
esp32s3-devkit/usbmsc: Initializing configuration for USBMSC
...
USBMSC - USB Mass Storage Class
Build
$ ./tools/configure.sh -l esp32s3-devkit:usbmsc
$ make flash ESPTOOL_PORT=/dev/ttyACMx
Runtime
# Device
nsh> mkrd -m 10 -s 512 640
nsh> msconn
# Host
$ sudo mkfs.ext4 /dev/sdx
$ sudo mount /dev/sdx ./mnt/
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2024-11-27 13:30:44 -03:00
wangjianyu3
ffa2209b4a
boards/xtensa/esp32s3: Add USB MSC support for esp32s3
...
Test
# Device:/dev/ram10 <----> Host:/dev/sde
# Device (NuttX)
nsh> mkrd -m 10 -s 512 640
nsh> msconn
nsh> ls -l /dev/ram10
brw-rw-rw- 327680 /dev/ram10
# Host (e.g /dev/sde)
$ sudo mkfs.ext4 /dev/sdx
$ sudo mount /dev/sdx /workspace/mnt
# Part of `df -h`
/dev/sdx 292K 24K 248K 9% /workspace/mnt
# dmesg (/dev/sdd, /dev/sde)
[1116587.199896] usb 1-10: new full-speed USB device number 122 using xhci_hcd
[1116587.369226] usb 1-10: New USB device found, idVendor=584e, idProduct=5342, bcdDevice= 3.99
[1116587.369231] usb 1-10: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[1116587.369232] usb 1-10: Product: Mass Storage
[1116587.369233] usb 1-10: Manufacturer: NuttX
[1116587.369234] usb 1-10: SerialNumber: 0101
[1116587.385275] usb-storage 1-10:1.0: USB Mass Storage device detected
[1116587.385526] scsi host5: usb-storage 1-10:1.0
[1116588.423335] scsi 5:0:0:0: Direct-Access NuttX Mass Storage 0101 PQ: 0 ANSI: 2
[1116588.423746] scsi 5:0:0:1: Direct-Access NuttX Mass Storage 0101 PQ: 0 ANSI: 2
[1116588.424001] sd 5:0:0:0: Attached scsi generic sg3 type 0
[1116588.424181] sd 5:0:0:1: Attached scsi generic sg4 type 0
[1116588.424305] sd 5:0:0:0: [sdd] Unsupported sector size 256.
[1116588.425336] sd 5:0:0:1: [sde] 640 512-byte logical blocks: (328 kB/320 KiB)
[1116588.638620] sd 5:0:0:1: [sde] Write Protect is off
[1116588.638624] sd 5:0:0:1: [sde] Mode Sense: 0f 00 00 00
[1116588.858793] sd 5:0:0:0: [sdd] 0 512-byte logical blocks: (0 B/0 B)
[1116588.858797] sd 5:0:0:0: [sdd] 256-byte physical blocks
[1116589.078698] sd 5:0:0:0: [sdd] Write Protect is off
[1116589.078702] sd 5:0:0:0: [sdd] Mode Sense: 0f 00 00 00
[1116589.298629] sd 5:0:0:0: [sdd] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[1116589.298903] sd 5:0:0:0: [sdd] Attached SCSI disk
[1116589.518626] sd 5:0:0:1: [sde] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[1116589.972872] sd 5:0:0:1: [sde] Attached SCSI disk
[1116644.299819] EXT4-fs (sde): mounted filesystem d4e18b90-b0c3-4a0f-8969-2493a41c5e02 r/w without journal. Quota mode: none.
Copy from boards/arm/rp2040/common/src/rp2040_usbmsc.c
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2024-11-27 13:30:44 -03:00
YAMAMOTO Takashi
925573da2a
esp32s3-devkit/toywasm: use littlefs 2.9.3
...
I chose this config because I have a hardware and I occasionally
use littlefs on its flash.
2024-11-27 02:56:52 +08:00
wangjianyu3
c2228c39ac
esp32s3-devkit/txtable: Initializing configuration for TXTABLE
...
USB ADB is enabled - Based on esp32s3-devkit/adb
Build
./tools/configure.sh -l esp32s3-devkit:txtable
make -j16
make flash ESPTOOL_PORT=/dev/ttyACMx
Test
$ adb -s 1234 shell
nsh> cat /etc/txtable.txt
TXTABLE0
data 0x100000 0
nsh> ls -l /dev/data
frw-rw-rw- 1044480 /dev/data
nsh>
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2024-11-27 02:45:44 +08:00
wangjianyu3
57595a7937
boards/xtensa/esp32s3: Add TXTABLE support for esp32s3
...
TXTABLE - Text based Partition Table
https://github.com/apache/nuttx/pull/9936
https://nuttx.apache.org/docs/latest/components/filesystem/partition.html#text-based-partition-table
Configuration
+ CONFIG_TXTABLE_PARTITION=y
The backup text partition table
+ CONFIG_TXTABLE_DEFAULT_PARTITION=1
nsh> cat /etc/txtable.txt
TXTABLE0
data 0x100000 0
Update txtable at runtime
dd if=/dev/zero of=/dev/txtable
cat /etc/txtable.txt > /dev/txtable
Runtime - Partition devices "data" and "txtable" were registered
# /dev/data - The partition descirbed by txtable
# /dev/txtable - Mapping to the last eraseblock of MTD
nsh> ls -l /dev/
/dev:
dr--r--r-- 0 adb0/
crw-rw-rw- 0 console
frw-rw-rw- 1044480 data
frw-rw-rw- 1048576 esp32s3flash
c-w--w--w- 0 log
crw-rw-rw- 0 null
crw-rw-rw- 0 ptmx
dr--r--r-- 0 pts/
brw-rw-rw- 1024 ram0
crw-rw-rw- 0 ttyS0
frw-rw-rw- 4096 txtable
crw-rw-rw- 0 zero
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2024-11-27 02:45:44 +08:00
wangjianyu3
5fabe091f3
boards/xtensa/esp32s3: Treat return value that greater than zero as succ
...
board_spiflash_init() => init_storage_partition() => parse_mtd_partition()
`parse_mtd_partition()` may return value that greater than zero when succ
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2024-11-26 16:33:26 +08:00
wangjianyu3
ccefe43149
esp32s3-devkit/adb: Enable ROMFS/etc for ADB auto start
...
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2024-11-22 13:28:44 -03:00
wangjianyu3
9e08bb2d25
esp32s3-devkit: Add initialize scripts for ROMFS/etc
...
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2024-11-22 13:28:44 -03:00
wangjianyu3
385de9d850
esp32s3-devkit/adb: Reusing configuration of usb_device
...
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2024-11-22 13:28:44 -03:00
wangjianyu3
9a63f9a881
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>
2024-11-22 13:28:44 -03:00
zhangyuan29
b524179572
xtensa/esp32: Remove duplicate board Make.defs
...
$(TOPDIR)/Make.defs was already include in common/Makefile.
Signed-off-by: zhangyuan29 <zhangyuan29@xiaomi.com>
2024-11-20 02:07:10 +08:00
Alin Jerpelea
4ef01d98d5
boards/xtensa/esp32s3: 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>
2024-11-12 22:20:59 +08:00
Alin Jerpelea
d6b299396d
boards/xtensa/esp32s2: 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>
2024-11-12 22:20:59 +08:00
Alin Jerpelea
84f2fe05c1
boards/xtensa/esp32: 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>
2024-11-12 22:20:59 +08:00
Eren Terzioglu
3f77e97b03
esp32[s2|s3]: Add SPI bitbang support
2024-11-06 19:47:42 +08:00
Xiang Xiao
c5381c3eb2
Replace __attribute__((packed)) with [begin|end]_packed_struct
...
since the different compiler express the packed structure in the different way
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2024-11-03 10:20:38 +08:00
Eren Terzioglu
3796f56748
esp32[s2|s3]: Add I2C bitbang support
2024-11-01 11:41:46 -03:00
Tiago Medicci Serrano
a63c807353
esp32s3: Increase the init task stask size when using NSH
...
After recent changes on nuttx-apps (not limited to, but related
to nuttx-apps#2738, for instance), the stack usage for the NSH
task increased, causing stack overflows under specific situations
(when running `ps` command, for instance). This commit increases
the init task stack size to avoid it. Please note that, even before
these changes, the stack usage of the NSH task was around 90% and,
then, increasing the stack size of it was recommended.
2024-10-25 00:53:21 +08:00
cuiziwei
7bf6325de6
Fix xtensa build error with choice LIBSUPCXX by default.
...
Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
2024-10-24 21:33:20 +08:00
Tiago Medicci Serrano
d1fd1ed8f6
boards/esp32s3: Merge MCUboot and "simple-boot" linker scripts
...
To make it easier to keep the linker scripts updated for both
MCUboot and "simple-boot", this commit merges them into a single
linker script with macros to enable/disable specific sections.
2024-10-23 22:26:39 +08:00
jihandong
444ba4caa4
libcxx: optional localization.
...
Signed-off-by: jihandong <jihandong@xiaomi.com>
Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
2024-10-19 14:34:38 +08:00
Marco Casaroli
22800d6ea2
fix(esp32-devkit): rename defconfig to use _
2024-10-13 11:19:51 +08:00
Marco Casaroli
027e5ab763
fix(esp32-qemu): enable legacy esp-idf build
...
The current simple boot method is not working with qemu.
We enable this option for now until we can make the simple-boot
image boot with QEMU.
2024-10-13 11:19:51 +08:00
Marco Casaroli
4741f6f561
feat(esp32s3-devkit): add qemu defconfig
2024-10-13 11:19:51 +08:00
Marco Casaroli
d2d653aebf
feat(esp32s3-devkit): initialize opencores eth mac
2024-10-13 11:19:51 +08:00
Marco Casaroli
890bdcd3d3
feat(esp32s3-devkit): add qemu image option
2024-10-13 11:19:51 +08:00
Marco Casaroli
d5b32f0335
feat(esp32_openeth): move to common/espressif
...
Since this will be used for esp32s3 also, we can have this in
common/espressif.
2024-10-13 11:19:51 +08:00
Eren Terzioglu
4060f6ba80
esp32[s2|s3]: Add UORB support for internal temperature sensor
2024-10-10 18:45:01 +08:00
anjiahao
9ed93c6b1e
unify MODULE & ELF flag to Toolchain.defs
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2024-10-08 19:56:33 +08:00