Mailinglist Archive: opensuse-kernel (56 mails)

< Previous Next >
Re: [opensuse-kernel] 11.4 kernel on 12.1
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 03/12/2012 10:28 AM, Jean Delvare wrote:
On Monday 12 March 2012 02:21:18 pm Stefan Seyfried wrote:
Am 12.03.2012 14:17, schrieb Bernhard M. Wiedemann:

[ a nice "kernel bisection for beginners" guide ]

you do something like this:

# initial setup: git clone
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.gi


t cd linux-2.6
git bisect start git bisect good v3.0 git bisect bad v3.1 #
this will automatically checkout something from the middle

# bisection work: cp -a /boot/config-3.1.9-1.4-default .config
sed -i s/CONFIG_DEBUG_INFO.*// .config # speeds up compile

It's not just a matter of speeding up... kernels built with
CONFIG_DEBUG_INFO are huge, and you don't necessarily have 4 GB of
hard disk drive at hand.

If you do and don't want huge modules in /lib, you can install with:

make modules_install INSTALL_MOD_STRIP=1

- -Jeff


I also suggest stripping LOCALVERSION in the configuration file, as
it has no meaning while performing the bisection.

make cloneconfig

I do "make oldconfig" here instead... cloneconfig seems redundant
as you copied the configuration file manually in the first place.

# build with make -j4 # or number of your CPU cores # if it did
not build, run git bisect skip # try the resulting kernel
(under arch/x86/boot/bzImage)

Something like "make install" is needed here (but I have to
admit that I have not used a complete self-built kernel on
openSUSE for quite some time, so it might be something else.
Anyway. You need to install the built kernel. preferably without
overwriting the rpm-installed one here.)

Actually: # make modules_install && make install is needed.


# if it worked, do git bisect good # if it failed, do git
bisect bad # which will checkout another middle version #
repeat above bisection work until done




- --
Jeff Mahoney
SUSE Labs
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJPXgsEAAoJEB57S2MheeWyzPIQAK1zNEn33HUIQi5Z2Yna22Ce
97KB+tCsIU27i0ZDEt5ot4lROImT8Krm98dCNW+FFGaLpK4kqKqs2SKlZMCzlEiL
NRnJXM04aDx3kpAo0fCUKjNkUYvjb3OGuVOganFcB5rlEMOvfIy2MYN40aNwS3r2
clE/7vMJ9QPBXp1CaDoEcRTU+PwqnGWSxbhwO1WDgKu1vg9vS+kb9IfgEWnnBsKf
RQdHNYnqbEUbHKTpug5hYXq7Uf5ywsqzDGKGQWH8zY9p8oBrvfOe6N9Ioh9jxEZ6
RgrHJ3x+6TjmEhKCHnB2LQNc9ucIjptI4F3I+yP196aXph0k3gByZyWqe+aAr8J/
53WV0m6P/4CCjZ+G/HttK+xOCxucEbyirHaZ0twWNmdRx5kYprdMZWtfiidVF8JC
4a3iDqftkA6tWDrWmIVfGrEmejTx5ybWpZjaflwVEeFfVSgSclI1jFc5GT/Mp+5V
jG5b9daVPLQGekPlEyhcoc4dO5egS3c6AFf9nvntEb4/oyIqmtp8gOJAZEdpoi8i
0z9lfrhkZyP3/DE9px9ecdJr/wzksPaDrSGH/7PyQ4PE8CPtSlJ3oNHc/zD5TEqm
ePbzCsUipnO1hoRUhNiOAxz4sV80nOtv17ffV+jKf/ZAvpwL4GBPaD1laXFh702K
6S1coVtOobhoB45TSjtU
=5E2V
-----END PGP SIGNATURE-----
--
To unsubscribe, e-mail: opensuse-kernel+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-kernel+owner@xxxxxxxxxxxx

< Previous Next >