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: docs/100-hardware/raspi5_knowledgebase.md
+30-13Lines changed: 30 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,74 +9,91 @@ This repository contains our knowledge base on Raspberry Pi 5.
9
9
# Camera firmware issues
10
10
11
11
For cameras based on `ov9281` connected via the MIPI port, such as the Arducam UC-599 Rev-B, you need to set up explicit firmware overlay. This is set up in `/boot/firmware/config.txt`. You need to disable automatic detection of cameras by commenting out or setting to `0` the line:
12
+
12
13
```
13
14
camera_auto_detect=1
14
15
```
16
+
15
17
and adding the following lines into the `[all]` section:
18
+
16
19
```
17
20
dtoverlay=ov9281
18
21
dtoverlay=ov9281,cam0
19
22
dtoverlay=ov9281,cam1
20
23
```
21
-
The `cam#` lines set the camera to be detectable on both the MIPI ports.
24
+
25
+
The `cam#` lines set the camera to be detectable on both the MIPI ports. The [arducam docs](https://docs.arducam.com/Raspberry-Pi-Camera/Native-camera/Global-Shutter/1MP-OV9281-OV9282/#raspberry-pi-5-cm5) specify that `arducam` should also be added, like this:
26
+
27
+
```
28
+
dtoverlay=ov9281,arducam
29
+
dtoverlay=ov9281,cam0,arducam
30
+
dtoverlay=ov9281,cam1,arducam
31
+
```
22
32
23
33
It may also be necessary to comment out the line
34
+
24
35
```
25
36
dtoverlay=arducam-pivariety
26
37
```
27
38
28
39
## Warning
29
40
30
-
Do not install the `vcdbg` package - it will remove the overlays needed for MIPI camera use.
31
-
It seems that the package is currently only compatible with older versions of the Raspberry Pi.
32
-
If you did this, remove all packages that were installed with `vcdbg` and reinstall `raspi-firmware`.
41
+
Do not install the `vcdbg` package - it will remove the overlays needed for MIPI camera use. It seems that the package is currently only compatible with older versions of the Raspberry Pi. If you did this, remove all packages that were installed with `vcdbg` and reinstall `raspi-firmware`.
33
42
34
43
# Using GPU acceleration in Singularity/Apptainer
35
44
36
-
By default, the Ubuntu 20.04 Singularity image we use to run ROS on the device has older MESA drivers that do not support hardware acceleration on the onboard Broadcom V3D 7.1 GPU.
37
-
This can be overcome by manually adding a non-official ppa to upgrade the drivers in Singularity.
45
+
By default, the Ubuntu 20.04 Singularity image we use to run ROS on the device has older MESA drivers that do not support hardware acceleration on the onboard Broadcom V3D 7.1 GPU. This can be overcome by manually adding a non-official ppa to upgrade the drivers in Singularity.
38
46
39
47
First, you need an overlay with enough space - at least 2GB should do it. If you already have an overlay image file that is too small, you can expand it using:
48
+
40
49
```
41
50
e2fsck -f overlay.img
42
51
resize2fs overlay.img 2000M
43
52
```
53
+
44
54
Next, load up the Singularity container with root privileges using
55
+
45
56
```
46
57
sudo ./wrapper.sh
47
58
```
59
+
48
60
and when inside do the following:
61
+
49
62
```
50
63
sudo apt-get install software-properties-common # adds the missing add-apt-repository command
51
64
chmod 1777 /tmp # necessary, since adding the ppa will be making temporary files here and by default it is not writable in the container
52
65
add-apt-repository ppa:kisak/kisak-mesa # press Enter when prompted
53
66
sudo apt install libglx-mesa0 libgl1-mesa-dri
54
67
```
55
-
This should have upgraded the MESA drivers to the newest version.
56
-
Lastly, note that the V3D 7.1 GPU only supports GLSL 3.10 - if you are using a shader that explicitly requires a newer version, try manually rewriting the requirement in the code, it may work. If not, you may be out of luck.
68
+
69
+
This should have upgraded the MESA drivers to the newest version. Lastly, note that the V3D 7.1 GPU only supports GLSL 3.10 - if you are using a shader that explicitly requires a newer version, try manually rewriting the requirement in the code, it may work. If not, you may be out of luck.
57
70
58
71
# Using WiringPi in Singularity/Apptainer
59
72
60
-
In order to control the GPIO pins inside of 20.04 Ubuntu Singularity image, you need to install an up-to-date version of the library inside the container.
61
-
These steps worked for me:
73
+
In order to control the GPIO pins inside of 20.04 Ubuntu Singularity image, you need to install an up-to-date version of the library inside the container. These steps worked for me:
62
74
63
75
1. Enter the wrapper with `sudo`
64
76
2. Download new versions of `autoconf` and `autoconf-archive`:
0 commit comments