Skip to content
Snippets Groups Projects
  1. Jan 20, 2016
  2. Sep 08, 2015
  3. Jul 23, 2015
  4. 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
  5. Jan 08, 2015
  6. Nov 18, 2014
  7. Oct 08, 2014
  8. Feb 11, 2014
  9. Feb 06, 2014
    • Miguel Jimenez Lopez's avatar
      dev/ep_pfilter: Updated filter rules for wr-nic (with etherbone) project. · 8accf456
      Miguel Jimenez Lopez authored and Grzegorz Daniluk's avatar Grzegorz Daniluk committed
      	- 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. Jan 17, 2014
    • Miguel Jimenez Lopez's avatar
      dev/ep_pfilter: Updated filter rules for wr-nic repository. · a5d3db16
      Miguel Jimenez Lopez authored and Grzegorz Daniluk's avatar Grzegorz Daniluk committed
      - 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. Nov 13, 2013
  12. Oct 17, 2013
  13. Sep 24, 2013
  14. May 08, 2013
  15. May 06, 2013
    • 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: default avatarAlessandro Rubini <rubini@gnudd.com>
      9603a711
  16. Apr 03, 2013
    • 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: default 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: default avatarAlessandro Rubini <rubini@gnudd.com>
      fd3f8864
  17. 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
  18. Mar 26, 2013
    • 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: default 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: default avatarAlessandro Rubini <rubini@gnudd.com>
      7836c39e
  19. Mar 18, 2013
    • Alessandro Rubini's avatar
      kill mprintf, since pp_printf is better and solid · 634b29f2
      Alessandro Rubini authored and Grzegorz Daniluk's avatar Grzegorz Daniluk committed
      
      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: default avatarAlessandro Rubini <rubini@gnudd.com>
      634b29f2
  20. Feb 19, 2013
  21. Nov 21, 2012
  22. Nov 01, 2012