Post

RPi System Checks

A collection of some of the checks that I needed to do regarding Linux and Firmware versions.

Firmware version

EEPROM

This command is used to update the Raspberry Pi’s bootloader and EEPROM (Electrically Erasable Programmable Read-Only Memory) firmware.

The EEPROM firmware includes the firmware responsible for booting the Raspberry Pi, as well as other critical system functions. It is typically used for updating low-level firmware that is responsible for the initial boot process and hardware initialization.

It’s a more focused update for the bootloader and EEPROM and is less likely to introduce compatibility issues with the operating system and software.

  • Check firmware version with :
1
$sudo rpi-eeprom-update
  • Update it with:
1
$sudo rpi-eeprom-update

Recommended:

1
2
#shutdown -r now
reboot -r now

Regular Firmware

This command is used to update the Raspberry Pi’s kernel and firmware, which includes device drivers, firmware for peripherals, and other software-related components.

It updates the higher-level software components of the Raspberry Pi’s firmware. It can include updates to the Linux kernel and various device drivers, and it may also update userland software packages.

While it can bring new features and improvements, it has a greater potential to introduce compatibility issues with the operating system and software compared to rpi-eeprom-update.

  • Check current version:
1
vcgencmd version
  • or alternatively with:
1
hostnamectl
  • Update it with:
1
2
sudo apt install rpi-update
sudo rpi-update

Kernel version

The Linux kernel receives important updates regularly, you can check its version with:

1
uname --kernel-release

And to update it:

1
2
sudo apt update
#sudo apt full-upgrade

Checking Rpi’s Architechture

There are few alternatives:

1
dpkg --print-architecture
1
cat /proc/cpuinfo 
1
uname -a

Installed Packages

  • Check all installed packages with:
1
2
apt list --installed
#apt list --installed 2>/dev/null | grep -i 'py'

Dont forget to update all the packages regularly with:

1
$sudo apt update && sudo apt upgrade

Configure a VNC server

1
2
$ sudo apt-get install tightvncserver
$ vncserver

Remember that VNC default port is 5901.

Checking the Raspberry Pi’s Temperature

We can do this with one alias.

1
$  nano ~/.bash_aliases

Add this line to know the RPi’s temperature by typing ‘temp’ on the terminal:

1
alias temp='/opt/vc/bin/vcgencmd measure_temp' ### TEMP RPi

Use this command to be able to use the new alias already in the current session:

1
2
$ source ~/.bashrc
$ temp

Checking Performance and Temp - HTOP

A simple, yet useful CLI tool to check how well our RPi is doing:

1
2
3
4
apt install -y htop
#htop --v

htop

Stress Test - STUI

1
2
3
sudo apt install python3-pip
sudo pip install s-tui
#s-tui
This post is licensed under CC BY 4.0 by the author.