Jetson Xavier RC EP 的PCIe互通测试(12)

硬件连接:

交叉线

X16引脚定义:

从此面看:从上到下,依次为A1 A2 A3….

从背面看:从上到下,依次为B1 B2 B3….

注意断开:A2 A3 B1 B2 B3 (防止烧坏套件)

两个开发者套件连接如下:

二.软件修改过程

1.EP操作:

(1)修改p2972-0000.conf.common 文件,打开后查找 ODMDATA ,修改其参数值
为 0x09191000,设置成endpoint模式(必须使用root

(2)PCIe 的连接接口配置

$ cd /sys/kernel/config/pci_ep/

$ mkdir functions/pci_epf_tvnet/func1

$ echo 16 > functions/pci_epf_tvnet/func1/msi_interrupts

$ ln -s functions/pci_epf_tvnet/func1 controllers/141a0000.pcie_ep/

$ echo 1 > controllers/141a0000.pcie_ep/start

可能会有 如下信息:

2.RC操作:

(1)执行 lspci 命令,输出应该包括 device id: 0x2296,以此来确认 PCIe 的连接建

3.建立 PCIe 通讯接口 eth1

(1)RC:

ifconfig eth1 up

ifconfig eth1 192.168.2.2

(2)EP:

ifconfig eth1 up

ifconfig eth1 192.168.2.1

三.测试过程:

由于使用Gen2 的线进行测试,所以速率较低

(1)UDP测试:

RC(ip 192.168.2.2)

执行:iperf -s –u

EP(ip 192.168.2.1)

执行:iperf –u –c 192.168.2.2 –b 1024M –d –t 60

(2)TCP测试:

RC(192.168.2.2)

执行:iperf -s

EP(192.168.2.1)

执行:iperf  –c 192.168.2.2 –t –d 30

附:如果出现如下错误:

** 1262 printk messages dropped ** [   16.522270] pcieport 0005:00:00.0: PCIe Bus Error: severity=Corrected, type=Physical Layer, id=0000(Receiver ID)

** 1003 printk messages dropped ** [   16.535444] pcieport 0005:00:00.0: PCIe Bus Error: severity=Corrected, type=Physical Layer, id=0000(R

应该是活动状态电源管理将链路转换到较低功率状态并可能导致设备触发这些错误:

修改 是 RC 中/boot/extlinux/extlinux.conf

添加如下命令:pcie_aspm=off

文章知识点与官方知识档案匹配,可进一步学习相关知识CS入门技能树Linux入门初识Linux24909 人正在系统学习中

声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!

上一篇 2022年10月8日
下一篇 2022年10月8日

相关推荐