Commit Graph

70 Commits

Author SHA1 Message Date
Fotis Panagiotopoulos a6627a449c Fixed compiler warnings. 2026-04-20 15:05:33 +08:00
openvela-robot 0d912c494a nshlib: Change ELF priority and stack size based on builtin list
When an application is used as a loadable ELF module, the priority and
stack size of the application task is always fixed at the default values.

This commit changes to get the priority and stack size of the application
from the bulitin list. If it is not on the list, it still works as before.
2026-04-20 15:05:32 +08:00
openvela-robot 7e5bdfb3eb examples/foc: separate control thread configuration from general args 2026-04-20 15:05:31 +08:00
openvela-robot d04a5da84f lv_gpu_decoder: fix potential oob read
Signed-off-by: Peter Bee <bijunda1@xiaomi.com>
2026-04-20 15:05:31 +08:00
openvela-robot ead01cb93f README.md: Update NuttX Porting Guide Online links
Signed-off-by: Junbo Zheng <zhengjunbo1@xiaomi.com>
2026-04-20 15:05:28 +08:00
openvela-robot 5b5fe6c722 testing/cmocka: add cmocka_main and fix complication error in audio
cmocka_main and Makefile follow nuttx style,
and fix function print_error in cmocka conflicts with the function name in ffmpeg

Signed-off-by: yintao <yintao@xiaomi.com>
2026-04-20 15:05:28 +08:00
openvela-robot db1d936e08 wireless: gs2200m: Change usrsock xid from uint64_t to uint32_t
Fix the type to match usrsock.h has been changed.
2026-04-20 15:05:26 +08:00
openvela-robot 18867b092f ostest:add sem protocl to priority inheritance
ostest testcase use sem as lock
need set protocl
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2026-04-20 15:05:25 +08:00
openvela-robot ca25a8b452 Fix fatal error: array: No such file or directory
enable test_stl2 only when CONFIG_LIBCXX is enabled
since uClibc++/minic++ doesn't have array header file

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 15:05:24 +08:00
openvela-robot 72d303208e testing/ostest: Remove the code which reference CONFIG_SEM_NNESTPRIO
since CONFIG_SEM_NNESTPRIO is removed by:
https://github.com/apache/incubator-nuttx/pull/6318

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 15:05:15 +08:00
openvela-robot 1b5a2a2df5 include/canutils/lely: fix file path in comment header
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2026-04-20 15:05:09 +08:00
openvela-robot 6e939ca1d0 usrsock:aggregrate more data into single recf_from response
recv request can only get maximum 1500 bytes payload in single response in
earlier design, this patch aggregrate more payloads(maximum 16k bytes)
into one response to make sure usrsock’s req/response mechanism is not
bottleneck during usrsock’s throughput test.

Signed-off-by: liangchaozhong <liangchaozhong@xiaomi.com>
2026-04-20 15:05:08 +08:00
openvela-robot 74441428b3 dhcpc:fix xid error clear bug.
Signed-off-by: 田昕 <tianxin7@xiaomi.com>
2026-04-20 15:05:06 +08:00
openvela-robot 9d33ad0a63 ostest: fix sighand_test report error
sighand_test: ERROR waiter task did not exit

reason:
sleep will be interrupt by signal

Signed-off-by: ligd <liguiding1@xiaomi.com>
2026-04-20 15:05:04 +08:00
openvela-robot 063cd6d773 Fixed unused variable and improved Kconfig for TCP IPC Client & Server 2026-04-20 15:05:03 +08:00
openvela-robot e2c163bf9f dhcpc: codechecker issuse fix
presult->serverid.s_addr maybe is garbage or undefined

Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2026-04-20 15:05:03 +08:00
openvela-robot ee2b67ef7f Remove the unnecessary cast for main_t, NULL and argv
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 15:05:02 +08:00
openvela-robot 09fb6941ae wireless/gs2200m: Rename usrsock_request to usrsock_handle_request
fix the conflict after usrsock reconstruct:
https://github.com/apache/incubator-nuttx/pull/6949

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 15:04:59 +08:00
openvela-robot 471294725e nshlib: Reuse nsh_session logic in nsh_telnetmain
to avoid the code duplication

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 15:04:58 +08:00
openvela-robot 073540aa6a apps/application: genarate staging library before copy
neededby:873092

Signed-off-by: chao an <anchao@xiaomi.com>
2026-04-20 15:04:57 +08:00
openvela-robot 822e32d046 Make.defs: Change "ifeq ($(XXX),y)" to "ifneq ($(XXX),)
to support the tristate option correctly and unify the usage

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 15:04:55 +08:00
openvela-robot a15fc78ad2 application.mk: export custom library to apps/staging
Signed-off-by: chao an <anchao@xiaomi.com>
2026-04-20 15:04:55 +08:00
openvela-robot 435c148232 system/cachespeed:Average time to add 2026-04-20 15:04:53 +08:00
openvela-robot e32b6fbe85 apps/Application: create binary dir before archive
Signed-off-by: chao an <anchao@xiaomi.com>
2026-04-20 15:04:53 +08:00
openvela-robot 27a6c82180 Fixes in DHCPc. 2026-04-20 15:04:52 +08:00
openvela-robot 0a0c756e57 examples: fix format issue
Signed-off-by: nietingting <nietingting@xiaomi.com>
2026-04-20 15:04:51 +08:00
openvela-robot b6bc64d833 examples: clean warning of pipe
transfer_test.c:66:12: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
   int fd = (int)pvarg;
            ^
transfer_test.c: In function 'transfer_writer':
transfer_test.c:122:12: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
   int fd = (int)pvarg;
            ^
transfer_test.c: In function 'transfer_test':
transfer_test.c:169:58: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
   ret = pthread_create(&readerid, NULL, transfer_reader, (pthread_addr_t)fdin);
                                                          ^
transfer_test.c:179:58: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
   ret = pthread_create(&writerid, NULL, transfer_writer, (pthread_addr_t)fdout);
                                                          ^
transfer_test.c:202:13: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
       ret = (int)value;
             ^
transfer_test.c:216:13: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
       tmp = (int)value;
             ^

Signed-off-by: nietingting <nietingting@xiaomi.com>
2026-04-20 15:04:49 +08:00
openvela-robot a3036bae49 ostest: add semaphore wait case for task restart
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2026-04-20 15:04:48 +08:00
openvela-robot b609fc60c4 netutils/dhcpc: Set close-on-exec by default to avoid udp_conn leak
Signed-off-by: chao an <anchao@xiaomi.com>
2026-04-20 15:04:45 +08:00
openvela-robot f296980b3b netutls/dhcpc: treat EINTR as the normal errno
A return code of EINTR is perfectly normal, and isn't an error as such.
It's an indication that your program may need to do something because
a signal occurred, but if not, should re-call recv().

Signed-off-by: chao an <anchao@xiaomi.com>
2026-04-20 15:04:45 +08:00
openvela-robot dd880552dc apps/nshlib: add uptime command support
run uptime command on sim:
nsh>
nsh>
nsh> uptime
19:35:01 up  1:40, load average: 0.00, 0.00, 0.00
nsh>
nsh>
nsh> uptime -s
2022-09-16 17:54:26
nsh>
nsh>
nsh> uptime -p
up 1 hour, 40 minutes
nsh>
nsh>
nsh> uptime -h
Usage:
uptime [options]
Options:
-p, show uptime in pretty format
-h, display this help and exit
-s, system up since
nsh>
nsh>
nsh> uptime -abc
uptime: invalid option -- -abc
Usage:
uptime [options]
Options:
-p, show uptime in pretty format
-h, display this help and exit
-s, system up since
nsh>
nsh>
nsh> date
Fri, Sep 16 19:35:18 2022
nsh>
nsh>

Signed-off-by: Junbo Zheng <zhengjunbo1@xiaomi.com>
2026-04-20 15:04:43 +08:00
openvela-robot 2563c92252 ltp: draft, fix build fail with "argument too long" issue on 20.04
dependson:860067

Signed-off-by: nietingting <nietingting@xiaomi.com>
2026-04-20 15:04:43 +08:00
openvela-robot 2eea8df8a9 quickjs: add qjs tool configuration item
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2026-04-20 15:04:40 +08:00
openvela-robot 17b27a283b lv_porting/gpu: add gpu draw layer
dependson:853815

Signed-off-by: Peter Bee <bijunda1@xiaomi.com>
2026-04-20 15:04:39 +08:00
openvela-robot 6dc9ee10e2 examples/usrsocktest: correct return value check of dup2()
DUP(2) Linux Programmer's Manual

NAME
       dup, dup2, dup3 - duplicate a file descriptor
...
RETURN VALUE
       On success, these system calls return the new file descriptor.
       On error, -1 is returned, and errno is set appropriately.

Signed-off-by: chao an <anchao@xiaomi.com>
2026-04-20 15:04:37 +08:00
openvela-robot 20e930e4ec lv_porting/gpu: fix 16bpp
Signed-off-by: Peter Bee <bijunda1@xiaomi.com>
2026-04-20 15:04:36 +08:00
openvela-robot c42e4d3876 gpusutils/minmea: Fix build break by wrong unpack path
minmea is not cover by CI and in current implementations,
the source files from downloaded tarball were put into root path in gpsutils/minmea instead of in $(MINMEA_DIR)/$(MINMEA_UNPACKNAME),
and then:
```
mv: cannot stat 'minmea-db46128e73cee26d6a6eb0482dcba544ee1ea9f5': No such file or directory
```

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2026-04-20 15:04:34 +08:00
openvela-robot 959c09e57a Don't download tarballs if a local git repo found
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2026-04-20 15:04:34 +08:00
openvela-robot a292bbbf61 fix use of addroute/delroute
Signed-off-by: liyi <liyi25@xiaomi.com>
2026-04-20 15:04:32 +08:00
openvela-robot 8edaa78e8c net/sockopt: move BINDTODEVICE to socket level
rename the UDP_BINDTODEVICE to SO_BINDTODEVICE to follow the linux
style to be compatible with non-UDP protocol binding requirements

Signed-off-by: chao.an <anchao@xiaomi.com>
2026-04-20 15:04:31 +08:00
Fotis Panagiotopoulos 2b9efd6b33 Fixed compiler warnings. 2026-04-20 15:04:27 +08:00
openvela-robot 625968d914 nshlib: support c++ access nsh api
N/A

Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2026-04-20 14:56:29 +08:00
openvela-robot 406e7bc0b6 Add lvx_msgbox in Kconfig.
N/A

Signed-off-by: wangxuedong <wangxuedong@xiaomi.com>
2026-04-20 14:56:26 +08:00
openvela-robot 401291a9f7 system/critmon: add thread run time support
Signed-off-by: ligd <liguiding1@xiaomi.com>
2026-04-20 14:56:23 +08:00
openvela-robot a2996be919 examples/watchdog: add depends on CONFIG_WATCHDOG
Signed-off-by: ligd <liguiding1@xiaomi.com>
2026-04-20 14:56:11 +08:00
openvela-robot 31bba56215 examples/watchdog: add depends on CONFIG_WATCHDOG
Signed-off-by: ligd <liguiding1@xiaomi.com>
2026-04-20 14:56:08 +08:00
openvela-robot a12f989dba lvgl: lv_ffmpeg support dynamic picture decoding.
N/A

Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
2026-04-20 14:56:04 +08:00
openvela-robot 36d321395e apps/system: fix command history behavior (2)
N/A
Fixing "last command" misbehavior when one command in history is a
substring of another.

Signed-off-by: Peter Bee <bijunda1@xiaomi.com>
2026-04-20 14:56:02 +08:00
openvela-robot 53e5b9156a examples: Update lvgldemo to lvgl v8.
N/A

Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
2026-04-20 14:56:00 +08:00
openvela-robot 48431654da system/critmon: add critmon program for critmon once
Signed-off-by: ligd <liguiding1@xiaomi.com>
2026-04-20 14:55:58 +08:00