-
Notifications
You must be signed in to change notification settings - Fork 84
Open
Description
Following the instructions on the README, when I tried to install it on an RPi 4 running Bookworm, I kept running into an error with the epaper driver. The problem is that it creates epd_fuse not epd-fuse. Here's the script I wrote to correct the issue:
#!/bin/bash
set -e
# System update and enable interfaces
sudo apt-get update && sudo apt-get -y upgrade
sudo apt autoremove -y
sudo raspi-config nonint do_spi 0
sudo raspi-config nonint do_i2c 0
# Install dependencies
sudo apt install libraspberrypi-dev libfuse-dev build-essential git \
python3-pip python3-setuptools python3-dev python3-pil \
python3-spidev python3-rpi.gpio python3-click python3-dateutil \
whiptail -y
# Build and install EPD driver
mkdir -p /tmp/papirus && cd /tmp/papirus
git clone https://github.com/repaper/gratis.git && cd gratis
# Build and install
make rpi EPD_IO=epd_io.h PANEL_VERSION='V231_G2'
sudo make rpi-install EPD_IO=epd_io.h PANEL_VERSION='V231_G2'
# Copy binary with correct name for systemd service
sudo cp ./PlatformWithOS/driver-common/epd_fuse /usr/local/bin/epd-fuse
sudo chmod +x /usr/local/bin/epd-fuse
# Start the service
sudo modprobe spi_bcm2835
sudo udevadm trigger
sudo systemctl start epd-fuse.service
# Install PaPiRus
git clone https://github.com/PiSupply/PaPiRus.git
echo 'export PATH="$HOME/PaPiRus/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
cd PaPiRus
chmod +x install && sudo ./install
The trick was to rename the driver and then restart the service properly.
Metadata
Metadata
Assignees
Labels
No labels