- 11 Feb, 2014 1 commit
-
-
Alessandro Rubini authored
This fixes the makefile to build either wrc.bin or rt_cpu.bin, using the obj-y convention. At this point Kconfig can't select rt_cpu.bin, and nothing changes in the ouput binary, in all configurations. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
- 10 Feb, 2014 1 commit
-
-
Grzegorz Daniluk authored
-
- 09 Feb, 2014 1 commit
-
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
- 06 Feb, 2014 2 commits
-
-
Grzegorz Daniluk authored
-
Miguel Jimenez Lopez authored
- Add new command "refresh" to change update period of gui and stat - Delete "stat cont" command - Update "stat" command to work as older "stat cont" one - Update the wrc_main.c file to check if the log messages must be generated one time Note: If you set period to 0, the log messages are only generated one time.
-
- 13 Nov, 2013 1 commit
-
-
Grzegorz Daniluk authored
-
- 07 Nov, 2013 1 commit
-
-
Alessandro Rubini authored
This fixes the previous commit, which prevented to build wrpc-sw with CONFIG_PTP_NOPOSIX (silly me). Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
- 04 Nov, 2013 1 commit
-
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
- 11 Oct, 2013 1 commit
-
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
- 30 Jul, 2013 1 commit
-
-
Tomasz Wlostowski authored
-
- 26 Jul, 2013 1 commit
-
-
Grzegorz Daniluk authored
When WR PTP Core is set in GrandMaster mode it aligns its nanosecond counter to 1-PPS and 10MHz coming from external source. When user wants to set seconds counter to a desired value (with _time set_ command), the nanosecond counter was also set (zeroed) causing additional (random) offset to the external source. The commit adds _time setsec_ and _time setnsec_ for setting only seconds or nanoseconds counter without affecting the other one. Now, when user wants to set current time on a GrandMaster Node he has to call _time setsec_ command after _mode gm_
-
- 20 May, 2013 2 commits
-
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
The command is not documented, and it looks like is not useful either (I understand it has been useful when setting up the init area initially) Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
- 09 May, 2013 1 commit
-
-
Alessandro Rubini authored
Actually, I tried to move cmd_verbose.c to ppsi, and avoid this dependency, but our use of --gc-sections would prevent the code to be picked into wrc.o. Hopefully, we won't need to touch this command any more. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
- 08 May, 2013 1 commit
-
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
- 03 Apr, 2013 1 commit
-
-
Alessandro Rubini authored
This adds "sleep" that is used to verify the usleep function. It is not build by default nor by a Kconfig option, because it is not expected to be generally useful. To build, add "CONFIG_CMD_SLEEP=y" to the command line of make. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
- 28 Mar, 2013 4 commits
-
-
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 <rubini@gnudd.com>
-
Alessandro Rubini authored
The help command currently only lists available commands. It was asked by some developers some time ago, and this implementation only costs 150 bytes in the final exectuable. I don't think it's worth a Kconfig option. This is it in action with my configuration: wrc# help Available commands: ver pll sfp stat ptp mode calibration time gui sdb mac init ptrack ip verbose help Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
The environment was drafted but not actually used, so this commit removes it. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com> Acked-by:
Grzegorz Daniluk <grzegorz.daniluk@cern.ch> Acked-by:
Tomasz Wlostowski <tomasz.wlostowski@cern.ch>
-
Alessandro Rubini authored
This commit creates a .cmd section, so there is no global list of commands in shell.c any more, and no ifdef in the code for conditional commands. Also, (unrelated) makes shell errors slightly more friendly. The technique is widely used, in the Linux kernel and all boot loaders, as well as a lot of my own personal code, so this is safe (and tested). As a side effect, this allows (in later commits) to move the "verbose" ppsi-specific command back to ppsi/arch-wrpc/ where it really belongs. It allows new commands to be easily added by just adding their respective file to the build. Even though this increases code size by around 50 lines, it makes it more modular and only costs 8 bytes in the final executable (in my configuration: 128 bytes less of text and 136 bytes more of data). Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
- 26 Mar, 2013 1 commit
-
-
Alessandro Rubini authored
Clearing the screen is in general bad practice: it hides information for no advantage (ok, I can accept if for the "gui" interface). In this case it removes from the user the build date. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
- 19 Mar, 2013 1 commit
-
-
Tomasz Wlostowski authored
New procedure that does not require PTP traffic, is much faster and doesn't kill the stack. Requires recent endpoint version (wr-cores commit: 4713a98a). Todo: modify locking functions in libptpnetif to automatically perform the calibration whenever PTP enters slave mode.
-
- 12 Mar, 2013 1 commit
-
-
Grzegorz Daniluk authored
-
- 19 Feb, 2013 2 commits
-
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Aurelio Colosimo authored
Signed-off-by:
Aurelio Colosimo <aurelio@aureliocolosimo.it> Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
- 14 Feb, 2013 1 commit
-
-
Aurelio Colosimo authored
Signed-off-by:
Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
- 04 Dec, 2012 1 commit
-
-
Grzegorz Daniluk authored
-
- 01 Nov, 2012 7 commits
-
-
Alessandro Rubini authored
This adds copyright notes to all non-trivial source files, unless they where already there (i.e. dev/endpoint.c alone). I found authorship using the following script, run on commit "a2721762 documentation updated" (i.e, before automatic reindentation and other trivial stuff by me): git grep -l . | grep -v sockitowm/ | \ while read F; do echo "##### $F" git blame -w $F | \ sed -e 's/^[^ ]* .//' -e 's/-[0-9][0-9]-[0-9][0-9] .*$//' | \ sort | uniq -c | sort -rn done Then I augmented each file with this boilerplate: /* * This work is part of the White Rabbit project * * Copyright (C) 2011 CERN (www.cern.ch) * Copyright (C) 2011,2012 CERN (www.cern.ch) * Copyright (C) 2012 CERN (www.cern.ch) * Copyright (C) 2011 GSI (www.gsi.de) * Copyright (C) 2011,2012 GSI (www.gsi.de) * Copyright (C) 2012 GSI (www.gsi.de) * Author: Tomasz Wlostowski <tomasz.wlostowski@cern.ch> * Author: Grzegorz Daniluk <grzegorz.daniluk@cern.ch> * Author: Wesley W. Terpstra <w.terpstra@gsi.de> * * Released according to the GNU GPL, version 2 or any later version. */ Then I removed all the lines that didn't apply. Sometimes I reordered the authors to reflect who is the main author. 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
Also add the missing prototypes in eeprom.h, to fix warnings in shell/ Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
This removes the "unsigned" for environment variables, since the public header has all "char *" types. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
When I add prototypes to headers, I ensure the source that defines the function sees the header, to detect inconsistencies (here, I add <wrc.h> to the includes). Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
CONFIG_DETERMINISTIC_BINARY confirms this makes no difference in the generated binary. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
- 16 Oct, 2012 3 commits
-
-
Alessandro Rubini authored
This doesn't change the behavior of any command, but adds revision.c as a real source file rather than something created by make using "echo ... > revision.c". In any case, the file is recompiled each time you call "make", so the date and time reflect the last build. However, this introduces CONFIG_DETERMINISTIC_BINARY (that nobody sets at this point in time) to build a binary withouth __DATE__ and __TIME__ strings, so it is the same at every rebuild. See next commit. 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>
-
- 05 Oct, 2012 2 commits
-
-
Alessandro Rubini authored
This is massive: 4k lines changed (but only 840 if you ignore space-only changes). In this case "git blame -w" won't always find the right patch, and it may fall on this patch -- because those 800 lines changed in content too. This has been done with find . -name '*.[ch]' | xargs -n 1 ./scripts/Lindent Statistics: all changes and ignoring blank space: morgana% git diff --stat HEAD~1 | tail -1 77 files changed, 3774 insertions(+), 3709 deletions(-) morgana% git diff -w --stat HEAD~1 | tail -1 61 files changed, 894 insertions(+), 829 deletions(-) However, after this step I hand-fixed some very ugly long expressions (leaving them long: no content change at all is there). Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
If you find this patch with "git blame" please use "git blame -w" to have all white-space ignored while associating lines to commits. This commit has no practical effect but cleanup. I made it with sed like this: git grep -l '[ \t]$' | xargs sed -i 's/[ \t]*$//' However, I had to manually restore doc/wrpc_mon.png after the fact. Similarly, I restored the include/hw/*regs.h files, as they are (most likely) auto-generated.
-
- 25 Sep, 2012 1 commit
-
-
Grzegorz Daniluk authored
-