LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 02-21-2006, 06:04 PM   #1
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Rep: Reputation: 49
warnings after saving .config file under xconfig


Recently I decided to upgrade from kernel 2.6.13 to 2.6.15. I simply the copied the config-2.6.13 to /usr/src/linux-source-2.6.15 as .config and then ran make xconfig. After make kernel changes, when I saved the file and exited from xconfig I got the following warning messages:

Code:
debian:/usr/src/linux-source-2.6.15# cp /boot/config-2.6.13 .config
debian:/usr/src/linux-source-2.6.15# make xconfig
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/basic/split-include
  HOSTCC  scripts/basic/docproc
  CHECK   qt
  HOSTCC  scripts/kconfig/conf.o
sed < scripts/kconfig/lkc_proto.h > scripts/kconfig/lkc_defs.h 's/P(\([^,]*\),.* /#define \1 (\*\1_p)/'
  HOSTCC  scripts/kconfig/kconfig_load.o
  HOSTCC  scripts/kconfig/kxgettext.o
  HOSTCC  scripts/kconfig/mconf.o
  SHIPPED scripts/kconfig/zconf.tab.c
  SHIPPED scripts/kconfig/lex.zconf.c
  SHIPPED scripts/kconfig/zconf.hash.c
  HOSTCC  scripts/kconfig/zconf.tab.o
/usr/bin/moc -i scripts/kconfig/qconf.h -o scripts/kconfig/qconf.moc
  HOSTCXX scripts/kconfig/qconf.o
  HOSTLD  scripts/kconfig/qconf
scripts/kconfig/qconf arch/i386/Kconfig
#
# using defaults found in .config
#
.config:148:warning: trying to assign nonexistent symbol HAVE_DEC_LOCK
.config:170:warning: trying to assign nonexistent symbol ACPI_BOOT
.config:171:warning: trying to assign nonexistent symbol ACPI_INTERPRETER
.config:188:warning: trying to assign nonexistent symbol ACPI_BUS
.config:191:warning: trying to assign nonexistent symbol ACPI_PCI
.config:265:warning: trying to assign nonexistent symbol PCI_NAMES
.config:358:warning: trying to assign nonexistent symbol IP_TCPDIAG
.config:359:warning: trying to assign nonexistent symbol IP_TCPDIAG_IPV6
.config:583:warning: trying to assign nonexistent symbol NET_QOS
.config:977:warning: trying to assign nonexistent symbol MEGARAID_NEWGEN
.config:1038:warning: trying to assign nonexistent symbol SCSI_QLOGIC_1280_1040
.config:1293:warning: trying to assign nonexistent symbol 2BUFF_MODE
.config:1745:warning: trying to assign nonexistent symbol I2C_SENSOR
.config:1895:warning: trying to assign nonexistent symbol FB_SOFT_CURSOR
.config:1981:warning: trying to assign nonexistent symbol SND_GENERIC_PM
.config:2279:warning: trying to assign nonexistent symbol USB_GENESYS
.config:2280:warning: trying to assign nonexistent symbol USB_NET1080
.config:2281:warning: trying to assign nonexistent symbol USB_PL2301
.config:2282:warning: trying to assign nonexistent symbol USB_KC2190
.config:2289:warning: trying to assign nonexistent symbol USB_ZAURUS
.config:2290:warning: trying to assign nonexistent symbol USB_CDCETHER
.config:2295:warning: trying to assign nonexistent symbol USB_AX8817X
.config:2469:warning: trying to assign nonexistent symbol DEVPTS_FS_XATTR
.config:2470:warning: trying to assign nonexistent symbol DEVPTS_FS_SECURITY
.config:2472:warning: trying to assign nonexistent symbol TMPFS_XATTR
.config:2473:warning: trying to assign nonexistent symbol TMPFS_SECURITY
debian:/usr/src/linux-source-2.6.15#
Are these warnings normal? Also I have read that if we are copying a different version of .config file then we have to run make oldconfig. But then on the contrary many people have suggested that I don;t need to run make oldconfig. make xconfig takes care of it.

Anyone?

Last edited by kushalkoolwal; 02-21-2006 at 06:07 PM.
 
Old 02-21-2006, 07:33 PM   #2
noxious
Member
 
Registered: May 2004
Location: Ohio, USA
Distribution: LinuxMint Gloria, Ubuntu 9.10
Posts: 299

Rep: Reputation: 30
It's just trying to tell you that your 2.6.13 .config file doesn't address the changes present in your new 2.6.15 kernel. It probably went with whatever the defaults are for those configurations... look them over and see if those are ones you may need, or want. The biggest difference (to me, anyways) going from a 2.6.13 to a 2.6.15 kernel is built in Intel Pro Wireless support.
 
Old 02-21-2006, 07:35 PM   #3
dracae
Member
 
Registered: Feb 2006
Location: Oklahoma
Distribution: Debian Sid and Etch
Posts: 423

Rep: Reputation: 30
Those are warnings not errors, not running oldconfig will just set them to the default values instead of asking you what you want.
 
Old 02-21-2006, 07:52 PM   #4
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Original Poster
Rep: Reputation: 49
Quote:
Originally Posted by dracae
Those are warnings not errors, not running oldconfig will just set them to the default values instead of asking you what you want.
That means those symbols are present there in the configuration file(new file for 2.6.15), just that they will be set to the default values.

But if that is the case why does the warning says:
"trying to assign nonexistent symbol ACPI_BUS" and so.

At first glance it looks as if the new kernel(2.6.15) will not have those options which are listed as nonexistent.

I am a bit confused.

???

Thank you guys for looking into this..
 
Old 02-21-2006, 07:57 PM   #5
dracae
Member
 
Registered: Feb 2006
Location: Oklahoma
Distribution: Debian Sid and Etch
Posts: 423

Rep: Reputation: 30
It isn't adding it to the config, but the makefile/kernel has defaults that it will use
 
Old 02-22-2006, 07:26 PM   #6
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Original Poster
Rep: Reputation: 49
ok. Does that mean that I don;t need to worry about those warnings. Actually I thought that the new kernel(which is being compiled) won;t have all those options which appeared in the warnings.
 
Old 02-22-2006, 08:09 PM   #7
dracae
Member
 
Registered: Feb 2006
Location: Oklahoma
Distribution: Debian Sid and Etch
Posts: 423

Rep: Reputation: 30
I would run make oldconfig just because it is the right thing to do.
 
Old 02-22-2006, 08:35 PM   #8
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Original Poster
Rep: Reputation: 49
Quote:
Originally Posted by dracae
I would run make oldconfig just because it is the right thing to do.
Even I thought so. Co-incidentally I had a similar long thread on this forum itself related to this issue. And I had a mixed opinion whether to use oldconfig or not?

If you have time, take a look at this. I really get confused when it comes to this issue.

http://www.linuxquestions.org/questi...d.php?t=407097

Thanks
 
Old 02-22-2006, 08:53 PM   #9
dracae
Member
 
Registered: Feb 2006
Location: Oklahoma
Distribution: Debian Sid and Etch
Posts: 423

Rep: Reputation: 30
Well according to that thread menuconfig/xconfig should see that you are using an old config and run oldconfig for you. Either you are not saving you config after running it or it is not doing that. Either way, there is no harm in running make oldconfig and IMHO its the right thing to do.

Consider this.
New kernel has a new option, it defaults to compile as a module. This module has a dependency on some feature which you have removed/disabled. Will the make modules generate the module anyway even though it shouldn't? I can't answer that, but if it does can you imagine the headache of tracking down the unresolved symbols? Especially when it is so easy to run make oldconfig.

Now considering this is a Debian forum and make-kpkg is "The Debian Way" to compile a kernel, which will run make oldconfig for you, this is a moot point.
 
Old 02-22-2006, 09:45 PM   #10
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Original Poster
Rep: Reputation: 49
Quote:
Originally Posted by dracae
Well according to that thread menuconfig/xconfig should see that you are using an old config and run oldconfig for you. Either you are not saving you config after running it or it is not doing that. Either way, there is no harm in running make oldconfig and IMHO its the right thing to do.

Consider this.
New kernel has a new option, it defaults to compile as a module. This module has a dependency on some feature which you have removed/disabled. Will the make modules generate the module anyway even though it shouldn't? I can't answer that, but if it does can you imagine the headache of tracking down the unresolved symbols? Especially when it is so easy to run make oldconfig.

Now considering this is a Debian forum and make-kpkg is "The Debian Way" to compile a kernel, which will run make oldconfig for you, this is a moot point.
Ok so for once and all these are the steps that one needs to follow in upgrading kernel(from 2.6.13 to 2.6.15).

Code:
#make clean

#cp /boot/config-2.6.13 /usr/src/linux-source-2.6.15/.config

#make oldconfig(answer the questions about new options, although it is tedious to answer so many new options, I literally get tired of answering the options)

#make xconfig (Configure the way you want)
save the file as .config(just to be sure)

#make-kpkg clean

#fakeroot make-kpkg --appened-to-version=-<date> kernel_image

and so on.....
Kindly confirm this?

Thanks once again for all the help.
 
Old 02-23-2006, 05:47 PM   #11
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Original Poster
Rep: Reputation: 49
Quote:
Originally Posted by kushalkoolwal
Ok so for once and all these are the steps that one needs to follow in upgrading kernel(from 2.6.13 to 2.6.15).

Code:
#make clean

#cp /boot/config-2.6.13 /usr/src/linux-source-2.6.15/.config

#make oldconfig(answer the questions about new options, although it is tedious to answer so many new options, I literally get tired of answering the options)

#make xconfig (Configure the way you want)
save the file as .config(just to be sure)

#make-kpkg clean

#fakeroot make-kpkg --appened-to-version=-<date> kernel_image

and so on.....
Kindly confirm this?

Thanks once again for all the help.
anyone???

Thanks
 
Old 02-23-2006, 05:59 PM   #12
dracae
Member
 
Registered: Feb 2006
Location: Oklahoma
Distribution: Debian Sid and Etch
Posts: 423

Rep: Reputation: 30
That is what I would do.
 
Old 02-23-2006, 06:28 PM   #13
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Original Poster
Rep: Reputation: 49
thanks dracae a lot. From now on I will try to following the mentioned procedure.

Thank you once again..
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Tape Backup File Warnings for OS X to RH9 MadTurki Linux - General 0 07-29-2004 09:26 AM
saving network config in 9.2 petkov Mandriva 1 03-22-2004 02:17 PM
Saving the config in KNOPPIX? Konig Debian 1 01-09-2004 09:15 AM
make xconfig can't find Config.in disciple061 Linux - Software 0 01-05-2004 01:22 AM
Saving eth0 config davee Linux - Networking 3 01-21-2003 09:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 09:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration