1. 27 Feb, 2017 2 commits
  2. 23 Feb, 2017 3 commits
  3. 16 Feb, 2017 1 commit
  4. 01 Nov, 2016 1 commit
  5. 27 Oct, 2016 1 commit
  6. 03 Aug, 2016 1 commit
  7. 29 Jul, 2016 3 commits
    • Adam Wujek's avatar
      revert "util: add the perverse SNMP 'string' time format" · 82c66565
      Adam Wujek authored
      We revert this commit, since we decided to support objects only from our own
      MIB. So we don't need this this specific time format.
      
      So, revert the commit:
      util: add the perverse SNMP 'string' time format
      Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
      82c66565
    • Adam Wujek's avatar
      Kconfig: add SNMP_VERBOSE · f451742e
      Adam Wujek authored
      Move SNMP just after syslog.
      Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
      f451742e
    • Alessandro Rubini's avatar
      util: add the perverse SNMP 'string' time format · 0e611221
      Alessandro Rubini authored
      /var/lib/mibs/ietf/SNMPv2-TC
      
      DateAndTime ::= TEXTUAL-CONVENTION
          DISPLAY-HINT "2d-1d-1d,1d:1d:1d.1d,1a1d:1d"
          STATUS       current
          DESCRIPTION
                  "A date-time specification.
      
                  field  octets  contents                  range
                  -----  ------  --------                  -----
                    1      1-2   year*                     0..65536
                    2       3    month                     1..12
                    3       4    day                       1..31
                    4       5    hour                      0..23
                    5       6    minutes                   0..59
                    6       7    seconds                   0..60
                                 (use 60 for leap-second)
                    7       8    deci-seconds              0..9
                    8       9    direction from UTC        '+' / '-'
                    9      10    hours from UTC*           0..13
                   10      11    minutes from UTC          0..59
      
                  * Notes:
                  - the value of year is in network-byte order
                  - daylight saving time in New Zealand is +13
      
                  For example, Tuesday May 26, 1992 at 1:30:15 PM EDT would be
                  displayed as:
      
                                   1992-5-26,13:30:15.0,-4:0
      
                  Note that if only local time is known, then timezone
                  information (fields 8-10) is not present."
          SYNTAX       OCTET STRING (SIZE (8 | 11))
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      0e611221
  8. 10 Jun, 2016 9 commits
  9. 20 May, 2016 2 commits
  10. 18 May, 2016 4 commits
  11. 04 Apr, 2016 7 commits
    • Alessandro Rubini's avatar
      general: use an ELF section for tasks · d9d20c8b
      Alessandro Rubini authored
      This allows several functions to be static in the files where they
      are defined. See temperature.c for an example.
      
      But mainly, the idea is allowing ease addition of features (likely
      Kconfig'd ones) for specific WR users, without any modification to the
      main function and other generic code.  This will happen soon for snmp,
      for example.
      
      We may push this a little further, by moving all shell stuff into
      shell.c, the ptp task within ppsi itself, and so on. But now my time
      is over.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      d9d20c8b
    • Alessandro Rubini's avatar
      Preliminary changes to introduce host build (no effect) · de40542e
      Alessandro Rubini authored
      These changes have no effect at this point, but are the initial steps
      introducing host builds. Some changes are minor cleanups, some depend
      on CONFIG_HOST_PROCESS which is not defined at this point.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      de40542e
    • Alessandro Rubini's avatar
      temperature: make the framework modular · a661eeed
      Alessandro Rubini authored
      This costs anoter 220 bytes in the binary, becuase we now loop among
      all temperature providers in order to return data to the caller.
      
      The providers are clustered using an ELF section.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      a661eeed
    • Alessandro Rubini's avatar
      temperature: add a temperature framework · e2e7d59a
      Alessandro Rubini authored
      This commit adds data structures, methods and a process to manage
      temperature.  Currently the only temperature being read is the onewire
      thermometer, so there is no difference with what we had before.
      The cost is 1.1 kB in binary size.
      
      Well, there is a difference: only the stat engine was reading
      temperature, while now the thermometer is read continuously (every 15
      seconds, or another Kconfig-urable interval).  This takes quite some
      CPU time (18.5ms per polling loop, but allows any user to read
      temperature (using the API we now provide) without re-reading the
      onewire bus.
      
      The real aim of this is monitoring a board-specific set of sensors,
      as implemented and show in the next commit.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      e2e7d59a
    • Alessandro Rubini's avatar
      add pfilter_verbose, selected by Kconfig (developer mode) · dd612fb9
      Alessandro Rubini authored
      Also, this changes how to mac address is retrieved in patching pfilter
      rules. I'd better use format_mac(get_mac) for the verbose message,
      so get_mac is also the source for patching the rules.
      
      register and get_mac/set_mac are guaranteed to be in-sync.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      dd612fb9
    • Alessandro Rubini's avatar
      vlan: add one VLAN in Kconfig as an option · a444be3e
      Alessandro Rubini authored
      WARNING: wr_switch_defconfig doesn't build, this is fixed in next commit
      
      Unfortunately this commit makes the internal communication between
      minic and lan asymmetric: on receive the tag is discarded (and the
      longer header falls into the payload) while on transmit it must be
      provided by lan.c.
      
      The reason is that on receive we can trim 4 bytes from the payload,
      but on send we can't add 4 bytes without a memmove.  The functions
      receive pointers to two different header structures, so hopefully
      user errors will be signalled by the compiler.
      
      Still, users interact with net.c, which hides vlan completely from
      them.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      a444be3e
    • Alessandro Rubini's avatar
      net: define wr_ethhdr and use it (no change) · 52ec2a38
      Alessandro Rubini authored
      We used to have "struct ethhdr" local in net.c, passing "void *hdr" to
      minic.  We exports the structure to an header so to use it in
      communicating with the minic.  Unfortunaltey, ethhdr is defined elsewhere
      too, so we'd better rename to wr_ethhdr.
      
      This is a step towards the introduction of vlans, but has no technical
      effect by itself.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      52ec2a38
  12. 16 Feb, 2016 5 commits
  13. 15 Feb, 2016 1 commit