Commit Graph

7194 Commits

Author SHA1 Message Date
SPRESENSE
9a11ede5ff lte/alt1250: Fix issue that ifconfig does not work
Add SIOCGIFFLAGS support for ifconfig command.
2023-09-07 14:07:43 +08:00
guohao15
a8598aa8d2 app:ramspeed the result of repeat_cnt * step has been truncated
Signed-off-by: guohao15 <guohao15@xiaomi.com>
2023-09-07 13:52:09 +08:00
chenrun1
2639f044cc drivertest_block:Fix insufficient number of erasures for mtd devices
when operating multiple rwblocks.

Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2023-09-07 13:51:29 +08:00
makejian
16a1655bba testing/crypto: fix aescbc crash when update iv
iv content always should be updated when performing encryption operation, so need update testing case
Signed-off-by: makejian <makejian@xiaomi.com>
2023-09-07 13:15:35 +08:00
fengxuesong
ee0bc579c1 solve CI compilation error problem
Signed-off-by: fengxuesong <fengxuesong@xiaomi.com>
2023-09-06 19:21:19 +03:00
Xiang Xiao
a5ef6d57c1 system/cu: Remove the dependence on stdio FILE * function
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-09-06 14:29:34 +02:00
Xiang Xiao
5f9d9bb1c2 system/cu: Support the custom escape char
note: -f could be achieved with -E '' like https://linux.die.net/man/1/cu

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-09-06 14:29:34 +02:00
Xiang Xiao
b60cdf4927 system/cu: Skip the terminal related stuff if dev isn't a tty
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-09-06 14:29:34 +02:00
Xiang Xiao
3ff51d108b system/cu: Merge infd and outfd into devfd
to avoid opening the same device twice since
some special device can't work in this case

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-09-06 14:29:34 +02:00
dinglongfei
5cced37a1b system: support system fastbootd
Add the fastbootd program to support the flash, getvar, and reboot commands.

Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2023-09-06 17:27:26 +08:00
yangguangcai
de82824fbf add test atomic
Signed-off-by: yangguangcai <yangguangcai@xiaomi.com>
2023-09-05 22:10:48 +08:00
dependabot[bot]
14d06ea011 build(deps): bump actions/checkout from 3 to 4
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-05 22:09:33 +08:00
Tomáš Pilný
ecded726ce WS2812ESP32 example name is configurable and default name shortened 2023-09-05 12:37:07 +08:00
wangyingdong
21e7a9dc9e Fixed the error that when the driver scan result is empty, iwe_stream->len is a random number because the user data buf is not initialized.
Signed-off-by: wangyingdong <wangyingdong@xiaomi.com>
2023-09-05 12:34:13 +08:00
xuxin19
2432a62ab6 fix cmake code smell issues
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2023-09-04 23:19:26 +08:00
guoshichao
c57794fe1f ltp/makefile: apply that patch that to fix the build warning in ltp
the origin ltp testcases has many build warnings which consider error in
Nuttx, thus to apply the patches to fix these build warnings

Signed-off-by: guoshichao <guoshichao@xiaomi.com>
2023-09-03 22:12:57 +08:00
Xiang Xiao
6aa05b5855 Replace strlen with sizeof for kconfig string
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-09-02 16:26:51 +03:00
zhanghongyu
956b935511 mqttc: add mbedtls MQTTC support
The mqttc demo under example path can not support mbedtls api.
Because of the MQTT-C source code already contains many types of
link examples, so we added the corresponding makefile to
support mbedtls mqttc connections publisher and posix mqttc
connections publisher and subscriber.

Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2023-09-01 23:21:34 +08:00
Tiago Medicci Serrano
9a68248f29 system/nxlooper: Initialize audio_caps_s to 0
This avoids unspecified values to be passed to the lower interfaces
of the audio subsystem.
2023-09-01 23:20:51 +08:00
simbit18
17a497492a Fix Kconfig style
Remove spaces from Kconfig files
Add TABs
Add comments
2023-09-01 01:21:54 +08:00
xuxin19
a2e6e6c243 Application.mk:execute archive in batches
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2023-08-31 11:41:04 +08:00
jianglianfang
201a57440c system/nxcamera: add pan_display when it is not single buffer.
After optimizing the vync mechanism, it is necessary to use ioctl (display) to refresh the display in dual buffer mode.

run nxcamera.

Signed-off-by: jianglianfang <jianglianfang@xiaomi.com>
2023-08-30 20:51:58 +03:00
renzhiyuan1
fece67ee4b Fix wrong parameter size
Type int expects 4 bytes for function write(). Type char expects 1 byte which matches the real usage of function write().

Signed-off-by: renzhiyuan1 <renzhiyuan1@xiaomi.com>
2023-08-30 19:42:57 +03:00
makejian
53878a53db mbedtls: set most of the functions of mbedtls to be configurable
(1)reduce size and improve compilation efficiency
(2)provide more options for greater flexibility
Signed-off-by: makejian <makejian@xiaomi.com>
2023-08-30 20:40:11 +08:00
wurui3
4981dbe32b apps/examples/pipe:can't print info to screen after calling redirect_test func.
reason:stdin/stdout was redirected and closed in redirect_test.c.
measures:change all printf() to fprint(stderr,...) in pipe_main.c,
and modify fflush(stdout) to fflush(stderr) in line 231.

Signed-off-by: wurui3 <wurui3@xiaomi.com>
2023-08-30 13:56:33 +08:00
anjiahao
8d7497f7fb memdump:fix bug with space does not parse correctly
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2023-08-29 23:14:06 +08:00
xuxin19
9f7784ea4d cmake:migrate apps CMakeLists for fsutils
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2023-08-29 18:20:37 +08:00
Lingao Meng
518e455dce add macro for ecc
application may use micro-ecc for some ecc operation, which may be
faster than tinycrypt, due to assamble code, but both of them have
same function defination, cause build error on there case.

Signed-off-by: Lingao Meng <menglingao@xiaomi.com>
2023-08-29 12:19:26 +03:00
chenrun1
844a31b24c memtester:update format
Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2023-08-29 17:07:58 +08:00
chenrun1
56045e8e3d memtester:Two new bit-width test items
Because it may cause unaligned access problems with some hardware, these
two tests are not turned on by default, and are enabled or disabled
through Kconfig.

Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2023-08-29 17:07:58 +08:00
chenrun1
de3746e2ba memtester:Adaptation of memtester
Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2023-08-29 17:07:58 +08:00
chao an
6923c9cf57 testing: fix visual studio Compiler Error C2057
expected constant expression
The context requires a constant expression, an expression whose value is known at compile time.
The compiler must know the size of a type at compile time in order to allocate space for an instance of that type.

Reference:
https://learn.microsoft.com/en-us/cpp/error-messages/compiler-errors-1/compiler-error-c2057?view=msvc-170

Signed-off-by: chao an anchao@xiaomi.com
Signed-off-by: chao an <anchao@xiaomi.com>
2023-08-29 15:44:09 +08:00
dulibo1
afcc8d8f62 regulator:add testcase for regualtor register
Signed-off-by: dulibo1 <dulibo1@xiaomi.com>
2023-08-29 13:41:08 +08:00
Niklas Hauser
78a6d07a90 nshlib/nsh_consolemain: detect null pointer
Returning with an error from nsh_consolemain prevents dereferencing a
NULL pointer later in the code.
2023-08-29 03:11:28 +08:00
wangmingrong
7981278021 apps/nshlib: Add the pidof command and API nsh_getpid
Add the API "nsh_getpid" in "nsh_fsutils. c" and the nsh command pidof. Temporarily support two parameters, - s, and process name

Signed-off-by: wangmingrong <wangmingrong@xiaomi.com>
2023-08-29 02:58:45 +08:00
yanghuatao
658b847384 apps/rpsock_client: Fix rpsock_client.c [-Wformat=] warning
Fix warning:
CC:  rpsock_client.c rpsock_client.c: In function 'rpsock_unsync_test':
rpsock_client.c:203:30: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'uint32_t' {aka 'long unsigned int'} [-Wformat=]
  203 |                       printf("client check fail total %d, \
      |                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  204 |                               i %d, %08x, %08x\n",
      |                               ~~~~~~~~~~~~~~~~~~~
  205 |                               ALIGN_UP(total), i, intp[i],
      |                                                   ~~~~~~~
      |                                                       |
      |                                                       uint32_t {aka long unsigned int}

Signed-off-by: yanghuatao <yanghuatao@xiaomi.com>
2023-08-28 17:34:02 +03:00
wanggang26
75c8580238 nshlib: fix a typo
painc to panic

Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
2023-08-28 17:33:15 +03:00
yinshengkai
5a0bc863dd setlogmask: fix uncloseed handle
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2023-08-28 17:09:18 +03:00
makejian
11de514217 mbedtls: update Kconfig
update Kconfig for adapting version v3.4.0
Signed-off-by: makejian <makejian@xiaomi.com>
2023-08-27 21:44:10 +08:00
haopengxiang
26e2736863 benchmarks/coremark: apply SEED_METHOD/MEM_METHOD update
Signed-off-by: haopengxiang <haopengxiang@xiaomi.com>
2023-08-26 20:03:06 +08:00
liaoao
1243c0ba4d libfdt: modify makefile
update LIBFDT to LIBC_FDT
move version_gen.h and place it under nuttx/libs/libc/fdt/
change include path to nuttx/libs/libc/fdt/dtc/

Signed-off-by: liaoao <liaoao@xiaomi.com>
2023-08-26 17:06:55 +08:00
liuhongchao
a3dfef117b apps/examples:Add keyboard example
Signed-off-by: liuhongchao <liuhongchao@xiaomi.com>
2023-08-26 17:02:48 +08:00
fangxinyong
512af7fbd7 ltp/makefile: filter testcases based on defconfig
Signed-off-by: fangxinyong <fangxinyong@xiaomi.com>
2023-08-25 21:17:56 +03:00
SPRESENSE
5058a0dba7 Application.mk: Remove warning that program names mismatch
Avoid warning when PROGNAME contains space blank.
2023-08-26 01:18:10 +08:00
raiden00pl
0cd1901da9 boot/miniboot: hide miniboot options if not enabled 2023-08-26 01:17:42 +08:00
Ville Juven
94d477b3df nshlib/nsh_console.h: Add nsh_none, where any empty output can be forwarded
Add nsh_none to consume all empty traces from nsh.

For the variadic argument case need to add a (inline) function to eat
away the __VA_ARGS__ list, there is no good / portable way to do this by
pre-processor macros, but a function will eat the variadic list whatever
its size is.
2023-08-25 17:18:35 +08:00
Ville Juven
1668c3e97d Revert "nshlib/nsh_timcmds.c: Suppress warning about unused variable (errfmt)"
This reverts commit 4ca9b518fa9923c1af9c120eafbac59359874e13.
2023-08-25 17:18:35 +08:00
makejian
1274aa5c8a mbedtls: mbedtls_selftest depends on MBEDTLS_SSL_DTLS_CONNECTION_ID
Signed-off-by: makejian <makejian@xiaomi.com>
2023-08-25 17:02:44 +08:00
haopengxiang
a4f0349813 benchmarks/coremark: fix no coremark in bin
Signed-off-by: haopengxiang <haopengxiang@xiaomi.com>
2023-08-25 08:23:53 +02:00
xuxin19
a091b91d83 cmake:replace custom_patch_target with PATCH_COMMAND
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2023-08-24 17:49:12 +02:00