summaryrefslogtreecommitdiffstats
path: root/Documentation/PCI
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2018-10-20 12:45:56 -0400
committerBjorn Helgaas <bhelgaas@google.com>2018-10-20 12:45:56 -0400
commit663569db6476795c7955289529ea0154e3d768bf (patch)
tree160897e225b4efd73a023ed5cda1b5c633747785 /Documentation/PCI
parent7e4e95897663595323f3bbcf5b75d5bcaf5c1401 (diff)
parent1ce78ce09430a5ffb987015ab2e24d145690b9a3 (diff)
Merge branch 'remotes/lorenzo/pci/tools'
- Convert pcitest build process to that used by other tools (iio, perf, etc) (Gustavo Pimentel) * remotes/lorenzo/pci/tools: tools: PCI: Change pcitest compiling process tools: PCI: Fix compilation warnings
Diffstat (limited to 'Documentation/PCI')
-rw-r--r--Documentation/PCI/endpoint/pci-test-howto.txt19
1 files changed, 11 insertions, 8 deletions
diff --git a/Documentation/PCI/endpoint/pci-test-howto.txt b/Documentation/PCI/endpoint/pci-test-howto.txt
index e40cf0fb58d7..040479f437a5 100644
--- a/Documentation/PCI/endpoint/pci-test-howto.txt
+++ b/Documentation/PCI/endpoint/pci-test-howto.txt
@@ -99,17 +99,20 @@ Note that the devices listed here correspond to the value populated in 1.4 above
992.2 Using Endpoint Test function Device 992.2 Using Endpoint Test function Device
100 100
101pcitest.sh added in tools/pci/ can be used to run all the default PCI endpoint 101pcitest.sh added in tools/pci/ can be used to run all the default PCI endpoint
102tests. Before pcitest.sh can be used pcitest.c should be compiled using the 102tests. To compile this tool the following commands should be used:
103following commands.
104 103
105 cd <kernel-dir> 104 # cd <kernel-dir>
106 make headers_install ARCH=arm 105 # make -C tools/pci
107 arm-linux-gnueabihf-gcc -Iusr/include tools/pci/pcitest.c -o pcitest 106
108 cp pcitest <rootfs>/usr/sbin/ 107or if you desire to compile and install in your system:
109 cp tools/pci/pcitest.sh <rootfs> 108
109 # cd <kernel-dir>
110 # make -C tools/pci install
111
112The tool and script will be located in <rootfs>/usr/bin/
110 113
1112.2.1 pcitest.sh Output 1142.2.1 pcitest.sh Output
112 # ./pcitest.sh 115 # pcitest.sh
113 BAR tests 116 BAR tests
114 117
115 BAR0: OKAY 118 BAR0: OKAY