PCIe TO M.2 (B)
From Waveshare Wiki
| ||
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:
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
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) 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 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.
6: Load:
Create the mounting directory: sudo mkdir toshiba Mount the device sudo mount /dev/nvme0n1p1 ./toshiba Check disk status df -h