- 24 Jun, 2015 1 commit
-
-
Adam Wujek authored
It may take few seconds to start hal, rtud shouln't complain about it during 5 seconds. Additionally change fprintf into pr_error. Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
-
- 18 Jun, 2015 14 commits
-
-
Adam Wujek authored
Sometimes it happens at boot that rts_get_state fails. It may be due to race condition with ppsi or something else. Anyway try again when rts_get_state fails. Additionally print message when got timeout from tmo_expired. Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
--Move assert_init macro to libwr/wrs-msg.h --Add printout to assert_init macro to know which function fails. --Remove assert_init macro duplication from rsw_hal/hal_main.c --Remove #include <libwr/shw_io.h> from libwr/shw_io.h (no need to include file from itself) Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
-
Adam Wujek authored
Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Also support HAL and PPSI restarts in wr_mon. Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Make monit to start from inittab instead of rcS script. Add config files for: --dropbear --lighttpd
-
Adam Wujek authored
We want that monit don't propagate its state over restart. Move monit.stat to /tmp. Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Additionally change startup script to use start-stop-daemon Note: start-stop-daemon does not create pid file Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
When monit is started from inittab instead of script /etc/init.d/monit.sh it will be respawned after its crash. Support stopping/starting monit by /etc/init.d/monit.sh To stop monit, STOP signal is sent to it. By this, init will not respawn monit, because it is still present in process' list. Add disabling monit in dot-config by option CONFIG_MONIT_DISABLE. When monit is disabled by dot-config, monit.sh will sleep forever, to satisfy init and prevent respawning Update dot-config items in user-manual. Include only *.conf instead of all files from /etc/monit.d/. Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Add explicit error messages when problems with downloaded dot-config file. Messages added in /etc/init.d/dot-config Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
-
- 17 Jun, 2015 2 commits
-
-
Adam Wujek authored
parameters show up as a result of copy-paste error Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Move: /etc/init.d/[SK]??<name> to /etc/init.d/<name> Then create symlinks in /etc/init.d/rcS/[SK]??* to all files that previously were /etc/init.d/[SK]??* With exception of monit since monit will start soon from init. Rename all occurences of changed files. Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
-
- 15 Jun, 2015 1 commit
-
-
Adam Wujek authored
Date was never restored due to wrong filename in /etc/init.d/S70wr_date Use saved_date instead of update_date Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
-
- 08 Jun, 2015 1 commit
-
-
Adam Wujek authored
Update required because otherwise setting of auxclk hangs the switch. Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
-
- 12 May, 2015 7 commits
-
-
Adam Wujek authored
Add wrs_auxclk to start at boot NOTE: This branch requires new Gateware! wrs_auxclk will hang switch when using gateware from last release of switch.
-
Adam Wujek authored
Added init script /etc/init.d/S70wrs_auxclk to start wrs_auxclk with parameters read from dot-config. Added parameters to Kconfig: --WRSAUXCLK_FREQ --WRSAUXCLK_DUTY --WRSAUXCLK_CSHIFT --WRSAUXCLK_SIGDEL --WRSAUXCLK_PPSHIFT All above are used as parameters to wrs_auxclk, which configure external clock clk2 NOTE: This patch requires new Gateware! wrs_auxclk will hang switch when using gateware from last release of switch. Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Now wrs_auxclk returns: 0 on success 1 on fail or not enough parametes provided (help printed) Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Introduce saving time before restart, which is restored after restart. Aslo report date of last firmware update.
-
Adam Wujek authored
Add reporting of when last update of switch firmware took place via SNMP. If update date is not known return "0000.00.00-00:00:00" Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Note: Be aware that date of last update may be not accurate. One reason is that it uses date stored before last restart, so time needed to restart is not taken into account. Additionally date stored before restart may be not accurate for many reasons like: --hard restart (last know date was not saved) --date was never received from ntp nor set manually Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
--add running all /etc/init.d/K* scripts before restart --add /etc/init.d/K90time_save.sh script to save current date --set saved date in case date cannot be received from ntp --update developer manual Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
-
- 04 May, 2015 1 commit
-
-
Adam Wujek authored
Add reporting via ifconfig: --rx errors (counter RX PCS Errors from pstats) --carrier (counter RX Sync Lost from pstats) Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
-
- 27 Apr, 2015 2 commits
-
-
Adam Wujek authored
-
Adam Wujek authored
--remove description of CONFIG_PTP_* --add description of CONFIG_PTP_PORT_PARAMS and CONFIG_PTP_CUSTOM --update description of CONFIG_PORTxx_PARAMS, add proto information --update timing configuration section with proto and role information --In apply_dot-config description add hyperlink to chapter where dot-config is described instead of document itself. It looks like this part was copied from developer-manual. --by changes above remove information that role is not used. Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
-
- 24 Apr, 2015 1 commit
-
-
Adam Wujek authored
This patch is to replace previous way of managing ppsi configuration file. Instead of copying proper file based on chosen configuration PTP_* option in dot-config, now ppsi.conf file is assembled based on PORTXX_PARAMS fields in dot-config. --Kconfig: - remove options: - PTP_WR_DEFAULT - PTP_WR_MASTER - PTP_WR_AUTO - PTP_WR_AUTO_UDP - PTP_NONWR_UDP_ALL - add PTP_PORT_PARAMS (to let assembly ppsi.conf file) - keep option PTP_CUSTOM to use user's ppsi configuration file - move PTP_CUSTOM_FILENAME to different position - add property "proto" to PORTXX_PARAMS --remove predefined ppsi configs (not to be used anymore) from /wr/etc/ppsi-config-pool/: - WR_DEFAULT - WR_MASTER - WR_AUTO - WR_AUTO_UDP - NONWR_UDP_ALL --add new script assembly_ppsi_conf.sh to create ppsi.conf file. ppsi.conf file is assembled based on PORTXX_PARAMS fields like port name, proto(col) and role. All master, slave or auto ports are set to use whiterabbit extension --add file /wr/etc/ppsi-pre.conf to keep top of ppsi.conf including global options (later all options may be moved to dot-conf) --modivy apply_dot-config to use assembly_ppsi_conf.sh instead of old way. NOTE: update of documentation is missing Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
-
- 21 Apr, 2015 10 commits
-
-
Adam Wujek authored
Branch include SNMP related work
-
Adam Wujek authored
Add following deamon's start counters: --sshd (dropbear) --https (lighttpd) --snmpd --syslog Update: --start scripts --snmpd --MIB Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Please note that wrsTimingStatus is not implemented. However, wrsMainSystemStatus assumes it is implemented. No changes will be needed to wrsMainSystemStatus during implementation of wrsTimingStatus. Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Always return status ok in wrsTimingStatus. Add defines for status values for wrsTimingStatus. Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
These functions were used to test caches and cache performance. Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Additionally update MIB Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Objects added: --wrsEndpointStatus --wrsSwcoreStatus --wrsRTUStatus --update MIB --add parameters to Kconfig Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
use libwr's interface for dot-config Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
wrsSFPsStatus notify if any SFP report error Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
-- add wrsOSStatus logic to wrsGeneralStatusGroup.c -- update MIB Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
-