1. 20 Jan, 2016 2 commits
  2. 08 Sep, 2015 1 commit
  3. 23 Jul, 2015 2 commits
  4. 30 Jun, 2015 1 commit
    • Adam Wujek's avatar
      wrs_main: check for stack overflow and detect reset · da3da2d9
      Adam Wujek authored
      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: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
      da3da2d9
  5. 08 Jan, 2015 1 commit
  6. 18 Nov, 2014 3 commits
  7. 08 Oct, 2014 1 commit
  8. 11 Feb, 2014 2 commits
  9. 06 Feb, 2014 1 commit
    • Miguel Jimenez Lopez's avatar
      dev/ep_pfilter: Updated filter rules for wr-nic (with etherbone) project. · 8accf456
      Miguel Jimenez Lopez authored
      	- Added the NIC_PFILTER configuration option in Kconfig to decide which filter rules will be used.
      	- Updated the dev/ep_pfilter.c file by using the CONFIG_NIC_PFILTER macro. This is done because packet filter does
      	not work correctly if we write all rules in the CONFIG_ETHERBONE section.
      	- We do not use the DROP instruction because all other packets go to NIC core.
      
      Notes:
      
      	- The filter rules to the wr-nic do not have the DROP instruction because all traffic
      	does not go to the LM32/Etherbone is re-direct to the NIC by default.
      
      	- The NIC_PFILTER configuration option depends on ETHERBONE one.
      
      	- Magic number of Etherbone packets is not checked due to the number of rules. (The packet filter is not able to classify correctly)
      8accf456
  10. 17 Jan, 2014 1 commit
    • Miguel Jimenez Lopez's avatar
      dev/ep_pfilter: Updated filter rules for wr-nic repository. · a5d3db16
      Miguel Jimenez Lopez authored
      - Added CONFIG_WRNIC in Kconfig to decide which filter rules will be use.
      - Updated ep_pfilter using CONFIG_WRNIC.
      - We do not use drop because all other packet goes to NIC core.
      
      Note: filter rules to wr-nic do not have DROP instruction because all traffic
      does not go to LM32/Etherbone is re-direct to NIC by default.
      a5d3db16
  11. 13 Nov, 2013 2 commits
  12. 17 Oct, 2013 2 commits
  13. 24 Sep, 2013 1 commit
  14. 08 May, 2013 2 commits
  15. 06 May, 2013 2 commits
    • Alessandro Rubini's avatar
    • Alessandro Rubini's avatar
      Kconfig: complete reshuffle, using an "advanced" section · 9603a711
      Alessandro Rubini authored
      This introduced an "advanced" menu, only for developers, and most
      questions are grouped in there, because we cannot support users
      playing with experimental features or work in progress (like the new
      onewire code, or the new ptp daemon) until they are the officially
      supported option.
      
      The commit also removes changes in stack size, because the new
      calibration code by tom is not stack-hungry like the previous one:
      wrnic_defconfig is now the same as spec_defconfig and ppsi doesn't
      select a bigger stack any more.
      
      Finally, ppsi_defconfig replaces spec_ppsi_defconfig, since we only
      support the "spec" hardware configuration (other implementations we know
      of are still very much spec-alike).
      
      Unfortunately, this spits two warnings:
      
          Kconfig:25:warning: defaults for choice values not supported
          Kconfig:29:warning: defaults for choice values not supported
      
      even if such defaults actually works. The next commit removes them.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      9603a711
  16. 03 Apr, 2013 2 commits
    • Alessandro Rubini's avatar
      onewire: Kconfig choice between w1 and sockitowm · ad2efece
      Alessandro Rubini authored
      This adds the build choice about whether to use the older sockitowm or
      the new "w1" implementation, which supports all three thermometers
      but is still missing eeprom support (the API is defined, though, see
      include/w1.h
      
      This also adds a shell command, called "w1", which rescans the bus and
      tries to read the temperature from all devices. In the example below
      the third device is an eeprom, so it return an error for temperature
      read-out.
      
         wrc# w1
         W1: 68000801dce56910
         W1: f70000001eda8242
         W1: 5f00000040e50143
         device 0: 68000801dce56910
         temp: 34.7500
         device 1: f70000001eda8242
         temp: 32.5000
         device 2: 5f00000040e50143
         temp: -32768.0000
      
      The code is properly integrated in wrpc-sw, and the "first" thermometer is
      used to build the MAC address of the device, like it used to be with
      sockitowm.
      
      The binary built with w1 is 3kB smaller than what is build with sockitowm.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      ad2efece
    • Alessandro Rubini's avatar
      dev: introduce uart-sw · fd3f8864
      Alessandro Rubini authored
      This introduces dev/uart-sw as an alternative to dev/uart . The
      software-only thing is a pair of circular buffers that can be driven
      by tools/wrpc-uart-sw .
      
      The software uart can be enabled by Kconfig (and is disabled by
      default).  The code size is the same as the uart, but it "wastes" 306
      bytes of data space.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      fd3f8864
  17. 28 Mar, 2013 1 commit
    • 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: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      c118ac41
  18. 26 Mar, 2013 2 commits
    • Alessandro Rubini's avatar
      Kconfig: ppsi_runtime_verbosity is enabled by default · 2503afe9
      Alessandro Rubini authored
      The parameter used to be off by default in order to save space in the
      generated binay.  Now ppsi is smaller and there's no reason to
      prevent diagnostic code to be there.
      
      This parameter, though, will disappear over time, as we have a new
      diagnostic system, more modular (which still offers a compile-time
      option to remove all diagnostic code).
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      2503afe9
    • Alessandro Rubini's avatar
      Optionally detect reset and print a stack trace · 7836c39e
      Alessandro Rubini authored
      The new configuation option CONFIG_CHECK_RESET adds a function to dump
      the stack (to the serial port) if a reset is detected. This happens
      when a null pointer is followed or when the program is reloaded
      (spec-sw/tools/spec-cl, for example).  For this reason, the feature is
      disabled by default (actually, spec-cl may clear the RAM first, but it
      currently doesn't do that and the check is triggered).
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      7836c39e
  19. 18 Mar, 2013 1 commit
    • Alessandro Rubini's avatar
      kill mprintf, since pp_printf is better and solid · 634b29f2
      Alessandro Rubini authored
      mprintf is of uncertain copyright status, and that's why
      we added pp_printf (actually, that's why I picked pp_printf
      fro ptp-proposal and made it a standalone thing).
      
      Now that everyone involved confirms pp_printf is well tested,
      let's remove mprintf.  We still accept mprintf in the callers,
      because the name is used by our ptp-noposix submodule, and I'm
      sure people has it in their fingers and it will appear again.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      634b29f2
  20. 19 Feb, 2013 1 commit
  21. 21 Nov, 2012 2 commits
  22. 01 Nov, 2012 4 commits
  23. 16 Oct, 2012 2 commits