- May 18, 2016
-
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
One rule only! Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
This shortens the rule-set by one rule, making space for pdelay. IP is acceptable whether unicast or broadcast. Thus, remove the IP_UNI intermediate calculation and use only IP_OK. Most of the lines in this commit are a renaming of FRAME_OUR_MAC to FRAME_MAC_OK, with no real effect, because we'll coalesce all valid macs in a single bit (I planned to use it in this commit, but I did not, still I don't want to split the patch). Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
This shortens the rule-set by one rule, making space for pdelay. There is no need to use a temporary register once FOR_CPU is done. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
-
Alessandro Rubini authored
This is a safe measure before adding UDP support, which adds a socket. And we have other ongoing net-related activities too, so I'd better spend 16 bytes now and feel safer. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
This is needed to build ppsi on the host with arch-wrpc, that I'm using to developer udp on ppsi::wrpc-sw Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Trigger start/stop of PTP from wrc_check_link job instead of PTP's job. This picks ppsi's new master that matches the change. We need to remove prototype for an unused function, now that the one in ppsi changed arguments and we'd otherwise get error: conflicting types for 'wr_servo_reset' Signed-off-by:
Adam Wujek <adam.wujek@cern.ch> Signed-off-by:
Alessandro Rubini <a.rubini@gsi.de>
-
- Apr 04, 2016
-
-
Alessandro Rubini authored
Although we love to build-test stuff and discard at link time, as soon as we move tasks to be sections, we need to avoid building the file of the task if not configured in. This means lib/arp.c and lib/ipv4.c. But, for consistency, avoid building icmp.c and bootp.c as well. The alternative, which is ifconfig'ing the task itself results in warnings like "'ipv4_init' defined but not used". Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
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 <rubini@gnudd.com>
-
Alessandro Rubini authored
Socket matching depended on the order or sockets. With the new ELF section (next commit) we get the ICMP socket before some UDP ones, so the code matched IPV4 and the UDP service did not get the data. Now we give priority to UDP sockets. So this commit fixes the problem beforehand. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
The threshold and the repeat interval is set by Kconfig. The temperatures are read using the temperature framework. Tested in host environment: wrc# faketemp 90 80 10 wrc# faketemp 90 40 20 wrc# faketemp 20 30 40 Jan 1 10:32:09 192.168.16.7 Temperature high: \ roof:90.0000 core:80.0000 case:10.0000 Jan 1 10:33:09 192.168.16.7 Temperature high: \ roof:90.0000 core:40.0000 case:20.0000 Jan 1 10:33:18 192.168.16.7 Temperature ok: \ roof:20.0000 core:30.0000 case:40.0000 Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
This shortens the rule-set by two rules, making space for pdelay. By accepting all ports from 0 to 511, we get all of our services, including snmp that will be tested soon. This relaxed check will give us possibly some false positives (then discarded by the CPU) while still protecting from most of an hostile or just probing port sweep. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
-
Alessandro Rubini authored
The configuration is not called *_defconfig, because we can't just build it in ./MAKEALL -- we need ppsi to be built with a different configuration, and this is not autodetected yet (but building from a fresh clone works). Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
This commit is not breaking the current status, but adds the ability to build on the host, to simulate and (mainly) to help me hack the networking code in a simpler/faster environment. Missing features: - ptp - build in i386 (currently x86-64 is hardwired) Also, this commit requires a change in ppsi, that I'm not going to commit now: we must get rid of the main function (most of that stuff is done win wrc_ptp.c, which we must replicate in a unix-compatible way). This is the ppsi change --- a/arch-unix/Makefile +++ b/arch-unix/Makefile @@ -4,7 +4,7 @@ A := arch-$(ARCH) CFLAGS += -Itools -OBJ-y += $A/unix-startup.o \ +OBJ-y += \ $A/main-loop.o \ $A/unix-io.o \ $A/unix-conf.o \ Local changes in this commit: - adding CONFIG_HOST_PROCESS and the auto-generated opposites: CONFIG_LM32 and CONFIG_EMBEDDED_NODE (LM32 && NODE) - make some config option depend on !HOST_PROCESS - Makefile: some dependencies on HOST_PROCESS and the opposite - */*.mk: some dev and shell objects depend on CONFIG_EMBEDDED_NODE instead of CONFIG_WR_NODE (i.e.: both a node and an lm32) - new host/ subdir where some placeholders are placed - no sdb support on the host Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
This, again, is preliminary to host builds, and has no effect. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
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 <rubini@gnudd.com>
-
Alessandro Rubini authored
-
Alessandro Rubini authored
We have three temperatures, called "roof", "core", "case" (yess rubi like word same lengt, s/he most love four). There is a "faketemp" command that can set one two or all of them. This allows to test negative temperatures in printouts (White Rabbit in Siberia does it, but we southish can't test easily). All temperatures are initialized to invalid. Example: wrc# faketemp -10 -2.5 wrc# faketemp fff60000 fffd8003 80000000 wrc# temp pcb:84.7500 roof:-10.0000 core:-2.4999 case:INVALID Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
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 <rubini@gnudd.com>
-
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 <rubini@gnudd.com>
-
Alessandro Rubini authored
-