wget -q -O - https://apt.pivccu.de/piVCCU/public.key | sudo tee /usr/share/keyrings/pivccu.asc
echo "deb [signed-by=/usr/share/keyrings/pivccu.asc] https://apt.pivccu.de/piVCCU stable main" | sudo tee /etc/apt/sources.list.d/pivccu.list
sudo apt update
Instead of stable
you can also use the testing
tree, but be aware testing sometimes means not that stable.
sudo apt install build-essential bison flex libssl-dev
sudo apt install raspberrypi-kernel-headers pivccu-modules-dkms
sudo apt install hb-rf-eth
sudo apt install pivccu-modules-raspberrypi
sudo bash -c 'cat << EOT >> /boot/firmware/config.txt
dtoverlay=pi3-disable-bt
EOT'
sudo systemctl disable hciuart.service
sudo bash -c 'cat << EOT >> /boot/firmware/config.txt
dtoverlay=pi3-miniuart-bt
enable_uart=1
force_turbo=1
core_freq=250
EOT'
sudo sed -i /boot/firmware/cmdline.txt -e "s/console=serial0,[0-9]\+ //"
sudo sed -i /boot/firmware/cmdline.txt -e "s/console=ttyAMA0,[0-9]\+ //"
sudo ip link show | cut -d' ' -f2 | cut -d: -f1 | grep -e '^e.*'
sudo apt remove dhcpcd5
sudo apt install bridge-utils
sudo bash -c 'cat << EOT > /etc/network/interfaces
source-directory /etc/network/interfaces.d
auto lo
iface lo inet loopback
iface eth0 inet manual
auto br0
iface br0 inet dhcp
bridge_ports eth0
EOT'
sudo apt remove dhcpcd5
sudo apt install bridge-utils
sudo bash -c 'cat << EOT > /etc/network/interfaces
source-directory /etc/network/interfaces.d
auto lo
iface lo inet loopback
iface eth0 inet manual
auto br0
iface br0 inet static
bridge_ports eth0
address <address>
netmask <netmask>
gateway <gateway>
dns-nameservers <dns1> <dns2>
EOT'
sudo reboot
sudo apt install pivccu3
sudo pivccu-info
The stable kernel for the Raspberry Pi is distributed via apt. Normally you should use this kernel. But still there are some reasons to use rpi-update to install the latest (unstable) kernel. Since version 2.0.7 the pivccu-modules-raspberrypi does support kernels installed by rpi-update. Be aware, that piVCCU start after the reboot with a new kernel will take approx. 15 minutes.
Create full backup of your SD card
sudo apt update
sudo apt upgrade
sudo dpkg -s pivccu | grep 'Version'
sudo apt install pivccu-modules-raspberrypi raspberrypi-kernel
(In this step, the two packages should be get installed and the package raspberrypi-kernel-pivccu should be get removed)
sudo reboot