Building kernel 4.16.8 on Debian Stretch

More
26 May 2018 14:46 #111147 by EricKeller
Building kernel 4.16.8 on Debian Stretch was created by EricKeller
This script is reported to work:
If you cut and paste, the line endings might not be right
cd ~
sudo apt-get update
sudo apt-get install build-essential bin86 libqt4-dev libncurses5-dev pkg-config
sudo apt-get install bison flex libelf-dev bc libssl-dev
mkdir rtlinux
cd rtlinux
wget https://www.kernel.org/pub/linux/kernel/v4.x/linux-4.16.8.tar.xz
wget https://www.kernel.org/pub/linux/kernel/projects/rt/4.16/patch-4.16.8-rt3.patch.gz
tar -xpf linux-4.16.8.tar.xz
gunzip patch-4.16.8-rt3.patch.gz
cp patch-4.16.8-rt3.patch linux-4.16.8
cd linux-4.16.8
cat patch-4.16.8-rt3.patch | patch -p1
make xconfig

# there are 3 main things you need to set in xconfig
# enable hpet
# set 64 bit if your OS is 64 bit and 
# set for fully preemptable kernel

make -j4
sudo make modules_install
sudo make install
The following user(s) said Thank You: KCJ

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

More
26 May 2018 15:06 #111148 by EricKeller
Replied by EricKeller on topic Building kernel 4.16.8 on Debian Stretch
making your new kernel default for boot:
unix.stackexchange.com/questions/198003/...paign=google_rich_qa

That is a bit confusing though

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

More
26 May 2018 15:09 #111149 by EricKeller
Replied by EricKeller on topic Building kernel 4.16.8 on Debian Stretch
this is for Prempt kernel, don't see how to edit anything

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

More
26 May 2018 15:26 #111150 by EricKeller
This should work on any system that uses apt, some packages may not be required depending on your distribution, but it doesn't hurt anything to try to install them.

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

More
30 May 2018 04:08 - 30 May 2018 04:24 #111301 by KCJ
The URL for the 4.16.8-rt3 patch is no longer valid. This causes the above script to silently fail to apply the patch and you will not have the proper options available on the kernel config screen.

Here is the updated script. Note, this installs 4.16.12 instead of 4.16.8.
cd ~  
sudo apt-get update  
sudo apt-get install build-essential bin86 libqt4-dev libncurses5-dev pkg-config bison flex libssl-dev libelf-dev  
mkdir rtlinux  
cd rtlinux  
wget https://www.kernel.org/pub/linux/kernel/v4.x/linux-4.16.12.tar.xz  
wget https://www.kernel.org/pub/linux/kernel/projects/rt/4.16/patch-4.16.12-rt5.patch.gz
tar -xpf linux-4.16.12.tar.xz  
gunzip patch-4.16.12-rt5.patch.gz  
cp patch-4.16.12-rt5.patch linux-4.16.12  
cd linux-4.16.12  
cat patch-4.16.12-rt5.patch | patch -p1  
make xconfig  
make -j4  
sudo make modules_install  
sudo make install
Last edit: 30 May 2018 04:24 by KCJ. Reason: Update script

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

Time to create page: 0.064 seconds
Powered by Kunena Forum