Xiang Xiao
6f6fce95a2
Replace all sprintf with snprintf
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-05-08 09:57:01 +02:00
Xiang Xiao
49fa611fad
boards/sim: Enable more sanitizer check when enable
...
to catch more runtime usage error
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-05-06 09:09:36 +03:00
Tiago Medicci Serrano
34dbfa0370
boards/sim/configs: add defconfig for RTP Tools
...
RTP Tools is a set of small applications that can be used for
processing RTP data. This `defconfig` builds the `rtpdump` and
is able to receive RTP packets and print the contents.
2023-05-03 07:57:11 +02:00
chao an
5945f080b9
boars/spawn_proxy: remove all CONFIG_POSIX_SPAWN_PROXY_STACKSIZE
...
Signed-off-by: chao an <anchao@xiaomi.com>
2023-04-27 17:35:58 +08:00
YAMAMOTO Takashi
a5bf3d769b
Add sim:toywasm config
2023-04-23 23:19:20 +08:00
YAMAMOTO Takashi
72783209a3
Migrate sim board README.txt to Documentation
2023-04-22 01:47:46 +08:00
Huang Qi
d6c56e7105
driver/telnet: Remove TELNET_CHARACTER_MODE
...
If TELNET_CHARACTER_MODE is set, the ECHO must be handled by the telnet server.
So this option is useless. We need a new approach to control the ECHO behavior.
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2023-04-22 01:03:51 +08:00
Fotis Panagiotopoulos
1530e04f20
ostest: Enabled KASAN, UBSAN & assertions.
2023-04-19 02:44:48 +08:00
Huang Qi
7f27129896
tools: Move Rust relative settings to Rust.defs
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2023-04-01 16:45:11 +03:00
Huang Qi
bd14175de4
boards/sim: Export LLVM style arch info
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2023-03-31 16:55:15 -03:00
Huang Qi
536739d2da
tools: Export LLVM style arch info for non-c language
...
Current Toolchain.defs set the compile flags directly, it's OK for
target specified gcc toolchain.
But some LLVM based toolchains (Rust/Zig etc) use single toolchain to handle all supported paltform.
In this patch, arch level Toolchain.defs export standard LLVM style arch flags, and let <Lang>.defs to map them into internal style,
This will simplify the intergration of non-c language.
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2023-03-29 09:26:38 -03:00
Lucas Saavedra Vaz
10f294c026
boards: Fix broken defconfigs
2023-03-28 11:11:46 -03:00
Xiang Xiao
80e3ecc074
boards/sim: Remove the unused SIM_NOTIFYSIGNO from Kconfig
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-03-26 08:31:36 -06:00
Xiang Xiao
75cf216861
sim/adb: Enable CONFIG_NSH_CONSOLE_LOGIN
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-03-19 14:54:59 -06:00
Lucas Saavedra Vaz
e53200dde7
boards/sim/wamr: Remove LIBC_FLOATINGPOINT (now selected by the app)
2023-03-08 13:09:34 +08:00
Gustavo Henrique Nihei
1fcb2be0e3
boards/sim: Adjust defconfig for WAMR after dependency fix
...
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2023-03-04 01:47:20 +08:00
zhangyuan21
0af63cfc48
sim/usb: add sim usb host
...
signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2023-03-03 14:31:30 -03:00
zhangyuan21
c61c694a77
sim/usb: add sim usb device
...
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2023-03-03 14:31:30 -03:00
chao an
b01b93cb54
sim/wamr: add example of WAMR(WebAssembly Micro Runtime)
...
Added compilation rules to support the construction of WebAssembly(WASM/WAMR):
1. Compile Toolchain
1> Download WASI sdk and export the WASI_SDK_PATH path:
$ wget https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-19/wasi-sdk-19.0-linux.tar.gz
$ tar xf wasi-sdk-19.0-linux.tar.gz
Put wasi-sdk-19.0 to your host WASI_SDK_PATH environment variable, like:
$ export WASI_SDK_PATH=`pwd`/wasi-sdk-19.0
2> Download Wamr "wamrc" AOT compiler and export to the PATH:
$ mkdir wamrc
$ wget https://github.com/bytecodealliance/wasm-micro-runtime/releases/download/WAMR-1.1.2/wamrc-1.1.2-x86_64-ubuntu-20.04.tar.gz
$ tar xf wamrc-1.1.2-x86_64-ubuntu-20.04.tar.gz
$ export PATH=$PATH:$PWD
2. Configuring and running
1> Configuring sim/wamr and compile:
nuttx$ ./tools/configure.sh sim/wamr
nuttx$ make
...
Wamrc Generate AoT: /home/archer/code/nuttx/n5/apps/wasm/hello.aot
Wamrc Generate AoT: /home/archer/code/nuttx/n5/apps/wasm/coremark.aot
LD: nuttx
2> Copy the generated wasm file(Interpreter/AoT)
nuttx$ cp ../apps/wasm/hello.aot .
nuttx$ cp ../apps/wasm/hello.wasm .
nuttx$ cp ../apps/wasm/coremark.wasm .
3> Run iwasm
nuttx$ ./nuttx
NuttShell (NSH) NuttX-10.4.0
nsh> iwasm /data/hello.wasm
Hello, World!!
nsh> iwasm /data/hello.aot
Hello, World!!
nsh> iwasm /data/coremark.wasm
2K performance run parameters for coremark.
CoreMark Size : 666
Total ticks : 12000
Total time (secs): 12.000000
Iterations/Sec : 5.000000
Iterations : 60
Compiler version : Clang 15.0.7
Compiler flags : Using NuttX compilation options
Memory location : Defined by the NuttX configuration
seedcrc : 0xe9f5
[0]crclist : 0xe714
[0]crcmatrix : 0x1fd7
[0]crcstate : 0x8e3a
[0]crcfinal : 0xa14c
Correct operation validated. See README.md for run and reporting rules.
CoreMark 1.0 : 5.000000 / Clang 15.0.7 Using NuttX compilation options / Defined by the NuttX configuration
Signed-off-by: chao an <anchao@xiaomi.com>
2023-03-02 09:56:35 +01:00
Xiang Xiao
2c5f653bfd
Remove the tail spaces from all files except Documentation
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-02-26 13:24:24 -08:00
Xiang Xiao
ee77243247
boards/sim/adb: Change telnetd port from 23 to 2323
...
to avoid the conflict with host telnetd server
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-02-22 16:37:19 +08:00
Xiang Xiao
8ef0c406bb
Fix note/note_driver.c:170:3: warning: excess elements in array initializer
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-02-20 19:27:32 +08:00
Xiang Xiao
ee24396d77
drivers/note: Change DRIVER_NOTExxx to DRIVERS_NOTExxx
...
follow other driver config style
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-02-20 14:30:59 +08:00
Fotis Panagiotopoulos
b6eb3c828c
Removed obsolete option NET_ALLOC_CONNS.
2023-02-20 09:06:46 +08:00
Fotis Panagiotopoulos
8f9dfe0be1
Improvements in TCP connections allocation.
2023-02-20 09:06:46 +08:00
chao an
1e7014262c
sim/windows: fix build break on visual studio
...
1. fix build break on visual studio
2. enable more net config
Signed-off-by: chao an <anchao@xiaomi.com>
2023-02-13 20:37:25 +08:00
ligd
1cc6e4b1fa
sim: add uart dma mode & use work instead of loop.
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2023-02-10 13:54:42 +08:00
Xiang Xiao
916fa4d759
boards/sim: Enable CONFIG_SIM_M32 in nimble
...
please reference this pr:
https://github.com/apache/mynewt-nimble/pull/1125
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-02-09 14:36:05 +08:00
raiden00pl
fc322a9c78
boards/sim: add nxscope config
2023-02-08 10:06:59 +08:00
chao an
68970fe8a1
sim/dynconns: enable more configs to catch compile warning
...
Signed-off-by: chao an <anchao@xiaomi.com>
2023-02-08 02:42:59 +08:00
Xiang Xiao
d8a8c2fdd8
boards: Enable assert for citest
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-02-06 21:33:15 +09:00
Xiang Xiao
83764079a1
boards/sim: Enable CONFIG_ARCH_MATH_H for libcxxtest
...
to undefine __GLIBC__, otherwise libcxx misthink it work with glibc
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-02-04 21:00:54 +02:00
Huang Qi
8b27d60bcd
tools: Make zig available for arm/riscv/sim
...
Add essential compile flags to make zig available out of box.
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2023-02-01 11:12:44 +08:00
Xiang Xiao
fcdba7a3ef
sim/usrsocktest: Enable CONFIG_DEBUG_ASSERTIONS
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-01-31 12:08:05 +09:00
chao an
ac77492dd1
sim/rpserver/rpproxy: remove colon from syslog prefix
...
Before:
[server: ] show_tasks: PID PRI STACKBASE STACKSIZE COMMAND
[server: ] dump_task: 0 0 0xfff8e088 69600 Idle Task
After:
[server] show_tasks: PID PRI STACKBASE STACKSIZE COMMAND
[server] dump_task: 0 0 0xff870c58 69600 Idle Task
Signed-off-by: chao an <anchao@xiaomi.com>
2023-01-30 20:07:04 +08:00
liangchaozhong
ade9d39478
make iperf works on SIM platform
...
Solution:
1. enable iperf on SIM projects
2. enlarge IOB's settings
Signed-off-by: liangchaozhong <liangchaozhong@xiaomi.com>
Signed-off-by: chao an <anchao@xiaomi.com>
2023-01-29 16:20:02 +08:00
Xiang Xiao
267e80a9e7
boards: Update Administrator tea result to 8Tv+Hbmr3pLVb5HHZgd26D
...
continue the change: https://github.com/apache/nuttx/pull/6843
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-01-26 17:11:07 +02:00
Xiang Xiao
fd64e38072
build: Add STACK_USAGE(-fstack-usage) to assist the stack analysis
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-01-19 10:35:20 -03:00
Xiang Xiao
f64da13e9b
libxx: Add CXX_STANDARD to select -std=c++??
...
and default to "c++17"
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-01-16 15:41:57 +02:00
chao an
415a09115d
boards/sim/windows: enable custom options
...
1. boards/sim: enable child status
2. boards/sim/windows: enable custom options
3. sim/windows: enable hostfs
Signed-off-by: chao an <anchao@xiaomi.com>
2023-01-16 20:30:39 +08:00
Xiang Xiao
03c572c372
boards/sim: Update usrsock related stuff in README.txt
...
follow up https://github.com/apache/nuttx/pull/8022
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-01-13 11:30:44 +02:00
xinbingnan
383458c64e
sim/Kconfig: move some i2c,spi configs from board to arch
...
Move `SIM_I2CBUS_ID` and `SIM_SPIDEV_NAME` from board to arch.
This allows you not to rely on board configuration.
Signed-off-by: xinbingnan <xinbingnan@xiaomi.com>
2023-01-11 17:28:43 +08:00
梁超众
aca1a065a8
move usrsock to kernel space
...
Signed-off-by: 梁超众 <liangchaozhong@xiaomi.com>
2023-01-11 15:14:03 +08:00
Zhe Weng
8fb98bc9d1
script: support IPv6 in simhostroute.sh
...
1. Change IP address format to addr/prefix, to be compatible with both IPv4/IPv6.
- When adding address in CIDR type, netmask/route will be automatically added.
2. Since route of whole subnet is added automatically, not specifying NuttX's IP any more.
- Multiple NuttX simulators (with IP 10.0.1.x) attached to same bridge can surf the net at same time.
3. NAT66 is used to make sure it works even if host has only one IPv6 address.
Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2023-01-05 23:36:43 +08:00
pengyiqiang
1c62181b0d
boards: adapt LVGL v8 defconfig
...
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
2023-01-01 10:15:08 -03:00
Neo Xu
1697723b63
sim/config: enable luamodule
...
Enable existing luamodules: csjon, lfs, lsyslog and luv
Signed-off-by: Neo Xu <neo.xu1990@gmail.com>
2022-12-22 15:26:11 +08:00
ligd
1544adb548
sim: open CONFIG_SIM_WALLTIME_SIGNAL=y in sim:nsh sim:smp
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-12-21 16:59:56 +09:00
Peter Bee
80fa70da4e
boards/sim: Add nxcamera config
...
Config which enables nxcamera app and video framework.
Exclude from CI macOS test because macOS does not have V4L2.
(Maybe consider adding it back after porting with avfoundation)
Signed-off-by: Peter Bee <bijunda1@xiaomi.com>
2022-12-14 21:20:27 +08:00
anjiahao
3d2f0c0e27
crypto:support nuttx /dev/crypto
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2022-12-14 02:33:56 +08:00
Xu Xingliang
57190efe84
sim/lua: enable luv module by default
...
Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>
2022-12-13 20:51:47 +08:00