Enhancing Skills

Raspberry Pi 5 – Boot from NVMe M.2 SSD


Set time format

%a / %h, %d %Y / %I:%M %p
Copy

001%a / %h, %d %Y / %I:%M %p

Update PI

Update Pi packages

sudo apt update
sudo apt list --upgradable
sudo apt-get full-upgrade
sudo reboot
Copy

001sudo apt update

002sudo apt list --upgradable

003sudo apt-get full-upgrade

004sudo reboot

If failure

sudo apt --fix-broken install
sudo dpkg --configure -a
Copy

001sudo apt --fix-broken install

002sudo dpkg --configure -a

Update Pi firmware

sudo rpi-update
sudo apt reinstall raspi-firmware raspberrypi-kernel raspberrypi-bootloader -y
sudo reboot
Copy

001sudo rpi-update

002sudo apt reinstall raspi-firmware raspberrypi-kernel raspberrypi-bootloader -y

003sudo reboot

Verify M.2 is visible

lsblk
lspci
Copy

001lsblk

002lspci


Seup Geekworm X1001

Avoid: Phison controller

config.txt

sudo nano /boot/config.txt
Copy

001sudo nano /boot/config.txt

# Enable the PCIe External connector.
dtparam=pciex1
# This line is an alias for above 
# (you can use either/or to enable the port).
dtparam=nvme

# Increase USB current to 1A
max_usb_current=1
usb_max_current_enable=1
Copy

001# 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

sudo rpi-eeprom-config --edit
Copy

001sudo rpi-eeprom-config --edit

BOOT_UART=1
POWER_OFF_ON_HALT=0
BOOT_ORDER=0xf416

PCIE_PROBE=1
Copy

001BOOT_UART=1

002POWER_OFF_ON_HALT=0

003BOOT_ORDER=0xf416

004

005PCIE_PROBE=1


Testing

htop --d 10
Copy

001htop --d 10

sudo dd if=/dev/nvme0 of=./Testingfile bs=100M count=10 oflag=direct
sudo dd if=/dev/nvme0n1 of=./Testingfile bs=100M count=10 oflag=direct
Copy

001sudo 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

while true; do sudo dd if=/dev/nvme0n1 of=./testingfile bs=10M count=100 oflag=direct iflag=fullblock; done

rm testingfile
Copy

001while true; do sudo dd if=/dev/nvme0n1 of=./testingfile bs=10M count=100 oflag=direct iflag=fullblock; done

002

003rm testingfile

004

mkdir websites
cd websites/
wget -h
wget -r -np -l 5 -A zip https://toolboxaid.com
Copy

001mkdir websites

002cd websites/

003wget -h

004wget -r -np -l 5 -A zip https://toolboxaid.com


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.