Commit Graph

7265 Commits

Author SHA1 Message Date
raiden00pl
3c541c496b examples/foc: allow sensored velocity mode 2023-11-13 08:47:21 -08:00
zhangchao53
ac64c7d144 add short command-line arguments and record execution time 2023-11-11 11:23:04 +08:00
Ville Juven
f32b4c7f9c examples/thttpd: Remove TCB_FLAG_CANCEL stuff
The flags are removed from kernel side
2023-11-11 11:22:24 +08:00
Huang Qi
07bbbd541c testing: Fix cmocka_driver_block give more than once
Fix:
```
/home/huang/Work/vela/sifli/apps/Application.mk:273: target 'drivertest_block.c.home.huang.Work.vela.sifli.apps.testing.drivertest.o' given more than once in the same rule
/home/huang/Work/vela/sifli/apps/Application.mk:297: target '/home/huang/Work/vela/sifli/apps/builtin/registry/cmocka_driver_block.bdat' given more than once in the same rule
CC:  romfs_main.c /home/huang/Work/vela/sifli/apps/Application.mk:273: target 'drivertest_block.c.home.huang.Work.vela.sifli.apps.testing.drivertest.o' given more than once in the same rule
/home/huang/Work/vela/sifli/apps/Application.mk:297: target '/home/huang/Work/vela/sifli/apps/builtin/registry/cmocka_driver_block.bdat' given more than once in the same rule
```

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2023-11-09 23:53:30 +08:00
Ritvik
6798294129 Fix #2181 : LELYCANOPEN_UNPACKNAME comes from extracted tarball directory 2023-11-09 14:48:15 +01:00
SPRESENSE
efdbaaefdd lte/alt1250: Fix some bugs in alt1250 daemon
Fix alt1250 daemon to return -ENOTTY when receiving ioctl
request and in the state of using kernel's network stack.
Fix alt1250 daemon to return -ENOTSUP when receiving socket
request and in the state of using kernel's network stack.
Fix alt1250 daemon to set dummy subnet mask in network devices.
This allows the correct network device to be selected when two
network devices exist.
2023-11-09 20:11:07 +08:00
Zhe Weng
56ef320d6f nshlib/ifconfig: Add support for add/del a single IPv6 address
Note: We're using similar error codes as Linux:
```
linux> sudo ifconfig eth0 inet6 add fc00::2/64
linux> sudo ifconfig eth0 inet6 del fc00::2/112
SIOCDIFADDR: Cannot assign requested address
linux> sudo ifconfig eth0 inet6 del fc00::3/64
SIOCDIFADDR: Cannot assign requested address
linux> sudo ifconfig eth0 inet6 add fc00::2/64
SIOCSIFADDR: File exists

nuttx> ifconfig eth0 inet6 add fc00::2/64
nuttx> ifconfig eth0 inet6 del fc00::2/112
Failed to manage IPv6 address: Cannot assign requested address
nuttx> ifconfig eth0 inet6 del fc00::3/112
Failed to manage IPv6 address: Cannot assign requested address
nuttx> ifconfig eth0 inet6 add fc00::2/64
Failed to manage IPv6 address: File exists
```

Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2023-11-08 00:20:19 +08:00
Zhe Weng
2f9d98cab2 netutils/netlib: Add support for add/del a single IPv6 address
Note:
The `SIOCSIFADDR` and `SIOCDIFADDR` uses different params for `AF_INET` and `AF_INET6` (`struct ifreq` vs `struct in6_ifreq`) as defined by https://man7.org/linux/man-pages/man7/netdevice.7.html

Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2023-11-08 00:20:19 +08:00
pengyiqiang
8cc06ac5cf testing/monkey: refact monkey test
1. Simplify kconfig configuration items.
2. Use events to control the status of virtual devices and improve testing efficiency.
3. Add adaptive screen resolution support.

Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
2023-11-07 18:26:04 +08:00
GC-20-20
0c572e1675 Update serialrx_main.c
Add missing variables
2023-11-06 09:02:42 +08:00
raiden00pl
9ba7092000 examples/foc: add support for control loop performance measurements
also format CMakeLists.txt
2023-11-06 09:02:28 +08:00
raiden00pl
73ab7dedd4 examples/foc: refactor control loop
1. get FOC device state at the beginning of the loop
2. simplify if-else block
2023-11-05 13:56:52 +08:00
TaiJu Wu
388256b7d7 feature: spinlock benchmark
Use multi-threads to measure spinlock.
You can get related setting with make menuconfig.

Signed-off-by: TaiJu Wu <tjwu1217@gmail.com>
Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com>
Co-authored-by: Xiang Xiao <xiaoxiang781216@gmail.com>
2023-11-05 13:36:14 +08:00
raiden00pl
57f98ee20e industrial/foc: add options to configure foclib logs 2023-11-05 12:15:03 +08:00
Bowen Wang
d6522be9b5 testing/epoll: add epoll test case
This commid add an epoll testcase to test the epoll
Test case 1: epoll_wait timeout test.
Test case 2: epoll_wait with driver call poll_notify()
             many times simultaneously.
Test case 3: epoll_wait with some driver/socket need call
             poll_setup() again when it's internal state
             changed.

Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
2023-11-02 14:49:54 +08:00
yinshengkai
647db6393d nsh: rename CONFIG_SCHED_CPULOAD to CONFIG_SCHED_CPULOAD_NONE
Explicitly select dependencies to avoid automatically selecting inappropriate configurations.

Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2023-11-01 09:23:07 +08:00
raiden00pl
b8c35f667e remove nshlib/README.md which is already in Documentation/applications/nsh 2023-10-30 20:33:41 +08:00
Stuart Ianna
8f56bc1de2 testing/sd_bench: Port sdbench testing utility for PX4-Autopilot.
Add port of the sdbench utility from PX4-Autopilot: https://github.com/PX4/PX4-Autopilot

This tool is useful for evaluating and testing peformance of SD cards,
block devices or mount points.
2023-10-30 16:58:10 +08:00
raiden00pl
532bcc5061 remove logging/xxx/README.md. Migrated to Documentation/applications/logging 2023-10-30 10:00:01 +08:00
raiden00pl
a0b34e89d2 remove fsutils/xxx/README.md. Migrated to Documentation/applications/fsutils 2023-10-30 10:00:01 +08:00
raiden00pl
a6d30540fb remove crypto/xxx/README.md. Migrated to Documentation/applications/crypto 2023-10-30 10:00:01 +08:00
raiden00pl
2fac780f37 remove boot/xxx/README.md. Migrated to Documentation/applications/boot 2023-10-30 10:00:01 +08:00
raiden00pl
397da8f752 remove audioutils/xxx/README.md. Migrated to Documentation/applications/audioutils 2023-10-30 10:00:01 +08:00
raiden00pl
26f1b07955 remove interpreters/xxx/README.md. Migrated to Documentation/applications/interpreters 2023-10-30 10:00:01 +08:00
raiden00pl
4dfd474ae9 remove industry/xxx/README.md and modbus/README.md. Migrated to Documentation/applications/industry 2023-10-30 10:00:01 +08:00
raiden00pl
24338bb477 remove tools/README.md. Migrated to Documentation/applications/tools 2023-10-30 10:00:01 +08:00
raiden00pl
008aba12d4 remove netuitls/xxx/README.md. Migrated to Documentation/applications/netutils 2023-10-30 10:00:01 +08:00
raiden00pl
d313bbad9c remove graphics/xxx/README.md. Migrated to Documentation/applications/graphics 2023-10-30 10:00:01 +08:00
raiden00pl
7e918964e4 remove examples/xxx/README.md. Migrated to Documentation/applications/examples
part of examples/bastest is moved to examples/bastest.testcases.md
2023-10-30 10:00:01 +08:00
raiden00pl
14f19f0e7d remove testing/xxx/README.md. Migrated to Documentation/applications/testing 2023-10-30 10:00:01 +08:00
raiden00pl
0f57c32561 remove wireless/xxx/README.md. Migrated to Documentation/applications/wireless 2023-10-30 10:00:01 +08:00
raiden00pl
4acad717fe remove system/xxx/README.md. Migrated to Documentation/applications/system 2023-10-30 10:00:01 +08:00
raiden00pl
292b0cbc28 examples/foc: change the velocity ramp parameters scale to x1
controlling the ramp with greather accuracy makes no practical sense
2023-10-29 10:40:27 +08:00
raiden00pl
8568439b80 examples/foc: configure acceleration and deceleration from command line 2023-10-29 10:40:27 +08:00
jinxiuxu
518b1aea61 system/nxrecorder: add amr offload record support
Signed-off-by: jinxiuxu <jinxiuxu@xiaomi.com>
2023-10-27 21:00:59 +08:00
xuxin19
4439b242d8 Application.mk:ensure that the order when AROBJS is compiled multiple times
sort the target files to ensure that the files in each batch are the same every time
and clean AROBJS.

Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2023-10-27 11:52:29 +08:00
xuxin19
efa1f51915 archive:create a copy rule for the ojbs with the same name
when there are too many target files in archive and need to be processed in batches,
in order to avoid file replacement due to duplicate names,
we dynamically rename the target files here.

Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2023-10-27 11:52:29 +08:00
chenrun1
09bb3b5853 apps:move test tools to testing.
1.memstress
2.ramtest
3.ramspeed
4.cachespeed

Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2023-10-26 13:17:28 +02:00
Ville Juven
3ff49e86f5 nshlib/nsh_fileapps.c: Remove sched_lock() from nsh_fileapp()
Locking the scheduler prior to calling posix_spawn() might lock the
scheduler for a relatively long time, if the file to be loaded is large.

posix_spawn() loads the process into memory, possibly linking it as well
if the binary format is linkable (elf). This can take tens / hundreds of
milliseconds, which basically destroys the OS's real time performance.

Missing the death-of-child signal is a very trivial penalty considering
the alternative.
2023-10-26 00:24:58 +08:00
Junbo Zheng
c0da2b2a0e nshlib: correct ls -l command output format
Since the output format will be messed up with a size of GB.

before
```
ap> ls -l
/dev:
 brw-rw-rw-       0       0314572800 app
 dr--r--r--       0       0       0 audio/
 crw-rw-rw-       0       0       0 buttons
 crw-rw-rw-       0       0       0 console
 brw-rw-rw-       0       0104857600 coredump
 crw-rw-rw-       0       0       0 crypto
 brw-rw-rw-       0       02214592512 data
```

after
```
ap> ls -l
/dev:
 brw-rw-rw-       0       0   314572800 app
 dr--r--r--       0       0           0 audio/
 crw-rw-rw-       0       0           0 buttons
 crw-rw-rw-       0       0           0 console
 brw-rw-rw-       0       0   104857600 coredump
 crw-rw-rw-       0       0           0 crypto
 brw-rw-rw-       0       0  2214592512 data
```

Signed-off-by: Junbo Zheng <zhengjunbo1@xiaomi.com>
2023-10-26 00:24:40 +08:00
dongjiuzhu1
e61ff51e67 system/popen: remove O_CLOEXEC if mode exinclude 'e'
refs: https://man7.org/linux/man-pages/man3/popen.3.html

Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2023-10-26 00:24:28 +08:00
dongjiuzhu1
cc66e34fbf rexecd: avoid socket/pipe/socketpair dup to new task
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2023-10-26 00:24:28 +08:00
Ville Juven
57011d2313 import/Make.defs: Fix erroneous formatting of make condition
Fixes:

/apps/import/Make.defs:79: extraneous text after 'else' directive
2023-10-25 17:23:03 +03:00
liqinhui
5ae44f9bc4 wapi: Fix disconnect crash.
The ssid string has no terminator, which causes a out of bounds.

Signed-off-by: liqinhui <liqinhui@xiaomi.com>
2023-10-25 14:58:41 +03:00
Stuart Ianna
4576b3923c testing/sd_stress: Port sdstress testing utility from PX4-Autopilot.
Add port of the sdstress utility from PX4-Autopilot:  https://github.com/PX4/PX4-Autopilot

This tool is useful for verifying correct operation of SD, EMMC, or other mountpoints.
2023-10-25 15:41:27 +08:00
Stuart Ianna
877509762c import/mk: Use libm from the export package when defined.
Nuttx exports libm.a when `CONFIG_LIBM` is enabled. Adjust the application import makefile to pick this up when linking.
2023-10-25 15:40:19 +08:00
Stuart Ianna
a21476beab netutils/netinit: Reduce net monitor delay on platforms without 64 bit time type.
Waiting for an hour can cause the calculated tick count in nxsem_clockwait to overflow due to the default width of sclock_t.

Reduce the long wait period on platforms not using 64-bit time.
2023-10-25 15:39:25 +08:00
Michal Lenc
d3508b6acd testing: add fmemopen function test tool
Test tool application for fmemopen for CI testing. Performs basic
read/write/seek/append operations.

Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2023-10-25 00:27:14 +08:00
Alan Carvalho de Assis
dfea0aad48 apps/games: Rename Shift game to Brickmatch 2023-10-24 13:53:51 +08:00
Stuart Ianna
e55f28594c examples/calib_udelay: Allow the number of delay loop iterations to be specified by kconfig.
The calibration test can take a long time on platforms with less
processing power. Allow the default value to be changed with kconfig.
2023-10-24 12:38:45 +08:00