06-06-2020, 11:28 AM
@edrose Here are a couple of test builds, based on mainline U-Boot including the mainline RK3399 PCIe driver, to try with your card:
Firstly, this build (based on this branch) adds 100ms delay before attempting link training - based on this patch for the Rockchip PCIe driver in Linux.
Secondly, this build (based on this branch) incorporates the 100ms pre-training delay, and also 2s (!) delay after training before reading PCIe config space, using this patch from the mailing list.
Note neither of these contain the patches to set up the SPI flash partitions in the device tree for Linux, but that shouldn't matter if you are booting it from MMC.
I'd be interested to hear if either of them helps with your issue.
Firstly, this build (based on this branch) adds 100ms delay before attempting link training - based on this patch for the Rockchip PCIe driver in Linux.
Secondly, this build (based on this branch) incorporates the 100ms pre-training delay, and also 2s (!) delay after training before reading PCIe config space, using this patch from the mailing list.
Note neither of these contain the patches to set up the SPI flash partitions in the device tree for Linux, but that shouldn't matter if you are booting it from MMC.
I'd be interested to hear if either of them helps with your issue.