Andre Heinemans
cecc2e762b
controlse: add accesslib for the se05x secure element
2024-04-21 11:20:12 +08:00
Andreea Luca
fe12ad9444
examples/mqttc: Add QOS argument option
...
Add QOS argument option. Users can optionally
change QOS to 0/1/2.
2024-04-20 22:10:50 -03:00
Michael Jung
3dc64d9a26
netutils/dhcp6c: Fix printf-style format strings
...
Signed-off-by: Michael Jung <michael.jung@secore.ly>
2024-04-20 12:01:19 -03:00
Zhe Weng
43a8e862e0
apps/system: Add conntrack command
...
A simple tool like Linux's 'conntrack', only supports printing NAT connections now.
nuttx> conntrack -E
[NEW] icmp src=192.168.21.66 dst=1.2.3.4 type=8 code=0 id=26739 src=1.2.3.4 dst=192.168.11.1 type=0 code=0 id=26739
[NEW] tcp src=192.168.21.66 dst=1.2.3.4 sport=38446 dport=80 src=1.2.3.4 dst=192.168.11.1 sport=80 dport=38446
[DESTROY] icmp src=192.168.21.66 dst=1.2.3.4 type=8 code=0 id=26739 src=1.2.3.4 dst=192.168.11.1 type=0 code=0 id=26739
nuttx> conntrack -L
tcp src=192.168.21.66 dst=1.2.3.4 sport=38446 dport=80 src=1.2.3.4 dst=192.168.11.1 sport=80 dport=38446
icmp src=192.168.21.66 dst=1.2.3.4 type=8 code=0 id=26739 src=1.2.3.4 dst=192.168.11.1 type=0 code=0 id=26739
conntrack: 2 flow entries have been shown.
Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2024-04-18 09:57:01 +08:00
Zhe Weng
7e7b108ef9
netutils/netlib: Add netfilter conntrack functions
...
Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2024-04-18 09:57:01 +08:00
simbit18
000a8bcdf1
Fix nuttx coding style
...
fix
error: Relative file path does not match actual file
error: Long line found
error: Operator/assignment must be preceded with whitespace
error: Missing blank line after comment
2024-04-18 09:56:48 +08:00
Huang Qi
7159f09375
benchmarks: Change options from bool to tristate
...
This patch changes the enable options of coremark,
coremark-pro and cachespeed from bool to tristate.
This allows the user to select the benchmark to be built
as a elf module, which can be loaded and executed on the
target dynamically.
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2024-04-17 22:47:22 +08:00
zhaoxingyu1
3cbda8a24c
mtd_config_fs: support align size test
...
Originally 1-byte alignment, now supports n-byte alignment
Signed-off-by: zhaoxingyu1 <zhaoxingyu1@xiaomi.com>
2024-04-16 19:05:44 +08:00
Alan Carvalho de Assis
b4ec000dec
apps/nsh_commands: Use quit to poweroff
...
Currently new users when try to run NuttX using the SIM
get stuck into simulator, because they have no idea that
poweroff command is used to leave it. Let use KISS approach
and use quit as an alias to poweroff command.
Signed-off-by: Alan C. Assis <acassis@gmail.com>
2024-04-13 15:17:50 +08:00
Xiang Xiao
9d67f38062
canutils: Fix minor style issue found in canlib
...
no functional change
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2024-04-12 15:48:21 -03:00
GC2020
f633d11b63
examples/pipe:removes useless data from test cases
2024-04-10 23:12:10 +08:00
simbit18
7e30c0e4c9
Fix Kconfig style
...
Remove spaces from Kconfig files
Add TABs
Add comments
2024-04-09 08:16:40 +02:00
chao an
78a8dd27c9
Revert "testing/ostest/cancel: joining a detached/canceled thread should return EINVAL, not ESRCH"
...
This reverts commit 69e497f681
.
In order to ensure the detached thread obtain the correct return
value from pthread_join()/pthread_cancel(), the detached thread
will create joininfo to save the detached status after thread
destroyed. If there are too many of detached threads in the
process group, the joininfo will consume too much memory.
This is not friendly to embedded MCU devices.
This commit keep the semantics as #11898 was introduced,
will no longer save joininfo for detached threads to avoid wasting memory.
Refer PR:
https://github.com/apache/nuttx/pull/12106
Signed-off-by: chao an <anchao@lixiang.com>
2024-04-09 13:45:39 +08:00
pengyiqiang
92d922a108
testing/monkey: fix unsigned zero comparison
...
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
2024-04-08 14:32:08 +08:00
chenrun1
da0c870b94
dhrystone:Add dhrystone download link
...
Source Code:https://github.com/Keith-S-Thompson/dhrystone
Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2024-04-08 14:11:31 +08:00
chenrun1
e9172a3195
fio:Added fio download link and corresponding fix patch
...
Source code:https://github.com/ldorau/fio
Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2024-04-08 14:11:31 +08:00
chenrun1
b1e8fc784f
coremark-pro:Added coremark-pro download link.
...
Source Code:https://github.com/eembc/coremark-pro
Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2024-04-08 14:11:31 +08:00
chenrun1
270fa07cbd
benchmarks:Move the performance tools to benchmark.
...
1.dhrystone
2.fio
3.coremark-pro
Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2024-04-08 14:11:31 +08:00
chenrun1
e6c3930b2d
apps:Move the performance tools to benchmark.
...
1.ramspeed
2.cachespeed
3.osperf
4.iozone
5.superPI
Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2024-04-08 14:11:31 +08:00
simbit18
4d6f4d00b0
Minor improvement for tools/ci: Fixed cmake build of bloaty and installation in darwin.sh script.
...
function bloaty() Add -D CMAKE_INSTALL_PREFIX="${NUTTXTOOLS}"/bloaty.
Improves workflow execution time because it is now cached.
Changed reference file to calculate the hash for key of actions/cache@v4. Now it is darwin.sh.
2024-04-07 22:09:28 +02:00
Alan Carvalho de Assis
8d14f4eaac
apps/nshlib: Never disable HELP and ?
2024-04-06 13:34:56 +08:00
xuxin19
77a1599e44
cmake:migrate wamr to CMake build
...
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2024-04-04 12:09:26 +08:00
zhangchao53
322ce121a2
ignore zip file
...
Signed-off-by: zhangchao53 <zhangchao53@xiaomi.com>
2024-04-04 12:07:21 +08:00
xuxin19
96baf98862
Make.defs:make all AROBJS and OBJS batch cleaned in Application
...
application `OBJS` clean call `CLEAN` macro defined in nuttx/tools/Config.mk
variables are expand directly within the marco, that has potential issue
this patch clean and reset these variables
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2024-04-02 17:04:02 -03:00
chao an
20c90d5b43
nshlib/irqaff: add irq affinity command
...
add support for set an IRQ affinity to CPUs by software
qemu-armv7a/bmp: switch uart irq to different CPUs
nsh> ps
PID GROUP PRI POLICY TYPE NPX STATE EVENT SIGMASK STACK USED FILLED COMMAND
0 0 0 FIFO Kthread - Ready 0000000000000000 004080 000536 13.1% CPU0 IDLE
1 1 192 RR Kthread - Waiting Semaphore 0000000000000000 004032 000296 7.3% hpwork 0x4013f51c 0x4013f530
2 2 100 RR Task - Running 0000000000000000 004056 001168 28.7% nsh_main
nsh> irqaff 33 0x2
nsh> ps
PID GROUP PRI POLICY TYPE NPX STATE EVENT SIGMASK STACK USED FILLED COMMAND
0 0 0 FIFO Kthread - Ready 0000000000000000 004080 000736 18.0% CPU1 IDLE
1 1 192 RR Kthread - Waiting Semaphore 0000000000000000 004032 000296 7.3% hpwork 0x4013f544 0x4013f558
2 2 100 RR Task - Running 0000000000000000 004056 001288 31.7% nsh_main
nsh> irqaff 33 0x4
nsh> ps
PID GROUP PRI POLICY TYPE NPX STATE EVENT SIGMASK STACK USED FILLED COMMAND
0 0 0 FIFO Kthread - Ready 0000000000000000 004080 000736 18.0% CPU2 IDLE
1 1 192 RR Kthread - Waiting Semaphore 0000000000000000 004032 000296 7.3% hpwork 0x4013f56c 0x4013f580
2 2 100 RR Task - Running 0000000000000000 004056 001168 28.7% nsh_main
nsh> irqaff 33 0x8
nsh> ps
PID GROUP PRI POLICY TYPE NPX STATE EVENT SIGMASK STACK USED FILLED COMMAND
0 0 0 FIFO Kthread - Ready 0000000000000000 004080 000736 18.0% CPU3 IDLE
1 1 192 RR Kthread - Waiting Semaphore 0000000000000000 004032 000296 7.3% hpwork 0x4013f594 0x4013f5a8
2 2 100 RR Task - Running 0000000000000000 004056 001168 28.7% nsh_main
Signed-off-by: chao an <anchao@lixiang.com>
2024-03-29 16:16:07 +08:00
vela-mib
84e186c9d1
fix build warning for kernel testsuites
...
Signed-off-by: vela-mib <vela-mib@xiaomi.com>
2024-03-28 18:18:58 +08:00
zhanghongyu
e2805fc9c4
matter: use a fixed version of pigweed
...
Otherwise, the compilation may fail due to changes in the pigweed code
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2024-03-26 01:19:37 +08:00
raiden00pl
12f91b7cee
cmake: add support for Unity
2024-03-23 22:12:46 +01:00
vela-mib
74cf82f995
fix build warning for kernel testsuites
...
Signed-off-by: vela-mib <vela-mib@xiaomi.com>
2024-03-22 18:39:15 +08:00
Saurav Pal
f4092962df
apps/testing/nand_sim: Adds NAND virtual device.
...
Adds a NAND virtual device daemon.
Signed-off-by: Saurav Pal <resyfer.dev@gmail.com>
2024-03-21 22:46:49 +08:00
Adam Comley
c15a6970c9
Derive MAC Address from board unique_id
2024-03-21 22:46:28 +08:00
rushabhvg
b311c46778
apps/examples/hello_rust/Makefile: Add -O flag
2024-03-21 22:45:33 +08:00
Sebastien Lorquet
8cb0bf3eab
dhcpc: reset the state of the "cancel" variable when restarting the async dhcpc thread.
2024-03-20 02:25:33 +08:00
Huang Qi
c138651300
tools: New CMake based Wasm build system
...
Introduce a new CMake based build system for Wasm.
And target the Wasm ABI to wasm32-wasi, it should
be a more commnly used and standard ABI for Wasm.
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2024-03-15 11:15:25 -03:00
Juha Niskanen
ec4d7a19f7
ostest: add test for libc memmem() function
...
Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
2024-03-15 19:46:42 +08:00
zhangchao53
5519de826f
fix compile error: list_initialize
...
Signed-off-by: zhangchao53 <zhangchao53@xiaomi.com>
2024-03-15 19:46:00 +08:00
xuxin19
38d30f9984
matter cmake:fix matter_generate_args_tmp_file call error
...
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2024-03-15 01:26:22 +08:00
chao an
69e497f681
testing/ostest/cancel: joining a detached/canceled thread should return EINVAL, not ESRCH
...
Reference:
https://pubs.opengroup.org/onlinepubs/009695399/functions/pthread_join.html
[EINVAL]
The value specified by thread does not refer to a joinable thread.
https://docs.oracle.com/cd/E19120-01/open.solaris/816-5137/tlib-25/index.html
EINVAL
The thread corresponding to the given thread ID is a detached thread.
https://linux.die.net/man/3/pthread_join
EINVAL
thread is not a joinable thread.
Signed-off-by: chao an <anchao@lixiang.com>
2024-03-13 18:06:36 +09:00
shizhenghui
a00ba19eb4
camera_example: modify initialize interface after v4l2 refactor
...
Signed-off-by: shizhenghui <shizhenghui@xiaomi.com>
2024-03-13 09:50:58 +08:00
Juha Niskanen
767642b4ea
testing/getprime: allow running with zero threads
...
getprime can now run without creating any additional threads. This helps
testing pthreads and measuring performance of directly searching primes
from main thread versus creating one thread.
Also don't misuse ASSERT() for checking command-line input coming
from user.
Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
2024-03-12 19:40:17 +08:00
vela-mib
fec49af501
add cm_fs_test source code
...
Signed-off-by: vela-mib <vela-mib@xiaomi.com>
2024-03-11 11:24:13 +08:00
yinshengkai
663b54e833
database: fix compile failure
2024-03-05 13:46:01 +08:00
yinshengkai
c8e0d7a02c
database: add sqlite support
...
enable UTILS_SQLITE configuration, use the sqlite3 command line tool
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2024-03-04 15:34:33 -03:00
Xiang Xiao
110fa8264d
ci: Remove the codecheck from build.yml
...
the check isn't really enabled and enforce before
due to a mass of false alarm, but recently it break
ci frequently, so it's better to remove it now.
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2024-03-04 12:17:44 +08:00
Xiang Xiao
30b3744b4e
Ignore all *.lock in apps folder
...
to fix the ci break reported by:
https://github.com/apache/nuttx/actions/runs/8124056482/job/22205151164?pr=11829
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2024-03-03 10:13:39 +01:00
Michał Łyszczek
d17f554355
examples/embedlog: update example for embedlog-v0.7.0
...
Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl>
2024-03-03 12:03:54 +08:00
Michał Łyszczek
e6047b296e
logging/embedlog: update to version v0.7.0
...
Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl>
2024-03-03 12:03:54 +08:00
TimJTi
169beaeef7
Add Settings Utility and example app
2024-03-03 02:36:56 +08:00
Michał Łyszczek
8669861312
examples/hx711: add new program to test hx711 chip
...
Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl>
2024-03-02 12:34:39 +08:00
zhangchao53
7ad4a3dcb7
fix patch error:no such file
...
Signed-off-by: zhangchao53 <zhangchao53@xiaomi.com>
2024-03-01 17:06:01 +08:00