I am trying to apply PREEMPT-RT path to Ububntu 22.04 kernel 6.1.31-sun50iw9 on Orange PI Zero3 board.
After executing commands:
mkdir ~/kernel
cd ~/kernel
wget https://mirrors.edge.kernel.org/pub/linux/kernel/v6.x/linux-6.1.109.tar.gz
tar -xzf linux-6.1.109.tar.gz
wget https://cdn.kernel.org/pub/linux/kernel/projects/rt/6.1/patch-6.1.109-rt42.patch.gz
gunzip patch-6.1.109-rt42.patch.gz
cd linux-6.1.109/
patch -p1 < ../patch-6.1.109-rt42.patch
cp /boot/config-6.1.31-sun50iw9 .config
yes '' | make oldconfig
make menuconfig
# set CONFIG_PREEMPT_RT, CONFIG_HIGH_RES_TIMERS, CONFIG_NO_HZ_FULL, CONFIG_HZ_1000, CPU_FREQ_DEFAULT_GOV_PERFORMANCE
make -j `nproc` deb-pkg
sudo dpkg -i ../*.deb
/boot directory contents
orangepi@orangepizero3:~/kernel$ ls -la /boot
total 102828
drwxr-xr-x 3 root root 4096 Sep 23 22:37 .
drwxr-xr-x 19 root root 4096 Jul 12 03:20 ..
-rw-r--r-- 1 root root 230456 Jul 12 03:20 boot.bmp
-rw-r--r-- 1 root root 3564 Jul 12 03:19 boot.cmd
-rw-rw-r-- 1 root root 3636 Jul 12 03:22 boot.scr
-rw-r--r-- 1 root root 210446 Sep 21 19:12 config-6.1.109-rt41
-rw-r--r-- 1 root root 206846 Jul 11 08:37 config-6.1.31-sun50iw9
lrwxrwxrwx 1 root root 19 Jul 12 03:19 dtb -> dtb-6.1.31-sun50iw9
drwxr-xr-x 3 root root 4096 Jul 12 03:19 dtb-6.1.31-sun50iw9
lrwxrwxrwx 1 root root 23 Jul 12 03:19 Image -> vmlinuz-6.1.31-sun50iw9
-rw-r--r-- 1 root root 19379211 Sep 23 22:37 initrd.img-6.1.109-rt41
-rw-r--r-- 1 root root 19483180 Jul 12 03:24 initrd.img-6.1.31-sun50iw9
-rwxr-xr-x 1 root root 1152056 Jul 12 03:20 logo.bmp
-rw-r--r-- 1 root root 0 Jul 12 03:19 .next
-rw-r--r-- 1 root root 156 Jul 12 03:21 orangepiEnv.txt
-rw-r--r-- 1 root root 1542 Jul 12 03:21 orangepi_first_run.txt.template
-rw-r--r-- 1 root root 3453070 Sep 21 19:12 System.map-6.1.109-rt41
-rw-r--r-- 1 root root 3544938 Jul 11 08:37 System.map-6.1.31-sun50iw9
lrwxrwxrwx 1 root root 20 Sep 23 22:37 uInitrd -> uInitrd-6.1.109-rt41
-rw-r--r-- 1 root root 19379275 Sep 23 22:37 uInitrd-6.1.109-rt41
-rw-r--r-- 1 root root 19483244 Jul 12 03:24 uInitrd-6.1.31-sun50iw9
-rw-r--r-- 1 root root 9295735 Sep 21 19:12 vmlinuz-6.1.109-rt41
-rw-r--r-- 1 root root 9419024 Jul 11 08:37 vmlinuz-6.1.31-sun50iw9
and kernel version has not changed. Seems like I should change some u-boot settings, could anybody hepl me with it?
I also tried
sudo ln -sf vmlinuz-6.1.109-rt41 Image
console output
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... Scanning for Btrfs filesystems
done.
Begin: Waiting for root file system ... Begin: Running /scripts/local-block ... done.
done.
Gave up waiting for root file system device. Common problems:
- Boot args (cat /proc/cmdline)
- Check rootdelay= (did the system wait long enough?)
- Missing modules (cat /proc/modules; ls /dev)
ALERT! UUID=2a44ed57-6df2-44b4-9d51-99000c47e55b does not exist. Dropping to a shell!
New contributor
darwin kt315 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.