Skip to content

Raspberry Pi 4 8GB

I recently converted my Raspberry Pi 4 8GB to run Home Assistant so that I can use my NUC as another Proxmox node.

⚙ Config

Raspberry Pi 4 boot from usb

sudo raspi-config
GUI
Advanced Options -> Boot Order -> B2 NVMe/USB
sudo reboot

Sometimes, the USB adapter is slow and disconnections. The device quirks may need to be set.

Get vendorId and deviceId

sudo dmesg | grep usb
Output
[1.301989] usb 2-1: new SuperSpeed Gen 1 USB device number 2 using xhci_hcd
[1.332965] usb 2-1: New USB device found, idVendor=152d, idProduct=1561, bcdDevice= 1.00
[1.332999] usb 2-1: New USB device strings: Mfr=2, Product=3, SerialNumber=1
[1.333026] usb 2-1: Product: ASM105x
[1.333048] usb 2-1: Manufacturer: ASMT
[1.333071] usb 2-1: SerialNumber: 123456789B79F

Verify the vendorId and deviceId

sudo lsusb
Output
Bus 002 Device 002: ID 152d:1561 ASMedia Technology Inc. Name: ASM1051E SATA 6Gb/s bridge

Combine the vendorId and deviceId to get make up the quirks.

Example

usb-storage.quirks=152d:1561:u

Add the quirks to /boot/firmware/cmdline.txt

sed -i '1s/$/ usb-storage.quirks=152d:1561:u console=serial0,115200 console=tty1 root=PARTUUID=fcf4cb94-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait/' cmdline.txt
usb-storage.quirks=152d:1561:u console=serial0,115200 console=tty1 root=PARTUUID=fcf4cb94-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait

/boot/firmware/config.txt

echo program_usb_boot_mode=1 | sudo tee -a config.txt
program_usb_boot_mode=1

Check

mount | egrep "/([[:space:]]|boot)"
vcgencmd otp_dump | grep 17
17:1020000a=USB boot disabled
17:3020000a=USB boot enabled
sudo raspi-config
sudo rpi-update
sudo raspi-config --expand-rootfs
raspi-config
rpi-update
raspi-config --expand-rootfs

🧹 Swap

See Raspberry Pi 5 16GB.

Argon Fan Hat

Install

curl https://download.argon40.com/argonfanhat.sh | bash

Uninstall

argonone-uninstall

Config

argonone-config

⚙ Config

  1. Without the ARGON FAN HAT script the FAN will run constantly at 50% FAN SPEED
  2. Upon installation of the script, DEFAULT SETTINGS of the ARGON FAN HAT are as follows:
CPU TEMP FAN SPEED / POWER
55°C 10 %
60°C 55 %
65°C 100 %

🔌 Power Buttons

ARGON FAN HAT ACTION FUNCTION
OFF (FROM SOFT SHUTDOWN) Short Press Turn ON
ON Short Press Nothing
ON Long Press (> 3 Secs) Initiate Soft Shutdown (NO POWER CUT)
ON Double Tap Reboot

🔗 References