Hi guys, one other thing that I like to share (we are working on documenting this):
If you are running a system with kernel version 4.19+ you’ll need to first disable built-in kernel module driver for apex device. It has a known bug which might prevent proper driver update.
Create a blacklist-apex.conf file in /etc/modprobe.d/ with two lines in there:
blacklist gasket
blacklist apex
Reboot system
Verify that apex/gasket modules aren’t loaded by doing:
lsmod|grep apex
Follow steps to install gasket-dkms package from
delete file /etc/modprobe.d/blacklist-apex.conf
reboot system
Then follow other steps from instruction.
Although I’m not sure if this is related to the issue with khadas devices because if lscpi not showing our devices, then it looks like a configuring issue.
I tough for a second that coral was not gen 1 or 2 as in the driver but that is not the case. I notices some patches from sept/2019 which haven’t not been applied to pcie-amlogic-v2 (8 month old now) . I am not sure if any of these are relevant but maybe one of them could fix the problem.
I figured it’s not the same issue, if the wrong module were loaded, I’d imagine a runtime issue rather than not being able to detect at all.
So from the source code (thanks for pointing out the)
I believe this is an amlogic phy not linking to the PCIe module. I have no idea if that patch you mentioned would fix this.
Maybe move this to the amlogic forum?
Edit: Although that code is on the khadas-vims-4.9.y branch, is this the right build for the vim3 board?
I tried to connect a PCI-e sound card through an adapter. Kernel 4.9 produces a similar error in the logs. But on the mainline kernel (5.5 rc2), the sound card was determined. Apparently, you still need to backport the latest changes related to PCI-e.
I made ubuntu 20.04 image with fenix with mainline linux
uname -a
Linux Khadas 5.6.0
cat /sys/class/mcu/usb_pcie_switch_mode
1
so it looks like I have pci-e mode
but
lspci -vvv
is empty and I don’t see any host bridge
and no sign of meson pci-e in dmesg
any idea?
Any updates on VIM3x and the Coral module? @numbqq
I just bought your VIM3L and tried on VIM3L_Ubuntu-server-focal_Linux-5.7-rc7_arm64_SD-USB_V0.9-20200530 : after installing the B+M module and the Coral driver lspci reports nothing, nothing relevant in dmesg.
So you have the Coral M.2 B+M module purchased but you can’t make it work with VIM3x? Have you tried it with your other Khadas boards, especially the ones without built-in NPU, like Edge-V?
What power supply are you using? In my case, once I connect the M.2 module, install the driver and restart, my VIM3L doesn’t boot - I may have to try a beefier power supply (say 12V 5A) as the TPU module specs list current demand up to 3A.
What’s the status of this issue now? And any plan for this issue? (It lasts for almost 2 years.)
Following is the the FW running on my VIM3. PCIe Wi-Fi card inserting to M.2 slot still hit this issue.
Would you please share a working FW image (Ubuntu) that I can work as a WAR.
Thanks,
Linux Khadas 4.9.241 #20 SMP PREEMPT Fri Jun 25 14:26:34 CST 2021 aarch64 aarch64 aarch64 GNU/Linux