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
4
Merge Requests
4
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
c06700d8
Commit
c06700d8
authored
Nov 27, 2015
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc: documented wrpc-dump
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
68ebc2e8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
86 additions
and
0 deletions
+86
-0
wrpc.in
doc/wrpc.in
+86
-0
No files found.
doc/wrpc.in
View file @
c06700d8
...
...
@@ -931,6 +931,92 @@ promgen -w -spi -p mcs -c FF -s 32768 -u 0 <your_bitstream>.bit \
After that, you can use the Xilinx JTAG cable and Xilinx ISE Impact tool to
write your @i
{
output.mcs
}
file to the Flash memory.
@c ##########################################################################
@page
@node wrpc-dump
@appendix wrpc-dump
In December 2015, we added @t
{
tools/wrpc-dump
}
. The program accesses
a wrpc memory image (the 128k binary dump) and prints the internal
status of the program.
@c ==========================================================================
@node wrpc-dump with Current Code
@section wrpc-dump with Current Code
@t
{
wrpc-dump
}
uses some information that we included at offset 0x80
in the binary, to detect endianness conversions and to find the actual data.
Thus, it only needs to receive the name of the file, either an on-disk file
or the live PCI memory if available (for @i
{
spec
}
devices, it's resource 0 of
the PCI space).
@example
tools/wrpc-dump /tmp/logs/vetar-dump-42
tools/wrpc-dump /sys/bus/pci/devices/0000:02:00.0/resource0
@end example
If you built @i
{
wrpc-sw
}
with @t
{
CONFIG
_
SPLL
_
FIFO
_
LOG
}
(a
``developer'' configuration option), the dump includes the last 16
tags being accessed by @i
{
softpll
}
, in relation with interrupts and
timing. Please see @i
{
sofpll/softpll
_
ng::
_
irq
_
enter
}
for details.
@c ==========================================================================
@node wrpc-dump with Older WRPC Binaries
@section wrpc-dump with Older WRPC Binaries
The tool has another working mode, that you can use with older
@i
{
wrpc
}
builds, where the special table is missing (but please be
aware that the data structures may have changed slightly). In this
mode, you provide the address of the data structure and its name. It
supports the names @i
{
pll
}
, @i
{
fifo
}
(the circular log described
above), @i
{
ppg
}
, @i
{
ppi
}
, @i
{
servo
_
state
}
, and @i
{
ds
}
. The last name
refers to the PTP data sets, and for this the pointer needed is
@t
{
ppg
}
(ppsi global data).
This is an example:
@smallexample
$
.
/
tools
/
wrpc
-
dump dump
-
file
00015798
servo
_
state
servo
_
state at
0
x
15798
if
_
name: ""
flags:
1
state:
4
delta
_
tx
_
m:
10
delta
_
rx
_
m:
174410
delta
_
tx
_
s:
0
delta
_
rx
_
s:
3200
fiber
_
fix
_
alpha:
73622176
clock
_
period
_
ps:
8000
t
1
: correct
1
:
1448628309
.
390213200
:
0000
t
2
: correct
1
:
1448628309
.
390213520
:
2921
t
3
: correct
1
:
1448628310
.
419072616
:
0000
t
4
: correct
1
:
1448628310
.
419073104
:
6041
[
...
]
@end smallexample
The address is specified as a hex number, and can be retrieved running
``@t
{
lm
32
-
elf
-
nm wrc.elf
}
''.
Please note that the @i
{
spec
}
device has a strange memory mapping, and
it needs a special endian conversion. With current @i
{
wrpc
}
it is
autodetected, but if you dump an older binary you'll need to set the
@t
{
WRPC
_
SPEC
}
environment variable
(
to any value you like
)
to properly
access the PCI memory or a dump taken from PCI:
@smallexample
$
export WRPC
_
SPEC=y
@end smallexample
or
@smallexample
$
WRPC
_
SPEC
=
y .
/
tools
/
wrpc
-
dump dump
-
file
00015798
servo
_
state
@end smallexample
This is not needed if the dump is retrieved using Etherbone.
@c ##########################################################################
@bye
...
...
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