Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
extract .config information
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Promy
n00b
n00b


Joined: 01 Jun 2002
Posts: 3

PostPosted: Wed Jul 03, 2002 6:57 am    Post subject: extract .config information Reply with quote

Dear all,
does anyone know how to extract the .config file from a compressed kernel image?

Best regards,
Promy
Back to top
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Wed Jul 03, 2002 7:21 am    Post subject: Reply with quote

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
View user's profile Send private message
ElCondor
Guru
Guru


Joined: 10 Apr 2002
Posts: 520
Location: Vienna, Austria, Europe

PostPosted: Wed Jul 03, 2002 9:32 am    Post subject: Reply with quote

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
View user's profile Send private message
friley
n00b
n00b


Joined: 27 Jun 2002
Posts: 8

PostPosted: Wed Jul 03, 2002 7:07 pm    Post subject: Reply with quote

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
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Wed Jul 03, 2002 7:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum