Skip to content

Commit 71a2965

Browse files
Merge branch 'develop' into dependabot/github_actions/develop/actions/checkout-5
2 parents 39750e9 + 9481079 commit 71a2965

File tree

114 files changed

+1860
-583
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

114 files changed

+1860
-583
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
echo "Please check your base branch as it should be develop by default"
1818
exit 1
1919
- uses: actions/checkout@v5
20-
- uses: actions/setup-python@v5
20+
- uses: actions/setup-python@v6
2121
with:
2222
python-version: 3.9
2323
- name: Install Python dependencies

.github/workflows/stale.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
pull-requests: write
1414

1515
steps:
16-
- uses: actions/stale@v9
16+
- uses: actions/stale@v10
1717
with:
1818
repo-token: ${{ secrets.GITHUB_TOKEN }}
1919
stale-issue-message: 'This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.'

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,7 @@ build
44
build-pico-sdk-docs
55
documentation/html
66
documentation/asciidoc/pico-sdk
7+
venv
78
.venv
9+
.env
10+
.vscode

Gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,12 @@ GEM
6363
rb-fsevent (~> 0.10, >= 0.10.3)
6464
rb-inotify (~> 0.9, >= 0.9.10)
6565
mercenary (0.4.0)
66-
mini_portile2 (2.8.8)
66+
mini_portile2 (2.8.9)
6767
minima (2.5.2)
6868
jekyll (>= 3.5, < 5.0)
6969
jekyll-feed (~> 0.9)
7070
jekyll-seo-tag (~> 2.1)
71-
nokogiri (1.18.8)
71+
nokogiri (1.18.10)
7272
mini_portile2 (~> 2.8.2)
7373
racc (~> 1.4)
7474
pathutil (0.16.2)
Lines changed: 135 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,67 @@
11
[[m2-hat-plus]]
22
== About
33

4+
[.clearfix]
5+
--
6+
[.left]
47
.The Raspberry Pi M.2 HAT+
5-
image::images/m2-hat-plus.jpg[width="80%"]
8+
image::images/m2-hat-plus.jpg[width="100%"]
9+
[.left]
10+
.The Raspberry Pi M.2 HAT+ Compact in the Raspberry Pi Case
11+
image::images/m2-hat-plus-compact-with-case.jpg[width="100%"]
12+
--
613

7-
The Raspberry Pi M.2 HAT+ M Key enables you to connect M.2 peripherals such as NVMe drives and other PCIe accessories to Raspberry Pi 5's PCIe interface.
14+
The Raspberry Pi M.2 HAT+ M Key and M.2 HAT+ Compact M Key enable you to connect M.2 peripherals such as NVMe drives and other PCIe accessories to Raspberry Pi 5's PCIe interface.
815

9-
The M.2 HAT+ adapter board converts between the PCIe connector on Raspberry Pi 5 and a single M.2 M key edge connector. You can connect any device that uses the 2230 or 2242 form factors. The M.2 HAT+ can supply up to 3A of power.
16+
The M.2 HAT+ and M.2 HAT+ Compact adapter boards convert between the PCIe connector on Raspberry Pi 5 and a single M.2 M key edge connector. The M.2 HAT+ supports any device that uses the 2230 or 2242 form factor; the M.2 HAT+ Compact supports any device that uses the 2230 form factor.
1017

11-
The M.2 HAT+ uses Raspberry Pi's https://datasheets.raspberrypi.com/hat/hat-plus-specification.pdf[HAT+ specification], which allows Raspberry Pi OS to automatically detect the HAT+ and any connected devices.
18+
We provide the M.2 HAT+ in a standard and a compact format to serve different use cases:
1219

13-
The included threaded spacers provide ample room to fit the Raspberry Pi Active Cooler beneath an M.2 HAT+.
20+
* The M.2 HAT+ includes threaded spacers that provide ample room to fit the Raspberry Pi Active Cooler beneath it. However, the M.2 HAT+ is _only_ compatible with the https://www.raspberrypi.com/products/raspberry-pi-5-case/[Raspberry Pi Case for Raspberry Pi 5] _if you remove the lid and the included fan_.
1421

15-
The M.2 HAT+ is _only_ compatible with the https://www.raspberrypi.com/products/raspberry-pi-5-case/[Raspberry Pi Case for Raspberry Pi 5] _if you remove the lid and the included fan_.
22+
* The M.2 HAT+ Compact is designed to fit around the included fan in the https://www.raspberrypi.com/products/raspberry-pi-5-case/[Raspberry Pi Case for Raspberry Pi 5]. However, you can't fit the Active Cooler beneath it.
23+
24+
Both the M.2 HAT+ and M.2 HAT+ Compact conform to the https://datasheets.raspberrypi.com/hat/hat-plus-specification.pdf[Raspberry Pi HAT+ specification], which allows Raspberry Pi OS to automatically detect the HAT+ and any connected devices.
1625

1726
== Features
1827

28+
The M.2 HAT+ and M.2 HAT+ Compact both have the following features:
29+
1930
* Single-lane PCIe 2.0 interface (500 MB/s peak transfer rate)
20-
* Supports devices that use the M.2 M key edge connector
21-
* Supports devices with the 2230 or 2242 form factor
22-
* Supplies up to 3A to connected M.2 devices
31+
* Support for devices that use the M.2 M key edge connector
32+
* Up to 3 A supply to connected M.2 devices
2333
* Power and activity LEDs
24-
* Conforms to the https://datasheets.raspberrypi.com/hat/hat-plus-specification.pdf[Raspberry Pi HAT+ specification]
25-
* Includes:
26-
** ribbon cable
27-
** 16mm GPIO stacking header
28-
** 4 threaded spacers
29-
** 8 screws
30-
** 1 knurled double-flanged drive attachment screw to secure and support the M.2 peripheral
3134

32-
[[m2-hat-plus-installation]]
33-
== Install
35+
The M.2 HAT+ and M.2 HAT+ Compact differ in the following ways:
36+
37+
* M.2 HAT+ supports devices with the 2230 or 2242 form factor; M.2 HAT+ Compact only supports the 2230 form factor.
38+
39+
=== Hardware
40+
41+
The Raspberry Pi M.2 HAT+ or M.2 HAT+ Compact box contains the following parts:
3442

35-
To use the Raspberry Pi M.2 HAT+, you will need:
43+
* Ribbon cable
44+
* Threaded spacers
45+
* Screws
46+
* 1 knurled double-flanged drive attachment screw to secure and support the M.2 peripheral
3647

37-
* a Raspberry Pi 5
48+
The M.2 HAT+ also includes a 16 mm GPIO stacking header; M.2 HAT+ Compact doesn't include this component.
3849

39-
Each M.2 HAT+ comes with a ribbon cable, GPIO stacking header, and mounting hardware. Complete the following instructions to install your M.2 HAT+:
50+
To use the M.2 HAT+ or M.2 HAT+ Compact, you also need:
4051

41-
. First, ensure that your Raspberry Pi runs the latest software. Run the following command to update:
52+
* A Raspberry Pi 5
53+
54+
[[m2-hat-plus-installation]]
55+
== Prepare your Raspberry Pi
56+
57+
. Ensure that your Raspberry Pi runs the latest software. Run the following command to update:
4258
+
4359
[source,console]
4460
----
4561
$ sudo apt update && sudo apt full-upgrade
4662
----
4763

48-
. Next, xref:../computers/raspberry-pi.adoc#update-the-bootloader-configuration[ensure that your Raspberry Pi firmware is up-to-date]. Run the following command to see what firmware you're running:
64+
. xref:../computers/raspberry-pi.adoc#update-the-bootloader-configuration[Ensure that your Raspberry Pi firmware is up-to-date]. Run the following command to see what firmware you're running:
4965
+
5066
[source,console]
5167
----
@@ -72,54 +88,136 @@ Then, reboot with `sudo reboot`.
7288

7389
. Disconnect the Raspberry Pi from power before beginning installation.
7490

91+
[[standard-installation]]
92+
== Install the M.2 HAT+
93+
94+
Follow these steps to install the M.2 HAT+. To install the M.2 HAT+ Compact go to <<compact-installation>> instead.
95+
96+
=== (Optional) Install the Active Cooler
7597

7698
. The M.2 HAT+ is compatible with the Raspberry Pi 5 Active Cooler. If you have an Active Cooler, install it before installing the M.2 HAT+.
7799
+
78100
--
79101
image::images/m2-hat-plus-installation-01.png[width="60%"]
80102
--
81-
. Install the spacers using four of the provided screws. Firmly press the GPIO stacking header on top of the Raspberry Pi GPIO pins; orientation does not matter as long as all pins fit into place. Disconnect the ribbon cable from the M.2 HAT+, and insert the other end into the PCIe port of your Raspberry Pi. Lift the ribbon cable holder from both sides, then insert the cable with the copper contact points facing inward, towards the USB ports. With the ribbon cable fully and evenly inserted into the PCIe port, push the cable holder down from both sides to secure the ribbon cable firmly in place.
82-
+
103+
104+
=== Install the mounting hardware
105+
106+
. Install the spacers using the provided screws.
107+
108+
. Firmly press the GPIO stacking header on top of the Raspberry Pi GPIO pins; orientation doesn't matter as long as all pins fit into place.
109+
110+
. Disconnect the ribbon cable from the M.2 HAT+. Insert the other end into the PCIe port of your Raspberry Pi. Lift the ribbon cable holder from both sides, then insert the cable with the copper contact points facing inward, towards the USB ports. With the ribbon cable fully and evenly inserted into the PCIe port, push the cable holder down from both sides to secure the ribbon cable firmly in place.
111+
83112
--
84113
image::images/m2-hat-plus-installation-02.png[width="60%"]
85114
--
86-
. Set the M.2 HAT+ on top of the spacers, and use the four remaining screws to secure it in place.
115+
116+
=== Install the board
117+
118+
. Set the M.2 HAT+ on top of the spacers and use the remaining screws to secure it in place.
87119
+
88120
--
89121
image::images/m2-hat-plus-installation-03.png[width="60%"]
90122
--
91-
. Insert the ribbon cable into the slot on the M.2 HAT+. Lift the ribbon cable holder from both sides, then insert the cable with the copper contact points facing up. With the ribbon cable fully and evenly inserted into the port, push the cable holder down from both sides to secure the ribbon cable firmly in place.
123+
124+
. Insert the ribbon cable into the slot on the M.2 HAT+.
125+
+
126+
Lift the ribbon cable holder from both sides, then insert the cable with the copper contact points facing up. With the ribbon cable fully and evenly inserted into the port, push the cable holder down from both sides to secure the ribbon cable firmly in place.
92127
+
93128
--
94129
image::images/m2-hat-plus-installation-04.png[width="60%"]
95130
--
131+
132+
=== Install your M.2 drive
133+
96134
. Remove the drive attachment screw by turning the screw counter-clockwise. Insert your M.2 SSD into the M.2 key edge connector, sliding the drive into the slot at a slight upward angle. Do not force the drive into the slot: it should slide in gently.
97135
+
98136
--
99137
image::images/m2-hat-plus-installation-05.png[width="60%"]
100138
--
139+
101140
. Push the notch on the drive attachment screw into the slot at the end of your M.2 drive. Push the drive flat against the M.2 HAT+, and insert the SSD attachment screw by turning the screw clockwise until the SSD feels secure. Do not over-tighten the screw.
102141
+
103142
--
104143
image::images/m2-hat-plus-installation-06.png[width="60%"]
105144
--
106-
. Congratulations, you have successfully installed the M.2 HAT+. Connect your Raspberry Pi to power; Raspberry Pi OS will automatically detect the M.2 HAT+. If you use Raspberry Pi Desktop, you should see an icon representing the drive on your desktop. If you don't use a desktop, you can find the drive at `/dev/nvme0n1`. To make your drive automatically available for file access, consider xref:../computers/configuration.adoc#automatically-mount-a-storage-device[configuring automatic mounting].
145+
146+
Congratulations, you have successfully installed the M.2 HAT+.
147+
148+
.Installed M.2 HAT+
149+
image::images/m2-hat-plus-installation-07.png[width="80%"]
150+
151+
152+
[[compact-installation]]
153+
== Install the M.2 HAT+ Compact
154+
155+
Follow these steps to install the M.2 HAT+ Compact. To install the M.2 HAT+ go to <<standard-installation>> instead.
156+
157+
=== Install the mounting hardware
158+
159+
. Install the spacers using the provided screws.
160+
+
161+
--
162+
image::images/m2-hat-plus-compact-installation-02.png[width="60%"]
163+
--
164+
165+
=== Install the board
166+
167+
. Set the M.2 HAT+ Compact on top of the spacers and use the remaining screws to secure it in place.
107168
+
108169
--
109-
image::images/m2-hat-plus-installation-07.png[width="60%"]
170+
image::images/m2-hat-plus-compact-installation-03.png[width="60%"]
110171
--
111172

173+
. Insert the ribbon cable into the PCIe port of your Raspberry Pi.
174+
+
175+
Lift the ribbon cable holder from both sides, then insert the cable with the copper contact points facing inward, towards the USB ports. With the ribbon cable fully and evenly inserted into the PCIe port, push the cable holder down from both sides to secure the ribbon cable firmly in place.
176+
+
177+
--
178+
image::images/m2-hat-plus-compact-installation-04.png[width="60%"]
179+
--
180+
181+
=== Install your M.2 drive
182+
183+
. Remove the drive attachment screw by turning the screw counter-clockwise. Insert your M.2 SSD into the M.2 key edge connector, sliding the drive into the slot at a slight upward angle. Do not force the drive into the slot: it should slide in gently.
184+
+
185+
--
186+
image::images/m2-hat-plus-compact-installation-05.png[width="60%"]
187+
--
188+
189+
. Push the notch on the drive attachment screw into the slot at the end of your M.2 drive. Push the drive flat against the M.2 HAT+ Compact, and insert the SSD attachment screw by turning the screw clockwise until the SSD feels secure. Do not over-tighten the screw.
190+
+
191+
--
192+
image::images/m2-hat-plus-compact-installation-06.png[width="60%"]
193+
--
194+
195+
Congratulations, you have successfully installed the M.2 HAT+ Compact.
196+
197+
.Installed M.2 HAT+ Compact
198+
image::images/m2-hat-plus-compact-installation-07.png[width="80%"]
199+
200+
== Start your Raspberry Pi
201+
202+
. Connect your Raspberry Pi to power; Raspberry Pi OS automatically detects the M.2 HAT+ or M.2 HAT+ Compact. If you use Raspberry Pi Desktop, you see an icon representing the drive on your desktop. If you don't use a desktop, you can find the drive at `/dev/nvme0n1`.
203+
204+
. To make your drive automatically available for file access, consider xref:../computers/configuration.adoc#automatically-mount-a-storage-device[configuring automatic mounting].
205+
112206
WARNING: Always disconnect your Raspberry Pi from power before connecting or disconnecting a device from the M.2 slot.
113207

114208
== Boot from NVMe
115209

116-
To boot from an NVMe drive attached to the M.2 HAT+, complete the following steps:
210+
To boot from an NVMe drive attached to the M.2 HAT+ or M.2 HAT+ Compact, complete the following steps:
117211

118-
. xref:../computers/getting-started.adoc#raspberry-pi-imager[Format your NVMe drive using Raspberry Pi Imager]. You can do this from your Raspberry Pi if you already have an SD card with a Raspberry Pi OS image.
119-
. Boot your Raspberry Pi into Raspberry Pi OS using an SD card or USB drive to alter the boot order in the persistent on-board EEPROM configuration.
120-
. In a terminal on your Raspberry Pi, run `sudo raspi-config` to open the Raspberry Pi Configuration CLI.
121-
. Under `Advanced Options` > `Boot Order`, choose `NVMe/USB boot`. Then, exit `raspi-config` with `Finish` or the *Escape* key.
122-
. Reboot your Raspberry Pi with `sudo reboot`.
212+
. xref:../computers/getting-started.adoc#raspberry-pi-imager[Install an operating system to your NVMe drive by using Raspberry Pi Imager]. You can do this from your Raspberry Pi if you already have an SD card with a Raspberry Pi OS image.
213+
. Reboot your Raspberry Pi.
214+
* If you don't have an SD card inserted in your Raspberry Pi 5, it boots automatically from your NVMe drive.
215+
* If you do have an SD card inserted in your Raspberry Pi 5, it attempts to boot from the SD card first. You can change the boot order on your Raspberry Pi by completing the following steps:
216+
.. Boot your Raspberry Pi into Raspberry Pi OS using an SD card.
217+
.. In a terminal on your Raspberry Pi, run `sudo raspi-config` to open the Raspberry Pi Configuration CLI.
218+
.. Under `Advanced Options` > `Boot Order`, choose `NVMe/USB boot`.
219+
.. Exit `raspi-config` with `Finish` or the *Escape* key.
220+
.. Reboot your Raspberry Pi with `sudo reboot`.
123221

124222
For more information, see xref:../computers/raspberry-pi.adoc#nvme-ssd-boot[NVMe boot].
125223

@@ -131,11 +229,8 @@ To enable PCIe Gen 3 speeds, follow the instructions at xref:../computers/raspbe
131229

132230
== Schematics
133231

134-
.Schematics for the Raspberry Pi M.2 HAT+
135-
image::images/m2-hat-plus-schematics.png[width="80%"]
136-
137-
Schematics are also available as a https://datasheets.raspberrypi.com/m2-hat-plus/raspberry-pi-m2-hat-plus-schematics.pdf[PDF].
232+
The schematics for the M.2 HAT+ are available as a https://datasheets.raspberrypi.com/m2-hat-plus/raspberry-pi-m2-hat-plus-schematics.pdf[PDF]
138233

139234
== Product brief
140235

141-
For more information about the M.2 HAT+, including mechanical specifications and operating environment limitations, see the https://datasheets.raspberrypi.com/m2-hat-plus/raspberry-pi-m2-hat-plus-product-brief.pdf[product brief].
236+
For more information about the M.2 HAT+ and M.2 HAT+ Compact, including mechanical specifications and operating environment limitations, see the https://datasheets.raspberrypi.com/m2-hat-plus/raspberry-pi-m2-hat-plus-product-brief.pdf[product brief].
152 KB
Loading
226 KB
Loading
172 KB
Loading
189 KB
Loading
171 KB
Loading

0 commit comments

Comments
 (0)