Commit Graph

6939 Commits

Author SHA1 Message Date
Xu Xingliang
cd7869001f interpreters/luajit: use section name for custom heap
Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>
2023-08-09 09:49:23 +02:00
Xu Xingliang
6bfdddca39 interpreter/luajit: use uppercase LUAJIT_ARCH_ARM
Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>
2023-08-09 09:49:23 +02:00
YanXiaowei
b2d5d3f51c apps/examples/pwfb : fix compiling error
fix compiling warning and error when CONFIG_NX=y, EXAMPLES_PWFB=y and EXAMPLES_PWFB_DEFAULT_FONT=y
fix CI-Precheck for pwfb_motion.c

Signed-off-by: YanXiaowei <yanxiaowei@xiaomi.com>
2023-08-09 15:08:44 +08:00
hujun5
79a111fc1a ostest/mutex: mut need to be destroyed
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2023-08-09 15:07:25 +08:00
fangxinyong
2234c3a2e6 nshlib: support list numeric user and group IDs
Signed-off-by: fangxinyong <fangxinyong@xiaomi.com>
2023-08-09 15:06:09 +08:00
chao an
3b2b73de88 coredump/priority: Increase the default priority of coredump to 254
Increase coredump priority to avoid unnecessary task switch during dump

Signed-off-by: chao an <anchao@xiaomi.com>
2023-08-09 15:00:45 +08:00
yinshengkai
d0f790e166 testing: add os performance measurement
Measure the performance of core system functions
such as thread switching and the time required for semaphore execution

Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2023-08-09 14:59:41 +08:00
田昕
5449126959 examples/mtdpart:fix compiling warning in printf.
Signed-off-by: 田昕 <tianxin7@xiaomi.com>
2023-08-09 14:58:19 +08:00
fengxuesong
2909e8d7a0 Add function missing FAR information
Signed-off-by: fengxuesong <fengxuesong@xiaomi.com>
2023-08-09 14:47:00 +08:00
rongyichang
6fecb56aee apps/examples: fix fb example show error
For screens with transparency, the alpha value should be set to 0xFF

Signed-off-by: rongyichang <rongyichang@xiaomi.com>
2023-08-09 08:34:36 +02:00
cuiziwei
53cb2a947d apps/tools:fix build warning.
Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
2023-08-09 13:52:22 +08:00
Peter Bee
04e86fc2d5 graphics/libyuv: refine patching logic
Only stable branch need custom patch, main is fixed by upstream

Signed-off-by: Peter Bee <bijunda1@xiaomi.com>
2023-08-09 13:51:50 +08:00
Peter Bee
24caccbd02 graphics/libyuv: add -Wno-undef
Signed-off-by: Peter Bee <bijunda1@xiaomi.com>
2023-08-09 13:51:50 +08:00
raiden00pl
6b98aec34a wakaama: update wakaama to a commit that includes a fix for wakaama examples under NuttX 2023-08-09 00:02:46 +08:00
shipei
5aaf4136bf nxplayer:add sbc simple parser in nxplayer
Usage:
device /dev/audio/compress0p
play /data/test.sbc

This function requires the platform to support compress decoding and playback

Signed-off-by: shipei <shipei@xiaomi.com>
2023-08-08 21:41:15 +08:00
zhangyuan21
987cb1ebd9 adb: support adb boardctl when not composite device
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2023-08-08 00:11:54 -07:00
Petro Karashchenko
3648c0cc5c testing/ostest: call up_idle() only in case of CONFIG_SIM_WALLTIME_SLEEP=y
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-08-07 18:58:46 -07:00
Petro Karashchenko
6acf345296 testing/ostest: add test case for task priority change with locked scheduler
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-08-07 18:58:46 -07:00
Petro Karashchenko
e30a0602a0 testing/ostest: add missing section comments
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-08-07 18:58:46 -07:00
YAMAMOTO Takashi
ee71af840f toywasm: regen for v31
```
REF=6f67aec18ce8f824479e305c17464bd4df1dd7ae ./regen.sh
```
2023-08-07 01:12:58 -07:00
YAMAMOTO Takashi
6fb38bc246 toywasm: bump the version to v31 2023-08-07 01:12:58 -07:00
xuxin19
646a30fe7c cmake:migrate apps CMakeLists for libtomcrypt
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2023-08-05 06:48:17 -07:00
makejian
ff6df40e3c fix -Wmaybe-uninitialized compile warning in nist-sts
fix compile warning as following:
nist-sts/sts/src/cusum.c:15:23: warning: 'zerv' may be used uninitialized in this function[-Werror=maybe-uninitialized]

Signed-off-by: makejian <makejian@xiaomi.com>
2023-08-03 22:43:59 -07:00
yanghuatao
89a1255dc2 ltp: follow linux on pthread_rwlock_unlock
Signed-off-by: Shoukui Zhang <zhangshoukui@xiaomi.com>
2023-08-03 22:43:50 -07:00
chenrun1
5645b82b74 memorystress:Fix some warnings and make the index randomized.
Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2023-08-03 10:55:12 -07:00
chenrun1
4a78dedbae memorystress:For pressure detection of memory stability
Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2023-08-03 10:55:12 -07:00
yanghuatao
1309990d6c ltp/makefile: nuttx on github download ltp code failed fix
Fix github download ltp code error:
Cloning into 'ltp'...
*** Please tell me who you are.
Run
  git config --global user.email "you@example.com"
  git config --global user.name "Your Name"
to set your account's default identity.
Omit --global to set the identity only in this repository.
fatal: unable to auto-detect email address (got 'root@33ba2a4a6fc5.(none)')

Signed-off-by: yanghuatao <yanghuatao@xiaomi.com>
2023-08-03 10:54:44 -07:00
makejian
e109319a2e fix memory leak in aesctr test case
Signed-off-by: makejian <makejian@xiaomi.com>
2023-08-03 10:54:25 -07:00
guoshichao
bc3fada2ce apps/testing/ltp: conditional build the testcases based on defconfig
Signed-off-by: guoshichao <guoshichao@xiaomi.com>
2023-08-03 07:30:28 -07:00
guoshichao
bc8d77fdbd apps/testing/ltp: filter the testcases based on config
control the testcases build rules based on the config that current
enabled

Signed-off-by: guoshichao <guoshichao@xiaomi.com>
2023-08-03 07:30:28 -07:00
yangyalei
fd261d839d test: modify stacksize and priority
Signed-off-by: yangyalei <yangyalei@xiaomi.com>
2023-08-03 07:26:49 -07:00
makejian
383ca3bcf9 crypto/libsodium: fix libsodium compile warning
Signed-off-by: makejian <makejian@xiaomi.com>
2023-08-03 07:26:16 -07:00
makejian
53620b91c8 crypto/libsodium: porting libsodium into nuttx
Signed-off-by: makejian <makejian@xiaomi.com>
2023-08-03 07:26:16 -07:00
zhanghongyu
768993fb15 ntpclient: change sendto/recv timeout to Kconfig
Change the timeout period of ntpclient to configurable to reduce the impact
The NTP packet is lost during the first TLS connection after the board is started.

Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2023-08-03 06:16:54 -07:00
zhanghongyu
216df60208 usrsocktest: correct the parameter when pthread_kill is called
When the value of the signal is modified, the function will be faulty

Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2023-08-03 06:16:19 -07:00
xuxin19
c93c0da4b0 cmake:migrate apps CMakeLists for mbedtls
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2023-08-03 05:53:05 -07:00
Michal Lenc
95fcece2a5 mcuboot: update mcuboot to support swap using move
Older versions of mcuboot did not support swap using move and therefore
the build would have failed CONFIG_MCUBOOT_SWAP_USING_MOVE=y.

Newer mcuboot contains initial support of swap using move for NuttX. Also
Makefile was updated to as some bootutil files were removed from mcuboot.

Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2023-08-03 05:31:27 -07:00
wanggang26
ccd6aec427 ofloader: fix warning and typo
Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
2023-08-01 23:22:52 -07:00
anjiahao
d0ad047f81 support openflashloader for nuttx
wiki:https://wiki.segger.com/SEGGER_Flash_Loader

Signed-off-by: anjiahao <anjiahao@xiaomi.com>
Signed-off-by: chao an <anchao@xiaomi.com>
2023-08-01 23:22:52 -07:00
simbit18
85988dc77f Fix nuttx coding style
Remove TABs
2023-08-01 23:10:32 -07:00
makejian
4b0a3d92ff Porting NIST-Statistical-Test-Suite in nuttx to test quality of rng
(1)add nist-sts init nuttx
(2)Fix possible memory bug
(3)Fix double free memory
Signed-off-by: makejian <makejian@xiaomi.com>
2023-08-01 10:06:45 -07:00
Zhe Weng
396ab2e931 nsh/alias: Fix compiler warning
Got use-after-free warning under GCC 12 with `-O3` option, and I found
that `nsh_strcat` may realloc `ptr`, then `cmdline` may point to invalid
memory.

Let `cmdline` point to the reallocated `ptr` may solve the problem.
Tested by `alias ll='ls -l'` and `ll /` on sim.

GCC output:

CC:  binfmt_unloadmodule.c In function 'nsh_aliasexpand',
    inlined from 'nsh_argument' at nsh_parse.c:1879:20:
nsh_parse.c:1196:23: error: pointer 'ptr' used after 'realloc' [-Werror=use-after-free]
 1196 |               ptr     = cmdline + len;
      |               ~~~~~~~~^~~~~~~~~~~~~~~
In function 'nsh_strcat',
    inlined from 'nsh_aliasexpand' at nsh_parse.c:1190:21,
    inlined from 'nsh_argument' at nsh_parse.c:1879:20:
nsh_parse.c:1100:27: note: call to 'realloc' here
 1100 |   argument  = (FAR char *)realloc(s1, allocsize);
      |                           ^~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2023-08-01 08:13:23 -07:00
guanyi
f50d2cdbe3 fix ostest sigprocmask testcase
problem: ostest may fail at procmask test, because signals:sigkill/sigstop should not be added in signal mask
solution: skip checking whether sigkill/sigstop are in signal mask

Signed-off-by: guanyi <guanyi@xiaomi.com>
2023-08-01 21:02:52 +09:00
SPRESENSE
4a4c550ced audioutils/fmsynth: Add create instance for static
To use this with static instance, add create function with
arguments.
2023-07-31 22:48:52 -07:00
YAMAMOTO Takashi
5365fc9ffd toywasm: regen for v30.0.0
```
REF=bfcc5be6eb25c9581c6c3b443ac38c1a814f8e18 ./regen.sh
```
2023-07-31 10:26:30 -07:00
YAMAMOTO Takashi
23691fd422 toywasm: bump to v30.0.0 2023-07-31 10:26:30 -07:00
wanggang26
cb684097b8 nshlib: add print negative number support for echo command
Fix issue that "echo -1" will give "argument invalid" error

Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
2023-07-31 07:58:41 -07:00
Huang Qi
74db485277 tools: Raise error if wasm module build failed
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2023-07-31 07:14:59 -07:00
makejian
32aefa44c5 crypto/mbedtls: Bump Mbed TLS to version 3.4.0
Signed-off-by: makejian <makejian@xiaomi.com>
2023-07-30 22:21:52 -07:00
wanggang26
f585d74b8c nshlib: refine dd verify printing format
before:
infile sector 0
7f454c46010101000000000000000000
02002800010000007d13001834000000
8cbd2a00000400053400200004002800

now:
infile sector 0:
0000: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00 .ELF............
0010: 02 00 28 00 01 00 00 00 7d 13 00 18 34 00 00 00 ..(.....}...4...
0020: 8c bd 2a 00 00 04 00 05 34 00 20 00 04 00 28 00 ..*.....4. ...(.

Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
2023-07-30 22:21:34 -07:00