Newer
Older
Alessandro Rubini
committed
mainmenu "White Rabbit Switch configuration"
config DOTCONF_FW_VERSION
string "Firmware version"
help
Free-text information about switch's firmware version. This field is
for information purpose only. Additionally this field describes
version of Kconfig.
config DOTCONF_HW_VERSION
string "Hardware version"
help
Free-text information about switch's Hardware version. This field is
for information purpose only.
config DOTCONF_INFO
string "Additional info about dot-config"
help
Free-text information about switch's dot-config. This field is
for information purpose only.
#
# Select source of dot-config file
#
choice DOTCONF_SOURCE
prompt "Source for a run-time replacement of dot-config"
default DOTCONF_SOURCE_TRY_DHCP
config DOTCONF_SOURCE_LOCAL
bool "Use local dot-config"
help
The White Rabbit Switch is configured at run-time,
according to a dot-config .config file. The file
is the same .config you are defining now. If you
select this option, dot-config is not replaced
at run time.
config DOTCONF_SOURCE_REMOTE
bool "Use remote dot-config"
help
Use the URL to dot-config provided in DOTCONF_URL.
config DOTCONF_SOURCE_FORCE_DHCP
bool "Force to get the URL to a dot-config via DHCP"
help
Retrieve a URL to the dot-config via DHCP at boot.
The URL can be configured in the "filename" configuration field of
the DHCP server.
config DOTCONF_SOURCE_TRY_DHCP
bool "Try to get the URL to a dot-config via DHCP"
help
The same as DOTCONF_SOURCE_FORCE_DHCP, but this option does not
cause errors in SNMP's objects if the switch fails to retrieve
the URL to the dot-config via DHCP.
endchoice
config DOTCONF_URL
string "URL for a run-time replacement of dot-config"
depends on DOTCONF_SOURCE_REMOTE
help
tftp://, ftp://, http:// or https:// URLs are allowed. For https
CA certificates are ignored. Names are allowed if
you configured a DNS server. The special strings HOSTNAME, IPADDR and
MACADDR are substituted before retrieving the file.
Example: "tftp://morgana/wrs-config-IPADDR"
Adam Wujek
committed
if DOTCONF_LOCAL_OVERWRITE
comment "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
comment "XX Local Overwrite enabled! XX"
comment "XX (config values may be overwritten by values in XX"
comment "XX /update/permanent/dot-config/dot-config-overwrite) XX"
comment "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
endif
config DOTCONF_LOCAL_OVERWRITE
boolean "Overwrite dot-config with values locally stored in /update"
default y
help
At boot overwrite dot-config (retrieved from the network or stored
locally) with values locally stored in
/update/permanent/dot-config/dot-config-overwrite.
This functionality can be used to e.g., pre-configure management
port after firmware update or to use custom SoftPLL values after
firmware update, specific for particular WR switch.
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
#
# Select source of leap seconds file
#
choice LEAPSEC_SOURCE
prompt "Source for a run-time replacement of leap seconds file"
default LEAPSEC_SOURCE_LOCAL
config LEAPSEC_SOURCE_LOCAL
bool "Use local leap seconds file"
help
A leap seconds file (leap-seconds.list) is already present in the White Rabbit Switch.
If you select this option, the leap seconds file is not replaced
at run time.
config LEAPSEC_SOURCE_REMOTE_FORCE
bool "Force remote leap seconds file"
help
Use the URL to leap secondw file provided in LEAPSEC_URL.
If the file cannot be downloaded, it will cause errors in SNMP's objects.
config LEAPSEC_SOURCE_REMOTE_TRY
bool "Try remote leap seconds file"
help
The same as LEAPSEC_SOURCE_REMOTE_FORCE, but this option does not
cause errors in SNMP's objects if the switch fails to retrieve
the URL to the leap seconds files.
endchoice
config LEAPSEC_URL
string "URL for a run-time replacement of leap seconds file"
default "https://hpiers.obspm.fr/iers/bul/bulc/ntp/leap-seconds.list"
depends on LEAPSEC_SOURCE_REMOTE_TRY || LEAPSEC_SOURCE_REMOTE_FORCE
help
tftp://, ftp://, http:// or https:// URLs are allowed. For https
CA certificates are ignored. Names are allowed if
you configured a DNS server. The special strings HOSTNAME, BOOTSERVER, IPADDR and
MACADDR are substituted before retrieving the file.
Example: "tftp://BOOTSERVER/leap-seconds.IPADDR"
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
menu "External source of Time of Day at boot"
choice
prompt "External source of local Time of Day at boot"
default TOD_SOURCE_NTP
help
Select the external time source of Time of Day at boot.
If device gets time from other PTP/WR device the time will be
overwritten.
config TOD_SOURCE_NONE
bool "None"
help
Don't use external source of local time at startup.
It will use date stored at the last reboot or it will stay
at the beginning of the epoch (1970).
config TOD_SOURCE_NTP
bool "Use NTP"
help
Use NTP as external source of local time at startup.
config TOD_SOURCE_NMEA
bool "Enable NMEA Interface to set time in GM"
help
Use NMEA (interface via RS-232) as external source of local
time at startup.
config TOD_SOURCE_IRIGB
bool "Enable IRIG-B Interface to set time in GM"
help
Use IRIG-B004 (interface via PPS input) as external source of
local time at startup.
PPS input termination will be enabled when IRIG-B is used.
endchoice
config NTP_SERVER
string "IP addresses of NTP servers"
depends on TOD_SOURCE_NTP
help
At boot time, the White Rabbit time can be primed by querying
NTP servers, if CONFIG_TOD_SOURCE_NTP is set.
Please write here the IPV4 address (e.g.: "192.168.16.1") or
the server name to be resolved by an used DNS server.
Multiple servers can be defined, please separate them by comma,
semicolon or space.
An empty string disables NTP-based priming.
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
choice
prompt "NMEA Baud Rate"
depends on TOD_SOURCE_NMEA
default NMEA_B9600
help
Set baud rate of NMEA interface
config NMEA_B9600
bool "9600"
config NMEA_B19200
bool "19200"
config NMEA_B38400
bool "38400"
config NMEA_B57600
bool "57600"
config NMEA_B115200
bool "115200"
endchoice
choice
prompt "NMEA Format"
depends on TOD_SOURCE_NMEA
default NMEA_GPZDA
help
Set the NMEA sentence to parse
config NMEA_GPZDA
bool "GPZDA"
config NMEA_GPRMC
bool "GPRMC"
endchoice
endmenu # "External Time of Day source at boot"
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
choice
prompt "Management port configuration (eth0)"
default ETH0_DHCP
config ETH0_DHCP
bool "DHCP forever"
help
Try DHCP on management port (eth0) forever.
config ETH0_DHCP_ONCE
bool "Try DHCP, if fail use static address"
help
Try DHCP on management port (eth0) for a while, then configure
static IP. Useful, when you move switch between various development
enviroments.
config ETH0_STATIC
bool "Static address"
help
Use static address on management port (eth0). Don't try to DHCP.
endchoice
menu "Management port (eth0) Address"
depends on ETH0_DHCP_ONCE || ETH0_STATIC
config ETH0_IP
string "Static IP address of management port (eth0)"
default "192.168.1.254"
help
Static IP address of management port (eth0). Please note that
wrong IP address will generate a runtime error on the switch.
config ETH0_MASK
string "Mask of management port (eth0)"
default "255.255.255.0"
help
Mask of management port (eth0). Please note that wrong mask will
generate a runtime error on the switch.
config ETH0_NETWORK
string "Network of management port (eth0)"
default "192.168.1.0"
help
Network of management port (eth0). Please note that wrong network
will generate a runtime error on the switch.
config ETH0_BROADCAST
string "Broadcast of management port (eth0)"
default "192.168.1.255"
help
Broadcast of management port (eth0). Please note that wrong broadcast
will generate a runtime error on the switch.
config ETH0_GATEWAY
string "Default gateway of management port (eth0)"
default "192.168.1.1"
help
Default gateway of management port (eth0). Please note that
wrong gateway address will generate a runtime error on the switch.
endmenu
choice
prompt "Hostname source"
default HOSTNAME_DHCP
config HOSTNAME_DHCP
bool "Get hostname via DHCP"
help
Get hostname from DHCP server.
config HOSTNAME_STATIC
bool "Use static hostname"
help
Use static Hostname stored in CONFIG_HOSTNAME_STRING
endchoice
config HOSTNAME_STRING
string "Static hostname of the switch"
default "wrs"
depends on HOSTNAME_STATIC
help
Use this string as a static hostname of the switch.
menu "Authorization and authentication"
config ROOT_ACCESS_DISABLE
bool "Disable root access via ssh"
help
Used by ssh
config LDAP_ENABLE
bool "Enable LDAP authorization"
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
help
Enable LDAP authorization. Used by ssh.
config LDAP_SERVER
string "LDAP server"
depends on LDAP_ENABLE
help
LDAP server(s) e.g. ldap://xldap.cern.ch
config LDAP_SEARCH_BASE
string "LDAP search base"
depends on LDAP_ENABLE
help
LDAP search base e.g. dc=cern,dc=ch
choice
prompt "LDAP filter"
depends on LDAP_ENABLE
default LDAP_FILTER_NONE
config LDAP_FILTER_NONE
bool "Don't apply filter to LDAP"
help
Allow all LDAP users to log in.
config LDAP_FILTER_EGROUP
bool "Apply e-group filter to LDAP"
help
Allow logins only from an e-group defined in CONFIG_LDAP_FILTER_EGROUP_STR
This option is CERN specific.
config LDAP_FILTER_CUSTOM
bool "Apply custom filter to LDAP"
help
Provide custom filtering string for LDAP authorization.
endchoice
config LDAP_FILTER_EGROUP_STR
string "LDAP e-group"
depends on LDAP_FILTER_EGROUP
help
LDAP's e-group for authorization. This option is CERN specific.
config LDAP_FILTER_CUSTOM_STR
string "LDAP access filter string"
depends on LDAP_FILTER_CUSTOM
help
Custom string with a filter for LDAP authorization:
(memberOf=CN=white-rabbit-switch-root,OU=e-groups,OU=Workgroups,DC=cern,DC=ch)
choice
prompt "Authentication method"
depends on LDAP_ENABLE
default AUTH_KRB5
config AUTH_LDAP
bool "Enable LDAP authentication"
depends on LDAP_ENABLE
help
Used by ssh for authentication
config AUTH_KRB5
bool "Enable Kerberos authentication"
depends on LDAP_ENABLE
help
Used by ssh for authentication
endchoice
config AUTH_KRB5_SERVER
string "Kerberos server"
depends on AUTH_KRB5
help
Server name of Kerberos. Usually it is in capital letters.
For CERN, please use CERN.CH
config ROOT_PWD_IS_ENCRYPTED
bool "Should this file include an encripted root password?"
help
The root password, as set here, can be in clear text or
encrypted. If it is specified as clear text, it is encrypted and
stored in the switch at run time. If it specified in pre-encrypted
form, the string will just be copied in place. A clear-text
password in dot-config is less safe against sniffers.
config ROOT_PWD_CLEAR
string "The password to be used at run time"
depends on !ROOT_PWD_IS_ENCRYPTED
default ""
help
The string to be encrypted at boot time by the switch itself,
to later use normal ssh authentication. The empty string is
allowed.
config ROOT_PWD_CYPHER
string "The password to be used at run time"
depends on ROOT_PWD_IS_ENCRYPTED
help
The actual pre-encrypted string. This is stored at run time
into /etc/passwd, for ssh authentication. To create the
string, please run "mkpasswd --method=md5 <password>"
endmenu
endmenu # "Authorization and authentication"
config DNS_SERVER
string "static IP address of local DNS server (empty for none)"
help
Using names instead of IP addresses is sometimes handy. This
option allow to specify a static server name, that is stored
in /etc/resolv.conf, within the WRS image being built. If
the string is empty, /etc/resolv.conf is managed according
to buildroot defaults.
config DNS_DOMAIN
string "Default domain for DNS resolution"
help
If CONFIG_DNS_SERVER is being used, this option may be
useful as well.
config LOCAL_SYSLOG_FILE
string "Store WRS syslog messages locally "
default "/tmp/syslog"
help
Select file to which syslog messages will be stored.
The file is rotated when reaching 1MB. If remote
server is specified, the messages go to both, server and local file.
config REMOTE_SYSLOG_SERVER
string "Send WRS syslog messages to this remote host"
help
This IP address or name, if not empty enables remote syslog
in the switch; all messages are sent to this specific host.
config REMOTE_SYSLOG_UDP
bool "Use UDP for syslog messages"
default y
help
Select UDP to send system logs. If not set, TCP is used.
config WRS_LOG_HAL
string "Logging directions for the WR hal"
Maciej Lipinski
committed
default "default_syslog"
help
The string can be:
- a pathname (e.g. /dev/kmsg), or
Maciej Lipinski
committed
- a <facility>.<level> specification like "daemon.debug", or
Maciej Lipinski
committed
- "default_syslog", or
- an empty string
An empty string is used to represent no logging (like /dev/null).
When the string is "default_syslog", messages are sent to syslog with
Maciej Lipinski
committed
the <facility>.<level> inherited from the messages (if not specified
in the message, daemon.info is used by default).
Maciej Lipinski
committed
When the string is "<facility>.<level>", all messages produced by
the WR HAL if syslog is configured will be passed to the syslog at
the same <facility>.<level>, no matter of verbosity of a message.
Please note that unknown facility names will generate a runtime error
on the switch.
config WRS_LOG_LEVEL_HAL
string "Logging verbosity level for the WR HAL"
default ""
help
Specify verbosity of WR HAL as a string or number. The following
levels are supported:
ALERT (1)
ERROR (3)
WARNING (4)
INFO (6)
DEBUG (7)
By leaving this item empty, HAL will use its default verbosity level
(INFO).
Please note that all messages produced by the WR HAL if syslog is
configured will be passed to the syslog at the same
<facility>.<level>, no matter of verbosity of a message.
config WRS_LOG_RTU
string "Logging directions for the RTU daemon"
Maciej Lipinski
committed
default "default_syslog"
help
The string can be:
- a pathname (e.g. /dev/kmsg), or
Maciej Lipinski
committed
- a <facility>.<level> specification like "daemon.debug", or
Maciej Lipinski
committed
- "default_syslog", or
- an empty string
An empty string is used to represent no logging (like /dev/null).
When the string is "default_syslog", messages are sent to syslog with
Maciej Lipinski
committed
the <facility>.<level> inherited from the messages(if not specified
in the message, daemon.info is used by default).
Maciej Lipinski
committed
When the string is "<facility>.<level>", all messages produced by
the RTU if syslog is configured will be passed to the syslog at
the same <facility>.<level>, no matter of verbosity of a message.
Please note that unknown facility names will generate a runtime error
on the switch.
config WRS_LOG_LEVEL_RTU
string "Logging verbosity level for the RTU daemon"
default ""
help
Specify verbosity of RTU daemon as a string or number. The following
levels are supported:
ALERT (1)
ERROR (3)
WARNING (4)
INFO (6)
DEBUG (7)
By leaving this item empty, RTU daemon will use its default verbosity
level (INFO).
Please note that all messages produced by RTU daemon if syslog is
configured will be passed to the syslog at the same
<facility>.<level>, no matter of verbosity of a message.
config WRS_LOG_PTP
string "Logging directions for the PTP server (ppsi)"
default "daemon.info"
help
The string can be a pathname (e.g. /dev/kmsg) or a <facility>.<level>
spefification like "daemon.debug". An empty strings is used
to represent no logging (like /dev/null). Please note that
unknown facility names will generate a runtime error on the switch.
Please note that all messages produced by PPSi if syslog is
configured will be passed to the syslog at the same
<facility>.<level>, no matter of verbosity of a message.
config WRS_LOG_LEVEL_PTP
string "Logging verbosity level for the PTP server (ppsi)"
default ""
help
Specify verbosity of PPSi daemon as a string. This string will be
passed to the PPSI after "-d" parameter. Please refer to the PPSI's
documentation for more details.
By leaving this item empty, PPSi daemon will use its default
verbosity level.
Please note that all messages produced by PPSi if syslog is
configured will be passed to the syslog at the same
<facility>.<level>, no matter of verbosity of a message.
config WRS_LOG_SNMPD
string "Logging directions for the SNMP daemon"
help
The string can be a pathname (e.g. /dev/kmsg) or a valid snmpd log
option (without -L). "Swd" will forward messages with priority at
least warning to syslog with daemon as facility. To set level (i.e. 5)
use "S 5 daemon". For details please check "man snmpcmd". An empty
strings is used to represent no logging (like /dev/null). Please
note that unknown facility names will generate a runtime error on the
switch. NOTE: It looks like Notice is not a default logging priority
as writen in manual.
config WRS_LOG_MONIT
string "Logging directions for the monit"
default "syslog"
help
The string can be a pathname (e.g. /dev/kmsg) or a "syslog" string.
An empty strings is used to represent no logging. If it is needed to
select facility and level please leave here empty string and change
/etc/monitrc file directly.
Please note that unknown facility names will generate a runtime error
on the switch.
config WRS_LOG_OTHER
string "Logging directions for other programs"
Maciej Lipinski
committed
default "default_syslog"
Redirect output from other programs.
In the current version following programs uses this option:
--wrs_watchdog
--wrs_custom_boot_script.sh
--vlan.sh
This collective entry is to avoid number of entries in dot-config.
Maciej Lipinski
committed
The string can be:
- a pathname (e.g. /dev/kmsg), or
Maciej Lipinski
committed
- a <facility>.<level> specification like "daemon.debug", or
Maciej Lipinski
committed
- "default_syslog", or
- an empty string
An empty string is used to represent no logging (like /dev/null).
When the string is "default_syslog", messages are sent to syslog with
Maciej Lipinski
committed
the <facility>.<level> inherited from the messages (if not specified
in the message, daemon.info is used by default).
Maciej Lipinski
committed
When the string is "<facility>.<level>", all messages produced by
the programs if syslog is configured will be passed to the syslog at
the same <facility>.<level>, no matter of verbosity of a message.
Please note that unknown facility names will generate a runtime error
on the switch.
config WRS_LOG_LEVEL_OTHER
string "Logging verbosity level for other programs"
default ""
help
Specify verbosity of other programs as a string or number. The
following levels are supported:
ALERT (1)
ERROR (3)
WARNING (4)
INFO (6)
DEBUG (7)
By leaving this item empty, other programs daemon will use their
default verbosity level (INFO).
Please note that all messages produced by other programs if syslog is
configured will be passed to the syslog at the same
<facility>.<level>
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
menu "Global PTP configuration (profile, timing mode, BMCA and external port config, ...)"
choice
prompt "PTP Profile"
default GLOBAL_PROFILE_HA_WR
config GLOBAL_PROFILE_PTP
bool "Default (IEEE 1588)"
help
Use the default PTP profile.
config GLOBAL_PROFILE_HA_WR
bool "White Rabbit / High-Accuracy (IEEE 1588)"
help
Use the White Rabbit or the High Accuracy profile.
config GLOBAL_PROFILE_CUSTOM
bool "Custom Profile"
help
Use the custom PTP Profile. It allows setting values with
less constraints.
endchoice
choice
prompt "BMCA"
default PTP_OPT_BMCA_STANDARD
help
Select Alternate Best Master Clock Algorithm
config PTP_OPT_BMCA_STANDARD
bool "Default IEEE 1588"
help
Use the Alternate Best Master Clock Algorithm as defined in
IEEE 1588.
config PTP_OPT_BMCA_EXT_PORT_CONFIG
bool "External Port Configuration (disable BMCA)"
help
This option is to force the port state. When set, BMCA is
disabled.
For more details please refer to the IEEE 1588-2019 (clause 17.6.2)
endchoice
choice
prompt "Timing Mode"
default TIME_BC
config TIME_GM
bool "Grand-Master"
help
This options selects the White Rabbit Switch as a grandmaster,
i.e. it uses its input channels to track an Atomic or GPS and
claim to be a PTP authoritative source on the network.
The clockClass is set to 6 which designates a clock that is
synchronized to a primary reference time source.
config TIME_ARB_GM
bool "Arbitrary Grand-Master"
help
This options selects the White Rabbit Switch as a grandmaster,
i.e. it uses its input channels to track an application-specific
source of time.
The clockClass is set to 13 which designates a clock that is
synchronized to an application-specific source of time. The timescale
distributed is then ARB (arbitrary).
config TIME_FM
bool "Free-Running Master"
help
The White Rabbit Switch pretends to be a master on his PTP
network, but it doesn't sync to an external source. Its own
internal clocks and counters are used to drive timing.
The clockClass is set to 193 and all ports must be set to
master-only mode.
config TIME_BC
bool "Boundary Clock"
help
The White Rabbit Switch is a normal PTP Boundary Clock: it is
slave on one of its ports and master on the other ones, according
to the standard Best Master Clock algorithm.
The clockClass is set to 248 which is the default clockClass.
config TIME_CUSTOM
bool "Custom"
help
This custom mode allows free access to the clock quality parameters.
config PTP_OPT_PTP_VERSION_OVERWRITE
boolean "Allow the overwrite of the default PTP version per instance"
default n
help
This option is required to overwrite the PTP version used in
the transmitted PTP messages. The actual setting is done in
the per instance configuration menu.
If this option is not set, the PTP version is set based on the used
extension (not profile!).
If no extension or HA/L1Sync is used, PTP version is set to
v2.1 (IEEE1588-2019).
If WR extension is used then PTP version is set to
v2.0 (IEEE1588-2008).
config PTP_OPT_OVERWRITE_ATTRIBUTES
boolean "Overwrite default values of PTP attributes"
depends on ! TIME_CUSTOM
default FALSE
help
This option allows to overwrite the default value depending
of the timing mode for the clock accuracy, the clock Allan variance.
int "domain-number" if PTP_OPT_OVERWRITE_ATTRIBUTES || TIME_CUSTOM
default 0
range 0 255
help
A domain consists of one or more PTP devices communicating with each
other as defined by the PTP protocol. A domain defines the scope of
PTP message communication, state, operations, data sets, and
timescale. PTP devices may participate in multiple domains.
For more details please refer to the IEEE 1588-2019 standard.
int "priority1" if PTP_OPT_OVERWRITE_ATTRIBUTES || TIME_CUSTOM
default 128
range 0 255
help
A user configurable designation that a clock belongs to an ordered
set of PTP devices from which a PTP Master is selected.
For more details please refer to the IEEE 1588-2019 standard
int "priority2" if PTP_OPT_OVERWRITE_ATTRIBUTES || TIME_CUSTOM
range 0 255
help
A user configurable designation that provides finer grained ordering
among otherwise equivalent PTP devices.
For more details please refer to the IEEE 1588-2019 standard
int "clock-accuracy" if PTP_OPT_OVERWRITE_ATTRIBUTES || TIME_CUSTOM
default 33 if TIME_GM || TIME_ARB_GM
default 32 if TIME_FM
default 254
range 0 255
help
An attribute defining the accuracy of the Local Clock (e.g. local
oscillator) of a Boundary Clock or Ordinary Clock.
For more details please refer to the IEEE 1588-2019 standard.
config PTP_OPT_CLOCK_ALLAN_VARIANCE
int "clock-allan-variance/offsetScaledLogVariance" if PTP_OPT_OVERWRITE_ATTRIBUTES || TIME_CUSTOM
default 47360 if TIME_GM || TIME_ARB_GM
default 50973 if TIME_FM
default 65535
range 0 65535
help
An attribute defining the stability of the Local Clock of a
Boundary Clock or Ordinary Clock.
For more details please refer to the IEEE 1588-2019 standard.
int "time-source" if (!TIME_BC) && (PTP_OPT_OVERWRITE_ATTRIBUTES || TIME_CUSTOM)
default 32 if TIME_GM || TIME_ARB_GM
default 160 if TIME_FM
default 160
range 0 255
help
This information-only attribute indicates the source of time used
by the grandmaster (or free-running master).
config PTP_OPT_CLOCK_CLASS
default 6 if TIME_GM
range 6 6 if TIME_GM
default 13 if TIME_ARB_GM
range 13 13 if TIME_ARB_GM
default 193 if TIME_FM
range 193 193 if TIME_FM
default 248 if TIME_BC
range 248 248 if TIME_BC
default 248 if TIME_CUSTOM
range 1 255 if TIME_CUSTOM
help
An attribute defining the TAI traceability, synchronization state and
expected performance of the time or frequency distributed by a
Boundary Clock or Ordinary Clock.
For more details please refer to the IEEE 1588-2019 standard.
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
menu "Port PTP/Timing configuration"
choice
prompt "PTP Port Assignment"
default PTP_PORT_PARAMS
help
You can choose either to use parameters defined in PORTxx_INSTxx or
your own custom configuration file placed in switch file system
or downloaded at boot time.
config PTP_PORT_PARAMS
bool "Generate ppsi.conf based on the PORTxx_INSTyy_z parameters"
help
Generate ppsi.conf based on "PORTxx_INSTyy_z parameters" and "role" specified for each
port.
PPSI's global settings can be set in file /wr/etc/ppsi-pre.conf
config PTP_CUSTOM
bool "Custom ppsi.conf in the WRS file system"
help
Use custom file for ppsi defined by CONFIG_PTP_CUSTOM_FILENAME.
config PTP_REMOTE_CONF
bool "Download ppsi.conf from the network at each boot"
help
This choice allows to specify an URL so you can download a
custom file using the network. This allows running a bunch
of switches, all with the same configuration but different
configurations that can't just be derived from PORT_PARAMS above.
endchoice
config PTP_CUSTOM_FILENAME
string "Pathname for your custom ppsi.conf"
depends on PTP_CUSTOM
default "/wr/etc/ppsi-custom.conf"
help
This is the filename used as ppsi.conf. Please note that the
file is copied to /etc/ppsi.conf when configuration is applied,
and the PTP daemon always picks /etc/ppsi.conf, not this
filename.
config PTP_CONF_URL
depends on PTP_REMOTE_CONF
string "Download URL (http, https, ftp, tftp) for custom ppsi.conf"
help
Like CONFIG_DOTCONF_URL, this option allows passing HOSTNAME, IPADDR
and MACADDR in the filename, and if a DNS server is configured,
you can use host names.
tftp://, ftp://, http:// or https:// URLs are allowed. For https
CA certificates are ignored.
For example: tftp://morgana/wrs-IPADDR-ppsi.conf
source Kconfig_port_timing.in
endmenu # "Port PTP/Timing configuration"
source Kconfig_sfp_fiber.in
menu "PPS generation"
config PPSGEN_PTP_FALLBACK
bool "PTP fallback"
default N
help
This option enables the PPS generation if a slave instance
programmed to use an extension protocol (WR, L1Sync, ...) is falling back
to PTP communication only.
config PPSGEN_PTP_THRESHOLD_MS
int "PTP threshold (ms)"
default 500
range 1 1000
help
This option defines the threshold corresponding to the offset from the
master used to start the generation of the PPS. It is either used by a PTP slave
instance or a instance using a protocol extension but going into the fallback PTP mode
and with the PTP fallback option active.
A 0 value means that the PPS will be not generated for the considered cases.
When the PPS is generated, it can be also disabled when the offset from master becomes greater
than the threshold value + 20%
config PPSGEN_GM_DELAY_TO_GEN_PPS_SEC
int "Grand Master delay for PPS (sec)"
default 0
range 0 1000
help
This option allows a boundary/ordinary clock to generate PPS when it becomes Grand Master (GM) by BMCA. Becoming GM
by BMCA might be a transitory situation during a network discovery. The PPS must be activated only when all this
transitory phase is terminated. This option then allows to define a delay in seconds to respect before
generating the PPS when a GM by BMCA is detected.
A 0 value desactivate this feature.
config PPSGEN_FORCE
bool "Force generation of PPS all the time (not for FR)"
depends on !TIME_FM
default n
help
This option enables the PPS generation all the time in various modes
except Free-Running Master.
config PPSGEN_FR_ON_SYNC_ONLY
bool "In FR mode generate PPS only when synchronized to master"
depends on TIME_FM
default n
If device is configured as Free-Running master, generate PPS only
when synchronized to another master. Otherwise PPS is generated all
the time."
li hongming
committed
config EXT_PPS_LATENCY_PS
int "Compensate signal skew between PPS IN and PPS OUT (in ps)"
depends on TIME_GM || TIME_ARB_GM || TIME_CUSTOM
default "0"
help
If one needs to precisely align 1-PPS output with 1-PPS input when WRS
works as GrandMaster, calibration are needed to overcome the signal
skew between the 1-PPS input and 10MHz clock input. As the component
variance of different clock source and WRS, this latency parameter
should be calibrated one by one to achieve PPS alignment with high
accuracy.
The entered value is in ps.
menu "Management configuration"
config SNMP_SYSCONTACT
string "System contact reported by SNMP"
help
If not empty, this value will be reported as System contact
(SNMPv2-MIB::sysContact.0)
config SNMP_SYSLOCATION
string "System location reported by SNMP"
help
If not empty, this value will be reported as System Location
(SNMPv2-MIB::sysLocation.0)
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
config SNMP_TRAPSINK_ADDRESS
string "Static IP address or name where to send SNMPv1 traps"
help
If not empty, the address or name is ussed as "trapsink"
destination in the SNMP configuration file for the switch.
It empty, no v1 traps are generated. If both this and
the following TRAP2SINK_ADDRESS are set, snmpd sends two
traps (one per protocol version). Trapcommunity is "public"
(not configurable so far).
config SNMP_TRAP2SINK_ADDRESS
string "Static IP address or name where to send SNMPv2c traps"
help
If not empty, the address or name is ussed as "trap2sink"
destination in the SNMP configuration file for the switch.
It empty, no v2c traps are generated. Trapcommunity is "public"
(not configurable so far).
config SNMP_RO_COMMUNITY
string "Read-only community name for SNMP V1/V2 management"
default "public"
help
If not empty, the 'community' name is a sort of password,
that travels as clear text (we don't support encrypted SNMPv3
yet). The default is good for testing, but should be changed
for production. Please note, however, that the switch processes
SNMP only on the CPU Ethernet port (the copper "management" port).
config SNMP_RW_COMMUNITY
string "Read-write community name for SNMP V1/V2 management"
default "private"
help
If not empty, the 'community' name is a sort of password,
that travels as clear text (we don't support encrypted SNMPv3
yet). The default is good for testing, but should be changed
for production. Please note, however, that the switch processes
SNMP only on the CPU Ethernet port (the copper "management" port).
config SNMP_TEMP_THOLD_FPGA