PCIe TO M.2 (B)

From Waveshare Wiki
Revision as of 11:03, 21 March 2024 by Eng52 (talk | contribs) (Created page with "<div class="wiki-pages jet-green-color"> {{Infobox item|colorscheme=green |img=File:PCIe TO M.2 (B).jpg|300px|{{Amazon_nolink|default={{#ifeq: {{#urlget:amazon|0}}|{{#urlget...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
PCIe TO M.2 (B)
PCIe TO M.2 (B).jpg
{{{name2}}}

{{{name3}}}

{{{name4}}}

{{{name5}}}

Overview

PCIe TO M.2 (B) for Raspberry Pi 5, for upgrading Solid State Drive, supports CM4.

Features

  • Support NVMe protocol M.2 interface Solid State Drive protocol, high-speed write/read, higher working efficiency.
  • Only support CM4 HAT.
  • Supports Raspberry Pi Compute Module 4.
  • Compatible With M.2 Solid State Drive in different sizes.
  • The LED lights up when power-on, and keeps blinking while reading/writing

User Guide

Hardware Connection

Please pay attention to the wiring direction, as shown below:
PCIe TO M.2 Board (C)-Wire.png

Load

1: Enable PCIE interface:

PCIE interface is not enabled on the Raspberry Pi 5 by default, you can add the following content at /boot/firmware/config.txt:
dtparam=pciex1

2: PCIE gen2 is the default setting, if you want to enable PCIE gen3, you need to add the following content at /boot/firmware/config.txt:

dtparam=pciex1_gen=3

3: Reboot PI5 after modification, and the device can be recognized.

In the picture below, the SM2263 is recognized as my SSD solid state, and the other PI5 one is the RPI chip
PCIe TO M.2 HAT+ W 1.png

4: Partitioning: If partitioning and formatting have already been performed on another platform, skip this step. Caution: Partitioning and formatting will erase all data on the SSD, so proceed with caution.

lsblk  #see the disk (execute "sudo fdisk -l" for more details)
PCIe TO M.2 HAT+ W 2.png
Partition 
sudo fdisk /dev/nvme0n1    #dev is the total device number, do not add "p1", just one partition 
How do use fdisk
n New partition
q Exit without saving
p Print partition table 
m Print selection menu  
d Delete partition  
w Save and exit
t Modify ID 
Add the partition and execute "n", and then press "w" to save and exit. 

5: Format:

sudo mkfs.  #Then, pressing Tab will display various file extensions. Each extension corresponds to a format you may want to format the drive into
PCIe TO M.2 HAT+ W 3.png
If I need to format it in "ext4" format, execute:  
sudo mkfs.ext4 /dev/nvme0n1p1
Wait for a moment, when "done" appears for all, it means the formatting is complete.
PCIe TO M.2 HAT+ W 4.png

6: Load:

Create the mounting directory:
sudo mkdir toshiba
Mount the device
sudo mount /dev/nvme0n1p1 ./toshiba
Check disk status
df -h