Skip to content

Raspberry Pi 5 16GB

My Raspberry Pi 5 16GB is being used as another arm64 Proxmox server.

โš™ Config

๐Ÿ“Ÿ Enable PCIe

Tip

When connecting the PCIe adapter to the pi, ensure that the correct end of the ribbon cable is being plugged into the correct connector. Typically, the ribbon cable ends are labeled.

/boot/firmware/config.txt

echo "dtparam=pciex1_gen=3" | sudo tee -a config.txt
echo "dtparam=pciex1" | sudo tee -a config.txt
dtparam=pciex1_gen=3
dtparam=pciex1

๐Ÿ•ต Enable auto detection PCIe and booting from NVMe

rpi-eeprom-config --edit
sudo rpi-eeprom-config --edit
PCIE_PROBE=1

BOOT_ORDER=0xf416

The 6 means to enable booting from nvme. Reboot Raspberry Pi 5 and try to use lsblk or lspci -vvv to get more details of the PCIe device.

๐Ÿ”Œ Enable 5A PSU

If apt is slow, it might be due to the pi reducing the power input.

rpi-eeprom-config --edit
sudo rpi-eeprom-config --edit
PSU_MAX_CURRENT=5000

๐Ÿ“บ Set Resolution

When using a TV as a temporary monitor, usually when troubleshooting the booting from a USB or NVMe drive, the text size can be way too small. This is how to change the resolution on boot of the command line so that it can be read more easily on the TV.

Warning

This does not seem to work for the Raspberry Pi 4 for some reason. Perhaps it's the display port mapping?

/boot/firmware/cmdline.txt

sed -i `1s/$/ video=HDMI-A-1:1920x1080M@60D/' /boot/firmware/cmdline.txt
video=HDMI-A-1:1920x1080M@60D

Proxmox

See Raspberry Pi 4 8GB.

๐Ÿงน Swap

The Raspberry Pi uses dphys-swapfile to manage it's swap.

For Proxmox, I'm using a logical volume instead of a swap file.

๐Ÿ“ Change Swap Size

Check the free space

free -h

Turn of swap

dphys-swapfile swapoff

Update size in /etc/dphys-swapfile

CONF_SWAPSIZE=2048

Resetup swap and turn it back on

(
  dphys-swapfile setup
  dphys-swapfile swapon
)

Check for the new size

free -h

๐Ÿšซ Disable Permanently

Disable dphys-swapfile temporarily

dphys-swapfile swapoff

Stop the service

systemctl stop dphys-swapfile

Disable the service

systemctl disable dphys-swapfile

Remove the swap file to save disk space

rm /var/swap

๐Ÿ’พ LVM

See LVM.

๐Ÿ”— References