Commit Graph

6882 Commits

Author SHA1 Message Date
anjiahao
8fd4b4d45b ymodem:fix ymodem bug
1.Timeout processing
2.clear error count when received successfully once
3.fix the bug of insufficient header memory application

Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2023-07-30 01:20:36 -07:00
dongjiuzhu1
fb7dafc7e0 netutils/rexec/rexecd: supports remote execution and interaction
using popen with r+,w+ mode to interact with the remote service on
the command line, supporting input and output until the local
voluntarily exits or the remote service ends.

Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2023-07-29 20:29:54 -07:00
dongjiuzhu1
e86f6c12a5 system/popen: support r+, w+ mode
The standard popen uses the pipeline internally, so the stream
returned by it can only support read-only or write-only.
Now this patch is expanded through sockpair, which can support both
read and write. Therefore, we can use the stream to read and write
access this task (posix_spawn start).

Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2023-07-29 20:29:54 -07:00
yuexinyi
c10e78869b examples/camera: Video driver multi-instance adaptation
Signed-off-by: yuexinyi <yuexinyi@xiaomi.com>
2023-07-29 07:42:33 -07:00
wangjianyu3
fc8c425cc0 Fix dependents of nsh_foreach_direntry
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2023-07-28 21:51:50 -07:00
xuxin19
c34bbb9935 cmake:migrate apps CMakeLists for libtommath
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2023-07-28 21:51:38 -07:00
dongjiuzhu1
718fcfac1e system/uorb: Solve the problem of wrong use of return value
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2023-07-28 21:51:10 -07:00
dongjiuzhu1
963d0680bd fsutils/mkgpt: dump partition when verify failed
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2023-07-28 21:50:31 -07:00
zhangyuan21
7277a48482 uorb: Avoiding GCC VCVT Issue When MVE is Enabled
https: //sourceware.org/git/?p=binutils-gdb.git;a=commit;h=656412a7a4da0aef43ead1ea976ba0235a7ec30a

Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2023-07-28 21:49:58 -07:00
dongjiuzhu1
78590a55ea system/uorb: Support frequency less than 1hz
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2023-07-28 21:49:58 -07:00
raiden00pl
7b066ed0d8 netutils: add Eclipse Wakaama support 2023-07-27 09:33:10 -07:00
raiden00pl
81f9fb5e08 crypto: add Eclipse tinydtls support 2023-07-27 09:33:10 -07:00
xuxin19
7f3246cfdf cmake:migrate apps CMakeLists for [audioutils benchmarks]
audioutils
  ├── fmsynth
  ├── mml_parser
  └── nxaudio
 benchmarks
  └── coremark

Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2023-07-27 07:22:21 -07:00
hujun5
13d3b3d26c ostest/rmutex: mutex need to be destroyed
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2023-07-26 08:33:26 -07:00
hujun5
7daeca62b0 testing/mm: add maxsize parameter
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2023-07-26 08:33:09 -07:00
chao an
7afa9b51ea ci/check: install format tool before run style check script
Signed-off-by: chao an <anchao@xiaomi.com>
2023-07-25 10:48:01 +02:00
chao an
c0707b5fc3 system/artable3: add cmake build support
Signed-off-by: chao an <anchao@xiaomi.com>
2023-07-25 10:48:01 +02:00
Xiang Xiao
8083b094c3 Kconfig: Simplify the conditional default statement
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-07-25 09:51:09 +08:00
Xiang Xiao
d46dce5819 testing/ostest: Remove the unnecessary defined(CONFIG_PTHREAD_CLEANUP_STACKSIZE)
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-07-25 09:51:09 +08:00
YAMAMOTO Takashi
33987a76a9 regen for toywasm v29.0.0
```
REF=12b9e518cd18c9fee09a521afa96eb15cd11edac ./regen.sh
```
2023-07-23 01:08:45 +08:00
YAMAMOTO Takashi
f41873223c toywasm: bump the version to v29.0.0 2023-07-23 01:08:45 +08:00
YAMAMOTO Takashi
7cacd569e5 Revert "toywasm: disable tail call and explain why"
This reverts commit fcda92ebc7.

because it isn't necessary for the latest versions of toywasm.
2023-07-23 01:08:45 +08:00
Huang Qi
56a20a202d Move Wasm.mk to end of file since it need definition from Application.mk itself.
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2023-07-20 08:10:52 +02:00
raiden00pl
dda21ad57e cmake: support for nimble 2023-07-20 01:44:39 +08:00
raiden00pl
b129ddd6e0 cmake: include examples after apps modules
This allows you to set dependency for the examples on configured apps libs
2023-07-20 01:44:39 +08:00
chenrun1
10baddee07 system/cachespeed:Modifying kconfig depends on
Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2023-07-20 01:42:38 +08:00
chenrun1
d0349a3bd4 system/cachespeed:Optimize the number of tests
Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2023-07-20 01:42:38 +08:00
chenrun1
f3b1ac089b system/cachespeed:Redesign of the overall test tool.
Compared to the previous version, the following factors have been taken into account in the new version of cachespeed:
1. the user needs to care about getting a piece of available memory (even if this piece of memory may memory stomp during use)
2. High repetition of test code, poor readability, and overall high test coupling
3. Not taking into account the alignment cache line situation
4. When comparing values between different test tools, there is a little error because of the different ways to get the values (different fine reading)
Therefore, in the new version according to the above problems have been improved:
1. Provide a "test_skeleton", which contains the overall testing process
2. The user only needs to execute, not to care about how to get the available memory address, and the memory allocated by the program also ensures the memory security and data accuracy
3. The system to obtain the data required for the test reduces the difficulty of use and the possibility of inaccurate results due to data errors.
4. Provide two kinds of precision data results, which can be configured through Kconfig
5. Optimize the output log, now more intuitive and concise, to help the subsequent data organization and observation
6. New test items for aligned/unaligned cache line
7. Better readability and extensibility, making it easier to add/remove test items

Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2023-07-20 01:42:38 +08:00
Lucas Saavedra Vaz
6f56e69a14 system/nxdiag: Fix race condition during build
This commit fixed a race condition that might happen by only unshallowing the Espressif HAL only after it was completely cloned.
2023-07-18 23:43:29 +08:00
chenrun1
4bc06d9a4b drivertest_block:New test items about cache and memory alignment
Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2023-07-17 23:15:32 +08:00
chenrun1
9768cfab79 drivertest_block:Give redundant space for bad blocks in nand flash
Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2023-07-17 23:15:32 +08:00
chenrun1
3cb5d475ae drivertest_block:Test the availability of each sector of the block.
Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2023-07-17 23:15:32 +08:00
Huang Qi
5d37383457 examples: Build both native app and wasm app for hello to pass CI test
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2023-07-17 23:14:47 +08:00
Huang Qi
3d5183f404 tools: Merge WASM_BUILD and WASM_BUILD_ONLY
By make WASM_BUILD as a three state variable: y , n or both.

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2023-07-17 23:14:47 +08:00
Xiang Xiao
ff276e422f ostest: Skip test_dev_null when CONFIG_DEV_NULL isn't enabled
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-07-17 16:28:02 +09:00
zhanghongyu
1bc2e93124 iptables: modify the formatting of some definitions in xtables.h
Based on the previous patch comments, some changes were made to make it more
nuttx style.
https://github.com/apache/nuttx-apps/pull/1829

Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2023-07-17 07:56:48 +02:00
chenrun1
046fe00b96 nsh_fscmd.c:fix "implicit declaration" warning.
Fix error: implicit declaration of function 'nsh_foreach_direntry' [-Werror=implicit-function-declaration] on file nsh_fscmds on some compiler versions.

Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2023-07-16 16:39:11 +08:00
chenrun1
415168dde6 nshlib: Add fdinfo to get information about the process associated fd
Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2023-07-16 16:39:11 +08:00
raiden00pl
ed370ec674 cmake: port nxscope and foc and add missing directories 2023-07-14 22:04:35 +08:00
Petro Karashchenko
5dba460f5f wireless/bluetooth/nimble: increase number of ACL buffers available for controller
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-07-14 09:49:51 +08:00
Petro Karashchenko
4ac830ef1e wireless/bluetooth/nimble: add option to configure stack size of NimBLE NPL callout thread
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-07-14 09:49:51 +08:00
Petro Karashchenko
0c7788cf26 wireless/bluetooth/nimble: fix build issue with nimBLE example
The NimBLE source code is downloaded at the first pass of the
make system so some makefiles to include might be not in place
initially, but included after code is fetched

Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-07-14 09:49:51 +08:00
Petro Karashchenko
355153cff5 examples/nimble: fix assertion during pthread create with zero priority
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-07-14 09:49:51 +08:00
raiden00pl
4df395bfc4 cmake: add support for boot utils 2023-07-13 23:50:49 +03:00
Huang Qi
b4ec3d7d4a tools: Don't register app into nsh if WASM_BUILD_ONLY == y
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2023-07-14 01:29:54 +08:00
chao an
b18cf9aab3 testing/ostest: fix Compiler Warning (level 1) C4716: 'function' must return a value
https://learn.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-1-c4716?view=msvc-170
Signed-off-by: chao an <anchao@xiaomi.com>
2023-07-14 01:28:25 +08:00
Lucas Saavedra Vaz
0a7c308f1b examples/pwm: Fix PWM range
This commit fixes the overflow that happens when setting the duty cycle to 100% in the PWM example.
It now correctly passes the value 0xffff rather than 0x0000 when setting the duty cycle to 100 and makes sure that no underflow happens when setting the duty cycle to 0.
2023-07-14 01:25:05 +08:00
chao an
7cfcb49213 cmake/apps: add more applications into cmake support
Signed-off-by: chao an <anchao@xiaomi.com>
2023-07-13 19:00:18 +02:00
anjiahao
73b888869b gdbstub:Support a general gdbstub, support serial port and network link
Partially implement the gdb rsp protocol,
you can debug the nuttx kernel through the serial port or the network

Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2023-07-13 19:31:57 +08:00
zhanghongyu
bbb2b289cf iptables: add iptables libary
Add xtables.c and xtables.h
In order to support the compilation of third-party utils, we encounter some
situations where the macro is not defined, refer to the common implementation
of other systems, add relevant definitions and empty function.

Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2023-07-13 15:52:36 +08:00