chao an
bd94b6da1a
system/flatbuffers: fix patch flow of flatbuffers
...
Applying patch to flatbuffers
patching file '<'
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file '<.rej'
patching file '<'
Hunk #1 FAILED at 39.
1 out of 1 hunk FAILED -- saving rejects to file '<.rej'
patching file '<'
Hunk #1 FAILED at 495.
1 out of 1 hunk FAILED -- saving rejects to file '<.rej'
patching file '<'
Hunk #1 FAILED at 23.
1 out of 1 hunk FAILED -- saving rejects to file '<.rej'
patch: **** Can't reopen file '<' : No such file or directory
-- Configuring done (12.8s)
-- Generating done (0.3s)
Signed-off-by: chao an <anchao@lixiang.com>
2024-12-01 10:14:49 +08:00
buxiasen
22d5d1d9d8
coredump: move definition out of types
...
Signed-off-by: buxiasen <buxiasen@xiaomi.com>
2024-11-30 07:36:36 +08:00
buxiasen
b75e404ec1
coredump: use llx to fix coverity report
...
Signed-off-by: buxiasen <buxiasen@xiaomi.com>
2024-11-30 07:36:36 +08:00
buxiasen
04f49f179b
system/coredump: coredump restore independ and support mtd
...
Signed-off-by: buxiasen <buxiasen@xiaomi.com>
2024-11-30 07:36:36 +08:00
buxiasen
52bfcb3ab9
system/coredump: compatible restore name with NAME_MAX 32 Bytes
...
Coredump should compatible with default 32B NAME_MAX
Signed-off-by: buxiasen <buxiasen@xiaomi.com>
2024-11-30 07:36:36 +08:00
YAMAMOTO Takashi
6560618600
system/dd: improve EOF handling a bit
2024-11-28 15:20:13 +08:00
YAMAMOTO Takashi
9039b9cb18
system/dd: Fix a printf format
2024-11-28 15:20:13 +08:00
YAMAMOTO Takashi
f6f223e674
system/dd: portability to non-nuttx platforms
...
eg.
```
/opt/wasi-sdk-24.0/bin/clang -Wall -Oz -s -o dd.wasm dd_main.c
```
2024-11-28 15:20:13 +08:00
YAMAMOTO Takashi
1fed08e870
system/dd: make if= and of= optional
2024-11-28 15:20:13 +08:00
YAMAMOTO Takashi
1caf06bd77
system/dd: print help and abort on unknown options
2024-11-28 15:20:13 +08:00
YAMAMOTO Takashi
9c7a65e1e7
system/dd/dd_main.c: remove unnecessary header include
2024-11-28 15:20:13 +08:00
wangjianyu3
38b54f6fc5
system/adb: Waiting for enumeration to complete before opening endpoint
...
Env
esp32s3-devkit:adb
Error
adbd [3:100]
NuttShell (NSH)
nsh> adb_uv_usb_setup (154): failed to open usb device -1 2
Test
+ adb_log("Waiting for %s ..", ep);
adbd [3:100]
NuttShell (NSH)
nsh> adbd_main (161): Waiting for /dev/adb0/ep0 ..
nsh> ps
PID GROUP PRI POLICY TYPE NPX STATE EVENT SIGMASK STACK COMMAND
0 0 0 FIFO Kthread - Ready 0000000000000000 0003008 Idle_Task
1 0 224 RR Kthread - Waiting Semaphore 0000000000000000 0008080 hpwork 0x3fc8bc00 0x3fc8bc24
2 2 100 RR Task - Running 0000000000000000 0003992 nsh_main
3 3 100 RR Task - Waiting Semaphore 0000000000000000 0008112 adbd
nsh>
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2024-11-23 01:44:19 +08:00
yinshengkai
7fb7e21bf2
system: support gcov output to stdout
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2024-11-22 09:02:48 +08:00
wangjianyu3
70e7ad85ed
system/adb: Fix log format error
...
The "%pV" format depends on libc extension
Log
adbd_main (***): 0x3fc9175cV
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2024-11-22 09:01:38 +08:00
xuxin19
fee82bd3d3
cmake(build):add missing basic and nxlooper cmake script
...
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2024-11-18 13:52:45 +08:00
wangmingrong1
378afdebd5
gprof: modify depends on
...
Signed-off-by: wangmingrong1 <wangmingrong1@xiaomi.com>
2024-11-13 21:58:07 +08:00
anjiahao
59855a1a67
remove <nuttx/xxx.h> in stdio need add depend header file
...
libuv:
CC: pthread/pthread_mutexattr_setrobust.c libuv/src/unix/thread.c: In function ‘uv_thread_create_ex’:
libuv/src/unix/thread.c:174:24: error: storage size of ‘param’ isn’t known
174 | struct sched_param param;
| ^~~~~
btsak_main:
In file included from btsak_main.c:39:
btsak.h:149:1: error: unknown type name ‘bool’
149 | bool btsak_str2bool(FAR const char *str);
pipe_main.c:
CC: sim/sim_registerdump.c pipe_main.c:44:30: error: unknown type name ‘pthread_addr_t’
44 | static void *open_write_only(pthread_addr_t pvarg)
| ^~~~~~~~~~~~~~
pipe_main.c: In function ‘pipe_main’:
pipe_main.c:81:3: error: unknown type name ‘pthread_t’
81 | pthread_t writeonly;
redirect_test.c: In function ‘redirection_test’:
redirect_test.c:205:3: error: unknown type name ‘pthread_t’
205 | pthread_t readerid;
| ^~~~~~~~~
redirect_test.c:206:3: error: unknown type name ‘pthread_t’
206 | pthread_t writerid;
| ^~~~~~~~~
drivertest_posix_timer.c:48:29: error: ‘optarg’ undeclared (first use in this function)
48 | value = (type)strtoul(optarg, &ptr, base); \
drivertest_posix_timer.c:208:3: warning: implicit declaration of function ‘sleep’ [-Wimplicit-function-declaration]
208 | sleep(SLEEPSECONDS);
| ^~~~~
drivertest_uart.c:92:13: warning: implicit declaration of function ‘read’; did you mean ‘fread’? [-Wimplicit-function-declaration]
92 | len = read(fd, &tmp_char, 1);
| ^~~~
| fread
drivertest_uart.c:323:44: error: ‘optopt’ undeclared (first use in this function)
323 | printf("Unknown option: %c\n", optopt);
kernel/fs/cases/fs_getfilep_test.c:71:9: warning: implicit declaration of function ‘fs_getfilep’ [-Wimplicit-function-declaration]
71 | ret = fs_getfilep(fileno(fp), &filep);
| ^~~~~~~~~~~
kernel/mm/cases/mm_test_008.c:148:9: warning: implicit declaration of function ‘task_create’; did you mean ‘timer_create’? [-Wimplicit-function-declaration]
148 | pid = task_create("TestNuttx08_routine_1",
| ^~~~~~~~~~~
| timer_create
/home/ajh/work/nuttxwork/apps/testing/cmocka/cmocka_main.c:171:11: warning: implicit declaration of function ‘setenv’ [-Wimplicit-function-declaration]
171 | setenv("CMOCKA_XML_FILE", xml_path, 1);
| ^~~~~~
drivertest_pm_runtime.c:123:7: warning: implicit declaration of function ‘usleep’ [-Wimplicit-function-declaration]
123 | usleep(210 * 1000);
| ^~~~~~
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2024-11-13 16:49:12 +08:00
wangmingrong1
bb03ef0ce3
gcov: modify depends on
...
Signed-off-by: wangmingrong1 <wangmingrong1@xiaomi.com>
2024-11-13 02:38:42 +08:00
wangjianyu3
40a5e47d5c
uORB/sensor: Add GNSS firmware version for sensor_gnss_format
...
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2024-11-06 21:20:41 +08:00
xuxin19
90f2a33b69
cmake(bugfix):fix ymodem cmake typo
...
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2024-11-03 09:22:36 +08:00
Eren Terzioglu
d6edbd0cec
Improve nxdiag example for Espressif devices
2024-11-02 12:22:25 +08:00
Eren Terzioglu
6c3ca23dbf
system/debugpoint: Fix RO watchpoint test issue for esp devices
2024-11-01 23:09:37 +08:00
anjiahao
95368deae2
ymodem:fix bug,When sending a retransmission, HEAD is overwritten.
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2024-10-29 18:02:20 +08:00
Leo Chung
c7a905ec0c
apps/system/vi: Add missing vi_release before exit.
...
If VI exit without vi_release, that broken console.
Signed-off-by: Leo Chung <gewalalb@gmail.com>
2024-10-28 10:10:14 -03:00
Leo Chung
c0e04b0251
termcurses: Disable ICANON for serial driver. That was broken VI editor.
...
The ICANON flag broken VI key input, so disable it.
Signed-off-by: Leo Chung <gewalalb@gmail.com>
2024-10-28 10:10:14 -03:00
Xiang Xiao
e8497e5355
system/libuv: Sync CMakeLists.txt with Makefile
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2024-10-27 20:02:07 +08:00
Huang Qi
f9c6e18693
libuv: Don't select PIPES implicitly
...
To avoid introducing unexpected dependencies,
we should not select any feature implicitly.
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2024-10-27 20:02:07 +08:00
Huang Qi
713cd4d971
libuv: Make stream read buffer size configurable
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2024-10-27 20:02:07 +08:00
dengwenqi
f7ff338a7b
fix: git status/git status --ignore normalization check problem
2024-10-27 18:12:54 +08:00
xuxin19
55a955234a
cmake:add system gprof CMake build
...
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2024-10-27 14:05:06 +08:00
renzhiyuan1
469cc11406
cmake:add flatbuffers CMake build
...
Signed-off-by: renzhiyuan1 <renzhiyuan1@xiaomi.com>
2024-10-27 14:05:06 +08:00
cuiziwei
729cc337a1
libuv: Remove GCCVER redefinition
...
Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
2024-10-19 18:55:01 +08:00
likun17
06181f0b00
uorb:Fixed the abnormal issue of printing uint16 with PRIu16.
...
The PRIu16 macro in the system is defined as "u", and "hu" is required.
In Linux and Nuttx, PRIu32 PRIu16 PRIu8 are all defined as "u", but %pB
prints the structure and needs its offset. %pB gets the offset through
sizeof(short int)
Signed-off-by: likun17 <likun17@xiaomi.com>
2024-10-18 19:56:58 +08:00
renzhiyuan1
71cbcb2618
Add configurations files.
...
Add configuration files of TFLite Micro, its dependent third-party libraries and CMSIS_NN.
Signed-off-by: renzhiyuan1 <renzhiyuan1@xiaomi.com>
2024-10-18 09:40:17 +08:00
wanggang26
cb24b748a5
coredump app: type of info->time has changed into timespec
...
Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
2024-10-17 08:55:22 +08:00
anjiahao
c98439f9a1
coredump:update memory region init
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2024-10-16 17:34:02 +08:00
pengyaozong
63f43e70a9
add LIBUV_HANDLE_BACKTRACE
...
Signed-off-by: pengyaozong <pengyaozong@xiaomi.com>
2024-10-16 14:30:34 +08:00
anjiahao
c693b3064e
system/coredump:support coredump can save board memory
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2024-10-16 14:22:43 +08:00
anjiahao
9752b57714
system/coredump:upload kernal coredump change
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2024-10-16 14:22:43 +08:00
anjiahao
b99f92bac5
system/coredump:fix coverity bug
...
check read return, avoid dead loop if read return zero
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2024-10-16 14:22:43 +08:00
anjiahao
03f3ce7fd4
system/coredump:Increase coredump swap buffer size to improve speed
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2024-10-16 14:22:43 +08:00
Xiang Xiao
e96f1ca83a
system/ymodem: Change #include <nuttx/mm/circbuf.h> to #include <nuttx/circbuf.h>
...
follow the change in kernel side change
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2024-10-16 14:20:34 +08:00
anjiahao
8130d7e211
zlib:Support using Kconfig to control memory usage in zlib
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2024-10-16 12:39:47 +08:00
ouyangxiangzhen
44d2250b6e
apps: Fix compilation error after nuttx/arch.h excluded.
...
This patch fix compilation error after excluding nuttx/arch.h.
Signed-off-by: ouyangxiangzhen <ouyangxiangzhen@xiaomi.com>
2024-10-16 07:12:40 +08:00
zhangwenjian
8e7d6cadf4
support filter for each note channel
...
Signed-off-by: zhangwenjian <zhangwenjian@xiaomi.com>
2024-10-15 12:34:09 +08:00
yinshengkai
bcbd092d3e
trace: fix trace dump crash
...
After thread switching is triggered in an interrupt, two notes will be printed.
If the buffer of 256 is not enough, it will cause overflow.
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2024-10-15 12:34:09 +08:00
yinshengkai
9c51919a1a
libuv:add threadpool DEF_THREADPOOL_PRIORITY
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2024-10-15 10:32:08 +08:00
guohao15
be85fab47c
libuv:Make libuv use epoll runable without fsnotify
...
Signed-off-by: guohao15 <guohao15@xiaomi.com>
2024-10-15 10:32:08 +08:00
guohao15
ed91a3c03c
libuv:change LIBUV_BACKEND_EPOLL depends on FS_NOTIFY
...
Signed-off-by: guohao15 <guohao15@xiaomi.com>
2024-10-15 10:32:08 +08:00
guohao15
4e386a955e
system/libuv: optimize stack usage
...
Signed-off-by: guohao15 <guohao15@xiaomi.com>
2024-10-15 10:32:08 +08:00