raspberry-pi-pcie-devices icon indicating copy to clipboard operation
raspberry-pi-pcie-devices copied to clipboard

Test NVMe Drives and PCIe Adapters (Samsung 970 EVO Plus, NGFF, etc.)

Open geerlingguy opened this issue 4 years ago • 5 comments

I realized I tested some of these devices for my original review video, but I really didn't document things well in an issue on this project (which I started after I finished up that video):

NVMe Drives

PCIe NVMe M.2 adapters

I'll try to document my experiences and some benchmarks with all the drives here. I think I left some notes on the Samsung 970 EVO Plus, at least, elsewhere.

The other thing to test is how each drive (if it works as direct NVMe storage at least) compares in performance via a USB 3.0 adapter (like the KBR M.2 NVMe USB 3.1 SSD Adapter compared to directly attached. I know the 970 was a lot faster for random IO.

geerlingguy avatar Dec 12 '20 21:12 geerlingguy

As a note for people just receiving their CM4's, I had no luck getting the Ubuntu img (ubuntu-20.10-preinstalled-server-arm64+raspi) to boot with a Samsung 970 EVO attached via a generic vertical M.2 to PCIe x1 adapter, but when I switched to RasPiOS (2020-12-02-raspios-buster-armhf-lite) it booted without issue!

I also found it was handy to add nvme-core' to /etc/modules` to make sure it is loaded at boot time.

(Let me know if this is the wrong place for community submitted notes, happy to place elsewhere 😃 )

ScottHolden avatar Dec 14 '20 05:12 ScottHolden

@ScottHolden - Were you able to boot directly from the 970 EVO? Or did you still do the initial boot from the microSD card? (Note: I haven't tested the 12-02 release yet, so maybe they now support direct boot off NVMe, which would be amazing!).

geerlingguy avatar Dec 14 '20 17:12 geerlingguy

@ScottHolden - Did you find out what is blocking ubuntu from booting when the Samsung 970 EVO is attached? Did you manage to boot ubuntu while some other SSD model is attached? I assume you are booting off of an SD-Card or eMMC, correct? Would be very interested to see which SSD can be used in combination with ubuntu.

THX JOsef

jblanz avatar Feb 13 '21 11:02 jblanz

CM4 and PCIe with Ubuntu https://www.raspberrypi.org/forums/viewtopic.php?f=98&t=301016

That specific issue was resolved the downstream 5.4 Raspberry Pi OS Kernel https://github.com/raspberrypi/linux/commit/20f5f742eea1057b8cc3d368658bcd6fb54b90db

starchivore avatar Mar 05 '21 19:03 starchivore

Just wanna add that I purchased the Xiwai M.2 adapter via your Amazon link and it works perfectly with Kali for Pi, no setup necessary. Benchmark screenshot attached. Thanks! 51xph005L-L SL1600

kylefmohr avatar Dec 15 '22 14:12 kylefmohr