Skip to content

Commit

Permalink
RSDK-5988 - Add RPI 5 support for csi-cam-pi module (#15)
Browse files Browse the repository at this point in the history
* Working libcamera from src

* Remove gst cache refresh
  • Loading branch information
seanavery authored Dec 8, 2023
1 parent 24be0ab commit 3f9f66d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
13 changes: 12 additions & 1 deletion etc/Dockerfile.mod.pi
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ ARG BASE_IMG

FROM ${BASE_IMG}

ENV HOME /root
ENV DEBIAN_FRONTEND=noninteractive

# Install software-properties-common to get apt-add-repository
Expand All @@ -19,7 +20,6 @@ RUN apt-get -y update

# Install GST dev files
RUN apt-get -y install \
libcamera0 \
libgstreamer1.0-dev \
libgstreamer1.0-0 \
gstreamer1.0-x \
Expand All @@ -42,6 +42,17 @@ RUN apt-get install libgmock-dev && \
make && \
cp lib/*.a /usr/lib;

# Install Raspberry Pi libcamera from source
RUN mkdir -p ${HOME}/opt/src
RUN apt-get -y install meson
RUN apt-get -y install libyaml-dev python3-yaml python3-ply python3-jinja2
RUN cd ${HOME}/opt/src && \
git clone https://github.com/raspberrypi/libcamera.git && \
cd libcamera && \
meson setup build --prefix=/usr && \
ninja -C build install
RUN rm -rf ${HOME}/opt/src/libcamera

# Build and package the CSI camera driver
ADD ../ /root/opt/src/csi-camera
RUN cd /root/opt/src && \
Expand Down
5 changes: 2 additions & 3 deletions etc/viam-csi-pi-arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ AppDir:
- sourceline: deb http://archive.raspberrypi.org/debian/ bullseye main
include:
- libgstreamer1.0-0:arm64
- libcamera0:arm64
- gstreamer1.0-x:arm64
- gstreamer1.0-plugins-base:arm64
- gstreamer1.0-plugins-good:arm64
Expand All @@ -40,12 +39,12 @@ AppDir:
- /lib/aarch64-linux-gnu/libpthread*
- /usr/lib/aarch64-linux-gnu/gstreamer-1.0/*
- /usr/lib/aarch64-linux-gnu/libcamera*
- /usr/lib/aarch64-linux-gnu/libcamera/*
- /usr/lib/libgst*
- /usr/share/libcamera*
- /usr/share/libcamera/*
exclude:
- usr/share/doc
- usr/share/man
# - usr/lib/aarch64-linux-gnu/gconv
runtime:
path_mappings:
- /usr/lib/aarch64-linux-gnu/libcamera/:$APPDIR/usr/lib/aarch64-linux-gnu/libcamera/
Expand Down

0 comments on commit 3f9f66d

Please sign in to comment.