[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

What is the procedure for patching the Debian kernel ?



Hello,

I been following http://kernel-handbook.alioth.debian.org and
http://wiki.debian.org/HowToRebuildAnOfficialDebianKernelPackage

I did successfully build an real time kernel on Wheezy using
"test-patches" but a package update resulted in the breaking of the
Nvidia DKMS driver build. This may be due to a bug or possibly the way
I originally built my rt kernel (bug:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=688567 ). By the look
of it the problem could be due to a conflict between the versions
"3.2.23-1a~test" and "3.2.23-1", but I could be wrong about that.

I did start to apply the extra patches to the Debian kernel another
way as test-patches is not recommended if you are making config
changes (following
http://kernel-handbook.alioth.debian.org/ch-common-tasks.html#s4.2.3
).

Added patches into linux-3.2.23/debian/patches/bugfix/x86.

Added patch entries to "series" file in linux-3.2.23/debian/patches.

Added "CONFIG_HZ_1000=y" and "CONFIG_HZ=1000" lines to
linux-3.2.23/debian/config/featureset-rt/config.

Then did "fakeroot debian/rules source".

Then "fakeroot make -f debian/rules.gen binary-arch_i386_rt_686-pae"
(how do I do this with multiple CPU cores?).

However this did not actually patch the correct files in the
debian/source directory.

What is the procedure to correctly apply my patches (in order to get a
piece of music hardware working sound/usb) ? Plus how do I manage the
resulting package so that package updates don't break my system such
as has happened with the Nvidia driver ?

Any help appreciated.

============ CLI MESSAGES

djbarney@djbarney-osiris:~$ uname -a
Linux djbarney-osiris 3.2.0-3-rt-686-pae #1 SMP PREEMPT RT Sun Aug 19
14:49:13 BST 2012 i686 GNU/Linux

djbarney@djbarney-osiris:~/Build$ sudo apt-get install --reinstall
nvidia-kernel-dkms
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 27 not upgraded.
Need to get 0 B/6,865 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 271515 files and directories currently installed.)
Preparing to replace nvidia-kernel-dkms 304.48-1 (using
.../nvidia-kernel-dkms_304.48-1_i386.deb) ...

------------------------------
Deleting module version: 304.48
completely from the DKMS tree.
------------------------------
Done.
Unpacking replacement nvidia-kernel-dkms ...
Setting up nvidia-kernel-dkms (304.48-1) ...
Loading new nvidia-304.48 DKMS files...
Building only for 3.2.0-3-rt-686-pae
Module build for the currently running kernel was skipped since the
kernel source for this kernel does not seem to be installed.

djbarney@djbarney-osiris:~/Build$ sudo dpkg --install
linux-headers-3.2.0-3-rt-686-pae_3.2.23-1a~test_i386.deb
(Reading database ... 277340 files and directories currently installed.)
Preparing to replace linux-headers-3.2.0-3-rt-686-pae 3.2.23-1a~test
(using linux-headers-3.2.0-3-rt-686-pae_3.2.23-1a~test_i386.deb) ...
Unpacking replacement linux-headers-3.2.0-3-rt-686-pae ...
dpkg: dependency problems prevent configuration of
linux-headers-3.2.0-3-rt-686-pae:
 linux-headers-3.2.0-3-rt-686-pae depends on linux-headers-3.2.0-3-common-rt (=
3.2.23-1a~test); however:
  Version of linux-headers-3.2.0-3-common-rt on system is 3.2.23-1.

dpkg: error processing linux-headers-3.2.0-3-rt-686-pae (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 linux-headers-3.2.0-3-rt-686-pae

-- 
         ~~~
http://djbarney.org
         ~~~


Reply to: