I am trying to connect NVME to my BPI-R3. At the thirst start (after power up) OpenWRT doesn’t see any pcie devises. In the kernel log I see the following:
mtk-pcie-gen3 11280000.pcie: PCIe link down, ltssm reg val: 0x3000003
mtk-pcie-gen3: probe of 11280000.pcie failed with error -110
In “/sys/bus/pci/” doesn’t have any devices.
“echo 1 > /sys/bus/pci/rescan” has no affect.
After a soft reboot, the pcie device discovered, everything works fine, and I can mount NVME. But that’s it all until the next power off.
I use resent OpenWRT snapshot.
Any opinions or suggestions on how to fix the situation?
Based on the firmware selector, it doesn’t include the kmod-nvme module as built-in.
I don’t know if that is the cause of issue, as I just installed M.2 NVME yesterday using a old drive pulled off from my PC, and rebuilt the firmware by include kmod-nvme.
You can try to customize installed package by edit & add kmod-nvme module, then request build, and see if it works.
I was missing kmod-nvme. Now I see the device as expected, however, now I’m running OpenWRT issues with moving the SD card overlay over to the NVME, but that’s not related to this issue.
then happy troubleshooting urself, Im sorry if my suggestion made u looked dumb & offended u. “as I said”, “of cause”… you are too smart and don’t need opinion & suggestion.
I think trim is needed. Maybe for some reason your drive does not support trim, try “lsblk --discard” it will show support trim.
In my case I’m use ext4 and trim supported. “fstrim -v /mnt/nvme0n1p2” for the first time gives all free spase on ssd is trimmed, after it givs 0 bytes.
But I’m too lazy, and I set the “discard” in “Mount options” so I don’t have to think about it.