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: documentation/asciidoc/accessories/ai-camera/model-conversion.adoc
+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
@@ -26,21 +26,21 @@ The Edge-MDT package takes a parameter to select between installing the PyTorch
26
26
27
27
[tabs]
28
28
======
29
-
TensorFlow::
29
+
PyTorch::
30
30
+
31
31
[source,console]
32
32
----
33
-
$ pip install edge-mdt[tf]
33
+
$ pip install edge-mdt[pt]
34
34
----
35
-
+
36
-
TIP: Always use the same version of TensorFlow you used to compress your model.
37
35
38
-
PyTorch::
36
+
TensorFlow::
39
37
+
40
38
[source,console]
41
39
----
42
-
$ pip install edge-mdt[pt]
40
+
$ pip install edge-mdt[tf]
43
41
----
42
+
+
43
+
TIP: Always use the same version of TensorFlow you used to compress your model.
44
44
======
45
45
46
46
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:
62
62
63
63
[tabs]
64
64
======
65
-
TensorFlow::
65
+
PyTorch::
66
66
+
67
67
[source,console]
68
68
----
69
-
$ imxconv-tf -i <compressed Keras model> -o <output folder>
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.
5
4
6
5
=== Connect a display to DISP1/DSI1
7
6
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.
9
8
10
-
To connect a display to DISP1/DSI1:
9
+
To connect a display to `DISP1/DSI1`:
11
10
12
11
. 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.
18
18
. 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`].
25
20
. Reboot your Compute Module with `sudo reboot`. Your device should detect and begin displaying output to your display.
26
21
27
22
=== Connect a display to DISP0/DSI0
28
23
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:
37
25
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.
38
32
. 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`.
45
34
. Reboot your Compute Module with `sudo reboot`. Your device should detect and begin displaying output to your display.
46
35
47
36
=== Disable touchscreen
48
37
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.
50
39
51
40
To disable the touchscreen element, but still use the display, add the following line to `/boot/firmware/config.txt`:
52
41
@@ -66,18 +55,17 @@ ignore_lcd=1
66
55
67
56
== Attaching the Touch Display 2 LCD panel
68
57
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].
70
59
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].
72
61
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.
77
63
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`
Copy file name to clipboardExpand all lines: documentation/asciidoc/computers/config_txt/boot.adoc
+31Lines changed: 31 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -208,6 +208,37 @@ This property could be used to debug different xref:raspberry-pi.adoc#BOOT_ORDER
208
208
209
209
Default: ``
210
210
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.
0 commit comments