Open Mes-ser opened 3 years ago
pi@raspberrypi:~/tmp $ lspci -k
00:00.0 PCI bridge: Broadcom Limited Device 2711 (rev 10)
Kernel driver in use: pcieport
01:00.0 USB controller: VIA Technologies, Inc. VL805 USB 3.0 Host Controller (rev 01)
Subsystem: VIA Technologies, Inc. VL805 USB 3.0 Host Controller
Kernel driver in use: xhci_hcd
I suspect that you have no driver for the device, so there will be no kernel driver listed as in use.
If you're lucky then adding the configs CONFIG_ATA
and CONFIG_SATA_AHCI
to the kernel may bring it to life.
pi@raspberrypi:~/tmp $ lspci -k 00:00.0 PCI bridge: Broadcom Limited Device 2711 (rev 10) Kernel driver in use: pcieport 01:00.0 USB controller: VIA Technologies, Inc. VL805 USB 3.0 Host Controller (rev 01) Subsystem: VIA Technologies, Inc. VL805 USB 3.0 Host Controller Kernel driver in use: xhci_hcd
I suspect that you have no driver for the device, so there will be no kernel driver listed as in use.
If you're lucky then adding the configs
CONFIG_ATA
andCONFIG_SATA_AHCI
to the kernel may bring it to life.
Ah! I forgot about that. Thanks! Now it's working.
pi@raspberrypi:~ $ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 238.5G 0 disk
├─sda1 8:1 0 499M 0 part
├─sda2 8:2 0 100M 0 part
├─sda3 8:3 0 16M 0 part
├─sda4 8:4 0 237.3G 0 part
└─sda5 8:5 0 561M 0 part
sdb 8:16 0 232.9G 0 disk
└─sdb1 8:17 0 232.9G 0 part
mmcblk0 179:0 0 59.5G 0 disk
├─mmcblk0p1 179:1 0 256M 0 part /boot
└─mmcblk0p2 179:2 0 59.2G 0 part /
I will close this issue after testing it with 5 drives connected at once.
@Mes-ser - Go ahead and leave open the issue. If you can get this working, I'd love to add it to the database! Also, found it on Amazon too.
Looks like this card is also available on Amazon, slightly cheaper than AliExpress.
IOCREST is just a brand selling stuff. This JMB585 card uses key B-M coding (many other M.2 cards with this chip are key M only) and IO-M2TO585-V10
is silkscreened on it next to the SATA ports. By simply searching for JMB585 on Aliexpress you get the same card from various sellers, e.g. here for 20 bucks less.
@ThomasKaiser - True, but fwiw, some people have an easier time buying from Amazon than AliExpress. Honestly it's always hit or miss no matter what the vendor lately. I'm still waiting on a few things I've ordered from both places over 2 months ago to finish off a couple projects :(
I just ordered one for some of my own testing. I'll be adding this to the site soon!
Few weeks passed, but finally I've got my hand on hdds and enclosure so tested with 500GB drives (raid0 & individual) everything seems to work
Installed OMV and no problems there either.
I've bought a IO CREST branded card with this exact chipset and it worked out of the box with no modifications other than sawing the PCI-E x1 slot.
pi@raspberrypi:~ $ lspci
00:00.0 PCI bridge: Broadcom Limited Device 2711 (rev 20)
01:00.0 SATA controller: JMicron Technology Corp. Device 0585
pi@raspberrypi:~ $ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 465.8G 0 disk
`-sda1 8:1 0 465.8G 0 part
`-md0 9:0 0 931.3G 0 raid5
sdb 8:16 0 465.8G 0 disk
`-sdb1 8:17 0 465.8G 0 part
`-md0 9:0 0 931.3G 0 raid5
sdc 8:32 0 465.8G 0 disk
`-sdc1 8:33 0 465.8G 0 part
`-md0 9:0 0 931.3G 0 raid5
mmcblk0 179:0 0 119.3G 0 disk
|-mmcblk0p1 179:1 0 256M 0 part /boot
`-mmcblk0p2 179:2 0 119G 0 part /
sorry for humble questin, because i'am beginner to this can i use on raspberry pi 4 or only cm4 ? i want to build nas
Basically only on a cm4. Technically it's possible to desolder the USB3.0 controller on a Pi 4 and get access to the PCIe bus that way, but since the cm4 exists now, there isn't really any point in doing that.
Is it possible to connect PCIe switch to cm4 board, then connect 2 or 3 x pcie to m.2 adapters, and then connect multiple this JMB585 adapters? so I could connect 10 or 15 sata hdds to my PI?
Is it possible to connect PCIe switch to cm4 board, then connect 2 or 3 x pcie to m.2 adapters, and then connect multiple this JMB585 adapters? so I could connect 10 or 15 sata hdds to my PI?
I just tested this board with a CM4 running Ubuntu Impish and a 4-drive port multiplier box (Mediasonic HF2-SU3S2) connected to a single port over eSATA. Writes to a 4xRAIDZ pool are really slow (40MB/s) but reads at a respectable 200MB/s. I believe that if combined with JMB575-based port multiplier boards, you should be able to connect 5x5=25 drives to a single JMB585 controller.
As a total aside, I also put this card into a cheap WavLink Thunderdrive (UTE-02) external nvme enclosure, and it works with my M1 Macbook Air, with no extra drivers needed. Neat!
If you're lucky then adding the configs
CONFIG_ATA
andCONFIG_SATA_AHCI
to the kernel may bring it to life.
@6by9 (or anyone else) could you elaborate on this a bit for beginners? What is cruicial for these configs and where to put them? Or is there at least a good link to a documentation to get information about what to do?
I have to admit, that I'm currently just following the topic and have never touched a kernel yet. But reading this, I'm more and more convinced to give it a try for a Raspi-SATA-Nas...
Or is this obsolete now, since Raspberry Pi OS received SATA support out of the box?
Or is this obsolete now, since Raspberry Pi OS received SATA support out of the box?
So it's written here.
I just ordered one for some of my own testing. I'll be adding this to the site soon!
@geerlingguyL any update on using IOCREST M.2 (PCIe 3.0) to 5 Ports with Raspberry Pi 5 ?
I have tried it with random hat from aliexpress - works just fine.
only did this
sudo apt upgrade -y
and
added these lines to /boot/config.txt
dtparam=pciex1
dtparam=pciex1_gen=3
i Try connect JMB585 to pi M.2 HAT+ (like this https://www.waveshare.com/wiki/Raspberry_Pi_M.2_HAT%2B) and not working.
00:00.0 PCI bridge: Broadcom Inc. and subsidiaries Device 2712 (rev 21) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0, IRQ 39
Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
Memory behind bridge: 00000000-005fffff [size=6M] [32-bit]
Prefetchable memory behind bridge: [disabled] [64-bit]
Capabilities: [48] Power Management version 3
Capabilities: [ac] Express Root Port (Slot-), MSI 00
Capabilities: [100] Advanced Error Reporting
Capabilities: [160] Virtual Channel
Capabilities: [180] Vendor Specific Information: ID=0000 Rev=0 Len=028 <?>
Capabilities: [240] L1 PM Substates
Capabilities: [300] Secondary PCI Express
Kernel driver in use: pcieport
01:00.0 Ethernet controller: Device 1de4:0001
Flags: bus master, fast devsel, latency 0, IRQ 39
Memory at 1f00410000 (32-bit, non-prefetchable) [size=16K]
Memory at 1f00000000 (32-bit, non-prefetchable) [virtual] [size=4M]
Memory at 1f00400000 (32-bit, non-prefetchable) [size=64K]
Capabilities: [40] Power Management version 3
Capabilities: [70] Express Endpoint, MSI 00
Capabilities: [b0] MSI-X: Enable+ Count=61 Masked-
Capabilities: [100] Advanced Error Reporting
Kernel driver in use: rp1
ACT LED in HAT+ does not light, only the PWR diode is lit red. I don't see controler SATA. After turning on PI, the LEDs in the SATA controller will flash once. How to check what is not working?
thx for help.
Bought this IOCREST M.2 (PCIe 3.0) to 5 Ports (You can get them cheaper) and tried to make it work with cm4 4GB
Already increased the BAR memory, but I still got this
BAR 0: no space for [io size 0x0080]
BAR memory
sudo lspci -v
showsENV:
At this point I have no idea how to go further with this. Confirmed that it works - connected to windows PC and it shows HDD.