I’m trying to work with the pci-e (m.2) and I’ve encountered some issues:
My setup is Vim3 pro with Ubuntu 18.04 server image .
trying to switch from usb 3.0 to pcie using this guide didn’t work as no such " sys/class/mcu/usb_pcie_switch_mode" location exists.
I was able to find - “/sys/class/usb_pcie_switch/mode” location and set the bit to 1 using SU command (sudo didn’t work) ,but I don’t know if PCI-E was actually on - i assume it is, if so it might worth adding this to docs.
pcie device inst recognized at all:
khadas@Khadas:~$ lspci -x
khadas@Khadas:~$
@rider I am having the same issue, pci logs look the same. I am using ubuntu 18.04 kernel 4.9.190 desktop. And I used to switch both /sys/ and serial console/kbi. None made a difference.
Are trying to use pci b-m card (coral?) straight into the m.2 socket on VIM3 or do you use m.2 extension card?
@Frank I did that in the KBI uboot interface as well after I tried the echo 1 >/sys/… method. I got the same problem @numbqq I’m trying to attach the Coral tpu M.2 card https://coral.withgoogle.com/products/m2-accelerator-bm, however based on the logs it looks like the PCIe bus doesn’t get powered up ?
Hi, any luck with this? It seems that PCIe does no get activated based on the logs?
[ 2.219930] amlogic-pcie-v2 fc000000.pcieA: Error: Wait linkup timeout.
[ 2.314396] amlogic-pcie-v2 fc000000.pcieA: phy link never came up
…
[ 2.314638] amlogic-pcie-v2 fc000000.pcieA: link timeout, disable PCIE PLL
[ 2.314662] amlogic-pcie-v2 fc000000.pcieA: power down pcie phy
Unfortunately I don’t have any NVMe SSD to test with. Perhaps someone else here has one and willing to test to plug in directly in the board PCIe M.2 ?
Hi are you Moshe by any chance?
It’s Nam here from the coral team, I’m checking out this thread for some further investigation (apologize, I don’t have access to my corp machine rt now so I can’t email you back directly).
Is the Samsung 970 m.2 SSD you tested communicating via the NMVe interface or PCIe?
Could we possibly test another PCIe device on the khadas vim3 board?
Khadas team, are there any ways to confirm when the m.2 slot is configured for PCIe?
No, just me testing the kernel modules for coral are loading successfully, after testing with mod probe I added them to /etc/modules. However the device is not sensed detected at boot as I am getting the same logs as you, even regardless if the device is plugged in the M2 socket or not.
However It does seem to get power as it gets a little bit warm, and I am sure is not malfunctioning as I got two of them and none works, so my guess will be that has something to do with pcie kernel driver not detecting it. Could it be because it’s an M.2 M+B key?
lsmod
Module Size Used by
apex 28672 0
gasket 106496 1 apex
Hello, For what it is worth, I have an NVMe SSD(Patriot PS128GPM280SSDR) with M+B key, it works in the VIM3’s M.2 socket(also works with M2X ext board).