This document describes how to setup the LS1046A RDB as a PCIe End Point(EP) to be link trained and enumerated by the host system. The LS1046A RDB in this scenario is essentially being used to emulate a PCIe Add-in Card in PCIe-EP mode.
LS1046ARDB Modifications for PCIe-EP
Environment setting up
MSI interrupt testing
Could you provide the "pcitest.sh" script?