zhangyuan21
632d87ee71
arch: remove up_release_pending function
...
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2022-12-16 21:29:57 +08:00
Masayuki Ishikawa
548c417858
boards: sabre-6quad: Improve iperf performance
...
Summary:
- This commit improves iperf performance
- Also, adjusts CONFIG_IDLETHREAD_STACKSIZE
Impact:
- None
Testing:
- Tested with QEMU-7.1
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2022-12-16 09:49:11 -03:00
Masayuki Ishikawa
492fa5ba19
boards: qemu-armv8a: Enable the ping command for netnsh and netnsh_smp
...
Summary:
- This commit enables the ping command for netnsh and netnsh_smp
Impact:
- None
Testing:
- Tested with QEMU-7.1
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2022-12-15 17:07:06 +08:00
Gustavo Henrique Nihei
b6d9d4e92f
xtensa/esp32: Fix PSRAM support when Stack Smash protection is enabled
...
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2022-12-15 09:34:15 +08:00
Almir Okato
8f3c425067
xtensa/esp32s3: Enable booting from MCUboot bootloader
...
Add support for booting from MCUboot bootloader on ESP32-S3.
Signed-off-by: Almir Okato <almir.okato@espressif.com>
2022-12-15 00:42:13 +08:00
Lucas Saavedra Vaz
893b1477ea
boards/esp32-lyrat: Add initial touch pad configuration
2022-12-14 22:38:10 +08:00
Peter Bee
80fa70da4e
boards/sim: Add nxcamera config
...
Config which enables nxcamera app and video framework.
Exclude from CI macOS test because macOS does not have V4L2.
(Maybe consider adding it back after porting with avfoundation)
Signed-off-by: Peter Bee <bijunda1@xiaomi.com>
2022-12-14 21:20:27 +08:00
Gustavo Henrique Nihei
ffa6004b5a
boards/esp32-devkitc: Disable FPU test for knsh defconfig
...
FPU test is not supported under Protected Mode.
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2022-12-14 09:30:51 +09:00
anjiahao
bc0fe0ea16
crypto:add some hardware support
...
esp32c3: aes hmac-sha1 hmac-sha256
stm32f0l0g0 stm32l1 : aes
sam34: aes
lpc43: aes
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2022-12-14 02:33:56 +08:00
anjiahao
3d2f0c0e27
crypto:support nuttx /dev/crypto
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2022-12-14 02:33:56 +08:00
Xu Xingliang
57190efe84
sim/lua: enable luv module by default
...
Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>
2022-12-13 20:51:47 +08:00
Peter van der Perk
6b3b5751c1
S32K automatically calculate size of periphclocks array
2022-12-13 19:50:01 +08:00
Masayuki Ishikawa
f4c349963a
boards: rv-virt: Improve iperf speed for virtio-mmio-net
...
Summary:
- This commit improves iperf speed for virtio-mmio-net
Impact:
- None
Testing:
- Tested with QEMU-7.1
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2022-12-13 13:21:35 +08:00
chao an
4d52618128
qemu-armv8a/netnsh: Set iob buffer size to 1514 to improve performance
...
Signed-off-by: chao an <anchao@xiaomi.com>
2022-12-12 16:56:11 +09:00
Xiang Xiao
4a84555d1c
arduino-mega2560/nsh: Remove CONFIG_INTELHEX_BINARY
...
to avoid "avr-objcopy: Bad CPU type in executable" on macOS
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-12-11 22:41:25 +08:00
Xiang Xiao
2bc780f062
risc-v/esp32c3: Move .gitignore from common/src to common
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-12-11 22:41:25 +08:00
chao an
61563d6004
risc-v/es32c3: improve passthrough performance by iob offload
...
Use iob offload model to improve passthrough performance
1. Use iob buffer instead of reserved packet buffer
2. Enable TCP/UDP buffer mode
-------------------------------------------------
| Protocol | Server | Client | |
|-----------------------------------------------|
| TCP | 7 | 12 | Mbits/sec |
| TCP(Offload) | 17 | 11 | Mbits/sec |
| UDP | 10 | 16 | Mbits/sec |
| UDP(Offload) | 43 | 28 | Mbits/sec |
-------------------------------------------------
Signed-off-by: chao an <anchao@xiaomi.com>
2022-12-11 16:19:20 +08:00
Xiang Xiao
563f5f4fa4
Fix Error: board/esp32c3_bringup.c:150:9: error: implicit declaration of function 'board_apds9960_initialize'
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-12-09 21:10:40 +01:00
Peter Bee
a5a1a68a25
arch/sim: add v4l2 driver for sim
...
communicate with Linux host v4l2 drivers
Signed-off-by: Peter Bee <bijunda1@xiaomi.com>
2022-12-09 23:37:49 +08:00
Gustavo Henrique Nihei
4ba7ef51c5
risc-v/esp32c3: Add ROMFS files into .gitignore
...
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2022-12-09 23:35:08 +08:00
Gustavo Henrique Nihei
1ced1e9f35
risc-v/esp32c3: Move files shared between boards into a common folder
...
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2022-12-09 11:19:27 +08:00
Gustavo Henrique Nihei
9af5dca7dc
risc-v/esp32c3: Refactor and rename linker scripts
...
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2022-12-09 11:19:27 +08:00
chao an
ee72f920a3
esp32c3/nsh: enable dumpstack/backtrace
...
Dump task stack:
| nsh> ps
| PID GROUP PRI POLICY TYPE NPX STATE EVENT SIGMASK STACK COMMAND
| 0 0 0 FIFO Kthread N-- Ready 00000000 002016 Idle Task
| 1 1 100 RR Task --- Running 00000000 001984 nsh_main
| nsh> dumpstack 0 100
| backtrace| 0: 0x4200764a 0x3fc82d60 0x420000b2 0x42000044
| backtrace| 1: 0x42007e98 0x420036b4 0x4201043c 0x42010450 0x4200cab0 0x42008fec 0x42009294 0x42008454
| backtrace| 1: 0x42007fbe 0x42007f54 0x42006200 0x4200432c
| backtrace| 2: 0x42013ec0 0x420119bc 0x42013abc 0x42006200 0x4200432c
address to line:
| $ riscv64-unknown-elf-addr2line -e nuttx 0x42007e98 0x420036b4 0x4201043c 0x42010450 0x4200cab0 0x42008fec 0x42009294 0x42008454
| nuttx/include/arch/syscall.h:238
| nuttx/sched/semaphore/sem_wait.c:201
| nuttx/sched/sched/sched_waitpid.c:127
| nuttx/sched/sched/sched_waitpid.c:597
| apps/nshlib/nsh_builtin.c:160
| apps/nshlib/nsh_parse.c:543
| apps/nshlib/nsh_parse.c:2736
| apps/nshlib/nsh_session.c:234
Signed-off-by: chao an <anchao@xiaomi.com>
2022-12-09 01:49:48 +08:00
Ville Juven
10ef3900b2
risc-v/qemu-rv: Mark the page table section as NOLOAD
...
Otherwise the linker will allocate an output section for it, which actually
uses kernel ROM memory for nothing
2022-12-08 21:56:03 +08:00
Ville Juven
9b0e1659ea
risc-v/mpfs: Mark the page table section as NOLOAD
...
Otherwise the linker will allocate an output section for it, which actually
uses kernel ROM memory for nothing
2022-12-08 21:56:03 +08:00
Gustavo Henrique Nihei
ca16e9bbd5
xtensa/esp32s3: Simplify board linker script selection
...
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2022-12-08 21:55:29 +08:00
Gustavo Henrique Nihei
afd95058c0
xtensa/esp32s2: Rename linker scripts into more meaningful names
...
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2022-12-08 21:55:29 +08:00
Gustavo Henrique Nihei
f78c6432d8
xtensa/esp32: Simplify board linker script selection
...
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2022-12-08 21:55:29 +08:00
Gustavo Henrique Nihei
236ee5c80d
xtensa/esp32: Rename linker scripts into more meaningful names
...
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2022-12-08 21:55:29 +08:00
zouboan
756e2419c1
boards/pinephone: add support of reboot command
2022-12-07 21:17:39 +08:00
Gustavo Henrique Nihei
1ecaa4e672
xtensa/esp32s3: Configure the PMS peripheral for Protected Mode
...
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2022-12-07 03:07:45 +08:00
Gustavo Henrique Nihei
bfc40c74d0
xtensa/esp32s3: Add support for Protected Mode
...
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2022-12-07 03:07:45 +08:00
Xiang Xiao
ee93e6ea0d
boards/sim: Decouple CONFIG_MM_UBSAN_ALL from CONFIG_MM_UBSAN_ALL
...
like other arch(e.g. arch/arm/src/common/Toolchain.defs)
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-12-06 19:01:25 +08:00
Lee Lup Yuen
c2d75c930b
arm64/a64: Add drivers for PIO and LEDs
...
This PR adds the drivers for Allwinner A64 PIO (Programmable I/O) and PinePhone LEDs (Red / Green / Blue).
The PIO Driver is based on the NuttX PIO Driver for Allwinner A10: [`arch/arm/src/a1x/a1x_pio.c`](https://github.com/apache/nuttx/blob/master/arch/arm/src/a1x/a1x_pio.c )
- `arch/arm64/src/a64/Make.defs`: Add PIO Driver to Makefile
- `boards/Kconfig`: Add `ARCH_HAVE_LEDS` to PinePhone
- `boards/arm64/a64/pinephone/src/pinephone.h`: Define PinePhone LEDs
- `boards/arm64/a64/pinephone/src/pinephone_boardinit.c`: Start Auto LEDs
- `boards/arm64/a64/pinephone/src/pinephone_bringup.c`: Start User LEDs
- `boards/arm64/a64/pinephone/src/Makefile`: Add LED Driver to Makefile
- `boards/arm64/a64/pinephone/configs/nsh/defconfig`: Add `CONFIG_USERLED` to `nsh` config
- `arch/arm64/src/a64/a64_pio.c`, `a64_pio.h`: Allwinner A64 PIO Driver
- `arch/arm64/src/a64/hardware/a64_memorymap.h`: PIO Memory Map
- `arch/arm64/src/a64/hardware/a64_pio.h`: PIO Definitions
- `boards/arm64/a64/pinephone/include/board.h`: Define PinePhone LEDs
- `boards/arm64/a64/pinephone/src/pinephone_autoleds.c`: Driver for Auto LEDs
- `boards/arm64/a64/pinephone/src/pinephone_userleds.c`: Driver for User LEDs
- `introduction/supported_platforms.rst`: Add Allwinner A64 as Supported Platform
- `platforms/arm/a64/boards/pinephone/index.rst`: Add PIO and LEDs to PinePhone
2022-12-06 18:14:39 +08:00
chao an
813dfe9756
spresense/rndis: set default throttle entries to 24 (2*MTU)
...
Reserve more throttle entries to avoid data discarded in NIC
Signed-off-by: chao an <anchao@xiaomi.com>
2022-12-06 16:59:02 +09:00
Xiang Xiao
1f25da1366
boards: Remove the unused function prototype(slcd_getstream)
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-12-06 01:55:58 +08:00
Xiang Xiao
b526e06de1
drivers/lcd: Reuse lib_meminstream_s as much as possible
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-12-05 14:27:55 +01:00
Xiang Xiao
055f1f33eb
libc/stream: Rename [lib_stream_](put|get) to [lib_stream_](putc|getc)
...
to make the naming style consistent with each other
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-12-05 14:27:55 +01:00
okayserh
0dafa5f921
Added initial USB support for stm32f746g discovery.
2022-12-03 20:06:47 +08:00
qiaohaijiao1
e6ec6e1a94
sim/alsa: enable CONFIG_SIM_M32 config
...
Signed-off-by: qiaohaijiao1 <qiaohaijiao1@xiaomi.com>
2022-12-02 22:55:38 +08:00
YAMAMOTO Takashi
fc4493b7f1
esp32-devkitc/wamr_wasi_debug: enable native-lib stuff
...
* enable DLFCN.
* bump WAMR to a version which i happened to test.
* enable bulk-memory because it's required by recent versions of
wasi-sdk, which i happened to use to build a test module.
(test.wasm in the log below.)
Lightly tested with a stripped down version of WAMR native-lib example. [1]
```
nsh> mount -t littlefs /dev/esp32flash /mnt
nsh> iwasm --native-lib=/mnt/test_add.o /mnt/test.wasm
Hello World!
10 + 20 = 30
nsh> iwasm /mnt/test.wasm
[00:00:23:000 - 6]: warning: failed to link import function (env, test_add)
Hello World!
Exception: failed to call unlinked import function (env, test_add)
nsh>
```
[1] https://github.com/bytecodealliance/wasm-micro-runtime/tree/main/samples/native-lib
2022-12-02 13:47:20 +08:00
YAMAMOTO Takashi
a43af6563b
esp32-devkitc:wamr_wasi_debug kconfig maintainance
...
* disable too verbose wamr options.
* enable CONFIG_SCHED_WAITPID. because async execution on nsh prompt
sometimes confuses me.
* enable toywasm. it's sometimes convenient to have another interpreter.
note: wasm3 in nuttx apps doesn't have wasi enabled.
2022-12-01 23:28:33 +08:00
Peter van der Perk
ec5030ebe6
S32K3XX RAM fixes MPU Dcache ECC
2022-12-01 08:00:32 -05:00
Masayuki Ishikawa
3377aa23ca
boards: qemu-armv8a: Add virtio-net to netnsh/netnsh_smp
...
Summary:
- This commit adds virtio-net to netnsh/netnsh_smp
Impact:
- None
Testing:
- Tested iperf and telnetd with QEMU-7.1
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2022-11-29 13:16:44 +08:00
Masayuki Ishikawa
5c8d9c928a
boards: rv-virt: Add virtio-net to netnsh/netnsh_smp/netnsh64
...
Summary:
- This commit add virtio-net to netnsh/netnsh_smp/netnsh64
Impact:
- None
Testing:
- Tested iperf and telnetd with QEMU-7.1
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2022-11-29 13:16:44 +08:00
Lucas Saavedra Vaz
a926445995
boards: Fix buttons GPIO IRQ on ESP boards
2022-11-28 17:24:57 -03:00
Lucas Saavedra Vaz
cd5e536c40
boards/esp32-lyrat: Add buttons example
2022-11-28 17:24:57 -03:00
Masayuki Ishikawa
5215eb7e0f
boards: cxd56xx: Fix the build error in cxd56_crashdump.c
...
Summary:
- This commit fixes the build error in cxd56_crashdump.c
regressed by https://github.com/apache/nuttx/pull/7707
Impact:
- None
Tesing:
- Tested with spresense:wifi
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2022-11-28 08:18:47 +01:00
Xiang Xiao
fd268d7123
drivers/segger: Add STREAM_RTT option
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-11-27 23:10:39 +01:00
Xiang Xiao
6d30726a1b
Remove the unnecessary "return;" at the end of function
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-11-27 22:23:50 +01:00