xuxingliang
9cc9a830eb
ostest/smpcall: add smp call from interrupt test
...
Signed-off-by: xuxingliang <xuxingliang@xiaomi.com>
2024-10-01 12:27:25 +08:00
ouyangxiangzhen
34e70e7f0c
testing/ostest: Fix timing assertions in wdog_test
...
This patch removed timing assertions in wdog_test.
Signed-off-by: ouyangxiangzhen <ouyangxiangzhen@xiaomi.com>
2024-10-01 11:39:49 +08:00
ouyangxiangzhen
3d6785bcaf
testing/ostest: Fix busyloop on tee platform
...
This patch fixed busyloop on tee platform.
Signed-off-by: ouyangxiangzhen <ouyangxiangzhen@xiaomi.com>
2024-10-01 11:39:49 +08:00
ouyangxiangzhen
b01765c57d
testing/ostest: Add recursive watchdog callback testcase
...
This patch added wdog recursive test cases.
Signed-off-by: ouyangxiangzhen <ouyangxiangzhen@xiaomi.com>
Signed-off-by: ligd <liguiding1@xiaomi.com>
2024-10-01 11:39:49 +08:00
zhangyuan29
54a8915f29
ostest: test wdog only in flat mode
...
Signed-off-by: zhangyuan29 <zhangyuan29@xiaomi.com>
2024-10-01 11:39:49 +08:00
cuiziwei
e13d37f4d0
ostest:Ignore runtime error.
...
wdog.c:190:3: runtime error: signed integer overflow: 9223372036854775807 + 1 cannot be represented in type 'long int'
#0 0x40e35d3a in wdog_test_run /home/cuiziwei/ska/vela/vela-dev2/apps/testing/ostest/wdog.c:190
#1 0x40e35e75 in wdog_test_thread /home/cuiziwei/ska/vela/vela-dev2/apps/testing/ostest/wdog.c:207
#2 0x40773ffa in pthread_startup pthread/pthread_create.c:59
#3 0x4495e037 in pthread_start pthread/pthread_create.c:139
#4 0x40301864 in pre_start sim/sim_initialstate.c:52
Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
2024-10-01 11:39:49 +08:00
ouyangxiangzhen
cc13d4b742
ostest/wdog: Fix Coverity problems
...
This patch is to make Coverity happy.
Signed-off-by: ouyangxiangzhen <ouyangxiangzhen@xiaomi.com>
2024-10-01 11:39:49 +08:00
ouyangxiangzhen
8c22bb267b
testing/ostest: Add wdog_test to ostest
...
This patch introduces wdog_test, which is used to ensure the functional correctness of the wdog module.
Signed-off-by: ouyangxiangzhen <ouyangxiangzhen@xiaomi.com>
2024-10-01 11:39:49 +08:00
Kevin Zhou
23bf7fb449
usbserial: Add config for customize direction, message and wait time
2024-10-01 11:37:45 +08:00
dulibo1
b20f023ab7
pmconfig:fix coverity scan issue which is unsigned_compare
...
Signed-off-by: dulibo1 <dulibo1@xiaomi.com>
2024-09-30 18:31:03 +08:00
dulibo1
23dd23373d
drivertest:add include file depended by cmocka
...
from the cmocka.h:
* These headers or their equivalents MUST be included prior to including
* this header file.
* @code
* #include <stdarg.h>
* #include <stddef.h>
* #include <stdint.h>
* #include <setjmp.h>
* @endcode
Signed-off-by: dulibo1 <dulibo1@xiaomi.com>
Signed-off-by: buxiasen <buxiasen@xiaomi.com>
2024-09-30 18:31:03 +08:00
dulibo1
b295d5de91
batterydump:move to system dir
...
Signed-off-by: dulibo1 <dulibo1@xiaomi.com>
2024-09-30 18:31:03 +08:00
dulibo1
46768fc85d
gpio:add example for wakeup gpio type
...
Signed-off-by: dulibo1 <dulibo1@xiaomi.com>
2024-09-30 18:31:03 +08:00
dulibo1
cd9d8bbfa9
test case update follow the regualtor framework
...
Signed-off-by: dulibo1 <dulibo1@xiaomi.com>
2024-09-30 18:31:03 +08:00
xuxingliang
cb812cb2da
luasyslog: add cmake support
...
nsh>
nsh> lua
Lua 5.4.0 Copyright (C) 1994-2020 Lua.org, PUC-Rio
> for k,v in pairs(lsyslog)
>> do
>> print(k,v)
>> end
open function: 0x402d49c0
FACILITY_LOCAL4 0.0
FACILITY_AUTH 0.0
_COPYRIGHT Copyright (C) 1994-2021 Nicolas Casalini (DarkGod)
FACILITY_DAEMON 0.0
FACILITY_LOCAL1 0.0
LOG_WARNING 4.0
close function: 0x402d4990
FACILITY_AUTHPRIV 0.0
LOG_ALERT 1.0
_DESCRIPTION LuaSyslog allows to use log to an unix Syslog daemon, direct or via LuaLogging
FACILITY_CRON 0.0
FACILITY_FTP 0.0
LOG_DEBUG 7.0
FACILITY_LOCAL0 0.0
LOG_NOTICE 5.0
FACILITY_LOCAL5 0.0
LOG_EMERG 0.0
FACILITY_LPR 0.0
_VERSION LuaSyslog 2.0.1
FACILITY_LOCAL7 0.0
FACILITY_KERN 0.0
log function: 0x402d4944
FACILITY_LOCAL2 0.0
LOG_INFO 6.0
FACILITY_NEWS 0.0
FACILITY_LOCAL6 0.0
FACILITY_SYSLOG 0.0
FACILITY_USER 0.0
FACILITY_LOCAL3 0.0
FACILITY_UUCP 0.0
LOG_ERR 3.0
FACILITY_MAIL 0.0
LOG_CRIT 2.0
> lsyslog.log(lsyslog.LOG_EMERG, "Hello")
Hello
>
Signed-off-by: xuxingliang <xuxingliang@xiaomi.com>
2024-09-30 15:27:03 +08:00
makejian
e42de5d36d
mbedtls-alt/bignum: add bignum alternative implementation via /dev/mpi
...
Signed-off-by: makejian <makejian@xiaomi.com>
2024-09-30 15:26:42 +08:00
makejian
194269dbb8
mbedtls-alt/poly1305-alt: add poly1305 alternative implementation
...
Signed-off-by: makejian <makejian@xiaomi.com>
2024-09-30 15:26:42 +08:00
makejian
83d3256f91
mbedtls-alt/ripemd160: add ripemd160 alternative implementation
...
Signed-off-by: makejian <makejian@xiaomi.com>
2024-09-30 15:26:42 +08:00
makejian
4fc6e7ca0c
mbedtls-alt/aes-alt: Illegal parameter detection for aes related functions
...
(1)aes-xts sets the key length to only 256 and 512 bits
(2)when the key length of aes-xts is 512 bits, MAX_KEY_SIZE needs to be expanded to 64 bytes.
(3)check invalid input length and mode
Signed-off-by: makejian <makejian@xiaomi.com>
2024-09-30 15:26:42 +08:00
makejian
b05c967ae6
mbedtls-alt/dev-alt: complement cloning capability
...
Signed-off-by: makejian <makejian@xiaomi.com>
2024-09-30 15:26:42 +08:00
xuxin19
fff767e2ef
app build:enhance apps to support independent out-of-tree builds
...
by defining the `PREFIX` variable and setting it to an external path,
`make -C /some/app` can be called independently to build a separate application out_tree.
modify Make.defs and Application.mk so that their dependent variables can be overwritten.
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2024-09-30 14:18:08 +08:00
Neo Xu
4a2809ffc0
ostest: fix smp call test
...
CONFIG_SMP_CALL has been removed from https://github.com/apache/nuttx/pull/13282
Signed-off-by: Neo Xu <neo.xu1990@gmail.com>
2024-09-30 14:17:20 +08:00
dongjiuzhu1
97a33e7491
nshlib: support dd with conv=notrunc,nocreat
...
refs to: https://man7.org/linux/man-pages/man1/dd.1.html
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2024-09-30 14:16:40 +08:00
makejian
28aa8a99d0
testing/hash: add hash test case for updating huge block once
...
The previous test case was relatively small( < 1k), and may only need to do data processing once. The encryption ability of large blocks of data cannot be tested.
Signed-off-by: makejian <makejian@xiaomi.com>
2024-09-30 14:15:21 +08:00
makejian
b9764fd479
testing/aesctr: counter block should be initially set to one.
...
According to RFC-3686, the least significant 32 bits of the counter block are initially set to one in ctr mode of aes.
Signed-off-by: makejian <makejian@xiaomi.com>
2024-09-30 14:15:21 +08:00
makejian
4cc575ebc5
crypto/libsodium: fix libsodium compilation warning
...
Signed-off-by: makejian <makejian@xiaomi.com>
2024-09-29 22:57:49 +02:00
makejian
ddf9a7a2de
system/adb: fix build warning
...
adb_banner.c:60:47: error: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=]
Signed-off-by: makejian <makejian@xiaomi.com>
2024-09-29 22:33:32 +02:00
wangjianyu3
c9223afe7e
tools/mksymtab.sh: Support multiple additional symbols` file
...
Test
```
$ cat basic.txt
test_a
test_b
test_c
$ cat math.txt
acosf
asinf
atan2f
ceilf
cosf
expf
$ ./mksymtab.sh ./ g_TEST basic.txt
#include <nuttx/compiler.h>
#include <nuttx/symtab.h>
extern void *test_a;
extern void *test_b;
extern void *test_c;
const struct symtab_s g_TEST_exports[] =
{
{"test_a", &test_a},
{"test_b", &test_b},
{"test_c", &test_c},
};
const int g_TEST_nexports = sizeof(g_TEST_exports) / sizeof(struct symtab_s);
$ ./mksymtab.sh ./ g_TEST basic.txt math.txt
#include <nuttx/compiler.h>
#include <nuttx/symtab.h>
extern void *acosf;
extern void *asinf;
extern void *atan2f;
extern void *ceilf;
extern void *cosf;
extern void *expf;
extern void *test_a;
extern void *test_b;
extern void *test_c;
const struct symtab_s g_TEST_exports[] =
{
{"acosf", &acosf},
{"asinf", &asinf},
{"atan2f", &atan2f},
{"ceilf", &ceilf},
{"cosf", &cosf},
{"expf", &expf},
{"test_a", &test_a},
{"test_b", &test_b},
{"test_c", &test_c},
};
const int g_TEST_nexports = sizeof(g_TEST_exports) / sizeof(struct symtab_s);
```
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2024-09-29 22:20:30 +02:00
makejian
c6f00c09c9
mbedtls: 'MBEDTLS_X509_CRT_POOL' depends on 'MBEDTLS_THREADING_C'
...
Signed-off-by: makejian <makejian@xiaomi.com>
2024-09-29 22:09:56 +02:00
makejian
54d388bb64
mbedtls/Kconfig: MBEDTLS_DEBUG_C depends on DEBUG_CRYPTO_INFO
...
Signed-off-by: makejian <makejian@xiaomi.com>
2024-09-29 22:09:56 +02:00
Huang Qi
2ecaf0ec48
examples: Add wamr_module
...
This example demonstrates how to register a external module
into WAMR runtime.
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2024-09-28 15:47:40 +08:00
Huang Qi
9320597c00
wamr: Add external module registration mechanism
...
This patch adds module registration mechanism for WAMR runtime.
To register a module, these steps are required:
1. Include Module.mk in your module's Makefile
2. Define WAMR_MODULE_NAME as the module name
3. Implement bool wamr_module_WAMR_MODULE_NAME_register(void) function in your module's source file
4. Enable INTERPRETERS_WAMR_EXTERNAL_MODULE_REGISTRY in menuconfig
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2024-09-28 15:47:40 +08:00
yangguangcai
df4cdbaae9
ntp:fix parameter is negative numbers.
...
Signed-off-by: yangguangcai <yangguangcai@xiaomi.com>
2024-09-28 13:45:43 +08:00
yangguangcai
fb37ef3671
test timer:change deviation to be pass as parameter.
...
Signed-off-by: yangguangcai <yangguangcai@xiaomi.com>
2024-09-28 13:45:33 +08:00
anjiahao
5dcfe93a95
nsh:support $! get last pid use nsh run
...
test:
nsh> hello &
hello [4:100]
nsh> Hello, World!!
nsh> echo $!
4
nsh> echo $!
3
nsh> ps
PID GROUP PRI POLICY TYPE NPX STATE EVENT SIGMASK STACK COMMAND
0 0 0 FIFO Kthread - Ready 0000000000000000 0069616 Idle_Task
1 1 224 FIFO Kthread - Waiting Signal 0000000000000000 0067536 loop_task
2 2 224 FIFO Kthread - Waiting Semaphore 0000000000000000 0067504 hpwork 0x45ae80 0x45aea8
3 3 100 FIFO Task - Running 0000000000000000 0067536 nsh_main
nsh>
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2024-09-28 11:28:15 +08:00
anjiahao
55df3019f9
ymodem/sbrb.py:fix a bug sendto not use
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2024-09-28 11:27:03 +08:00
anjiahao
85ae6f0dfd
ymodem:set the transport retry as optional
...
The waiting duration of the rb/sb command can be determined based on
the number of retransmissions, so that ymodem can restart to the normal
system after running in the bootloader for a short period of time.
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2024-09-28 11:27:03 +08:00
jianglianfang
e4e46c3f53
fb_main: fix draw_rect24
...
Signed-off-by: jianglianfang <jianglianfang@xiaomi.com>
2024-09-28 10:51:34 +08:00
yanghuatao
909e479d7f
toolchain/ghs: Fix green hills toolchain build Vela warnings
...
Signed-off-by: yanghuatao <yanghuatao@xiaomi.com>
2024-09-28 10:47:32 +08:00
makejian
8545512dd7
testing/crypto: add ECDSA P256 testing case for asynchronous call
...
1. Add asynchronous call test into ecdsa test case.
2. Add command line parameters to facilitate subsequent expansion.
Now can test synchronous call through 'ecdsa -s SECP256R1' and test asynchronous call through 'ecdsa -a SECP256R1'
Signed-off-by: makejian <makejian@xiaomi.com>
2024-09-28 10:46:53 +08:00
chenrun1
06d54466fd
coremark:Fix renaming issues with other libraries
...
The crc16 naming implemented in coremark is duplicated in zblue.
Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2024-09-28 09:35:33 +08:00
Huang Qi
dca6c0cd91
nshlib: Add missing newline in cmd_pidof output
...
Add newline at the end of cmd_pidof to show nsh
prompt correctly.
Before this patch:
```
nsh> pidof wifi
3 nsh>
```
After:
```
nsh> pidof wifi
3
nsh>
```
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2024-09-27 23:24:22 +08:00
likun17
d2214c28c5
uorb:Added 6dof motion and gesture related types.
...
For details,see: https://developer.android.com/reference/android/hardware/SensorEvent#values
Signed-off-by: likun17 <likun17@xiaomi.com>
2024-09-27 13:59:30 +08:00
likun17
b28a4b4ab7
uORB: Add topic information acquisition and setting interface.
...
Signed-off-by: likun17 <likun17@xiaomi.com>
2024-09-27 13:59:30 +08:00
likun17
bccb6c6b45
uorb:Added urob loop function module and supported epoll.
...
Signed-off-by: likun17 <likun17@xiaomi.com>
2024-09-27 09:53:06 +08:00
YAMAMOTO Takashi
c03e3d0b9e
toywasm: regen
...
```
REF=d7bb4aaef08be2d7821891f17bd9ef82ac1ba358 ./regen.sh
```
2024-09-27 01:15:04 +08:00
YAMAMOTO Takashi
9656e44c9e
toywasm: bump to v63.0.0
2024-09-27 01:15:04 +08:00
wanggang26
eab2cba4a1
enable SOCK_CLOEXEC explicit
...
leaking here means fork/vfork will duplicate fd without O_CLOEXEC flag
to the child process.
Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
2024-09-26 16:13:29 +08:00
dependabot[bot]
3f0c9306d3
build(deps): bump codelytv/pr-size-labeler from 1.10.0 to 1.10.1
...
Bumps [codelytv/pr-size-labeler](https://github.com/codelytv/pr-size-labeler ) from 1.10.0 to 1.10.1.
- [Release notes](https://github.com/codelytv/pr-size-labeler/releases )
- [Commits](https://github.com/codelytv/pr-size-labeler/compare/v1.10.0...v1.10.1 )
---
updated-dependencies:
- dependency-name: codelytv/pr-size-labeler
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-09-26 16:12:26 +08:00
likun17
778ae8495b
monkey: monkey_log.c add LIBC_PRINT_EXTENSION dependency.
...
Signed-off-by: likun17 <likun17@xiaomi.com>
2024-09-23 23:13:55 +08:00