Commit Graph

124 Commits

Author SHA1 Message Date
openvela-robot 8b816f9e71 tools: Don't register app into nsh if WASM_BUILD_ONLY == y
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2026-04-20 15:10:19 +08:00
openvela-robot 379ea1dfd9 nshlib: Add fdinfo to get information about the process associated fd
Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2026-04-20 15:10:17 +08:00
openvela-robot 5dc8825136 drivertest/rtc: Replace nuttx/time.h with nuttx/clock.h
since nuttx/time.h doesn't exist any more

dependson:3101522

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 15:10:17 +08:00
openvela-robot 038c224f4e cmake: port nxscope and foc and add missing directories 2026-04-20 15:10:15 +08:00
openvela-robot c665a56e83 cmake/apps: add more applications into cmake support
Signed-off-by: chao an <anchao@xiaomi.com>
2026-04-20 15:10:13 +08:00
openvela-robot 8a75b4f309 examples/nimble: fix assertion during pthread create with zero priority
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2026-04-20 15:10:07 +08:00
openvela-robot 3dade5d49c lvgl: add quirc QR scan library include directory
Signed-off-by: lile7 <lile7@xiaomi.com>
2026-04-20 15:10:01 +08:00
openvela-robot b724db415f 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>
2026-04-20 15:09:59 +08:00
openvela-robot cf65880587 Solve compilation warning:implicit declaration of function uECC_make_key_with_d
warning:
tinycrypt/tests/test_ecc_utils.c:250:3: warning: implicit declaration of function ‘uECC_make_key_with_d’; did you mean ‘uECC_make_key’? [-Wimplicit-function-declaration]
  250 |   uECC_make_key_with_d(pub_bytes, prv_bytes, d, uECC_secp256r1());
      |   ^~~~~~~~~~~~~~~~~~~~
      |   uECC_make_key

define:
#ifdef ENABLE_TESTS

/**
 * @brief Create a public/private key pair given a specific d.
 *
 * @note THIS FUNCTION SHOULD BE CALLED ONLY FOR TEST PURPOSES. Refer to
 * uECC_make_key() function for real applications.
 */
int uECC_make_key_with_d(uint8_t *p_public_key, uint8_t *p_private_key,
    			 unsigned int *d, uECC_Curve curve);
#endif

Signed-off-by: zhangchao53 <zhangchao53@xiaomi.com>
2026-04-20 15:09:59 +08:00
openvela-robot 8290769b6c syste/setlogmask: add syslog channel filtering function
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2026-04-20 15:09:58 +08:00
openvela-robot 67cd6937e9 drivertest: fix crash when run drivertest again
AUDIOIOC_STOP should be called after mq_receive, otherwise it will enqueue
an invalid buffer to the queue.

Signed-off-by: jinxiuxu <jinxiuxu@xiaomi.com>
2026-04-20 15:09:57 +08:00
openvela-robot 1e07651cc8 apps/cmake: add some note on cmake header
| # Important note:
| # This CMakeLists.txt is not meant as a top-level CMakeLists.txt. Instead,
| # CMake must be run using the top-level CMakeLists.txt from the nuttx
| # repository and point to this directory via NUTTX_APPS_DIR. For example:
| #   cmake -S <nuttx-dir> -B <build-dir> [...] -DNUTTX_APPS_DIR=<apps-dir>

Signed-off-by: chao an <anchao@xiaomi.com>
2026-04-20 15:09:55 +08:00
openvela-robot 0a17fcc98c add initial cmake build system
Co-authored-by: Daniel Agar <daniel@agar.ca>
Signed-off-by: chao an <anchao@xiaomi.com>
2026-04-20 15:09:54 +08:00
openvela-robot abdcec40ac Remove the const cast from the initialization of boardioc_symtab_s::symtab
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 15:09:53 +08:00
openvela-robot 8ca8591007 apps/testing/ltp: remove the -Dfork=vfork option
as we provided the fork implementation in nuttx, we do not need this
compile option

Signed-off-by: guoshichao <guoshichao@xiaomi.com>
2026-04-20 15:09:53 +08:00
openvela-robot 7b80f22e2e add initial cmake build system
Co-authored-by: Daniel Agar <daniel@agar.ca>
Signed-off-by: chao an <anchao@xiaomi.com>
2026-04-20 15:09:52 +08:00
openvela-robot ccabb6fa38 drivertest: fix warning
Signed-off-by: liaoao <liaoao@xiaomi.com>
2026-04-20 15:09:50 +08:00
openvela-robot 84ea2805fd nshlib: add `-h` option for ls command
config: ./tools/configure.sh sim:nsh
CONFIG_LIBC_FLOATINGPOINT=y
```
nsh> ls -l /dev
/dev:
 crw-rw-rw-       0 console
 crw-rw-rw-       0 gpio0
 crw-rw-rw-       0 gpio1
 crw-rw-rw-       0 gpio2
 crw-rw-rw-       0 gpio3
 crw-rw-rw-       0 loop
 crw-rw-rw-       0 null
 crw-rw-rw-       0 oneshot
 brw-rw-rw- 1048576 ram0
 brw-rw-rw-    1024 ram1
 brw-rw-rw-  524288 ram2
 crw-rw-rw-       0 zero
nsh> ls /lh /dev
nsh: ls: too many arguments
nsh> ls -lh /dev
/dev:
 crw-rw-rw-       0 console
 crw-rw-rw-       0 gpio0
 crw-rw-rw-       0 gpio1
 crw-rw-rw-       0 gpio2
 crw-rw-rw-       0 gpio3
 crw-rw-rw-       0 loop
 crw-rw-rw-       0 null
 crw-rw-rw-       0 oneshot
 brw-rw-rw-    1.0M ram0
 brw-rw-rw-    1.0K ram1
 brw-rw-rw-  512.0K ram2
 crw-rw-rw-       0 zero
```

config: ./tools/configure.sh ../vendor/sim/boards/miwear/configs/miwear -j16
```
nsh> ls -l /resource/misc/media
/resource/misc/media:
 -rwxrwxr-x  384044 AlexaTimer.wav
 -rwxrwxr-x   57001 AlexaReminder.mp3
 -rwxrwxr-x  384132 AlexaAlarm.wav
 -rw-rw-r--   20733 Clank.mp3
 -rw-rw-r--   45183 NotificationXylophone.mp3
 -rw-rw-r--   27420 Robot.mp3
 -rw-rw-r--   21986 FadeIn.mp3
 -rw-rw-r--   42049 Flute.mp3
 -rw-rw-r--  362748 Latona-15s.mp3
 drwxrwxr-x    4096 .
 -rw-rw-r--   47198 alarm_volume_adjust.mp3
 -rw-rw-r--   95338 Expect.mp3
 drwxrwxr-x    4096 ..
 -rw-rw-r--  409435 Sunrise.mp3
 -rw-rw-r--   55841 Fresh.mp3
 -rw-rw-r--   36685 Bells-1s.mp3
 -rw-rw-r--    4432 camera_click.mp3
 -rw-rw-r--  469621 MiRemix.mp3
nsh>
nsh> ls -lh /resource/misc/media
/resource/misc/media:
 -rwxrwxr-x  375.0K AlexaTimer.wav
 -rwxrwxr-x   55.7K AlexaReminder.mp3
 -rwxrwxr-x  375.1K AlexaAlarm.wav
 -rw-rw-r--   20.2K Clank.mp3
 -rw-rw-r--   44.1K NotificationXylophone.mp3
 -rw-rw-r--   26.8K Robot.mp3
 -rw-rw-r--   21.5K FadeIn.mp3
 -rw-rw-r--   41.1K Flute.mp3
 -rw-rw-r--  354.2K Latona-15s.mp3
 drwxrwxr-x    4.0K .
 -rw-rw-r--   46.1K alarm_volume_adjust.mp3
 -rw-rw-r--   93.1K Expect.mp3
 drwxrwxr-x    4.0K ..
 -rw-rw-r--  399.8K Sunrise.mp3
 -rw-rw-r--   54.5K Fresh.mp3
 -rw-rw-r--   35.8K Bells-1s.mp3
 -rw-rw-r--    4.3K camera_click.mp3
 -rw-rw-r--  458.6K MiRemix.mp3
```

Signed-off-by: Junbo Zheng <zhengjunbo1@xiaomi.com>
2026-04-20 15:09:48 +08:00
openvela-robot b7f6e10cec lv_porting/gpu: add gpu flush THD
Signed-off-by: rongyichang <rongyichang@xiaomi.com>
2026-04-20 15:09:47 +08:00
openvela-robot 6be837e713 system/nxdiag: Add Espressif's HAL version
Adds the currently used ESP HAL version to NXdiag's output.
2026-04-20 15:09:45 +08:00
openvela-robot 4ff6a1c307 fix CMOCKA_LEAKDETECT check conf
Signed-off-by: zhangchao53 <zhangchao53@xiaomi.com>
2026-04-20 15:09:43 +08:00
openvela-robot 251053a188 system/ramtest.c:New automatic memory acquisition function.
In this change, we have added a malloc from the heap to get the address when the user does not pass an address.
We took into account that the user would be testing the memory after the device was started, but this required them to focus on how to get a piece of address available. To improve the experience of tool users, we can simply ask them to get a size for testing purposes, while also keeping the ability to test for a given address
This change is mainly in the 'parse_commandline' function, so there are a few changes in the way it is used, see usage for details.

Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2026-04-20 15:09:41 +08:00
openvela-robot 1ed12be4f2 drivertest: set the size of audio buf to allocate
Signed-off-by: jinxiuxu <jinxiuxu@xiaomi.com>
2026-04-20 15:09:41 +08:00
openvela-robot b8a9c4f99b toywasm: bump the version 2026-04-20 15:09:39 +08:00
openvela-robot 743ee223dd nshlib/command: exclude usage to reduce data size
Test on sim/nsh (CONFIG_NSH_DISABLE_HELP=y):

   text	   data	    bss	    dec	    hex	filename
 393746	  26824	   4000	 424570	  67a7a	nuttx     /* before */
 391858	  26440	   4000	 422298	  6719a	nuttx     /* after */
  -1888    -384

Signed-off-by: chao an <anchao@xiaomi.com>
2026-04-20 15:09:37 +08:00
openvela-robot b0cb7d3c69 netutils/iperf: Fix possible precision loss
Signed-off-by: SunJ <jsun@bouffalolab.com>
2026-04-20 15:09:36 +08:00
openvela-robot d7fce81501 wamr: Fix wrong callback index for bsearch
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2026-04-20 15:09:33 +08:00
openvela-robot 9477bb70e9 toywasm: bump version
this includes SIMD support.
2026-04-20 15:09:31 +08:00
openvela-robot 2869667274 fix a typo
Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
2026-04-20 15:09:14 +08:00
openvela-robot 342a937bce system/nxdiag: Fix issues introduced by #1776
Fix compilation issue by properly providing the defconfig name
2026-04-20 15:09:12 +08:00
openvela-robot 540c3f3932 lv_gpu_draw_utils: fix gpu_img_bug_get_img_size wrong size
ignored LV_IMG_CF_TRUE_COLOR_CHROMA_KEYED

Signed-off-by: xinbingnan <xinbingnan@xiaomi.com>
2026-04-20 15:09:10 +08:00
openvela-robot a4de694230 testing/nxdiag: Move to "system" and improve info generated
Move the application to the "System" category. Improve host OS info by using platform.uname() and get current config file using CONFIG_BASE_DEFCONFIG
2026-04-20 15:09:08 +08:00
openvela-robot 2f552f63a7 lvgldemo : add anim engine example
add anim engine example

Signed-off-by: pengxiaolei <pengxiaolei@xiaomi.com>
2026-04-20 15:09:08 +08:00
openvela-robot 02405179ef system/audio: check if channels are valid
check ac_channels upper four bits which means min channels.

Signed-off-by: jinxiuxu <jinxiuxu@xiaomi.com>
2026-04-20 15:09:06 +08:00
openvela-robot 767836c1d2 netlib: set addr.sin_zero to 0 in netlib_set_ipv4dnsaddr
In dns_add_nameserver, the dns_check_nameserver is comparing addresses
with addrlen = sizeof(struct sockaddr_in) for IPv4 addresses, so the
trailing sin_zero field should be 0, otherwise it may fail to figure out
same nameserver address.

Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2026-04-20 15:09:04 +08:00
openvela-robot 176d0cdd88 examples/foc/foc_thr: fix mutex logic 2026-04-20 15:09:02 +08:00
openvela-robot b618a1f5c8 trace: unify ftrace and atrace output formats
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2026-04-20 15:09:02 +08:00
openvela-robot f8d8924bfe crypto/tinycrypt/Kconfig: Fix indentation
Replace help => ---help---
Add TABs
2026-04-20 15:09:00 +08:00
openvela-robot 70ec2b0705 update libtomcrypt testcase dependency key file
Signed-off-by: zhangchao53 <zhangchao53@xiaomi.com>
2026-04-20 15:08:59 +08:00
openvela-robot fe39d07edb add fdsan unit test
Due to the current Nuttx not supporting death test, we removed death test from the original test cases of Android

Signed-off-by: hujun5 <hujun5@xiaomi.com>
2026-04-20 15:08:57 +08:00
openvela-robot 049ce24e82 test/drivertest:add oneshot test and posix timer test.
Signed-off-by: yangguangcai <yangguangcai@xiaomi.com>
2026-04-20 15:08:57 +08:00
openvela-robot 02f9e419f6 ostest: sem need to be destroyed
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2026-04-20 15:08:56 +08:00
openvela-robot 4eca35c18e lvgl: workaround compile error when open CONFIG_STACK_CANARIES
https: //stackoverflow.com/questions/25579759/gcc-inline-assembly-what-does-asm-operand-has-impossible-constraints-mean

Signed-off-by: ligd <liguiding1@xiaomi.com>
2026-04-20 15:08:54 +08:00
openvela-robot 1098cee705 nxlooper: set default format for nxlooper
set default format as AUDIO_FMT_PCM for nxlooper.

Signed-off-by: jinxiuxu <jinxiuxu@xiaomi.com>
2026-04-20 15:08:53 +08:00
openvela-robot f1f868712e Replace all strcat with strlcat
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 15:08:51 +08:00
openvela-robot 2e932a4cd0 dhcpc: adds errno to the dhcpc internal error
add errno to help analyze possible causes of dhcp failures

Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2026-04-20 15:08:51 +08:00
openvela-robot ecce08e27f nshlib/netcmds:support to set MTU
Usage:ifconfig interfacename mtu ***

Signed-off-by: wangchen <wangchen41@xiaomi.com>
2026-04-20 15:08:50 +08:00
openvela-robot fc7fcf820d nshlib/netcmds:modify the description of setting MTU
modify the description of setting MTU

Signed-off-by: wangchen <wangchen41@xiaomi.com>
2026-04-20 15:08:49 +08:00
openvela-robot d599663eeb Add deleting AIDL generated files into distclean
Now, using distclean will delete all AIDL generated files, include xxx.h xxx.cpp Bpxxx.h Bnxxx.h, by using AIDL tool option '--delete'.
dependson:965500
Signed-off-by: zhangyiyang3 <zhangyiyang3@xiaomi.com>
2026-04-20 15:08:48 +08:00
openvela-robot 3770f8df86 Replace all strncpy with strlcpy
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 15:08:46 +08:00
openvela-robot a86dc79f32 test/watchdog:test interface getstatus.
Signed-off-by: yangguangcai <yangguangcai@xiaomi.com>
2026-04-20 15:08:46 +08:00
openvela-robot fa6142a81e ostest:fix signal test fail
If the same signal is quickly repeated multiple times, the signal may be ignored.
In SMP since we cannot control thread scheduling to ensure timely signal processing,
it is best to use semaphores to wait for signal processing to complete, which can also shorten the ostest time

Signed-off-by: hujun5 <hujun5@xiaomi.com>
2026-04-20 15:08:44 +08:00
openvela-robot 3312951c65 lv_porting/fbdev: add vsync offset config
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>

https://source.android.com/docs/core/graphics/implement-vsync#vsync_offset
2026-04-20 15:08:44 +08:00
openvela-robot 9be8190256 nsh: Fix the typo error cmd_swtichboot -> cmd_switchboot
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 15:08:42 +08:00
openvela-robot d14603b6f5 examples/module: Add g_ prefix to chardev_fops
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 15:08:41 +08:00
openvela-robot 593fa74807 support ymodem send/recve can asynchronous
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2026-04-20 15:08:41 +08:00
openvela-robot 13329a1069 watchdog:test watchdog not depend on fs.
Signed-off-by: yangguangcai <yangguangcai@xiaomi.com>
2026-04-20 15:08:40 +08:00
openvela-robot b4001c66ca DroneCAN add socketcan support, rename to DroneCAN
Rename canardv1 to OpenCyphal

Apply suggestions from code review

Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2026-04-20 15:08:38 +08:00
openvela-robot 895122cd3f apps/system: Call arg_freetable before iptables/tcpdump exit
Forget to free argtable before exit.

Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2026-04-20 15:08:38 +08:00
openvela-robot cbf092ea72 bump toywasm version 2026-04-20 15:08:36 +08:00
openvela-robot 4c26acaebb Revert "apps: add default uid for builtin app"
This reverts commit 22d81c55e483d3fe05f9ebb8e1c644e4763870ac.
2026-04-20 15:08:36 +08:00
openvela-robot 896fdc5dcf ostest: fix smp ostest fail
In SMP we need improve thread waiting strategy

Signed-off-by: hujun5 <hujun5@xiaomi.com>
2026-04-20 15:08:34 +08:00
openvela-robot f5092dcfe9 nshlib: Don't show passwd in telnet login
Current implementation is broken, in this patch ECHO is
disabled by termios.

This patch works with https://github.com/apache/nuttx/pull/8950

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2026-04-20 15:08:33 +08:00
openvela-robot a4be6a233e nshlib/nsh_fscmds.c:Add whether or not to pass in empty arguments when rm -r
When rm -r is passed with no address specified, it will automatically recursively unlink all files under the root path ('/') until unlinking to the mounted folder causes the unlink to fail. In this change, rm -r without a specified path will prompt for missing arguments
2026-04-20 15:08:32 +08:00
huangkai8 a01009d4d2 Wrong start and end values would make dead cycle. Exchange the values when start value is bigger than end value. 2026-04-20 15:08:31 +08:00
chao.an aae9de67f1 system/dumpstack: add dump stack tool support
Signed-off-by: chao.an <anchao@xiaomi.com>
2026-04-20 14:57:10 +08:00
openvela-robot 134c7a7722 lvgl/ext: add Kconfig for lvx-font-manager
Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>
2026-04-20 14:57:08 +08:00
openvela-robot 5cf39edf29 webclient: check content-length
While it's better to use a reliable transport like
TLS with working close notify, it isn't always possible.
2026-04-20 14:57:07 +08:00
openvela-robot 4767169e97 Add support for libtomcrypt 2026-04-20 14:56:57 +08:00
openvela-robot dbf3f523e5 webclient: Add _s suffix to internal structures
To follow our coding standard.

I left the structures which is a part of the API for now.
(E.g. struct webclient_context)
2026-04-20 14:56:52 +08:00
openvela-robot 42e55e326b Rename LIB_ to LIBC_ for all libc Kconfig
follow other libc component naming convention

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 14:56:49 +08:00
openvela-robot b1d57f7019 webclient: Implement non-blocking I/O
* webclient_perform
    * Add a new flag to use non-blocking mode (WEBCLIENT_FLAG_NON_BLOCKING)
    * Implement restarting

* Add a few associated API functions
    * webclient_get_poll_info: get the descriptor info for poll/select
    * webclient_abort: abort the operation (instead of restarting)
2026-04-20 14:56:47 +08:00
openvela-robot f77b971166 Fix the printf warning after blkcnt_t change
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 14:56:45 +08:00
chao.an eeb144fb70 system/dumpstack: add dump stack tool support
Signed-off-by: chao.an <anchao@xiaomi.com>
2026-04-20 14:56:44 +08:00