xuxin19
9b8d8d0c4f
cmake:fix testing cxx_main suffix error
...
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2024-09-13 23:16:26 +08:00
xuxin19
3a2b74d701
cmake:port benchmarks to CMake build for testing
...
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2024-09-13 23:16:26 +08:00
xuxin19
3fe177825a
cmake:export tinycrypt headers
...
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2024-09-13 23:16:26 +08:00
wangmingrong1
7c94d13be4
kasantest: Add performance testing for Kasan, including pile insertion testing and algorithm testing
...
Signed-off-by: wangmingrong1 <wangmingrong1@xiaomi.com>
2024-09-13 23:14:08 +08:00
wangmingrong1
f2c21b11d8
kasantest: Add a test set for global variable out of bounds detection
...
Signed-off-by: wangmingrong1 <wangmingrong1@xiaomi.com>
2024-09-13 23:14:08 +08:00
wangmingrong1
277c968b6a
kasantest: Add the ability to run a single program
...
Signed-off-by: wangmingrong1 <wangmingrong1@xiaomi.com>
2024-09-13 23:14:08 +08:00
wangmingrong1
797fd04796
kasantest: Fix errors running on 64 bit
...
1. Change 'heap' to a global variable. When using the software tag 'kasan', the base of 'heap' is dynamically changing, which may result in runtime errors
2. Modify the length of the argv array to ensure that all 64 bit addresses can be copied
3. After initialization, the registration of the heap must be canceled
Signed-off-by: wangmingrong1 <wangmingrong1@xiaomi.com>
2024-09-13 23:14:08 +08:00
yinshengkai
85ad50c39e
testing: refactor kasan test
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2024-09-13 23:14:08 +08:00
makejian
7cd9919a46
testing/crypto: add rsa testcase
...
Signed-off-by: makejian <makejian@xiaomi.com>
2024-09-13 23:10:19 +08:00
makejian
b1f2e63a6b
testing/crypto: Add test cases for Diffie-Hellman algorithm
...
Signed-off-by: makejian <makejian@xiaomi.com>
2024-09-13 23:10:19 +08:00
makejian
ce58e85aa6
testing/crypto: add ecdsa testing
...
Signed-off-by: makejian <makejian@xiaomi.com>
2024-09-13 23:10:19 +08:00
makejian
b53ee36d47
testing/crypto: add aes-128-cmac testcase
...
Signed-off-by: makejian <makejian@xiaomi.com>
2024-09-13 23:10:19 +08:00
makejian
6db82199a6
testing/crypto: add crc32 testcases
...
Signed-off-by: makejian <makejian@xiaomi.com>
2024-09-13 23:10:19 +08:00
yangsen5
524caec5a0
nxcodec: Modify the logic of judging the correctness of the incoming pixformat
...
Signed-off-by: yangsen5 <yangsen5@xiaomi.com>
2024-09-13 12:33:45 +08:00
Shoukui Zhang
dad9b5afa3
drivertest: Modify output format
...
before:
slave size 4slave poll read 0 1 2 3
master write 0 1 2 3
now:
read size = 4
slave poll read 0 1 2 3
master write 0 1 2 3
Signed-off-by: Shoukui Zhang <zhangshoukui@xiaomi.com>
2024-09-13 12:33:25 +08:00
yuyun1
ed5ca1c512
i2c slave: add i2c slave test code
...
Signed-off-by: yuyun1 <yuyun1@xiaomi.com>
2024-09-13 12:33:25 +08:00
xuxin19
3d8dc5dce5
cmake:implement CMake build for NuttX Lua interpreter
...
add CMake module for register lua mod
nsh> lua
Lua 5.4.0 Copyright (C) 1994-2020 Lua.org, PUC-Rio
> hello.say_hello()
Hello World!
> io.write("abs is =",math.abs(-10),"\n")
abs is =10
> os.exit()
nsh>
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2024-09-13 12:31:10 +08:00
meijian
1f51bfe64d
apps/ipforward: fix ci check failure
...
note: static declaration of 'chksum' follows non-static declaration
Signed-off-by: meijian <meijian@xiaomi.com>
2024-09-12 13:38:38 +08:00
meijian
e25f89d2d6
app/netstatistics: Add net statistics api for user
...
Signed-off-by: meijian <meijian@xiaomi.com>
2024-09-12 13:38:38 +08:00
meijian
7bf20f1a89
[wireless] add set/get pmksa api for fast-auth
...
Signed-off-by: meijian <meijian@xiaomi.com>
2024-09-12 12:43:52 +08:00
meijian
cf7491a1fe
[wireless][wapi] add powersave cmd of wapi for Low-power modules
...
Signed-off-by: meijian <meijian@xiaomi.com>
2024-09-12 12:43:52 +08:00
meijian
c5541bfb56
[wireless][wapi] add extend api for private needs
...
Signed-off-by: meijian <meijian@xiaomi.com>
2024-09-12 12:43:52 +08:00
meijian
002e31c56d
apps/dhcpd: fix dhcpd set dip error
...
dhcpd will set dip routing table 0.0.0.0|0.0.0.0|10.0.0.1 (TARGET|NETMASK|ROUTER) which will cover other's router 0.0.0.0|0.0.0.0|10.1.10.1.
And will cause shell/apps to internet failure.
Signed-off-by: meijian <meijian@xiaomi.com>
2024-09-12 01:11:30 +08:00
wangjianyu3
6b1062a64e
system/fastboot: Fix Out-of-bounds Write
...
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2024-09-11 23:20:48 +08:00
wangjianyu3
caa47f282e
system/fastboot: Fix that total_chunks
of sparse_header maybe error
...
when size of image passed to command "fastboot flash" is not 4KB aligned.
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2024-09-11 23:20:48 +08:00
wangjianyu3
a413f6bcac
system/fastboot: Fix error that download_size always be zero
...
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2024-09-11 23:20:48 +08:00
wangjianyu3
e6cedb8da7
system/fastboot: Init total_imgsize to zero
...
otherwise random value, sometimes zero
And, close file if flash failed.
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2024-09-11 23:20:48 +08:00
wangjianyu3
78c11c31e8
system/fastboot: Fix fd leak of fastboot_filedump_upload()
...
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2024-09-11 23:20:48 +08:00
wangjianyu3
c3488c5b47
system/fastboot: Support upload & oem(memdump, filedump) command
...
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2024-09-11 23:20:48 +08:00
wangjianyu3
22f055472c
system/fastboot: Retry if open EP failed
...
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2024-09-11 23:20:48 +08:00
wanggang26
e55666f90e
fastboot:enable O_CLOEXEC explicit
...
Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
2024-09-11 23:20:48 +08:00
wangjianyu3
f1ce26162b
system/fastboot: Replace printf with syslog
...
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2024-09-11 23:20:48 +08:00
anjiahao
53563b67e7
fastbootd:add delay ms for bootloader
...
usage in bootloader
if [flag == bootloader]
fastbootd
else
fastbootd 500
fi
host:
$fastboot flash app app.bin
< waiting for any device >
let board enter booloader,use <reboot bootloader> or hard reset
then will flash it.
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2024-09-11 23:20:48 +08:00
dongjiuzhu1
95abb3628c
system/fastboot: fix crash when free invalid pointer
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2024-09-11 23:20:48 +08:00
wangjianyu3
e3400b2555
Reduce the number of open() and close() to improve performance
...
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2024-09-11 23:20:48 +08:00
wangjianyu3
6ac7cbf4d2
system/fastboot: fastboot flash - call fsync()
...
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2024-09-11 23:20:48 +08:00
wangjianyu3
6b53e1fae9
system/fastboot: erase - add driver independent
...
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2024-09-11 23:20:48 +08:00
wangjianyu3
4d0b9d61de
system/fastboot: Support USB boardctl
...
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2024-09-11 23:20:48 +08:00
wangjianyu3
1752726479
system/fastboot: Complete the erase command
...
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2024-09-11 23:20:48 +08:00
wangjianyu3
25ba30986f
fastboot tool: Status read failed while rebooting into bootloader
...
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2024-09-11 23:20:48 +08:00
Huang Qi
0b3e5f2339
.gitignore: Add .aider* to .gitignore
...
Aider is AI pair programmer: https://aider.chat
The .aider* files is not a part of NuttX but used by
Aider as temporary files.
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2024-09-11 15:05:56 +08:00
Xiang Xiao
2e01a7c7af
Revert "ltp: handle low accuracy of time in some platfrom"
...
This reverts commit 142df1a001
.
2024-09-10 23:33:37 +08:00
dongjiuzhu1
dfa3ce5f5d
system/uorb: using uorb.h to replace sensors header file
...
Sensors are just a part of uORB, and there are many virtual topics used
within uORB as well. For the library apps/system/uorb/, the nuttx/uorb.h
version is more preferable. So, move public type and definition to
nuttx/uorb.h.
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2024-09-10 15:58:15 +08:00
Luchian Mihai
0a4c97ac09
examples/amg88xx: add example for amg88xx driver
...
Simple example for the amg88xx driver
2024-09-09 19:45:44 +08:00
Alexey Matveev
0fc0cb2888
Thttpd Fix: wrong calc offset
2024-09-09 19:45:03 +08:00
dependabot[bot]
f4d21b0360
build(deps): bump github/super-linter from 6 to 7
...
Bumps [github/super-linter](https://github.com/github/super-linter ) from 6 to 7.
- [Release notes](https://github.com/github/super-linter/releases )
- [Changelog](https://github.com/github/super-linter/blob/main/CHANGELOG.md )
- [Commits](https://github.com/github/super-linter/compare/v6...v7 )
---
updated-dependencies:
- dependency-name: github/super-linter
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-09-09 15:29:30 +08:00
dongjiuzhu1
433ca0ff89
testing/fftest: add Force feedback driver test
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2024-09-09 14:16:16 +08:00
Huang Qi
2f5dc9c24d
system: Rename debug to debugpoint
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2024-09-08 21:41:23 +08:00
Huang Qi
c7c76534af
testing/debug: Enhancement for watch address by cmd line
...
This patch add some command line arguments for debug
program, then you can use it to insert watchpoint or
breakpoint to arbitrary address at runtime.
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2024-09-08 10:39:37 +08:00
ligd
142df1a001
ltp: handle low accuracy of time in some platfrom
...
some platform use TICK to calculate the time, for example
1tick = 1ms, when the test may run less then 1ms, then gettime()
before + sleep = after
Signed-off-by: ligd <liguiding1@xiaomi.com>
2024-09-07 17:10:48 -03:00