Skip to content

Commit 2705db0

Browse files
authored
Merge pull request #4159 from raspberrypi/develop
Deploy to production
2 parents 787d853 + f129172 commit 2705db0

File tree

16 files changed

+299
-127
lines changed

16 files changed

+299
-127
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ build-pico-sdk-docs
55
documentation/html
66
documentation/asciidoc/pico-sdk
77
.venv
8+
.env

documentation/asciidoc/accessories/ai-camera/model-conversion.adoc

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,21 @@ The Edge-MDT package takes a parameter to select between installing the PyTorch
2626

2727
[tabs]
2828
======
29-
TensorFlow::
29+
PyTorch::
3030
+
3131
[source,console]
3232
----
33-
$ pip install edge-mdt[tf]
33+
$ pip install edge-mdt[pt]
3434
----
35-
+
36-
TIP: Always use the same version of TensorFlow you used to compress your model.
3735
38-
PyTorch::
36+
TensorFlow::
3937
+
4038
[source,console]
4139
----
42-
$ pip install edge-mdt[pt]
40+
$ pip install edge-mdt[tf]
4341
----
42+
+
43+
TIP: Always use the same version of TensorFlow you used to compress your model.
4444
======
4545

4646
If you need to install both packages, use two separate Python virtual environments. This prevents TensorFlow and PyTorch from causing conflicts with each other.
@@ -62,18 +62,18 @@ To convert a model model:
6262

6363
[tabs]
6464
======
65-
TensorFlow::
65+
PyTorch::
6666
+
6767
[source,console]
6868
----
69-
$ imxconv-tf -i <compressed Keras model> -o <output folder>
69+
$ imxconv-pt -i <compressed ONNX model> -o <output folder>
7070
----
7171
72-
PyTorch::
72+
TensorFlow::
7373
+
7474
[source,console]
7575
----
76-
$ imxconv-pt -i <compressed ONNX model> -o <output folder>
76+
$ imxconv-tf -i <compressed Keras model> -o <output folder>
7777
----
7878
======
7979

documentation/asciidoc/accessories/audio/hardware-info.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ If appropriate then the following are also used:
3939

4040
=== DAC PRO, DAC{plus}, DigiAMP{plus}, Codec Zero
4141

42-
image::images/pin_table_new.jpg[width="80%"]
42+
image::images/all_audio_boards_gpio_pinouts.png[width="80%"]
4343

4444
The DAC PRO, DAC{plus} and DigiAMP{plus} re-expose the Raspberry Pi signals, allowing additional sensors and peripherals
4545
to be added easily. Please note that some signals are for exclusive use (I2S and EEPROM) by some
214 KB
Loading
Binary file not shown.

documentation/asciidoc/accessories/touch-display-2/about.adoc

Lines changed: 155 additions & 70 deletions
Large diffs are not rendered by default.

documentation/asciidoc/computers/camera/rpicam_apps_building.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ To build `rpicam-apps` without first rebuilding `libcamera` and `libepoxy`, inst
2727

2828
[source,console]
2929
----
30-
$ sudo apt install -y libcamera-dev libepoxy-dev libjpeg-dev libtiff5-dev libpng-dev
30+
$ sudo apt install -y libcamera-dev libepoxy-dev libjpeg-dev libtiff5-dev libpng-dev libopencv-dev
3131
----
3232

3333
TIP: If you do not need support for the GLES/EGL preview window, omit `libepoxy-dev`.
Lines changed: 29 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,41 @@
11
== Attaching the Touch Display LCD panel
22

3-
Update your system software and firmware to the latest version before starting.
4-
Compute Modules mostly use the same process, but sometimes physical differences force changes for a particular model.
3+
Update your system software and firmware to the latest version before starting. Compute Modules mostly use the same process, but sometimes physical differences force changes for a particular model.
54

65
=== Connect a display to DISP1/DSI1
76

8-
NOTE: The Raspberry Pi Zero camera cable cannot be used as an alternative to the RPI-DISPLAY adapter. The two cables have distinct wiring.
7+
NOTE: The Raspberry Pi Zero camera cable can't be used as an alternative to the RPI-DISPLAY adapter. The two cables have distinct wiring.
98

10-
To connect a display to DISP1/DSI1:
9+
To connect a display to `DISP1/DSI1`:
1110

1211
. Disconnect the Compute Module from power.
13-
. Connect the display to the DISP1/DSI1 port on the Compute Module IO board through the 22W to 15W display adapter.
14-
. _(CM1, CM3, CM3+, and CM4S only)_: Connect the following GPIO pins with jumper cables:
15-
* `0` to `CD1_SDA`
16-
* `1` to `CD1_SCL`
17-
. _(CM5)_ On the Compute Module 5 IO board, add the appropriate jumpers to J6, as indicated on the silkscreen.
12+
. Connect the display to the `DISP1/DSI1` port on the Compute Module IO board through the 22W to 15W display adapter.
13+
. Complete the appropriate jumper connections:
14+
- For *CM1*, *CM3*, *CM3+*, and *CM4S*, connect the following GPIO pins with jumper cables:
15+
* `0` to `CD1_SDA`
16+
* `1` to `CD1_SCL`
17+
- For *CM5*, on the Compute Module 5 IO board, add the appropriate jumpers to J6, as indicated on the silkscreen.
1818
. Reconnect the Compute Module to power.
19-
. Add the following line to xref:../computers/config_txt.adoc#what-is-config-txt[`/boot/firmware/config.txt`]:
20-
+
21-
[source,ini]
22-
----
23-
dtoverlay=vc4-kms-dsi-7inch
24-
----
19+
. Add `dtoverlay=vc4-kms-dsi-7inch` to xref:../computers/config_txt.adoc#what-is-config-txt[`/boot/firmware/config.txt`].
2520
. Reboot your Compute Module with `sudo reboot`. Your device should detect and begin displaying output to your display.
2621

2722
=== Connect a display to DISP0/DSI0
2823

29-
To connect a display to DISP0/DSI0 on CM1, CM3 and CM4 IO boards:
30-
31-
. Connect the display to the DISP0/DSI0 port on the Compute Module IO board through the 22W to 15W display adapter.
32-
. _(CM1, CM3, CM3+, and CM4S only)_: Connect the following GPIO pins with jumper cables:
33-
* `28` to `CD0_SDA`
34-
* `29` to `CD0_SCL`
35-
36-
. _(CM4 only)_ On the Compute Module 4 IO board, add the appropriate jumpers to J6, as indicated on the silkscreen.
24+
To connect a display to `DISP0/DSI0` on CM1, CM3, and CM4 IO boards:
3725

26+
. Connect the display to the `DISP0/DSI0` port on the Compute Module IO board through the 22W to 15W display adapter.
27+
. Complete the appropriate jumper connections:
28+
- For *CM1*, *CM3*, *CM3+*, and *CM4S*, connect the following GPIO pins with jumper cables:
29+
* `28` to `CD0_SDA`
30+
* `29` to `CD0_SCL`
31+
- For *CM4*, on the Compute Module 4 IO board, add the appropriate jumpers to J6, as indicated on the silkscreen.
3832
. Reconnect the Compute Module to power.
39-
. Add the following line to `/boot/firmware/config.txt`:
40-
+
41-
[source,ini]
42-
----
43-
dtoverlay=vc4-kms-dsi-7inch
44-
----
33+
. Add `dtoverlay=vc4-kms-dsi-7inch` to `/boot/firmware/config.txt`.
4534
. Reboot your Compute Module with `sudo reboot`. Your device should detect and begin displaying output to your display.
4635

4736
=== Disable touchscreen
4837

49-
The touchscreen requires no additional configuration. Connect it to your Compute Module, and both the touchscreen element and display should work once successfully detected.
38+
The touchscreen requires no additional configuration. Connect it to your Compute Module; both the touchscreen element and display work when successfully detected.
5039

5140
To disable the touchscreen element, but still use the display, add the following line to `/boot/firmware/config.txt`:
5241

@@ -66,18 +55,17 @@ ignore_lcd=1
6655

6756
== Attaching the Touch Display 2 LCD panel
6857

69-
Touch Display 2 is a 720x1280 7" LCD display designed specifically for Raspberry Pi devices (see https://www.raspberrypi.com/products/touch-display-2/). It connects in the same way as the original touch display, but the software setup on Compute Modules is slightly different as it uses a different display driver. See xref:../accessories/touch-display-2.adoc[Touch Display 2] for connection details.
58+
Touch Display 2 is an LCD display designed for Raspberry Pi devices (see https://www.raspberrypi.com/products/touch-display-2/). It's available in two sizes: 5 inches or 7 inches (diagonally). For more information about these options, see *Specifications* in xref:../accessories/touch-display-2.adoc[Touch Display 2].
7059

71-
Edit the /boot/firmware/config.txt file and add the following to enable Touch Display 2 on DISP1/DSI1. You will also need to add jumpers to J6 as indicated on the silkscreen.
60+
Regardless of the size that you use, Touch Display 2 connects in the same way as the original Touch Display, but the software setup on Compute Modules is slightly different because it uses a different display driver. For connection details, see *Connectors* in xref:../accessories/touch-display-2.adoc[Touch Display 2].
7261

73-
[source,ini]
74-
----
75-
dtoverlay=vc4-kms-dsi-ili9881-7inch
76-
----
62+
To enable Touch Display 2 on `DISP1/DSI1`, edit the `/boot/firmware/config.txt` file to add the following. You must also add jumpers to J6 as indicated on the silkscreen.
7763

78-
To use DISP0/DSI0, use the following:
64+
- For the *5-inch* display: `dtoverlay=vc4-kms-dsi-ili9881-5inch`
65+
- For the *7-inch* display: `dtoverlay=vc4-kms-dsi-ili9881-7inch`
66+
67+
To use `DISP0/DSI0`, append `,dsi0` to the overlay name.
68+
69+
- For the *5-inch* display: `dtoverlay=vc4-kms-dsi-ili9881-5inch,dsi0`
70+
- For the *7-inch* display: `dtoverlay=vc4-kms-dsi-ili9881-7inch,dsi0`
7971

80-
[source,ini]
81-
----
82-
dtoverlay=vc4-kms-dsi-ili9881-7inch,dsi0
83-
----

documentation/asciidoc/computers/config_txt/boot.adoc

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,37 @@ This property could be used to debug different xref:raspberry-pi.adoc#BOOT_ORDER
208208

209209
Default: ``
210210

211+
[[kernel_watchdog_timeout]]
212+
==== `kernel_watchdog_timeout`
213+
214+
If set to a non-zero value (in seconds), this property enables a hardware watchdog timer that is handed over to the operating system (OS) at boot. If the OS does not regularly "kick" or reset the watchdog, the system will be reset after the specified timeout.
215+
216+
This property sets the `systemd` `watchdog.open_timeout` parameter, which controls how long the OS has to initialize and start servicing the watchdog. The value is passed to the OS via the kernel command line. For ongoing operation, the OS must also regularly reset the watchdog, typically controlled by the `RuntimeWatchdogSec` parameter in `systemd`. For more information, see https://www.freedesktop.org/software/systemd/man/systemd-system.conf.html#RuntimeWatchdogSec=[systemd watchdog documentation].
217+
218+
[NOTE]
219+
====
220+
On Raspberry Pi OS Bookworm and earlier, the `RuntimeWatchdogSec` parameter is **not enabled by default** and this setting must be configured first in `/etc/systemd/system.conf` before the firmware kernel watchdog can be used.
221+
222+
If both `BOOT_WATCHDOG_TIMEOUT` (EEPROM/bootloader setting, only supported on Raspberry Pi 4 and 5) and `kernel_watchdog_timeout` are set, the bootloader will seamlessly hand over from the bootloader watchdog to the kernel watchdog at the point the OS is started. This provides continuous watchdog coverage from power-on through to OS runtime.
223+
224+
It is preferred to use `kernel_watchdog_timeout` rather than `dtparam=watchdog` because `kernel_watchdog_timeout` explicitly sets the `open_timeout` parameter, ensuring the watchdog is active until systemd takes over.
225+
====
226+
227+
This is useful for ensuring that the system can recover from OS hangs or crashes after the boot process has completed.
228+
229+
Default: `0` (disabled)
230+
231+
[[kernel_watchdog_partition]]
232+
==== `kernel_watchdog_partition`
233+
234+
If the kernel watchdog triggers (i.e. the OS fails to reset the watchdog within the timeout), this property specifies the partition number to boot from after the reset. This allows for automatic failover to a recovery or alternate partition.
235+
236+
You can use this in conjunction with the xref:config_txt.adoc#the-expression-filter[expression filter] to apply different settings or select a different boot flow when the watchdog triggers a reboot to a specific partition.
237+
238+
See also the xref:raspberry-pi.adoc#PARTITION[PARTITION] property for more information about how to use high partition numbers to detect a watchdog trigger.
239+
240+
Default: `0` (default partition)
241+
211242

212243
[[eeprom_write_protect]]
213244
==== `eeprom_write_protect`

documentation/asciidoc/computers/configuration/led_blink_warnings.adoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ If a Raspberry Pi fails to boot for some reason, or has to shut down, in many ca
3030
| 10
3131
| In HALT state
3232

33+
| 1
34+
| 2
35+
| SD card overcurrent detected
36+
3337
| 2
3438
| 1
3539
| Partition not FAT

0 commit comments

Comments
 (0)