[Bug 287172] Re: make-kpkg fails compiling on Ubuntu/GFS step

pablomme pablomme at googlemail.com
Thu Oct 23 18:30:31 UTC 2008


You don't need to recompile the whole kernel to get a patched driver.
For example, to patch sis190.ko under 2.6.24 I just do:

1$ apt-get source linux-image-$(uname -r)
2$ cd linux-2.6.24
3$ cp /boot/config-$(uname -r) .config
  4 [ patch sis190.c ]
5$ make drivers/net/sis190.ko

and that's that.

Now, regarding the actual bug you're reporting, I've compiled previous
versions of 2.6.27 without problems. Are you doing it "the Ubuntu way"?
I do exactly the following

1$ wget http://archive.ubuntu.com/ubuntu/pool/main/l/linux/linux_2.6.27.orig.tar.gz
2$ wget http://archive.ubuntu.com/ubuntu/pool/main/l/linux/linux_2.6.27-7.13.diff.gz
3$ tar xzvf linux_2.6.27.orig.tar.gz
4$ patch -p0 < <(gunzip -c linux_2.6.27-7.13.diff.gz)
5$ cd linux-2.6.27
6$ chmod u+x debian/rules debian/scripts/misc/splitconfig.pl
7$ debian/rules updateconfigs
  8 [ patch things ]
9$ AUTOBUILD=1 NOEXTRAS=1 fakeroot debian/rules binary-generic

Note that steps 1-4 I do because I'm on Hardy. You should be able to use
"apt-get source linux-image-$(uname -r)" instead. Step 6 I need to do
for some reason.

This should produce the .deb files you need in order to install your
kernel cleanly. Refer to
https://help.ubuntu.com/community/Kernel/Compile for more info,
especially the restricted modules which you may also want.

If you follow the procedure above, do you still get an error?

-- 
make-kpkg fails compiling on Ubuntu/GFS step
https://bugs.launchpad.net/bugs/287172
You received this bug notification because you are a member of Kernel
Bugs, which is subscribed to linux-meta in ubuntu.




More information about the kernel-bugs mailing list