Browse Source

++netpfga notes

master
Nico Schottelius 3 years ago
parent
commit
8cade9435f
  1. 51
      netpfga-doc-and-log/README.md
  2. 15
      netpfga-doc-and-log/bashinit

51
netpfga-doc-and-log/README.md

@ -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

15
netpfga-doc-and-log/bashinit

@ -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
Loading…
Cancel
Save