Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
kernel 2.6.25-hardened-r7 won't save config ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
eXess
Apprentice
Apprentice


Joined: 17 Aug 2003
Posts: 243
Location: Belgium

PostPosted: Fri Sep 19, 2008 3:53 pm    Post subject: kernel 2.6.25-hardened-r7 won't save config ? Reply with quote

Hi all,

I recently had to turn off my server (Gentoo Linux with kernel 2.6.23-hardened-r4 as of now) and decided I'd compile a new kernel, as current version is 2.6.25-hardened-r7. So here I go, emerge new source, relink /usr/src/linux, jump in, make menuconfig, import old config, check here and there, quit and select "YES" when asked to save config. Now when I try to compile I get this :

Code:
# make && make modules_install
scripts/kconfig/conf -s arch/x86/Kconfig
***
*** You have not yet configured your kernel!
*** (missing kernel .config file)
***
*** Please run some configurator (e.g. "make oldconfig" or
*** "make menuconfig" or "make xconfig").
***
make[2]: *** [silentoldconfig] Error 1
make[1]: *** [silentoldconfig] Error 2
make: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'.  Stop.


duh! I don't get it. I did save the config, though...
Anyone has a clue about this ? Thanks in advance...
_________________
. . . . . . . .
eXess
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Fri Sep 19, 2008 3:55 pm    Post subject: Reply with quote

Moved from Installing Gentoo to Kernel & Hardware.
Kernel question, so moved here

Are you sure you're trying to build the kernel in the same directory as where you created a kernel config? Did you run menuconfig as root or as a unpriviliged user?
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
eXess
Apprentice
Apprentice


Joined: 17 Aug 2003
Posts: 243
Location: Belgium

PostPosted: Fri Sep 19, 2008 4:08 pm    Post subject: Reply with quote

Running menuconfig as root and here is the exact command sequence :
Code:
# cd /usr/src/
# rm linux
# ln -s linux-2.6.25-hardened-r7 linux
# cd linux
# make menuconfig

(blah)
(and YES to save on exit)

# make && make modules_install

(same result as above)


I'm willing to post output from any file or diagnostic command if needed...
_________________
. . . . . . . .
eXess
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Fri Sep 19, 2008 6:20 pm    Post subject: Reply with quote

No clue. I've emerge the same sources, copied an old .config, ran menuconfig and saved the config file and it's now happily building a kernel. The only thing I can think of is that you saved the configuration under another file name than .config
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
eXess
Apprentice
Apprentice


Joined: 17 Aug 2003
Posts: 243
Location: Belgium

PostPosted: Fri Sep 19, 2008 6:56 pm    Post subject: Reply with quote

Hey wait... When I exit menuconfig, it just asks me if I want to save the config, not where or under what name. I did save a separate file (in my /root directory) but thats a spare file, isn't it ? Where is the "real" .config file located? How can I check it's there?
_________________
. . . . . . . .
eXess
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Fri Sep 19, 2008 7:07 pm    Post subject: Reply with quote

Code:
ls -l /usr/src/linux/.config

_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
eXess
Apprentice
Apprentice


Joined: 17 Aug 2003
Posts: 243
Location: Belgium

PostPosted: Fri Sep 19, 2008 7:21 pm    Post subject: Reply with quote

Code:
# ls -l /usr/src/linux/.config
ls: cannot access /usr/src/linux/.config: No such file or directory

duh!?
Code:
# cp /root/kconfigs/2625-R7.config /usr/src/linux/.config
# cd /usr/src/linux
# make && make modules_install
scripts/kconfig/conf -s arch/x86/Kconfig
#
# configuration written to .config
#
  CHK     include/linux/version.h
  UPD     include/linux/version.h
  CHK     include/linux/utsrelease.h
  UPD     include/linux/utsrelease.h
  SYMLINK include/asm -> include/asm-x86
  CC      arch/x86/kernel/asm-offsets.s
  GEN     include/asm-x86/asm-offsets.h
  CALL    scripts/checksyscalls.sh
(blah)


Works !!! :)
Thanks nixhut !?

PS: Well, I'll lie if I pretend I don't care to know how that happened, but hey, I won't compile kernel every week, so... ;)
_________________
. . . . . . . .
eXess
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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