View previous topic :: View next topic |
Author |
Message |
Promy n00b
Joined: 01 Jun 2002 Posts: 3
|
Posted: Wed Jul 03, 2002 6:57 am Post subject: extract .config information |
|
|
Dear all,
does anyone know how to extract the .config file from a compressed kernel image?
Best regards,
Promy |
|
Back to top |
|
|
delta407 Bodhisattva
Joined: 23 Apr 2002 Posts: 2876 Location: Chicago, IL
|
Posted: Wed Jul 03, 2002 7:21 am Post subject: |
|
|
Black magic and sorcery.
Okay, maybe not. Do this:
Code: | # mkdir ~/configextractor
# cd ~/configextractor
# wget http://hypermail.idiosynkrasia.net/linux-kernel/archived/2002/week10/att-1489/01-binoffset.c -O binoffset.c
# gcc binoffset.c -o /usr/bin/binoffset
# cp /usr/src/linux/scripts/extract-ikconfig /usr/bin/
# chmod 755 /usr/bin/extract-ikconfig
# cd
# rm -r configextractor |
That downloads, compiles, and installs the required utility (binoffset) as well as installs extract-ikconfig. Now, just "extract-ikconfig /boot/bzImage" and you'll find the config in /boot/bzImage.oldconfig.somenumber. _________________ I don't believe in witty sigs. |
|
Back to top |
|
|
ElCondor Guru
Joined: 10 Apr 2002 Posts: 520 Location: Vienna, Austria, Europe
|
Posted: Wed Jul 03, 2002 9:32 am Post subject: |
|
|
Thanks! saves a lot of time after failed kernel-experiments
* ElCondor pasa * _________________ Here I am the victim of my own choices and I'm just starting! |
|
Back to top |
|
|
friley n00b
Joined: 27 Jun 2002 Posts: 8
|
Posted: Wed Jul 03, 2002 7:07 pm Post subject: |
|
|
delta407 wrote: |
Code: | # cp /usr/src/linux/scripts/extract-ikconfig /usr/bin/ |
|
I don't have this script. I'm using vanilla-sources. Is this only in the gentoo-sources or? |
|
Back to top |
|
|
delta407 Bodhisattva
Joined: 23 Apr 2002 Posts: 2876 Location: Chicago, IL
|
Posted: Wed Jul 03, 2002 7:09 pm Post subject: |
|
|
Embedding the config file is a separate patch that is included only in gentoo-sources. It has to be enabled in the kernel configuration, as well. _________________ I don't believe in witty sigs. |
|
Back to top |
|
|
|