LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-08-2016, 05:54 PM   #16
lazardo
Member
 
Registered: Feb 2010
Location: SD Bay Area
Posts: 274

Rep: Reputation: Disabled

The kernel.org landing page shows a range of longterm support kernels including incremental patches and their change logs. Here's a different approach using 14.1 and its original 3.10.17 kernel as an example

There have been 86 patches released in the 3.10.X longterm tree since .17 (latest on 28 August, 2016), but only .103 appeared in slackware-14.1/patches/packages as it was a rare kernel superbug.
https://www.kernel.org/pub/linux/kernel/v3.x/ has change logs showning what was patched, https://www.kernel.org/pub/linux/kernel/v3.x/incr/ has incremental patches matching each change log.
Code:
# assumes standard /usr/src/linux setup w source not owned by root

cd /usr/src

# fetch change log and patch
wget -nv https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.10.18
wget -nv https://www.kernel.org/pub/linux/kernel/v3.x/incr/patch-3.10.17-18.xz

cd linux

# test and apply patch
xzcat /usr/src/patch-3.10.17-18.xz | patch -p1 --dry-run && \
xzcat /usr/src/patch-3.10.17-18.xz | patch -p1

# build new kernel
make oldconfig
for i in bzImage modules; do
  make -J2 $i || exit 1
done

# install new kernel
sudo make modules_install
sudo cp -v arch/x86/boot/bzImage /boot/vmlinuz-3.10.18
sudo cp -v System.map /boot/System.map-3.10.18

# edit lilo/grub to include the new kernel and reboot
# if ok, make new kernel the default
There is also a 'v4.x' tree with a similar structure.

Cheers,
 
2 members found this post helpful.
  


Reply

Tags
kernel, kernel 4.7.1, kernel patch



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackware kernel compiling guide? flashingcurser Slackware 3 02-06-2011 10:31 PM
patches for a release version or slackware/slackware-ver.#/patches acummings Slackware 2 07-05-2007 01:05 AM
My kernel compile guide for Slackware 11 ericfx Slackware 12 04-01-2007 09:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration