Skip to content
Snippets Groups Projects
  1. Sep 05, 2016
    • Adam Wujek's avatar
      [Feature: 1363] rootfs: add a support to execute custom script at startup · 4b6c9a1a
      Adam Wujek authored
      
      This will allow users to have special configuration (that is not possible to
      achieve by just using dot-config) without a need to manually handle custom
      script.
      
      The script can be used from /wr/bin/custom_boot_script.sh or downloaded during
      the boot. It is not possible to execute a script which was downloaded during
      the previous boot. But a script can be written in such way to copy itself to
      /wr/bin/custom_boot_script.sh.
      
      Signed-off-by: default avatarAdam Wujek <adam.wujek@cern.ch>
      4b6c9a1a
  2. Aug 30, 2016
  3. Aug 12, 2016
  4. Aug 11, 2016
  5. Jul 07, 2016
  6. Feb 12, 2016
  7. Feb 10, 2016
  8. Feb 09, 2016
  9. Aug 28, 2015
  10. Aug 27, 2015
  11. Aug 26, 2015
    • Adam Wujek's avatar
      rootfs: make possible to get URL to the dot-config via dhcp · 4ef3017c
      Adam Wujek authored
      
      force-dhcp can be used to retrieve a URL to the dot-config, which is downloaded
      during boot.
      try-dhcp the same as above but don't complain about unsuccessful receive of the
      URL via DHCP to SNMP.
      
      Update:
      --MIB - add tryDhcp and forceDhcp to the wrsConfigSource object; add
              dhcpError to the wrsBootConfigStatus object
      --SNMPd - same as the above; don't error in wrsBootConfigStatus when tryDhcp
                fails
      --dot-config's script - support new dot-config sources
      --Kconfig - support new dot-config sources
      --wrs_failures
      --wrs-user-manual
      --wrs_release_defconfig - add new items
      --create new script for udhcpc to save "filename" configuration field retrieved
        from DHCP server; it contains the URL to the dot-config to be downloaded.
      
      Signed-off-by: default avatarAdam Wujek <adam.wujek@cern.ch>
      4ef3017c
  12. Jul 29, 2015
  13. Jul 15, 2015
  14. Jul 10, 2015
  15. Jul 08, 2015
  16. Jul 06, 2015
  17. Jun 18, 2015
    • Adam Wujek's avatar
      userspace/rootfs_override: make monit to start from inittab · 99cbeed5
      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: default avatarAdam Wujek <adam.wujek@cern.ch>
      99cbeed5
  18. May 12, 2015
    • Adam Wujek's avatar
      userspace/rootfs_override: add script S70wrs_auxclk to configure external clock · 0d6fee0a
      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: default avatarAdam Wujek <adam.wujek@cern.ch>
      0d6fee0a
  19. Apr 24, 2015
    • Adam Wujek's avatar
      userspace/rootfs_override: change handling of ppsi.conf · 1c0e4648
      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 ...
      1c0e4648
  20. Apr 21, 2015
  21. Mar 04, 2015
  22. Jan 04, 2015
  23. Dec 17, 2014
  24. Dec 15, 2014