1. intro
like 2 share my experience about running rock9-u4 on a raspberry5.
2. step by step
download and flash on a microsd https://dl.rockylinux.org/pub/sig/9/altarch/aarch64/images/RockyRpi_9.2.img.xz
boot the microsd on a raspberry4
update to the latest version of rocky9-u4
yum -y update --refresh
rpm -q raspberrypi2-kernel4
raspberrypi2-kernel4-6.1.31-v8.1.el9.altarch.aarch64
uname -r
6.1.31-v8.1.el9.altarch
steal the repo of almalinux https://repo.almalinux.org/rpi/9/aarch64/os/
vi /etc/yum.repos.d/almalinux.repo
[almalinux]
name=almalinux
baseurl=https://repo.almalinux.org/rpi/9/aarch64/os/
enabled=0
gpgcheck=0
yum -y update --refresh --enablerepo almalinux
poweroff the raspberry4 and put the microsd in a raspberry5
rpm -q raspberrypi2-kernel4
raspberrypi2-kernel4-6.6.31-20240529.v8.1.el9.aarch64
uname -r
6.6.31-20240529.v8.1.el9