You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: configuration/config-txt/conditional.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,17 +14,18 @@ This is the most basic filter. It resets all previously set filters and allows a
14
14
15
15
It is usually a good idea to add an `[all]` filter at the end of groups of filtered settings to avoid unintentionally combining filters (see below).
16
16
17
-
## The `[pi1]` and `[pi2]` (etc.) filters
17
+
## The `[pi1]` and `[pi2]` (etc.) model filters
18
18
19
-
Any settings below a `[pi1]` filter will only be applied to Pi 1 (A, A+, B, B+) hardware, including the original Compute Module.
20
-
Any settings below a `[pi2]` filter will only be applied to Pi 2 hardware. The `[pi3]` filter is applicable to Pi 3 and Compute Module 3 hardware, while `[pi0]` covers Pi Zero and Pi Zero W.
19
+
The conditional model filters are applied according to the following table.
21
20
22
-
[pi1]
23
-
[pi2]
24
-
[pi3]
25
-
[pi3+]
26
-
[pi0]
27
-
[pi0w]
21
+
| Filter | Applicable model(s) |
22
+
|--------|------------------|
23
+
|[pi1]| Model A, Model B, Compute Module |
24
+
|[pi2]| Model 2B (BCM2836- or BCM2837-based) |
25
+
|[pi3]| Model 3B, Model 3B+, Model 3A+, Compute Module 3 |
26
+
|[pi3+]| Model 3A+, Model 3B+ |
27
+
|[pi0]| Zero, Zero W, Zero WH |
28
+
|[pi0w]| Zero W, Zero WH |
28
29
29
30
These are particularly useful for defining different `kernel`, `initramfs`, and `cmdline` settings, as the Pi 1 and Pi 2 require different kernels. They can also be useful to define different overclocking settings, as the Pi 1 and Pi 2 have different default speeds. For example, to define separate `initramfs` images for each:
30
31
@@ -39,7 +40,6 @@ Remember to use the `[all]` filter at the end, so that any subsequent settings a
39
40
It is important to note that the Raspberry Pi Zero W will see the contents of [pi0w] AND [pi0]. Likewise, a Raspberry Pi 3B Plus sees [pi3+] AND [pi3]. If you want a setting to apply only to Pi Zero or Pi 3B you need to follow it (order is important) with a setting in the [pi0w] or [pi3+] section that reverts it.
40
41
41
42
42
-
43
43
## The `[none]` filter
44
44
45
45
The `[none]` filter prevents any settings that follow from being applied to any hardware. Although there is nothing that you can't do without `[none]`, it can be a useful way to keep groups of unused settings in config.txt without having to comment out every line.
0 commit comments