Running CentOS-Stream 8 on Raspberry pi 4¶
Because the Automotive SIG does not currently publish the images that result from the OSBuild manifests, there are currently no CentOS Stream images available to run on a Raspberry Pi 4. However, CentOS Community member Pablo Greco created a CentOS Linux 8 image that can run on a Raspberry Pi 4.
Follow these steps to get a CentOS Stream 8 OS running on a Raspberry Pi 4.
- Download Pablo’s CentOS Linux 8 image for Raspberry Pi 4.
-
Unpack it.
unxz CentOS-Userland-8-stream-aarch64-RaspberryPI-Minimal-4-sda.raw.xz
-
Flash it onto your SD card.
Important
Change the block device, shown as
/dev/mmcblk0
in the example, according to your system.sudo dd if=CentOS-Userland-8-stream-aarch64-RaspberryPI-Minimal-4-sda.raw of=/dev/mmcblk0 status=progress bs=4M; sync
-
Using your preferred tool, such as gparted, gnome-disks, or another, extend the size of
/
because the default size may not be enough for what you want to do with your system. -
Insert the SD card into your Raspberry Pi 4.
- Boot the Raspberry Pi 4.
- Login as root using the password:
centos
. -
Connect the Raspberry Pi 4 to the internet.
Wifi is not yet functional.
If you are not near to a router and you cannot connect directly to it, use an intermediary internet-connected machine as a relay to connect the Raspberry Pi to an ethernet port.
- On the internet connected machine acting as a server, select Edit connections.
- Select the wired network that is connected to the Raspberry Pi.
- Select IPv4 Settings.
- Set Method: to Shared to other computers.
- Disconnect and reconnect the cable so
Raspberry Pi gets an IP address, shown as 10.x.x.x in
ifconfig
.
-
Fully update the system and reboot.
dnf update ... reboot
-
Switch to CentOS Stream.
dnf swap centos-linux-repos centos-stream-repos dnf distro-sync
-
Reboot again.
reboot