-
Notifications
You must be signed in to change notification settings - Fork 1
/
qemu_x86.conf
136 lines (93 loc) · 3.57 KB
/
qemu_x86.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
# -----------------------------------------------------------------------------
CONFIG_QEMU_ICOUNT=n
# -----------------------------------------------------------------------------
# Application specific
CONFIG_APP_HTTP_MAX_SESSIONS=8
CONFIG_APP_HTTP_TEST=y
CONFIG_APP_HTTP_TEST_SERVER=y
CONFIG_APP_SYSTEM_MONITORING=y
CONFIG_APP_CANTCP_SERVER=n
CONFIG_APP_CAN_INTERFACE=n
CONFIG_APP_BLE_INTERFACE=n
CONFIG_APP_HA_CANIOT_CONTROLLER=y
CONFIG_APP_MBEDTLS_CUSTOM_HEAP_SIZE=65536
CONFIG_APP_MBEDTLS_CUSTOM_HEAP_CCM=n
# CONFIG_APP_LUA_FS_DEFAULT_SCRIPTS=y
# CONFIG_APP_LUA_AUTORUN_SCRIPTS=n
CONFIG_APP_HA_EMULATED_DEVICES=y
CONFIG_HEAP_MEM_POOL_SIZE=32768
CONFIG_APP_CREDS_HARDCODED=y
CONFIG_APP_CREDS_FLASH=n
CONFIG_APP_CREDS_FS=n
CONFIG_APP_FILE_ACCESS_HISTORY=n
# -----------------------------------------------------------------------------
CONFIG_ENTROPY_DEVICE_RANDOM_GENERATOR=n
CONFIG_TEST_RANDOM_GENERATOR=y
# -----------------------------------------------------------------------------
CONFIG_NET_LOG=y
CONFIG_NET_SOCKETS_LOG_LEVEL_DBG=n
# Network application options and configuration for QEMU
CONFIG_NET_CONFIG_SETTINGS=y
CONFIG_NET_CONFIG_NEED_IPV6=y
CONFIG_NET_CONFIG_MY_IPV6_ADDR="2001:db8::1"
CONFIG_NET_CONFIG_PEER_IPV6_ADDR="2001:db8::2"
CONFIG_NET_CONFIG_NEED_IPV4=y
CONFIG_NET_CONFIG_MY_IPV4_ADDR="192.0.2.1"
CONFIG_NET_CONFIG_PEER_IPV4_ADDR="192.0.2.2"
CONFIG_NET_CONFIG_MY_IPV4_GW="192.0.2.2"
CONFIG_NET_CONFIG_AUTO_INIT=y
CONFIG_NET_CONFIG_CLOCK_SNTP_INIT=n
CONFIG_NET_DHCPV4=n
CONFIG_DNS_RESOLVER_MAX_SERVERS=1
CONFIG_DNS_SERVER_IP_ADDRESSES=y
CONFIG_DNS_SERVER1="192.168.10.6"
CONFIG_DNS_RESOLVER_LOG_LEVEL_DBG=n
CONFIG_NET_SOCKETS_DNS_TIMEOUT=5000
CONFIG_NET_STATISTICS=y
CONFIG_NET_STATISTICS_USER_API=y
CONFIG_NET_STATISTICS_IPV4=y
CONFIG_NET_STATISTICS_ICMP=y
CONFIG_NET_STATISTICS_TCP=y
CONFIG_NET_STATISTICS_UDP=y
# Increase to 512 in case of problems
CONFIG_NET_BUF_DATA_SIZE=236
# default 36
# Increase to 256 in case of problems
CONFIG_NET_PKT_RX_COUNT=128
CONFIG_NET_PKT_TX_COUNT=128
CONFIG_NET_BUF_RX_COUNT=128
CONFIG_NET_BUF_TX_COUNT=128
# -----------------------------------------------------------------------------
CONFIG_CANIOT_LIB=y
CONFIG_CANIOT_LOG_LEVEL=2
CONFIG_CANIOT_ASSERT=n
CONFIG_CANIOT_MAX_PENDING_QUERIES=12
CONFIG_CANIOT_DRIVERS_API=n
CONFIG_CANIOT_CTRL_DRIVERS_API=y
# -----------------------------------------------------------------------------
# CONFIG_LOG_STRDUP_MAX_STRING=64
# CONFIG_LOG_STRDUP_BUF_COUNT=42
# CONFIG_LOG_BUFFER_SIZE=2048
# CONFIG_LOG_MODE_DEFERRED=n
# enable to immediate while debugging or when having immediate response is needed
# disable to log time sensitive functions (need a bit more RAM for a thread and pools)
CONFIG_LOG_MODE_IMMEDIATE=y
# -----------------------------------------------------------------------------
CONFIG_ASSERT=y
# -----------------------------------------------------------------------------
CONFIG_DISK_DRIVER_RAM=y
# -----------------------------------------------------------------------------
CONFIG_SHELL=y
CONFIG_FLASH_SHELL=y
CONFIG_FILE_SYSTEM_SHELL=y
# Net shell(s)
# https://docs.zephyrproject.org/latest/services/shell/index.html#shell-api
# https://docs.zephyrproject.org/latest/connectivity/networking/api/net_shell.html
CONFIG_NET_SHELL=y
# CONFIG_NET_ROUTE=y
# -----------------------------------------------------------------------------
CONFIG_MAIN_STACK_SIZE=4096
# -----------------------------------------------------------------------------
CONFIG_APP_CLOUD=n
# CONFIG_APP_AWS_ENDPOINT="a31gokdeokxhl8-ats.iot.eu-west-1.amazonaws.com"
# CONFIG_APP_AWS_THING_NAME="qemu_caniot_controller"