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
4b760fcea8
tools/cibuild.sh: Sync the installation between macOS and Ubuntu
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-12-11 22:41:25 +08:00
Xiang Xiao
b83f3e6ca7
workflow: Move ccache setting from build.yml to cibuild.sh
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-12-11 22:41:25 +08:00
Xiang Xiao
98412b9e97
tools/cibuild.sh: Move the installation directory from prebuilt to tools
...
sync with tools/ci/docker/linux/Dockerfile
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-12-11 22:41:25 +08:00
Xiang Xiao
4026f47b3b
ci: Exclude litex/arty_a7 from tools/ci/testlist/risc-v.dat
...
to workaround the new toolchain generate the wrong path for
--print-libgcc-file-name and --print-file-name=libm.a:
https://static.dev.sifive.com/dev-tools/freedom-tools/v2020.12/riscv64-unknown-elf-toolchain-10.2.0-2020.12.8-x86_64-linux-ubuntu14.tar.gz
please reference here for more info:
https://github.com/apache/nuttx/pull/7835
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
Xu Xingliang
252c6a1844
libc/netdb: add proto.c
...
Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>
2022-12-10 02:36:24 +08:00
yinshengkai
026c8eede0
drivers/note: unify spinlock related functions
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2022-12-10 02:30:24 +08: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
Peter Bee
77504aa1b5
drivers/video: minor fix
...
Fix missing header for bool in imgsensor.h and FAR in video.c
Signed-off-by: Peter Bee <bijunda1@xiaomi.com>
2022-12-09 23:37:49 +08:00
yinshengkai
09814831b8
sched: move sched_note.c to drivers/note
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2022-12-09 23:36:11 +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
Ville Juven
864bcf556e
sched/nx_bringup: Set the initial stack size in kernel build as well
...
After #7364 this now works, so use it for the init process. It makes sense
as the init process typically requires a big stack (due to init scripts).
2022-12-09 22:15:48 +08:00
dependabot[bot]
512be93c36
build(deps): bump certifi from 2022.9.24 to 2022.12.7 in /Documentation
...
Bumps [certifi](https://github.com/certifi/python-certifi ) from 2022.9.24 to 2022.12.7.
- [Release notes](https://github.com/certifi/python-certifi/releases )
- [Commits](https://github.com/certifi/python-certifi/compare/2022.09.24...2022.12.07 )
---
updated-dependencies:
- dependency-name: certifi
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-12-09 14:23:54 +08:00
Gustavo Henrique Nihei
6576be99e1
ci: Fix save and restore in GitHub cache action for MacOS build
...
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2022-12-09 14:18:50 +08:00
Zhe Weng
2f3e237380
net/ipfwd: limit number of ipforward struct to be less than number of IOB
...
If ipforward consumes all the IOB, devif_poll will not poll any more. Without polling, ipforward will not release any IOB, then all the network stack may fail with no IOB available.
Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2022-12-09 11:20:16 +08:00
tangyusong1
f454dfccb2
Adjust ioctl function of cellular
...
Add SIOCGCELLNETDEV
Give a uint8_t[136] for cellular to save data
Signed-off-by: tangyusong1 <tangyusong1@xiaomi.com>
2022-12-09 11:19:55 +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
zhangyuan21
ffd2eb5b14
arch/arm: only compare callee-saved registers for fpu
...
Registers S0-S15 (D0-D7, Q0-Q3) do not need to be preserved. They can be used for passing
arguments or returning results in standard procedure-call variants.
Registers D16-D31 (Q8-Q15), do not need to be preserved.
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2022-12-09 11:00:38 +08:00
Gustavo Henrique Nihei
6711b37662
tools/ci: Update RISC-V toolchain in Dockerfile to latest version
...
The #6094 updated the toolchain, but only in the script used by MacOS
CI runners.
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2022-12-08 17:13:41 -03:00
Alan Carvalho de Assis
fbdd246878
esp32: Fix maximum I2C FIFO size (now SSD1306 will work)
2022-12-09 02:23:28 +08:00
wangbowen6
27ea9f7625
arm/Kconfig: add cortex-m85 config
...
Signed-off-by: wangbowen6 <wangbowen6@xiaomi.com>
2022-12-09 01:53:10 +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
Peter van der Perk
f72f7ebee0
Sysview add prefix kconfig to add an option to decouple sched_note calls
2022-12-08 17:49:55 +01:00
zhangyuan21
d2c52db68e
usb/ft232r: fixed build issue
...
1. fixed build issue;
2. make sure the read data length must greater than or equal to 2;
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2022-12-08 22:49:26 +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
tangyusong1
1c7a9d282c
Add mtu set and interface name set in ioctl
...
Follow LinuxOS:linux-5.10.152\include\uapi\linux\sockios.h
Add SIOCSIFMTU and SIOCSIFNAME
Signed-off-by: tangyusong1 <tangyusong1@xiaomi.com>
2022-12-08 13:58:26 +01:00
Xiang Xiao
fdc1aa6ae3
openamp: don't depend on pen-amp.zip and libmetal.zip in the git mode
...
since both don't exist in this mode
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-12-08 09:54:00 +01:00
chao an
11de08de27
net/devif_send: replace all block send to nonblock mode
...
Signed-off-by: chao an <anchao@xiaomi.com>
2022-12-08 09:53:15 +01:00
wangbowen6
c44f87eb1a
arm: add syscall SYS_save_context support for old arm and armv7-r
...
Signed-off-by: wangbowen6 <wangbowen6@xiaomi.com>
2022-12-08 12:37:29 +08:00
TimJTi
18482efc39
SAMA5D2 fix printf formatter
...
Update sam_adc.c
Update sam_adc.c
%08x -> PRIx32
More %08x
Revert incorrect change (PRIx32)
Update sam_tc.c
Update sam_tc.c
more style corrections/typos
Update arch/arm/src/sama5/sam_adc.c
Co-authored-by: Xiang Xiao <xiaoxiang781216@gmail.com>
2022-12-07 21:33:17 +01:00
chao an
6950b67b46
net/can: device buffer must be clear after enqueue to readahead
...
Signed-off-by: chao an <anchao@xiaomi.com>
2022-12-08 03:16:42 +08:00
chao an
fc1b71b9a6
net/can: add support of iob input
...
Signed-off-by: chao an <anchao@xiaomi.com>
2022-12-08 03:16:42 +08:00
chao an
d295b4e1f1
net/devif: Use the device ll header length to calculate send limit
...
Signed-off-by: chao an <anchao@xiaomi.com>
2022-12-08 03:16:42 +08:00
chao an
960b4bb2a7
net/devif: initialize d_len to 0 before polling connections
...
Signed-off-by: chao an <anchao@xiaomi.com>
2022-12-08 03:16:42 +08:00
Marco Casaroli
7ee8d38fda
Remove `intr` param from `pthread_mutex_take`
2022-12-08 03:13:44 +08:00
Marco Casaroli
4cc7f3747c
Remove `intr` param from `pthread_sem_take`
2022-12-08 03:13:44 +08:00
chao an
e2b00a9fcc
mm/iob: reserved bytes should be updated after each iteration
...
Signed-off-by: chao an <anchao@xiaomi.com>
2022-12-07 21:24:25 +08:00
zouboan
756e2419c1
boards/pinephone: add support of reboot command
2022-12-07 21:17:39 +08:00
zouboan
753f46dffe
arch/arm64: add support of systemreset
2022-12-07 21:17:39 +08:00
Marco Casaroli
11cc232de5
`pthread_mutex_timedlock` never returns `EINTR`
...
According to posix spec, this function should never return `EINTR`.
This fixes the call to `pthread_mutex_take` so it keeps retrying the
lock and doesn't return `EINTR`
2022-12-07 21:08:23 +08:00
chao an
af149b44cd
risc-v/backtrace: fix compile warning
...
common/riscv_backtrace.c: In function 'up_backtrace':
common/riscv_backtrace.c:145:27: error: passing argument 1 of 'backtrace' from incompatible pointer type [-Werror=incompatible-pointer-types]
145 | ret = backtrace(g_intstackalloc,
| ^~~~~~~~~~~~~~~
| |
| uint8_t * {aka unsigned char *}
common/riscv_backtrace.c:64:33: note: expected 'uintptr_t *' {aka 'unsigned int *'} but argument is of type 'uint8_t *' {aka 'unsigned char *'}
64 | static int backtrace(uintptr_t *base, uintptr_t *limit,
| ~~~~~~~~~~~^~~~
common/riscv_backtrace.c:146:43: error: passing argument 2 of 'backtrace' from incompatible pointer type [-Werror=incompatible-pointer-types]
146 | g_intstackalloc + CONFIG_ARCH_INTERRUPTSTACK,
| ^
| |
| uint8_t * {aka unsigned char *}
common/riscv_backtrace.c:64:50: note: expected 'uintptr_t *' {aka 'unsigned int *'} but argument is of type 'uint8_t *' {aka 'unsigned char *'}
64 | static int backtrace(uintptr_t *base, uintptr_t *limit,
| ~~~~~~~~~~~^~~~~
Regression by:
| commit 70290b6e38
| Author: Xiang Xiao <xiaoxiang@xiaomi.com>
| Date: Tue Sep 20 02:38:54 2022 +0800
|
| arch: Change the linker generated symbols from uint32_t to uint8_t *
|
| and remove the duplicated declaration
|
| Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Signed-off-by: chao an <anchao@xiaomi.com>
2022-12-07 19:13:09 +08:00