Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Software for White Rabbit PTP Core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
32
Issues
32
List
Board
Labels
Milestones
Merge Requests
5
Merge Requests
5
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Software for White Rabbit PTP Core
Commits
412bb3ad
Commit
412bb3ad
authored
Mar 01, 2017
by
Adam Wujek
💬
Committed by
Grzegorz Daniluk
Mar 02, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc: small fixes
Signed-off-by:
Adam Wujek
<
adam.wujek@cern.ch
>
parent
8dcc2593
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
22 deletions
+20
-22
wrpc.tex
doc/wrpc.tex
+20
-22
No files found.
doc/wrpc.tex
View file @
412bb3ad
...
...
@@ -261,8 +261,6 @@ platform you use:
\item
\textbf
{
SVEC
}
:
\texttt
{
<your
\_
location>/wr-cores/syn/svec
\_
ref
\_
design
}
\item
\textbf
{
VFC-HD
}
:
\texttt
{
<your
\_
location>/wr-cores/syn/vfchd
\_
ref
\_
design
}
\end{itemize*}
contains the main synthesis Manifest.py for
\codeHook
{
spec
}
board
and in which you should perform the whole process is:
After selecting a proper location from the list above, please call
\textit
{
hdlmake
}
without any arguments to create the Makefile and project file:
...
...
@@ -301,7 +299,8 @@ If, you would like to clean-up the repository to start building everything from
scratch you can use the following commands:
\begin{itemize*}
\item
\texttt
{
\$
make clean
}
- removes all synthesis reports and log files;
\item
\texttt
{
\$
make mrproper
}
- removes spec
\_
top.bin and spec
\_
top.bit files;
\item
\texttt
{
\$
make mrproper
}
- removes
\texttt
{
*.bin
}
,
\texttt
{
*.bit
}
and
\texttt
{
*.sof
}
files;
\end{itemize*}
% ==========================================================================
...
...
@@ -345,10 +344,11 @@ documentation for this project.\\
Before you can compile
\textit
{
wrpc-sw
}
, you can make some configuration
choices. The package uses
\textit
{
Kconfig
}
as a configuration engine, so you may
run one of the following commands (the first
is text-mode, the second uses a KDE
GUI and the third
uses a Gnome GUI):
run one of the following commands (the first
two are text-mode, the third uses
a KDE GUI and the fourth
uses a Gnome GUI):
\begin{lstlisting}
$
make menuconfig
$
make nonfig
$
make xconfig
$
make gconfig
\end{lstlisting}
...
...
@@ -533,7 +533,7 @@ wrc# mac setp xx:xx:xx:xx:xx:xx
\end
{
lstlisting
}
where
\texttt
{
xx:xx:xx:xx:xx:xx
}
is the MAC address of your board.
\\
Next you should input calibration fixed delays values and alpha parameters. The
Next
,
you should input calibration fixed delays values and alpha parameters. The
example below clears any existing entries and adds two Axcen transceivers with
$
\Delta
_{
TX
}$
,
$
\Delta
_{
RX
}$
and
$
\alpha
$
parameters associated with them.
...
...
@@ -548,7 +548,7 @@ shell command.\\
\noindent\textbf
{
Note:
}
The
$
\Delta
_{
TX
}$
and
$
\Delta
_{
RX
}$
parameters above are
the defaults for wrpc
-
v
3
.
1
release bitstream available on
\textit
{
ohwr.org
}
,
running on the
\codeHook
{
spec
}
v4 board and calibrated to port 1 of a
WR Switch
running on the
\codeHook
{
spec
}
v
4
board and calibrated to port
1
of a
~
WR Switch
v
3
.
3
. These values as well as the default parameters for other boards are
available on the calibration wiki page
(
\url
{
http:
//
www.ohwr.org
/
projects
/
white
-
rabbit
/
wiki
/
Calibration
}
)
. If you
...
...
@@ -587,7 +587,7 @@ Cesium clock). Depending on your board you should connect:
One option is to type all the commands to initialize the WRPC software to
the required state every time the core starts. However, you can also write your
own initialization script to the Flash
/
EEPROM. It will be executed every time
the WRPC software starts. A
simple script, that loads the calibration
the WRPC software starts. A
~
simple script, that loads the calibration
parameters, configures the WR mode to Slave and starts the PTP daemon and sets
the IP address is presented below:
...
...
@@ -674,14 +674,12 @@ but in a single line, which is easier to parse and analyze:
\begin
{
lstlisting
}
wrc# stat
lnk:1 rx:172338 tx:151811 lock:1 ptp:slave sv:1 ss:'TRACK
_
PHASE' aux0:1
\
sec:6047 nsec:828412744 mu:836453 dms:398530 dtxm:224455 drxm:232479
\
dtxs:180625 drxs:149251 asym:39393 crtt:49643 cko:1 setp:5082 ucnt:270
\
hd:31734 md:46228 ad:0 temp: 52.6875 C
lnk:1 rx:172392 tx:151860 lock:1 ptp:slave sv:1 ss:'TRACK
_
PHASE' aux0:1
\
sec:6049 nsec:399776360 mu:836452 dms:398530 dtxm:224455 drxm:232479
\
dtxs:180625 drxs:149251 asym:39392 crtt:49642 cko:2 setp:5082 ucnt:271
\
hd:31730 md:46211 ad:0 temp: 52.6875 C
lnk:
1
rx:
172338
tx:
151811
lock:
1
ptp:slave sv:
1
ss:'TRACK
_
PHASE' aux
0
:
1
sec:
6047
\
nsec:
828412744
mu:
836453
dms:
398530
dtxm:
224455
drxm:
232479
dtxs:
180625
drxs:
149251
\
asym:
39393
crtt:
49643
cko:
1
setp:
5082
ucnt:
270
hd:
31734
md:
46228
ad:
0
temp:
52
.
6875
C
lnk:
1
rx:
172392
tx:
151860
lock:
1
ptp:slave sv:
1
ss:'TRACK
_
PHASE' aux
0
:
1
sec:
6049
\
nsec:
399776360
mu:
836452
dms:
398530
dtxm:
224455
drxm:
232479
dtxs:
180625
drxs:
149251
\
asym:
39392
crtt:
49642
cko:
2
setp:
5082
ucnt:
271
hd:
31730
md:
46211
ad:
0
temp:
52
.
6875
C
(
...
)
\end
{
lstlisting
}
...
...
@@ -689,7 +687,7 @@ hd:31730 md:46211 ad:0 temp: 52.6875 C
Unlike
\texttt
{
gui
}
, the
\texttt
{
stat
}
command runs asynchronously: you can still
issue shell commands while stats are running. You can stop statistics by running
\texttt
{
stat
}
again. As an alternative to the toggling action of
\texttt
{
stat
}
alone, you can use ``
\texttt
{
stat
1
}
'' or ``
\texttt
{
stat 0
}
''.
alone, you can use ``
\texttt
{
stat
on
}
'' or ``
\texttt
{
stat off
}
''.
Statistics are printed every time the WR servo runs; thus no statistics
are reported when the node is running in master mode, nor when your node
...
...
@@ -752,8 +750,7 @@ The \textit{Mini SNMP responder} does not support:
To make examples more readable, listings below use
\texttt
{
SNMP
\_
OPT
}
environment
variable. Make sure you set it properly in your shell.
\begin
{
lstlisting
}
$
SNMP
_
OPT
=
"
-
c public
-
v
2
c
-
m WR
-
WRPC
-
MIB
-
M
+/
var
/
lib
/
mibs
/
ietf:lib
\
192
.
168
.
1
.
20
"
$
SNMP
_
OPT="-c public -v 2c -m WR-WRPC-MIB -M +/var/lib/mibs/ietf:lib 192.168.1.20"
\end{lstlisting}
where:
\begin{sloppypar}
% to prevent \texttt{} from going to the margine
...
...
@@ -772,7 +769,8 @@ For example, to get the system uptime please execute the \texttt{snmpget} comman
\begin{lstlisting}
$
snmpget
$
SNMP
_
OPT wrpcTimeSystemUptime.0
\end{lstlisting}
To get dump of all available OIDs please execute the
\texttt
{
snmpwalk
}
command:
To get a dump of all available OIDs please execute the
\texttt
{
snmpwalk
}
command:
\begin{lstlisting}
$
snmpwalk
$
SNMP
_
OPT wrpcCore
\end{lstlisting}
...
...
@@ -800,9 +798,9 @@ Part of the \texttt{snmpwalk}'s output:
End of MIB
\end{lstlisting}
It is recommended to use SNMP v
2
c for communication with
the
\codeHook
{
wrpc
}
.
It is recommended to use SNMP v2c for communication with
a
\codeHook
{
wrpc
}
.
Please note that when the version 1 of SNMP is used, 64 bit counters are not
supported. This makes i
t i
mpossible to read some
\codeHook
{
wrpc
}
's objects with
supported. This makes impossible to read some
\codeHook
{
wrpc
}
's objects with
SNMPv1.
% --------------------------------------------------------------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment