* [gentoo-user] make oldconfig @ 2008-08-04 21:04 James 2008-08-04 17:11 ` Eric Martin ` (2 more replies) 0 siblings, 3 replies; 15+ messages in thread From: James @ 2008-08-04 21:04 UTC (permalink / raw To: gentoo-user Hello, It seems like I remember that 'make oldconfig' is not needed any more, to pass the current (booted) kernel option to the .config for building a new kernel. Of is 'make oldconfig' still a good idea? James ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-user] make oldconfig 2008-08-04 21:04 [gentoo-user] make oldconfig James @ 2008-08-04 17:11 ` Eric Martin 2008-08-04 22:52 ` [gentoo-user] " Nikos Chantziaras 2008-08-05 11:39 ` [gentoo-user] " Daniel Pielmeier 2 siblings, 0 replies; 15+ messages in thread From: Eric Martin @ 2008-08-04 17:11 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 493 bytes --] James wrote: > Hello, > > It seems like I remember that 'make oldconfig' is not > needed any more, to pass the current (booted) kernel > option to the .config for building a new kernel. > > Of is 'make oldconfig' still a good idea? > > > James > > > > You still need make oldconfig AFAIK. I copy my .config to the new sources branch and run make oldconfig just like always. -- Eric Martin Key fingerprint = D1C4 086E DBB5 C18E 6FDA B215 6A25 7174 A941 3B9F [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 260 bytes --] ^ permalink raw reply [flat|nested] 15+ messages in thread
* [gentoo-user] Re: make oldconfig 2008-08-04 21:04 [gentoo-user] make oldconfig James 2008-08-04 17:11 ` Eric Martin @ 2008-08-04 22:52 ` Nikos Chantziaras 2008-08-05 11:15 ` Eric Martin 2008-08-05 11:39 ` [gentoo-user] " Daniel Pielmeier 2 siblings, 1 reply; 15+ messages in thread From: Nikos Chantziaras @ 2008-08-04 22:52 UTC (permalink / raw To: gentoo-user James wrote: > Hello, > > It seems like I remember that 'make oldconfig' is not > needed any more, to pass the current (booted) kernel > option to the .config for building a new kernel. > > Of is 'make oldconfig' still a good idea? It's not needed, but a good idea to see if there are any new options. ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-user] Re: make oldconfig 2008-08-04 22:52 ` [gentoo-user] " Nikos Chantziaras @ 2008-08-05 11:15 ` Eric Martin 0 siblings, 0 replies; 15+ messages in thread From: Eric Martin @ 2008-08-05 11:15 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 635 bytes --] Nikos Chantziaras wrote: > James wrote: >> Hello, >> >> It seems like I remember that 'make oldconfig' is not >> needed any more, to pass the current (booted) kernel >> option to the .config for building a new kernel. >> >> Of is 'make oldconfig' still a good idea? > > It's not needed, but a good idea to see if there are any new options. > > Why is it not needed? I could have sworn that we touched on this a week or two ago where somebody said that /proc/config.gz could be read by make config but people nixed that. -- Eric Martin Key fingerprint = D1C4 086E DBB5 C18E 6FDA B215 6A25 7174 A941 3B9F [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 260 bytes --] ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-user] make oldconfig 2008-08-04 21:04 [gentoo-user] make oldconfig James 2008-08-04 17:11 ` Eric Martin 2008-08-04 22:52 ` [gentoo-user] " Nikos Chantziaras @ 2008-08-05 11:39 ` Daniel Pielmeier 2008-08-05 19:23 ` Dale 2 siblings, 1 reply; 15+ messages in thread From: Daniel Pielmeier @ 2008-08-05 11:39 UTC (permalink / raw To: gentoo-user 2008/8/4, James <wireless@tampabay.rr.com>: > Hello, > > It seems like I remember that 'make oldconfig' is not > needed any more, to pass the current (booted) kernel > option to the .config for building a new kernel. > > Of is 'make oldconfig' still a good idea? > > > James At least in the kernel Makefile there is no hint about /proc/config.gz which contains the running kernel configuration, so I think make oldconfig or your favourite kernel configuration tool is still needed. If there is no .config or .config.old it will load a default configuration which is probably not what you want. ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-user] make oldconfig 2008-08-05 11:39 ` [gentoo-user] " Daniel Pielmeier @ 2008-08-05 19:23 ` Dale 2008-08-05 15:48 ` Eric Martin 0 siblings, 1 reply; 15+ messages in thread From: Dale @ 2008-08-05 19:23 UTC (permalink / raw To: gentoo-user Daniel Pielmeier wrote: > 2008/8/4, James <wireless@tampabay.rr.com>: > >> Hello, >> >> It seems like I remember that 'make oldconfig' is not >> needed any more, to pass the current (booted) kernel >> option to the .config for building a new kernel. >> >> Of is 'make oldconfig' still a good idea? >> >> >> James >> > > At least in the kernel Makefile there is no hint about /proc/config.gz > which contains the running kernel configuration, so I think make > oldconfig or your favourite kernel configuration tool is still needed. > If there is no .config or .config.old it will load a default > configuration which is probably not what you want. > > > Having a config in /proc is a option in the kernel. You just have to turn it on. It is under the General setup as "Enable access to .config through /proc/config.gz". I have mine here: root@smoker / # ls -al /proc/config* -r--r--r-- 1 root root 10060 2008-08-05 14:19 /proc/config.gz root@smoker / # It can prove helpful at times. Dale :-) :-) ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-user] make oldconfig 2008-08-05 19:23 ` Dale @ 2008-08-05 15:48 ` Eric Martin 2008-08-05 20:54 ` Dale 0 siblings, 1 reply; 15+ messages in thread From: Eric Martin @ 2008-08-05 15:48 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 1345 bytes --] Dale wrote: > Daniel Pielmeier wrote: >> 2008/8/4, James <wireless@tampabay.rr.com>: >> >>> Hello, >>> >>> It seems like I remember that 'make oldconfig' is not >>> needed any more, to pass the current (booted) kernel >>> option to the .config for building a new kernel. >>> >>> Of is 'make oldconfig' still a good idea? >>> >>> >>> James >>> >> >> At least in the kernel Makefile there is no hint about /proc/config.gz >> which contains the running kernel configuration, so I think make >> oldconfig or your favourite kernel configuration tool is still needed. >> If there is no .config or .config.old it will load a default >> configuration which is probably not what you want. >> >> >> > Having a config in /proc is a option in the kernel. You just have to > turn it on. It is under the General setup as "Enable access to .config > through /proc/config.gz". I have mine here: > > root@smoker / # ls -al /proc/config* > -r--r--r-- 1 root root 10060 2008-08-05 14:19 /proc/config.gz > root@smoker / # > > > It can prove helpful at times. > > Dale > > :-) :-) yeah, but it doesn't change that you still have to run make oldconfig. I love /proc/config.gz, especially because of zless and zgrep -- Eric Martin Key fingerprint = D1C4 086E DBB5 C18E 6FDA B215 6A25 7174 A941 3B9F [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 260 bytes --] ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-user] make oldconfig 2008-08-05 15:48 ` Eric Martin @ 2008-08-05 20:54 ` Dale 2008-08-06 1:58 ` [gentoo-user] " James 0 siblings, 1 reply; 15+ messages in thread From: Dale @ 2008-08-05 20:54 UTC (permalink / raw To: gentoo-user Eric Martin wrote: > Dale wrote: > >> Daniel Pielmeier wrote: >> >>> At least in the kernel Makefile there is no hint about /proc/config.gz >>> which contains the running kernel configuration, so I think make >>> oldconfig or your favourite kernel configuration tool is still needed. >>> If there is no .config or .config.old it will load a default >>> configuration which is probably not what you want. >>> >>> >>> >>> >> Having a config in /proc is a option in the kernel. You just have to >> turn it on. It is under the General setup as "Enable access to .config >> through /proc/config.gz". I have mine here: >> >> root@smoker / # ls -al /proc/config* >> -r--r--r-- 1 root root 10060 2008-08-05 14:19 /proc/config.gz >> root@smoker / # >> >> >> It can prove helpful at times. >> >> Dale >> >> :-) :-) >> > yeah, but it doesn't change that you still have to run make oldconfig. > I love /proc/config.gz, especially because of zless and zgrep > > True, I took what you wrote a little differently than what I think was intended. You do still have to run make oldconfig tho. I may test not running it just to see but I would not take the chance long term. It may work fine but it may not. It doesn't take to long to run so why not? Dale :-) :-) ^ permalink raw reply [flat|nested] 15+ messages in thread
* [gentoo-user] Re: make oldconfig 2008-08-05 20:54 ` Dale @ 2008-08-06 1:58 ` James 2008-08-06 2:34 ` M. Sitorus ` (3 more replies) 0 siblings, 4 replies; 15+ messages in thread From: James @ 2008-08-06 1:58 UTC (permalink / raw To: gentoo-user Dale <dalek1967 <at> bellsouth.net> writes: Well, the reason I asked is for clarity. I found this gentoo doc, which seems a little dated: http://gentoo-wiki.com/ HOWTO_Detailed_Kernel_Configuration So what I gleen is that you run on a kernel, say version linux-2.6.24-gentoo-r8 You down load newer sources, say version linux-2.6.25-gentoo-r7 cd /usr/src rm linux ln -sf /usr/src/linux-2.6.25-gentoo-r7 linux make oldconfig <???> make menuconfig cp System.map /boot/System.map-2.6.25-gentoo-r7 cp arch/x86_64/boot/bzImage /boot/kernel-2.6.25-gentoo-r7 cp .config /boot/config-2.6.25-gentoo-r7 edit grub apppropriately and reboot to the new kernel? This is what I do, but I do not use the oldconfig command. A friend asked me how I build new kernel on gentoo and I was hoping to find a current howto, that does not use genkernel and such. I did not have any luck finding one (although I did not look very hard). Any suggestions are appreciated. The aforementioned howto suggest that make oldconfig, xconfig and menuconfig are alternate ways? Maybe your not suppose to mix oldconfig with menuconfig? The reason I ask is some 2.6.23 to 2.6.24. to 2.6.25 kernel have lost setting (selected options) using menuconfig alone. However, for a while the selected options were always correctly included using the above steps (without using oldconfig command syntax). This is the source of my need for some clarity. Maybe an updated howto is what is really needed? One that skips genkernel and such? James ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-user] Re: make oldconfig 2008-08-06 1:58 ` [gentoo-user] " James @ 2008-08-06 2:34 ` M. Sitorus 2008-08-06 2:38 ` Dale ` (2 subsequent siblings) 3 siblings, 0 replies; 15+ messages in thread From: M. Sitorus @ 2008-08-06 2:34 UTC (permalink / raw To: gentoo-user cd /usr/src rm linux ln -sf /usr/src/linux-2.6.25-gentoo-r7 linux cp /usr/src/linux-2.6.24-gentoo-r8/.config /usr/src/linux-2.6.25-gentoo-r7 make oldconfig make menuconfig On 8/6/08, James <wireless@tampabay.rr.com> wrote: > Dale <dalek1967 <at> bellsouth.net> writes: > > > > Well, the reason I asked is for clarity. > I found this gentoo doc, which seems a little dated: > > > http://gentoo-wiki.com/ > HOWTO_Detailed_Kernel_Configuration > > > So what I gleen is that you run on > a kernel, say version linux-2.6.24-gentoo-r8 > > You down load newer sources, say version > linux-2.6.25-gentoo-r7 > > cd /usr/src > > rm linux > > ln -sf /usr/src/linux-2.6.25-gentoo-r7 linux > > make oldconfig <???> > make menuconfig > > cp System.map /boot/System.map-2.6.25-gentoo-r7 > cp arch/x86_64/boot/bzImage /boot/kernel-2.6.25-gentoo-r7 > cp .config /boot/config-2.6.25-gentoo-r7 > > > edit grub apppropriately > and reboot to the new kernel? > > > This is what I do, but I do not use the oldconfig command. > > A friend asked me how I build new kernel on gentoo and > I was hoping to find a current howto, that does not > use genkernel and such. I did not have any luck finding one > (although I did not look very hard). > > > Any suggestions are appreciated. The aforementioned howto > suggest that make oldconfig, xconfig and menuconfig are > alternate ways? Maybe your not suppose to mix oldconfig > with menuconfig? > > The reason I ask is some 2.6.23 to 2.6.24. to 2.6.25 > kernel have lost setting (selected options) using > menuconfig alone. However, for a while the selected > options were always correctly included using the above > steps (without using oldconfig command syntax). > > > This is the source of my need for some clarity. > Maybe an updated howto is what is really needed? > One that skips genkernel and such? > > > James > > > > > > > -- Salam, Marc ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-user] Re: make oldconfig 2008-08-06 1:58 ` [gentoo-user] " James 2008-08-06 2:34 ` M. Sitorus @ 2008-08-06 2:38 ` Dale 2008-08-06 7:08 ` Daniel Pielmeier 2008-08-06 9:28 ` Thanasis 3 siblings, 0 replies; 15+ messages in thread From: Dale @ 2008-08-06 2:38 UTC (permalink / raw To: gentoo-user James wrote: > Dale <dalek1967 <at> bellsouth.net> writes: > > > > Well, the reason I asked is for clarity. > I found this gentoo doc, which seems a little dated: > > > http://gentoo-wiki.com/ > HOWTO_Detailed_Kernel_Configuration > > > So what I gleen is that you run on > a kernel, say version linux-2.6.24-gentoo-r8 > > You down load newer sources, say version > linux-2.6.25-gentoo-r7 > > cd /usr/src > > rm linux > > ln -sf /usr/src/linux-2.6.25-gentoo-r7 linux > > make oldconfig <???> > make menuconfig > > cp System.map /boot/System.map-2.6.25-gentoo-r7 > cp arch/x86_64/boot/bzImage /boot/kernel-2.6.25-gentoo-r7 > cp .config /boot/config-2.6.25-gentoo-r7 > > > edit grub apppropriately > and reboot to the new kernel? > > > This is what I do, but I do not use the oldconfig command. > > A friend asked me how I build new kernel on gentoo and > I was hoping to find a current howto, that does not > use genkernel and such. I did not have any luck finding one > (although I did not look very hard). > > > Any suggestions are appreciated. The aforementioned howto > suggest that make oldconfig, xconfig and menuconfig are > alternate ways? Maybe your not suppose to mix oldconfig > with menuconfig? > > The reason I ask is some 2.6.23 to 2.6.24. to 2.6.25 > kernel have lost setting (selected options) using > menuconfig alone. However, for a while the selected > options were always correctly included using the above > steps (without using oldconfig command syntax). > > > This is the source of my need for some clarity. > Maybe an updated howto is what is really needed? > One that skips genkernel and such? > > > James > > I think this is going to be a debate sort of like which is better, KDE or Gnome? I have to say, when I run make oldconfig, I don't run make menuconfig unless I have some problems. I'm not saying that is the right way either. A lot of this may depend on the situation and hardware. I'm sort of like this, if you run make oldconfig then what is there to change when running make menuconfig afterwards? My recommendation, run make oldconfig and answer no to most everything if your hardware works currently. Keep in mind, most new stuff is for new hardware. The only exception may be some of the new stuff with regard to managing the CPU and such. Those you may want to research. Also keep in mind that help is available even during the make oldconfig. Hit the question mark for that. After that, make your kernel and give it a run. Save your old working one just in case. Another thing to do before copying your old config, run make mrproper or make mrclean. Those will give you a fresh new kernel source. I'm not aware of a "current" howto. May can try google for Linux? www.google.com/linux Dale :-) :-) ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-user] Re: make oldconfig 2008-08-06 1:58 ` [gentoo-user] " James 2008-08-06 2:34 ` M. Sitorus 2008-08-06 2:38 ` Dale @ 2008-08-06 7:08 ` Daniel Pielmeier 2008-08-09 20:35 ` james 2008-08-06 9:28 ` Thanasis 3 siblings, 1 reply; 15+ messages in thread From: Daniel Pielmeier @ 2008-08-06 7:08 UTC (permalink / raw To: gentoo-user 2008/8/6, James <wireless@tampabay.rr.com>: > So what I gleen is that you run on > a kernel, say version linux-2.6.24-gentoo-r8 > > You down load newer sources, say version > linux-2.6.25-gentoo-r7 > > cd /usr/src > > rm linux > > ln -sf /usr/src/linux-2.6.25-gentoo-r7 linux > > make oldconfig <???> > make menuconfig > > cp System.map /boot/System.map-2.6.25-gentoo-r7 > cp arch/x86_64/boot/bzImage /boot/kernel-2.6.25-gentoo-r7 > cp .config /boot/config-2.6.25-gentoo-r7 > > > edit grub apppropriately > and reboot to the new kernel? In the case you run menuconfig oldconfig is not needed. I did so myself in the past. Now i simply run just oldconfig, because you have a better control of what has changed between the versions. After oldconfig menuconfig is not needed one of them will suffer. Regards, Daniel ^ permalink raw reply [flat|nested] 15+ messages in thread
* [gentoo-user] Re: make oldconfig 2008-08-06 7:08 ` Daniel Pielmeier @ 2008-08-09 20:35 ` james 2008-08-09 21:50 ` »Q« 0 siblings, 1 reply; 15+ messages in thread From: james @ 2008-08-09 20:35 UTC (permalink / raw To: gentoo-user Daniel Pielmeier <daniel.pielmeier <at> googlemail.com> writes: > In the case you run menuconfig oldconfig is not needed. I did so > myself in the past. Now i simply run just oldconfig, because you have > a better control of what has changed between the versions. After > oldconfig menuconfig is not needed one of them will suffer. Thanks for all the input. I do agree that oldconfig and menuconfig are not both needed. That said, I'll stick with menuconfig.... thanks again, James ^ permalink raw reply [flat|nested] 15+ messages in thread
* [gentoo-user] Re: make oldconfig 2008-08-09 20:35 ` james @ 2008-08-09 21:50 ` »Q« 0 siblings, 0 replies; 15+ messages in thread From: »Q« @ 2008-08-09 21:50 UTC (permalink / raw To: gentoo-user On Sat, 9 Aug 2008 20:35:43 +0000 (UTC) james <wireless@tampabay.rr.com> wrote: > Daniel Pielmeier <daniel.pielmeier <at> googlemail.com> writes: > > > > In the case you run menuconfig oldconfig is not needed. I did so > > myself in the past. Now i simply run just oldconfig, because you > > have a better control of what has changed between the versions. > > After oldconfig menuconfig is not needed one of them will suffer. > > > Thanks for all the input. > I do agree that oldconfig and menuconfig are not both > needed. > > That said, I'll stick with menuconfig.... FWIW, I use oldconfig, which usually goes very quickly. Then if there was a prompt I wasn't really clear on, I google a little and make any needed changes with menuconfig. -- »Q« Kleeneness is next to Gödelness. ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-user] Re: make oldconfig 2008-08-06 1:58 ` [gentoo-user] " James ` (2 preceding siblings ...) 2008-08-06 7:08 ` Daniel Pielmeier @ 2008-08-06 9:28 ` Thanasis 3 siblings, 0 replies; 15+ messages in thread From: Thanasis @ 2008-08-06 9:28 UTC (permalink / raw To: gentoo-user on 08/06/2008 04:58 AM James wrote the following: > Dale <dalek1967 <at> bellsouth.net> writes: > > > > Well, the reason I asked is for clarity. > I found this gentoo doc, which seems a little dated: > > > http://gentoo-wiki.com/ > HOWTO_Detailed_Kernel_Configuration > > > So what I gleen is that you run on > a kernel, say version linux-2.6.24-gentoo-r8 > > You down load newer sources, say version > linux-2.6.25-gentoo-r7 > > cd /usr/src > > rm linux > > ln -sf /usr/src/linux-2.6.25-gentoo-r7 linux > > cd linux > make oldconfig > make menuconfig > ^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2008-08-09 22:00 UTC | newest] Thread overview: 15+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2008-08-04 21:04 [gentoo-user] make oldconfig James 2008-08-04 17:11 ` Eric Martin 2008-08-04 22:52 ` [gentoo-user] " Nikos Chantziaras 2008-08-05 11:15 ` Eric Martin 2008-08-05 11:39 ` [gentoo-user] " Daniel Pielmeier 2008-08-05 19:23 ` Dale 2008-08-05 15:48 ` Eric Martin 2008-08-05 20:54 ` Dale 2008-08-06 1:58 ` [gentoo-user] " James 2008-08-06 2:34 ` M. Sitorus 2008-08-06 2:38 ` Dale 2008-08-06 7:08 ` Daniel Pielmeier 2008-08-09 20:35 ` james 2008-08-09 21:50 ` »Q« 2008-08-06 9:28 ` Thanasis
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox