View previous topic :: View next topic |
Author |
Message |
eXess Apprentice
Joined: 17 Aug 2003 Posts: 243 Location: Belgium
|
Posted: Fri Sep 19, 2008 3:53 pm Post subject: kernel 2.6.25-hardened-r7 won't save config ? |
|
|
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 |
|
|
nixnut Bodhisattva
Joined: 09 Apr 2004 Posts: 10974 Location: the dutch mountains
|
Posted: Fri Sep 19, 2008 3:55 pm Post subject: |
|
|
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 |
|
|
eXess Apprentice
Joined: 17 Aug 2003 Posts: 243 Location: Belgium
|
Posted: Fri Sep 19, 2008 4:08 pm Post subject: |
|
|
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 |
|
|
nixnut Bodhisattva
Joined: 09 Apr 2004 Posts: 10974 Location: the dutch mountains
|
Posted: Fri Sep 19, 2008 6:20 pm Post subject: |
|
|
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 |
|
|
eXess Apprentice
Joined: 17 Aug 2003 Posts: 243 Location: Belgium
|
Posted: Fri Sep 19, 2008 6:56 pm Post subject: |
|
|
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 |
|
|
nixnut Bodhisattva
Joined: 09 Apr 2004 Posts: 10974 Location: the dutch mountains
|
Posted: Fri Sep 19, 2008 7:07 pm Post subject: |
|
|
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 |
|
|
eXess Apprentice
Joined: 17 Aug 2003 Posts: 243 Location: Belgium
|
Posted: Fri Sep 19, 2008 7:21 pm Post subject: |
|
|
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 |
|
|
|