Difference between revisions of "PCIe TO M.2 (A)"

From Waveshare Wiki
Jump to: navigation, search
 
(6 intermediate revisions by 2 users not shown)
Line 13: Line 13:
 
==Features==
 
==Features==
 
*Adapter For NVMe Protocol M.2 SSD, Faster Reading/Writing, Improving Efficiency.
 
*Adapter For NVMe Protocol M.2 SSD, Faster Reading/Writing, Improving Efficiency.
*Supports Base Boards With PCI-E×1 / ×4 / ×8 / ×16 Socket.
+
*Supports Base Boards With PCI-E×1/×4/×8/×16 Socket.
 
*Supports Raspberry Pi Compute Module 4.
 
*Supports Raspberry Pi Compute Module 4.
 
*Compatible With Different Sizes Of M.2 SSD.
 
*Compatible With Different Sizes Of M.2 SSD.
Line 25: Line 25:
  
 
===Drive Detecting===
 
===Drive Detecting===
Turn off the CM4, connect the adapter to CM4 and turn on.
+
Turn off the CM4, connect the adapter to CM4 and turn it on.
  
*Check if the disk is detected
+
*Check if the disk is detected.
 
<pre>
 
<pre>
 
sudo fdisk -l
 
sudo fdisk -l
Line 33: Line 33:
 
[[File:pcie-m2-1.png|800px]]<br/>
 
[[File:pcie-m2-1.png|800px]]<br/>
 
[[File:pcie-m2-2.png|800px]]<br/>
 
[[File:pcie-m2-2.png|800px]]<br/>
*Check the memory of disk
+
*Check the memory of disk.
 
<pre>
 
<pre>
 
df -h
 
df -h
Line 40: Line 40:
  
 
===Mount the disk===
 
===Mount the disk===
*Create a new directory
+
*Create a new directory.
 
<pre>
 
<pre>
 
sudo mkdir /home/pi/toshiba
 
sudo mkdir /home/pi/toshiba
 
</pre>
 
</pre>
*Mount the disk by the following command
+
*Mount the disk by the following command.
 
<pre>
 
<pre>
 
sudo mount /dev/nvme0n1p1  /home/pi/toshiba
 
sudo mount /dev/nvme0n1p1  /home/pi/toshiba
Line 52: Line 52:
 
df -h
 
df -h
 
</pre>
 
</pre>
If you can get the information of the new disk, it means that the disk was mounted sucessfully<br\>
+
If you can get the information of the new disk, it means that the disk was mounted successfully.<br/>
 
[[File:pcie-m2-4.png|800px]]
 
[[File:pcie-m2-4.png|800px]]
*The name should be different for different disks, here is nvme0n1p1 and it may be different in your board.
+
*The name should be different for different disks, here is nvme0n1p1 and it may be different on your board.
  
 
===Read/write test===
 
===Read/write test===
Enter the directory
+
Enter the directory:
 
<pre>
 
<pre>
 
cd /home/pi/toshiba
 
cd /home/pi/toshiba
 
</pre>
 
</pre>
*Release the momory
+
*Release the memory.
 
<pre>
 
<pre>
 
sudo sh -c "sync && echo 3 > /proc/sys/vm/drop_caches"
 
sudo sh -c "sync && echo 3 > /proc/sys/vm/drop_caches"
 
</pre>
 
</pre>
*Copy the Pi to the SSD (read)
+
*Copy the Pi to the SSD (read).
 
<pre>
 
<pre>
 
sudo dd if=/dev/zero of=./test_write count=2000 bs=1024k
 
sudo dd if=/dev/zero of=./test_write count=2000 bs=1024k
Line 89: Line 89:
 
=Resource=
 
=Resource=
 
*[https://github.com/sponsors/hiyohiyo DiskMark]<br>
 
*[https://github.com/sponsors/hiyohiyo DiskMark]<br>
{{Service00}}</div>
+
=Support=
 +
{{Servicebox1}}</div>
  
  
 
</div>
 
</div>

Latest revision as of 07:10, 17 August 2023

PCIe TO M.2 (A)
PCIe TO M.2 (A)
{{{name2}}}

{{{name3}}}

{{{name4}}}

{{{name5}}}

Overview

PCIe TO M.2 (A) is an adapter board for PCI-E to M.2, It is used for connecting SSD, supports Raspberry Pi Compute Module 3.

Features

  • Adapter For NVMe Protocol M.2 SSD, Faster Reading/Writing, Improving Efficiency.
  • Supports Base Boards With PCI-E×1/×4/×8/×16 Socket.
  • Supports Raspberry Pi Compute Module 4.
  • Compatible With Different Sizes Of M.2 SSD.
  • Onboard Operating Indicator, The LED Lights Up When Power-On And Keeps Blinking While Reading/Writing.

Mount the SSD to CM4

Format the SSD

  • Insert the SSD to the PCI-E to M.2 adapter and fixe it with screws.
  • Connect the SSD to another PC to format first. For example, we connect it to Windows PC because most of the windows PC has M.2 or PCI-E interface. Please shut down your PC before you connect the SSD and then reboot. Format the SSD after reading it.

Note: Do not use quick format mode.

Drive Detecting

Turn off the CM4, connect the adapter to CM4 and turn it on.

  • Check if the disk is detected.
sudo fdisk -l

Pcie-m2-1.png
Pcie-m2-2.png

  • Check the memory of disk.
df -h

Pcie-m2-3.png

Mount the disk

  • Create a new directory.
sudo mkdir /home/pi/toshiba
  • Mount the disk by the following command.
sudo mount /dev/nvme0n1p1  /home/pi/toshiba

Check the memory again.

df -h

If you can get the information of the new disk, it means that the disk was mounted successfully.
Pcie-m2-4.png

  • The name should be different for different disks, here is nvme0n1p1 and it may be different on your board.

Read/write test

Enter the directory:

cd /home/pi/toshiba
  • Release the memory.
sudo sh -c "sync && echo 3 > /proc/sys/vm/drop_caches"
  • Copy the Pi to the SSD (read).
sudo dd if=/dev/zero of=./test_write count=2000 bs=1024k

Pcie-m2-5.png

  • Copy the SSD to Pi (write)
 sudo dd if=./test_write of=/dev/null count=2000 bs=1024k

Pcie-m2-6new.png

  • Note: The test result may be different with different SSD and Pi. If you want to test the SSD, you can connect it to PC.

Test in PC

Search and find some test software online.

For example:

Pctest-1.png Pctest-2.png

Resource

Support



Technical Support

If you need technical support or have any feedback/review, please click the Submit Now button to submit a ticket, Our support team will check and reply to you within 1 to 2 working days. Please be patient as we make every effort to help you to resolve the issue.
Working Time: 9 AM - 6 AM GMT+8 (Monday to Friday)