Skip to content
Snippets Groups Projects
  1. Jul 26, 2015
  2. Jun 30, 2015
    • Adam Wujek's avatar
      wrs_main: check for stack overflow and detect reset · da3da2d9
      Adam Wujek authored and Grzegorz Daniluk's avatar Grzegorz Daniluk committed
      Add checking stack overflow and detecting reset to wrs. Code common for wrpc
      and wrs is placed in system_checks.c and .h. Work is based on following
      commits in wrc_main.c:
      1704a668 main: check for stack overflow
      7836c39e
      
       Optionally detect reset and print a stack trace
      
      Additionally:
      --update Kconfig to have a possibility to select CHECK_RESET also for switch,
        not only for node as before
      --and _endram to ram-wrs.ld
      
      When "stack overflow" occurs then message is printed once every second.
      When reset occours then LM32 will print stack trace and reset once more.
      NOTE: I couldn't get spll to work after reset, for sure problem is in
            ad9516 init function, but not only there.
      
      Signed-off-by: default avatarAdam Wujek <adam.wujek@cern.ch>
      da3da2d9
    • Adam Wujek's avatar
      revision: report build information via spll_stats structure · ee1c7482
      Adam Wujek authored and Grzegorz Daniluk's avatar Grzegorz Daniluk committed
      
      --increase spll_stats structure version to 2
      --add to spll_stats structure:
        - commit_id
        - build_date
        - build_time
        - start_cnt (to be used later for start counter)
      --move declaration of spll_stats structure from wrs_main.c to revision.c
      --pass git version and author at compile time to revision.c
      --create revision.h with build_* externs
      --update version reporting at cpu start
      --update version command
      --include section .stats in section .data for node
      
      Signed-off-by: default avatarAdam Wujek <adam.wujek@cern.ch>
      ee1c7482
  3. Jan 06, 2015
    • Theodor-Adrian Stana's avatar
      Add flash-write · 6ef8ac88
      Theodor-Adrian Stana authored and Grzegorz Daniluk's avatar Grzegorz Daniluk committed
      
      The flash-write tool is operational. The call to read status register
      from flash-host is not working yet, and that is to be solved. In the
      meantime, there are sleep functions inserted where we're supposed
      to poll the status register.
      
      Signed-off-by: default avatarTheodor Stana <t.stana@cern.ch>
      6ef8ac88
  4. Oct 08, 2014
  5. Oct 07, 2014
  6. Aug 18, 2014
    • Alessandro Rubini's avatar
      ppsi: get new release, and fix Makefile accordingly · d447f096
      Alessandro Rubini authored and Grzegorz Daniluk's avatar Grzegorz Daniluk committed
      
      This includes ppsi-v2014.07.
      
      The new ppsi master is Kconfig-based, so our makefile must
      make "wrpc_defconfig" in ppsi before building it.
      Additionally, the link steps changed to the better in there, so we
      don't link the "strange" $(PPSI)/proto-standard/libstd.a any more.
      
      We may consider whether a local .config for ppsi should be
      provided by this package instead of relying on its own choices;
      not a big deal, though, as we maintain them at the same time.
      
      Please note that any existent ppsi/.config is preserved, to allow
      local tests. This should not have any impact on normal users.
      
      Signed-off-by: default avatarAlessandro Rubini <rubini@gnudd.com>
      d447f096
  7. Aug 05, 2014
  8. Feb 11, 2014
  9. Nov 13, 2013
    • Alessandro Rubini's avatar
      build: avoid internal "ptpdump" support in ppsi, when RAM won't fit · c54cfe24
      Alessandro Rubini authored
      
      Etherbone won't fit with a full ppsi in the default RAM size for SPEC
      cards. So this commit uses a ppsi hack to avoid internal ptpdump,
      activating it when CONFIG_RAMSIZE is not 128kB and CONFIG_ETHERBONE is
      set.
      
      We should rather compare RAMSIZE with "< 131072", but neither gnu make
      nor this version of Kconfig support numeric comparison.
      
      This hack will soon disappera, as ppsi is gaining Kconfig support, so
      wrpc-sw will be able to pass proper configuration. Also, 128kB will soon
      be the default for SPEC images.
      
      Signed-off-by: default avatarAlessandro Rubini <rubini@gnudd.com>
      c54cfe24
  10. Oct 25, 2013
    • Wesley W. Terpstra's avatar
      move stdint.h and inttypes.h to another folder · 4fd8e991
      Wesley W. Terpstra authored
      These headers shadow system headers.
      While they are necessary for building on the LM32, it breaks any
      code that wants the other WR headers on a different architecture.
      
      By moving these headers, we can pick whether to use them or not.
      4fd8e991
  11. Oct 17, 2013
  12. Oct 11, 2013
  13. Oct 10, 2013
  14. Sep 24, 2013
  15. Jul 26, 2013
  16. May 23, 2013
  17. May 14, 2013
  18. May 09, 2013
  19. May 08, 2013
  20. May 06, 2013
  21. May 03, 2013
    • Cesar Prados's avatar
      Makefile: change to support gmake-3.82 · 152111a8
      Cesar Prados authored and Alessandro Rubini's avatar Alessandro Rubini committed
      Split a rule into two rules, to make make happy.
      
      In previous versions of make it was acceptable to list one or more
      explicit targets followed by one or more pattern targets in the same
      rule and it worked "as expected". However, this was not documented as
      acceptable and if you listed any explicit targets AFTER the pattern
      targets, the entire rule would be mis-parsed. This release removes
      this ability completely: make will generate an error message if you
      mix explicit and pattern targets in the same rule. You must split
      these rules into two rules: one for the pattern and one for the
      explicit targets. The Linux kernel source has already been modified in
      this way (in newer kernels).
      152111a8
  22. Apr 03, 2013
  23. Mar 28, 2013
    • Alessandro Rubini's avatar
      shell: add "config" command. · c118ac41
      Alessandro Rubini authored
      
      This command can return the .config file to the user. It can be useful
      to trace what is actually running, as addition to the "ver"
      command.  It is optional because it costs .5kB of binary size.
      
      Example:
      
        wrc# config
          Current WRPC-SW configuration:
        CONFIG_RAMSIZE=90112
        # CONFIG_PTP_NOPOSIX is not set
        CONFIG_PPSI=y
        # CONFIG_CHECK_RESET is not set
        CONFIG_PPSI_VERBOSITY=0
        CONFIG_PPSI_RUNTIME_VERBOSITY=y
        CONFIG_STACKSIZE=2048
        CONFIG_PP_PRINTF=y
        # CONFIG_PRINTF_FULL is not set
        CONFIG_PRINTF_XINT=y
        # CONFIG_PRINTF_MINI is not set
        # CONFIG_PRINTF_NONE is not set
        CONFIG_PRINT_BUFSIZE=128
        CONFIG_ETHERBONE=y
        # CONFIG_DETERMINISTIC_BINARY is not set
        CONFIG_CMD_CONFIG=y
      
      (This configuration amounts to a binary size of 86252 bytes, at this
      commit).
      
      Signed-off-by: default avatarAlessandro Rubini <rubini@gnudd.com>
      c118ac41
    • Alessandro Rubini's avatar
      Makefile: use bigobj.lds during initial partial link · eb9d18a4
      Alessandro Rubini authored
      
      This commit makes no effect, but it prepares for the following one.
      In general, using an intermediate platform-agnostic linker script
      when making wrc.o is not bad, so let's do it here.
      
      The main reason why we need it is to force the "KEEP" command for the
      ".cmd" ELF section, introduced by the next commit.  The alternative to
      this would be chaning the main linker script, which is worse in my
      opinion.
      
      If we add initcalls or similar stuff later, this bigobj.lds is the
      place to do it.
      
      Signed-off-by: default avatarAlessandro Rubini <rubini@gnudd.com>
      eb9d18a4
  24. Mar 22, 2013
  25. Mar 19, 2013
  26. Mar 18, 2013