Raspberry Pi 5 – Boot from NVMe M.2 SSD
January 19th, 2024 11:34 AM Mr. Q Categories: Rasberry PI
Set time format
Copy001%a / %h, %d %Y / %I:%M %p
Update PI
Update Pi packages
Copy001sudo apt update
002sudo apt list --upgradable
003sudo apt-get full-upgrade
004sudo reboot
If failure
Copy001sudo apt --fix-broken install
002sudo dpkg --configure -a
Update Pi firmware
Copy001sudo rpi-update
002sudo apt reinstall raspi-firmware raspberrypi-kernel raspberrypi-bootloader -y
003sudo reboot
Verify M.2 is visible
Copy001lsblk
002lspci
Seup Geekworm X1001
Avoid: Phison controller
config.txt
Copy001sudo nano /boot/config.txt
Copy001# Enable the PCIe External connector.
002dtparam=pciex1
003# This line is an alias for above
004# (you can use either/or to enable the port).
005dtparam=nvme
006
007# Increase USB current to 1A
008max_usb_current=1
009usb_max_current_enable=1
010
Update boot config
Copy001sudo rpi-eeprom-config --edit
Copy001BOOT_UART=1
002POWER_OFF_ON_HALT=0
003BOOT_ORDER=0xf416
004
005PCIE_PROBE=1
Testing
Copy001htop --d 10
Copy001sudo dd if=/dev/nvme0 of=./Testingfile bs=100M count=10 oflag=direct
002sudo dd if=/dev/nvme0n1 of=./Testingfile bs=100M count=10 oflag=direct
Copy001while true; do sudo dd if=/dev/nvme0n1 of=./testingfile bs=10M count=100 oflag=direct iflag=fullblock; done
002
003rm testingfile
004
Copy001mkdir websites
002cd websites/
003wget -h
004wget -r -np -l 5 -A zip https://toolboxaid.com