++netpfga notes

This commit is contained in:
Nico Schottelius 2019-05-10 23:28:17 +02:00
parent 688de57a5c
commit 8cade9435f
2 changed files with 65 additions and 1 deletions

View File

@ -52,7 +52,10 @@ Don't continue until you do see the debug messages above.
forever)
* Unpack the file, run xsetup, put stuff below /opt/Xilinx
### Install NetPFGA support
### Get the NetPFGA repo
This is a private repo, you will need to ask permission for it
[Nico: add the URL to the form in here].
```
mkdir -p ~/projects
@ -63,3 +66,49 @@ git clone git@github.com:NetFPGA/P4-NetFPGA-live.git
Do NOT trust manuals to checkout a specific version, especially not
v1.2.0, it is broken with vivado 2018.3. Also, DO NOT trust this
manual, it might already be outdated at the time reading.
### Configure your PATHs
You do want to use the tools and you do want to have some settings
files to help you running the compiler. Create a shell script
*similar* to the following (adapt paths to your need):
```
#### SDNet ####
. /opt/xilinx/SDNet/2018.2/settings64.sh
export PATH=$PATH:/opt/xilinx/SDNet/2018.2/bin
##### Vivado #####
. /opt/Xilinx/Vivado/2018.3/settings64.sh
export PATH=$PATH:/opt/Xilinx/Vivado/2018.3/bin
#### P4-NetFPGA #####
. ~/projects/P4-NetFPGA/tools/settings.sh
# set DISPLAY env variable so that xsct works properly from cmdline
if [ -z "$DISPLAY" ]; then
export DISPLAY=dummy
fi
```
### Compile the NetPFGA drivers
```
cd $SUME_FOLDER/lib/hw/xilinx/cores/tcam_v1_1_0/ && make update && make
cd $SUME_FOLDER/lib/hw/xilinx/cores/cam_v1_1_0/ && make update && make
cd $SUME_SDNET/sw/sume && make
cd $SUME_FOLDER && make
```
## Known / encountered BUGS
### Failing to compile tcam
### Failing to compile tcam
### Failing to compile cam

View File

@ -0,0 +1,15 @@
##### Vivado #####
. /opt/Xilinx/Vivado/2018.3/settings64.sh
#### P4-NetFPGA #####
. ~/projects/P4-NetFPGA/tools/settings.sh
#### SDNet ####
export PATH=$PATH:/opt/xilinx/SDNet/2018.2/bin
export PATH=$PATH:/opt/Xilinx/Vivado/2018.3/bin
. /opt/xilinx/SDNet/2018.2/settings64.sh
# set DISPLAY env variable so that xsct works properly from cmdline
if [ -z "$DISPLAY" ]; then
export DISPLAY=dummy
fi