- Apr 04, 2016
-
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
This includes a wrs fix by Maciej and a change that prevents warning when bulding with CONFIG_HOST_PROCESS (which is not there yet). I prefer to merge this now, so the next commit picks only its own little change into the ppsi submodule. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
This commit adds the possibility to build an init command in the binary. It can be useful to install a number of nodes with a special configuration, without the need to reach the shell and/or eeprom of each one. This is useful, for example, to pass syslog configuration or the (yet to be implemented) definition of multiple vlans for etherbone and the wr fabric (frame classes 7 and 6 f the packet filter). Moreover, I personally love to load a master or slave node for testing without interacting with the node (or changing the flash over and over). This commit also makes reading of commands from storage an optional feature, but only in the advanced/developer options. Thus, you can build a wrpc that uses the build-time init commands, or the flash-stored init commands, both or none of them. Size effects: * no effect if you keep the defaults (no build-time init, flash init) * +248 bytes (+ the command itself) if you enable build-time init * -1...
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
the UDP checlsum was miscalculated for odd-sized payload. The last byte was not used in calculation. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Signed-off-by:
Davide Ciminaghi <ciminaghi@gnudd.com>
-
- Feb 16, 2016
-
-
Alessandro Rubini authored
This branch introduces the "ps" command, based on a restructuring of how main() calls the various activities.
-
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 turns individual calls to polling functions into an array of tasks. On this basis we can add profiling and periodic execution (instead of continuous polling). Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
The compiler is smart enough to turn this into a multiplication by 8: cf54: 3d c1 00 03 sli r1,r14,3 cf58: 59 a1 00 00 sw (r13+0),r1 and any real division by ll would be trapped by ./check-error.c . Still, I'd better simplify the code. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
All "tasks" must have the same prototype, so we'd better get void in all of them at the time being (so we only change the nerwork function). Meanwhile, use value "0" for "link down", so it can work as a simple enable flag for the IP polling code. (note: we query the link status in wrc_ptp_update() too, and we should rather refer to the global variable) Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
This solves http://www.ohwr.org/issues/1218 We used to have a "needIP" variable, but we need three states: if the address was set by bootp, we run bootp again when the link goes up, but if it was a static assignment we do not (and keep the static one). So I renamend needIP to a 3-valued ip_status. The rename ensured the compiler found all users. Also, the messages are now 3-headed, so the user know whether the address is static or it comes from bootp. 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
Again, it returns 1 if it did some calculation. For profiling. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
This is a step towards profiling. The functions being polled return whether or not they did actually work. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
- Feb 15, 2016
-
-
Alessandro Rubini authored
-
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 for the syslog code to know about link up and down events, to report a link-up with the delay since last link-down. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
We are going to have link up messages in syslog, we we'd better pass it over and not do network thiings in main. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
I don't know why, but without this the next commit fails with a bad assert error in the compiler. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
We need the string for IP and MAC in more places than stdout. 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 costs 1K in binary size, and it currently only prints an alive message every 10 seconds. The time format is still wrong, so the syslog daemon adds its own timestamp. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
They are going to be used by the syslog code. 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>
-
- Jan 21, 2016
-
-
Alessandro Rubini authored
This pair of commits costs around 300 bytes overall, in network-using configurations. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
We are going to add more UDP services, so this commit adds the generic management of UDP sockets, with udp protocol and port matching. Thus, we now have two IPV4 sockets: one for ICMP and one for bootp; whose receive part relies on generic code for the match. We still miss the output helpers, so with this commit bootp still builds the whole frame by itself. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-