Building RT Kernel on Debian 12

  • JT
  • JT's Avatar Topic Author
  • Away
  • Administrator
  • Administrator
More
09 Dec 2022 12:49 - 09 Dec 2022 12:59 #258996 by JT
The packages libqt4-dev and kernel-package is not in Debian 12. I think I found the replacement for libqt4-dev with qtbase5-dev as make xconfig works but I can't find a replacement package for kernel-package.

Edit: I can't find fully preemptable kernel option with the search tool.

Edit: Ctrl F and full finds the fully preemptable kernel.

JT
Last edit: 09 Dec 2022 12:59 by JT.

Please Log in or Create an account to join the conversation.

  • JT
  • JT's Avatar Topic Author
  • Away
  • Administrator
  • Administrator
More
09 Dec 2022 13:20 - 09 Dec 2022 14:35 #258997 by JT
Replied by JT on topic Building RT Kernel on Debian 12
Doing sudo make modules_install I get the following error:
DEPMOD 4.19.265-rt117
depmod: WARNING: could not open modules.builtin.modinfo at /lib/modules/4.19.265-rt117: No such file or directory

JT
Last edit: 09 Dec 2022 14:35 by JT.

Please Log in or Create an account to join the conversation.

  • JT
  • JT's Avatar Topic Author
  • Away
  • Administrator
  • Administrator
More
09 Dec 2022 13:43 #258998 by JT
Replied by JT on topic Building RT Kernel on Debian 12
After running make xconfig and just selecting the rt kernel I get this in the terminal.
# using defaults found in /boot/config-6.0.0-5-rt-amd64
#
/boot/config-6.0.0-5-rt-amd64:1589:warning: symbol value 'm' invalid for NF_TABLES_BRIDGE
/boot/config-6.0.0-5-rt-amd64:3996:warning: symbol value 'm' invalid for JOYSTICK_IFORCE_USB
/boot/config-6.0.0-5-rt-amd64:3997:warning: symbol value 'm' invalid for JOYSTICK_IFORCE_232
/boot/config-6.0.0-5-rt-amd64:4978:warning: symbol value 'm' invalid for WATCHDOG_CORE
/boot/config-6.0.0-5-rt-amd64:5579:warning: symbol value 'm' invalid for RADIO_ADAPTERS
/boot/config-6.0.0-5-rt-amd64:6342:warning: symbol value 'm' invalid for FB_BACKLIGHT
/boot/config-6.0.0-5-rt-amd64:9215:warning: symbol value 'm' invalid for ANDROID_BINDER_IPC
#
# configuration written to .config
#

JT

Please Log in or Create an account to join the conversation.

  • JT
  • JT's Avatar Topic Author
  • Away
  • Administrator
  • Administrator
More
09 Dec 2022 13:57 #259000 by JT
Replied by JT on topic Building RT Kernel on Debian 12
I tried again and only selected the rt kernel it seems to be building... the first time I deselected stuff like wifi and bluetooth and industrial and a few other things... maybe that was not a good idea.

JT

Please Log in or Create an account to join the conversation.

  • JT
  • JT's Avatar Topic Author
  • Away
  • Administrator
  • Administrator
More
09 Dec 2022 13:59 #259001 by JT
Replied by JT on topic Building RT Kernel on Debian 12
This is what I ended up doing for 4.19.265:
cd ~
sudo apt update
sudo apt install build-essential bison flex bin86 qtbase5-dev
sudo apt install  libncurses-dev pkg-config libelf-dev libssl-dev

mkdir k4-19-265
cd k4-19-265
wget https://mirrors.edge.kernel.org/pub/linux/kernel/v4.x/linux-4.19.265.tar.xz
wget https://mirrors.edge.kernel.org/pub/linux/kernel/projects/rt/4.19/patch-4.19.265-rt117.patch.gz
tar -xpf linux-4.19.265.tar.xz
gunzip patch-4.19.265-rt117.patch.gz
cp patch-4.19.265-rt117.patch linux-4.19.265
cd linux-4.19.265
cat patch-4.19.265-rt117.patch | patch -p1
make xconfig
make -j $(nproc)
sudo make modules_install
sudo make install

JT

Please Log in or Create an account to join the conversation.

  • JT
  • JT's Avatar Topic Author
  • Away
  • Administrator
  • Administrator
More
09 Dec 2022 14:35 #259003 by JT
Replied by JT on topic Building RT Kernel on Debian 12
Hmm maybe you can't build a 4.x kernel on:
john@cave:~$ uname -a
Linux cave 6.0.0-5-rt-amd64 #1 SMP PREEMPT_RT Debian 6.0.10-1 (2022-11-26) x86_64 GNU/Linux

I got the same error as before with sudo make modules_install

JT

Please Log in or Create an account to join the conversation.

  • JT
  • JT's Avatar Topic Author
  • Away
  • Administrator
  • Administrator
More
09 Dec 2022 15:23 #259006 by JT
Replied by JT on topic Building RT Kernel on Debian 12
Maybe you can't build a 4.x kernel from 6.x...

This is how I did 6.0.5
Debian 12 build RT kernel

cd ~
sudo apt update
sudo apt install build-essential bison flex bin86 qtbase5-dev pahole
sudo apt install  libncurses-dev pkg-config libelf-dev libssl-dev

mkdir k6-0-5
cd k6-0-5
wget https://mirrors.edge.kernel.org/pub/linux/kernel/v6.x/linux-6.0.5.tar.xz
wget https://mirrors.edge.kernel.org/pub/linux/kernel/projects/rt/6.0/patch-6.0.5-rt14.patch.gz
tar -xpf linux-6.0.5.tar.xz
gunzip patch-6.0.5-rt14.patch.gz
cp patch-6.0.5-rt14.patch linux-6.0.5
cd linux-6.0.5
cat patch-6.0.5-rt14.patch | patch -p1
make xconfig
make -j $(nproc)
sudo make modules_install
sudo make install

JT
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

Time to create page: 0.199 seconds
Powered by Kunena Forum