Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Starting Kit
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
White Rabbit Starting Kit
Commits
6a9a7072
Commit
6a9a7072
authored
Apr 02, 2014
by
Benoit Rat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc: improve etherbone explanation
parent
df21cdb3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
15 deletions
+22
-15
wr-starting-kit.md
doc/wr-starting-kit.md
+22
-15
No files found.
doc/wr-starting-kit.md
View file @
6a9a7072
...
@@ -1570,21 +1570,26 @@ Manage standalone node using etherbone
...
@@ -1570,21 +1570,26 @@ Manage standalone node using etherbone
You can also use SPEC card in standalone mode as we have seen before
You can also use SPEC card in standalone mode as we have seen before
but... how can you configure spec card if you do not use drivers?
but... how can you configure spec card if you do not use drivers?
In wr-nic project, Etherbone core has been added to design and it allows
In wr-nic project, Etherbone core has been added to
the
design and it allows
to you access directly to the memory map
(wishbone registers) using
a direct access to the memory map
[
^specmem
]
(
wishbone
registers) using
UDP/TCP packets.
UDP/TCP packets.
Thus i
n order to connect you to the
[
SPEC+FMCDIO
]
in standlone you must
I
n order to connect you to the
[
SPEC+FMCDIO
]
in standlone you must
configure it with a valid IP. This can b
e automatically (complex) using bootp protocol,
first configure it with a valid IP. This can be don
e automatically (complex) using bootp protocol,
or manually (easy) through the WRC mini-USB UART.
or manually (easy) through the WRC mini-USB UART.
[
^specmem
]:
If
you are still connected through the PCIe you can also use the tools
`spec-sw/tools/specmem`
to directly read/write on the WB registers as you will
do with the etherbone tool.
### Set IP using BootP
### Set IP using BootP
This is the more complex way to do it because you need to create a BootP server
This is the more complex way to do it because you need to create a BootP server
on your LAN, but then the IP of each standalone board can be automatically
on your LAN, but then the IP of each standalone board can be automatically
asigned.
asigned.
On Ubuntu the
`dnsmasq`
pack
et
can be used as BootP deamon. The configuration
On Ubuntu the
`dnsmasq`
pack
age
can be used as BootP deamon. The configuration
file should be something similar as:
file should be something similar as:
~~~
~~~~{.sh}
~~~
~~~~{.sh}
...
@@ -1609,18 +1614,18 @@ Then you should just write in the terminal:
...
@@ -1609,18 +1614,18 @@ Then you should just write in the terminal:
wrc# ip set 10.10.10.10
wrc# ip set 10.10.10.10
~~~
~~~~~~~~~
~~~
~~~~~~~~~
If you want this
value to be kept the IP
after a power cycle you must write it in the
If you want this
IP to be kept
after a power cycle you must write it in the
init EEPROM script as explained
[
previously
](
#eeprom-boot-script
)
init EEPROM script as explained
[
previously
](
#eeprom-boot-script
)
.
### Access to the wishbone device
### Access to the wishbone device
At this step, you need to connect the standalone device with your PC. If you
At this step, you need to connect the standalone device with your PC. If you
do not have any SFP interface on your PC you can use an SFP-RJ45 adapter
do not have any SFP interface on your PC you can use an SFP-RJ45 adapter
to
perform this step
.
to
connect to it
.
You need to check that your interface is on the same LAN as the standalone
You need to check that your interface is on the same LAN as the standalone
[
SPEC+FMCDIO
]
board or set it manually if it is not the case:
[
SPEC+FMCDIO
]
board or
you should
set it manually if it is not the case:
~~~
~~~~{.sh}
~~~
~~~~{.sh}
>:$ sudo ifconfig eth1 10.10.10.1
>:$ sudo ifconfig eth1 10.10.10.1
...
@@ -1631,21 +1636,23 @@ Finally you can try the etherbone library to connect to your standalone
...
@@ -1631,21 +1636,23 @@ Finally you can try the etherbone library to connect to your standalone
your platform by doing
`make && sudo make install`
in the main folder or by going to
your platform by doing
`make && sudo make install`
in the main folder or by going to
`etherbone/api`
and perform a
`make clean && make && sudo make install`
.
`etherbone/api`
and perform a
`make clean && make && sudo make install`
.
To ease th
is procedure, we have added the
`eb-mem.sh`
tool in scripts
To ease th
e communication using etherbone, we have added the
`eb-mem.sh`
tool in the
`scripts/`
folder that access th
e etherbone library to connect with
the device and perform
folder that access th
rough the etherbone library to
the device and perform
read/write operations.
read/write operations.
\c
learpage
Below we display a quick example on how to use it.
Below we display a quick example on how to use it.
~~~
~~~{.sh}
~~~
~~~{.sh}
## It shows you Device memory map
## It shows you Device memory map
>:$ scripts/eb-mem.sh --scan --ip 10.10.10.10
>:$ scripts/eb-mem.sh --scan --ip 10.10.10.10
## Read a memory address
## Read a memory address
(DIO I/O mode register <=> 62000 + 300 + 3C)
>:$ scripts/eb-mem.sh --read --ip 10.10.10.10 --address 0x62
000
>:$ scripts/eb-mem.sh --read --ip 10.10.10.10 --address 0x62
33C
## Write a memory address
## Write a memory address (DIO I/O mode register <=> 62000 + 300 + 3C)
>:$ scripts/eb-mem.sh --write --ip 10.10.10.10 --address 0x62000 --value 0x01
## Force only ch2 (#3) into P mode (forbidden operation while using wr-dio-cmd)
>:$ scripts/eb-mem.sh --write --ip 10.10.10.10 --address 0x6233C --value 0x00A00
## Show help
## Show help
>:$ scripts/eb-mem.sh --help
>:$ scripts/eb-mem.sh --help
...
...
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