Commit Graph

7530 Commits

Author SHA1 Message Date
Huang Qi
2e5a269e7f testing: Add simple debug test program
It is a simple test case of the NuttX debugging facilities (breakpoint and watchpoint).

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2024-06-26 00:19:26 +08:00
Yanfeng Liu
832cd28e52 testing/ostest: fpu.c for rv64ilp32
This revises fpu.c to support rv64ilp32

Signed-off-by: Yanfeng Liu <yfliu2008@qq.com>
2024-06-24 22:03:58 +08:00
Yanfeng Liu
2a2c5a420e system/telnetd: add CMake script
This adds CMake support for the `telnetd` command

Signed-off-by: Yanfeng Liu <yfliu2008@qq.com>
2024-06-24 22:03:43 +08:00
buxiasen
cda5140c4d pm_rumtime: test shorten time, make compatible with SMP.
Signed-off-by: buxiasen <buxiasen@xiaomi.com>
2024-06-21 10:20:11 +08:00
Zhe Weng
f620353507 system/iptables: Support ip6tables & filter table
Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2024-06-21 10:16:01 +08:00
Zhe Weng
3022f836dc netlib/ip6tables: Add functions for ip6tables & filter table
Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2024-06-21 10:16:01 +08:00
Zhe Weng
8ae06462eb system/iptables: Support filter table
Add supports for filter table, usage is same as Linux's iptables, including:
- [!] -p/--protocol
- [!] -s/--source -d/--destination
- [!] -i/--in-interface -o/--out-interface
- [!] --sport/--source-port --dport/--destination-port
- [!] --icmp-type

Examples:
> iptables -P FORWARD DROP
> iptables -I INPUT -i eth0 ! -p icmp -j DROP
> iptables -t filter -A FORWARD -p tcp -s 10.0.1.2/24 -d 10.0.3.4/24 -i eth0 -o eth1 --sport 3000:3200 --dport 123:65535 -j ACCEPT
> iptables -t filter -I FORWARD 2 -p icmp ! -s 123.123.123.123 ! -i eth0 -o eth1 ! --icmp-type 255 -j REJECT

> iptables -L
Chain INPUT (policy ACCEPT)
target        prot  idev  odev  source              destination
DROP         !icmp  eth0  any   anywhere            anywhere

Chain FORWARD (policy DROP)
target        prot  idev  odev  source              destination
ACCEPT        tcp   eth0  eth1  10.0.1.2/24         10.0.3.4/24        tcp spts:3000:3200 dpts:123:65535
REJECT        icmp !eth0  eth1 !123.123.123.123/32  anywhere           icmp !type 255

Chain OUTPUT (policy ACCEPT)
target        prot  idev  odev  source              destination

Note:
- We're dropping dependency of argtable3, since it is difficult to support command like '! -p tcp ! -i eth0'

Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2024-06-21 10:16:01 +08:00
Zhe Weng
4283e57013 netlib/iptables: Add functions for filter table
Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2024-06-21 10:16:01 +08:00
Zhe Weng
9fcde632a7 netlib/iptables: Change matching to memcmp all related structs
Compare both the struct ipt_ip, the match and the target, to support
more entry types other than NAT entry.

Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2024-06-21 10:16:01 +08:00
raiden00pl
bc68d954ad nimble: update to the latest master 2024-06-20 12:42:41 +08:00
YAMAMOTO Takashi
72150f5035 toywasm: regen
```
REF=b43dd5312988a6dbc2b165c5956697d7f1d16000 ./regen.sh
```
2024-06-19 13:22:04 +08:00
YAMAMOTO Takashi
1b48e80955 toywasm: bump to v48.0.0 2024-06-19 13:22:04 +08:00
raiden00pl
00f9894778 benchmark: update gitignore for superpi and dhrystone
ignore downloaded files for superpi and dhrystone
2024-06-12 23:24:29 +08:00
YAMAMOTO Takashi
364f8cd411 toywasm: regen
```
REF=7c60b048825b821a9398529d3af55514a62a3b7c ./regen.sh
```
2024-06-10 14:26:53 +08:00
YAMAMOTO Takashi
9ce5ebb611 toywasm: Bump to v46.0.0 2024-06-10 14:26:53 +08:00
Matheus Catarino
6db9d5e582 dlang-app added 2024-06-07 03:27:41 +08:00
raiden00pl
b32cf5f0b7 libcurl4nx: fix compilation 2024-06-06 03:21:19 +08:00
raiden00pl
c644ef477b cmake: add missing netlib_set_ipv4dnsaddr.c file 2024-06-06 03:21:19 +08:00
raiden00pl
920bd8fed8 industrial/foc: add dependences to Kconfig 2024-06-06 03:21:19 +08:00
raiden00pl
e9991bc8ec foc_feedforward.c: fix compilation 2024-06-06 03:21:19 +08:00
Tiago Medicci Serrano
3086dcbcf0 Revert "Add loading of ET_DYN shared object test to sotest"
This reverts commit 72eaed8fdd.
2024-05-30 19:13:28 -03:00
Neale Ferguson
72eaed8fdd Add loading of ET_DYN shared object test to sotest
* examples/sotest/lib/Makefile
  - Add dynload directory to build

* examples/sotest/lib/dynload/Makefile
  - Build the dynload shared object test
  - Use SHMODULEFLAGS and not SHLDFLAGS

* examples/sotest/lib/dynload/dynload.c
  - Test case for loading of ET_DYN shared objects

* examples/sotest/lib/dynload/.gitignore
  - Exclude built object from git

* examples/sotest/sotest_main.c
  - Load and invoke the dynload test
2024-05-29 19:17:15 -03:00
Xiang Xiao
2d4233c825 examples/usrsocktest: Fix error: variable 'ret' set but not used
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2024-05-27 10:30:19 -03:00
YAMAMOTO Takashi
90a745b520 toywasm: regen for v45.0.0
```
REF=9f77f3519f84e9bb0074d855a04d731a5f56ce84 ./regen.sh
```
2024-05-26 00:41:12 +08:00
YAMAMOTO Takashi
edb8138e04 toywasm: enable TOYWASM_ENABLE_WASM_CUSTOM_PAGE_SIZES 2024-05-26 00:41:12 +08:00
YAMAMOTO Takashi
dd03701494 toywasm: bump to v45.0.0 2024-05-26 00:41:12 +08:00
dongjiuzhu1
ee76427938 testing/ostest: temporary remove vfork test on arch/sim
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2024-05-24 15:41:32 +08:00
Xiang Xiao
f228ee1e4f Fix Error: usrsocktest_basic_connect.c:112:7: error: variable 'ret' set but not used
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2024-05-23 11:53:26 +08:00
raiden00pl
72635a88ca system: add sensor streaming tool based on nxscope
This tool allows you to send sensor data via the nxscope interface.
Useful when we test sensors or when we just need a tool to visualize
data from sensors.

Works only with the new sensor framework.
2024-05-23 11:50:08 +08:00
raiden00pl
e3110d3ea7 examples/nxscope: add static to private functions 2024-05-23 11:50:08 +08:00
Tiago Medicci Serrano
a09521ed55 system/nxdiag: Remove unnecessary --depth parameter
This commits removes the unnecesary `--depth` parameter: Espressif
common headers do not require it.
2024-05-23 11:49:08 +08:00
hujun5
a9bd4dbe01 Fix compiler errors
taskset.c: In function 'taskset_main':
Error: taskset.c:141:48: error: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'cpu_set_t' {aka 'long unsigned int'} [-Werror=format=]
  141 |       printf("pid %d's current affinity mask: %x\n", pid, cpuset);
      |                                               ~^          ~~~~~~
      |                                                |          |
      |                                                |          cpu_set_t {aka long unsigned int}
      |                                                unsigned int
      |                                               %lx
cc1: all warnings being treated as errors
make[2]: *** [/github/workspace/sources/apps/Application.mk:271: taskset.c.github.workspace.sources.apps.system.taskset.o] Error 1
make[2]: Target 'all' not remade because of errors.
make[1]: *** [Makefile:51: /github/workspace/sources/apps/system/taskset_all] Error 2
make[1]: Target 'all' not remade because of errors.
make: *** [tools/LibTargets.mk:232: /github/workspace/sources/apps/libapps.a] Error 2
make: Target 'all' not remade because of errors.
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2024-05-22 19:09:22 +08:00
Stuart Ianna
8b8094ea35 benchmarks/ramspeed: Don't expose interrupt control with kernel
configuration.

enter_critical_section and leave_critical_section aren't reliable
interfaces to expose in usermode, as they aren't available if
CONFIG_IRQCOUNT is enabled.
2024-05-21 09:05:57 +08:00
Xiang Xiao
ca310eb295 Fix Error: logcat_service.c:69:11: error: variable 'ret' set but not used
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2024-05-21 08:54:56 +08:00
YAMAMOTO Takashi
a9ab5ec8a6 wamr: rename a few recently-added nuttx options
from:
ARCH_TEXT_HEAP_SEPARATE_DATA_ADDRESS
ARCH_TEXT_HEAP_WORD_ALIGNED_READ

to:
ARCH_HAVE_TEXT_HEAP_SEPARATE_DATA_ADDRESS
ARCH_HAVE_TEXT_HEAP_WORD_ALIGNED_READ
2024-05-21 08:52:46 +08:00
buxiasen
b9a7353a43 add include to handle when PM_NDOMAINS from pm.h
Signed-off-by: buxiasen <buxiasen@xiaomi.com>
2024-05-18 22:08:14 +08:00
Stuart Ianna
cb7dd37f78 system/spi: Set SPI delay characteristics to zero when enabled.
Previously, when delay control was enabled, spi_transfer would pass junk
values down to the underlying driver because these values where not
initialized.

Setting them to zero provides a predictable result considering they are
not controlled by this tool.
2024-05-17 19:01:20 +08:00
yinshengkai
13cc85c055 toywasm: ignore compile warnings
Will cause compilation warning if NDEBUG is defined We can't modify the code of the external library, so let's ignore it

Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2024-05-17 13:41:31 +09:00
SPRESENSE
2ce6be617b testing/ostest: Fix config name
CONFIG_ARCH_HAVE_VFORK -> CONFIG_ARCH_HAVE_FORK
2024-05-16 10:49:22 -03:00
Xiang Xiao
af1071ba5f Revert "system/adb: Ignore warnings for using variables"
This reverts commit d372099242
since the mainline already fix this problem
2024-05-16 10:48:45 -03:00
Xiang Xiao
b00041a9b0 system/adb: Always download the last microADB from github
to get the update automatically

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2024-05-16 10:48:45 -03:00
YAMAMOTO Takashi
bc68ce993b wamr: tweak the defaults according to the new ARCH kconfig options 2024-05-15 18:41:43 -03:00
simbit18
d0e030ff00 fix nxstyle
fix Relative file path does not match actual file.
2024-05-15 23:53:05 +08:00
YAMAMOTO Takashi
385e2f0904 wamr: remove esp32s3 dependencies from a few options
While they are esp32s3 specific right now,
we can make them more generic later.
2024-05-14 22:07:45 +08:00
YAMAMOTO Takashi
f50fbe78aa wamr: Add a few options for esp32s3
The corresponding WAMR change:
https://github.com/bytecodealliance/wasm-micro-runtime/pull/2348
2024-05-14 22:07:45 +08:00
yinshengkai
aaa835340a mcuboot: Ignore mcuboot compile warnings
Will cause compilation warning if NDEBUG is defined We can't modify the code of the external library, so let's ignore it

Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2024-05-14 22:07:09 +08:00
meijian
8d1bb4cfe8 [app][netlink_route] fix get route netlink bugs
Signed-off-by: meijian <meijian@xiaomi.com>
2024-05-14 22:06:47 +08:00
YAMAMOTO Takashi
02f88fbcaa wamr: flip the default of INTERPRETERS_WAMR_DISABLE_HW_BOUND_CHECK
Also, add a help text to explain the current situation.

cf. https://github.com/bytecodealliance/wasm-micro-runtime/pull/3419
2024-05-14 18:02:44 +08:00
YAMAMOTO Takashi
41f891f9ba toywasm: bump to v44 2024-05-14 00:36:11 +08:00
YAMAMOTO Takashi
649a863d4d toywasm: regen for v44
```
REF=76b9d7088ab321e329b6f958360fb05cebd3df9f ./regen.sh
```
2024-05-14 00:36:11 +08:00