PHP Blog

Home Login

Raspberry Pi

Commands:

  1. uname -m
  2. dpkg-architecture --query DEB_HOST_ACRH (see https://pimylifeup.com/raspberry-pi-os-check-32-bit-64-bit)

Update Raspberry Pi

GPIO (https://www.circuits.dk/everything-about-raspberry-gpio/) [GPIO pins revert to input upon reset]

  1. level
  2. fsel 0-7 ->  (IN, OUT, ALT5, ALT4, ALT0, ALT1, ALT2, ALT3)
  3. alt
  4. func

External HDMI adjustments

hdmi_force_hotplug=1
hdmi_drive=1
hdmi_mode=16
disable_overscan=1

Using a NVMe SSd Hard drive hat - to configure follow these steps:

To boot a Raspberry Pi 5 from an NVMe SSD, flash the Raspberry Pi OS onto the SSD using the Raspberry Pi Imager, install it via an M.2 HAT+, then run sudo raspi-config to change the boot order to "NVMe/USB" under "Advanced Options". Finally, reboot and remove the SD card. 


Prerequisites 


Step-by-Step Configuration: 

1 Install the SSD: Attach your M.2 NVMe SSD to the Raspberry Pi 5 using the M.2 HAT+.

2 Flash the OS: Use Raspberry Pi Imager on your computer to flash the OS onto the NVMe SSD (you may need a USB-to-NVMe adapter for this step).

3 Update Bootloader:

- Boot your Pi 5 from the SD card.

- Open a terminal and run: sudo apt update and sudo apt full-upgrade.

- Ensure the bootloader is up to date: sudo rpi-eeprom-config --edit.

4 Configure Boot Order:

- Run sudo raspi-config.

- Navigate to Advanced Options > Boot Order.

- Select the option that boots from NVMe/USB.

5 Enable PCIe (If necessary): If the drive is not detected, you may need to add dtparam=pcie_probe=1 to your /boot/firmware/config.txt file.

6 Finalize: Select Finish, reboot, and remove the SD card. 



Posted by: admin
2026-03-14 12:59:51

All rights reserved | 2026