Visible to Intel only — GUID: vmk1623449869008
Ixiasoft
1. Overview
2. CvP Description
3. CvP Topologies
4. Design Considerations
5. CvP Driver and Registers
6. Understanding the Design Steps for CvP Initialization using the Supported PCIe Tile in Intel® Agilex™ Devices
7. Intel® Agilex™ Device Configuration via Protocol (CvP) Implementation User Guide Archives
8. Document Revision History for the Intel® Agilex™ Device Configuration via Protocol (CvP) Implementation User Guide
5.3.1. Vendor Specific Capability Header Register
5.3.2. Vendor Specific Header Register
5.3.3. Intel® Marker Register
5.3.4. User Configurable Device/Board ID Register
5.3.5. CvP Status Register
5.3.6. CvP Mode Control Register
5.3.7. CvP Data Registers
5.3.8. CvP Programming Control Register
5.3.9. CvP Credit Register
Visible to Intel only — GUID: vmk1623449869008
Ixiasoft
6.1.5.1.2. Upstream open source CvP Driver
- The tools that you may need to install for building the kernel if you are using Ubuntu.
sudo apt-get install bison sudo apt-get install libncurses5-dev sudo apt-get install libssl-dev sudo apt-get install libncursesw5-dev sudo apt-get install -y libelf-dev sudo apt install git sudo apt install flex sudo apt-get install -y xz-utils
- Download the kernel source. The upstream CvP driver is available starting from v4.14 onwards, v5.9 is the version tested on Intel hardware. Example below is the command to download the kernel source v5.09.
Example Command:
wget https://mirrors.edge.kernel.org/pub/linux/kernel/v5.x/linux-5.9.tar.xz
- Extract the kernel code files in /usr/src.
- Run:
unxz -v linux-5.9.tar.xz
- Run:
tar -xvf linux-5.9.tar
- Run:
- Save as the kernel source folder into another name like linux-5.9-tt
Run:
sudo cp -rf linux-5.9 linux-5.9-tt
- For v5.12 or below, you must install the following patches.
- Download Patch1 and Patch2 and save them into Kernel source folder
- In the kernel source directory(For example: /usr/src/linux-5.9-tt), install the patches by using the command below.
- Run:
patch -p1 < 2-2-fpga-add-FPGA-manager-debugfs.patch
- Run:
patch -p1 < 1-2-fpga-doc-documentation-for-FPGA-debugfs.patch
- Run:
- Build and Install the kernel modules.
- Go into the kernel source folder. Run: cd /usr/src/linux-5.9-tt.
- Optional step: Copy the existing config over to new kernel. Run: cp -v /boot/config-$(uname -r) .config
- Enable Altera CvP FPGA Manager as kernel module with the command and steps below.
- Run: make menuconfig
- In the GUI, navigate to Device Drivers > FPGA Configuration Framework. Set Intel CvP FPGA Manager to “M”. Save the config setting to .config file.
- You may check the .config file, the 3 lines items below should be enabled.
- CONFIG_FPGA=y
- CONFIG_FPGA_MGR_DEBUG_FS=y
- CONFIG_FPGA_MGR_ALTERA_CVP=y
- Compile the kernel. Run: Make.
- Install the kernel modules.
- Run: export INSTALL_MOD_PATH=/usr/src/linux-5.9-tt
- Run: MODPATH="INSTALL_MOD_PATH=/usr/src/linux-5.9-tt"
- Run: ARGS="$MODPATH"
- Run: make $ARGS modules
- Run: sudo make modules_install. Check the module version at the last line printed in the Console window. Please note that the name might be different based on Kernel build version and .config file.
- Run "sudo make install". Ensure the linux image and initrd image are created according to the module version.
- Reboot the system and ensure the system reboot to the installed kernel:
- Run : reboot
- After the PC is reboot successfully
- Run : uname -mrs. The system should be rebooted with the installed kernel version as shown picture below.