* [Buildroot] How do I configure the kernel?
@ 2009-11-20 22:23 Grant Edwards
[not found] ` <b680c1c10911201430s25dadd6aj8d1c48afaff91445@mail.gmail.com>
0 siblings, 1 reply; 11+ messages in thread
From: Grant Edwards @ 2009-11-20 22:23 UTC (permalink / raw)
To: buildroot
How do you configure the kernel when using buildroot?
I've read through the docs and hunted through the "make
menuconfig" system, but I can't figure out how to configure the
kernel.
I'm trying to build an ARM Integrator image by following the
directions at
http://www.linuxfordevices.com/c/a/Linux-For-Devices-Articles/Getting-started-with-an-embedded-Linux-system-emulator/
But my kernel just locks up solid with absolutely no output.
--
Grant Edwards grante Yow! I always have fun
at because I'm out of my
visi.com mind!!!
^ permalink raw reply [flat|nested] 11+ messages in thread[parent not found: <b680c1c10911201430s25dadd6aj8d1c48afaff91445@mail.gmail.com>]
* [Buildroot] How do I configure the kernel? [not found] ` <b680c1c10911201430s25dadd6aj8d1c48afaff91445@mail.gmail.com> @ 2009-11-20 22:35 ` Nicholas Walton 2009-11-21 5:00 ` Grant Edwards 0 siblings, 1 reply; 11+ messages in thread From: Nicholas Walton @ 2009-11-20 22:35 UTC (permalink / raw) To: buildroot On Fri, Nov 20, 2009 at 2:23 PM, Grant Edwards <grant.b.edwards@gmail.com> wrote: > How do you configure the kernel when using buildroot? make linux26-menuconfig Other targets, such as Busybox, follow the same convention. Nicholas > I've read through the docs and hunted through the "make > menuconfig" system, but I can't figure out how to configure the > kernel. > > I'm trying to build an ARM Integrator image by following the > directions at > > http://www.linuxfordevices.com/c/a/Linux-For-Devices-Articles/Getting-started-with-an-embedded-Linux-system-emulator/ > > But my kernel just locks up solid with absolutely no output. > > -- > Grant Edwards ? ? ? ? ? ? ? ? ? grante ? ? ? ? ? ? Yow! I always have fun > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?at ? ? ? ? ? ? ? because I'm out of my > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? visi.com ? ? ? ? ? ?mind!!! ^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] How do I configure the kernel? 2009-11-20 22:35 ` Nicholas Walton @ 2009-11-21 5:00 ` Grant Edwards 2009-11-21 18:20 ` Nicholas Walton 2009-11-22 20:44 ` Peter Korsgaard 0 siblings, 2 replies; 11+ messages in thread From: Grant Edwards @ 2009-11-21 5:00 UTC (permalink / raw) To: buildroot On 2009-11-20, Nicholas Walton <nwalton@aplopteng.com> wrote: > On Fri, Nov 20, 2009 at 2:23 PM, Grant Edwards ><grant.b.edwards@gmail.com> wrote: >> How do you configure the kernel when using buildroot? > > make linux26-menuconfig Doh! I trield make kernel-menuconfig and several other variations. For future reference, is there somewhere that's documented? The next question was going to be where do I put a kernel .config file if I already have one I want to use. I can probably do a "find" to search for files named .config and figure out which is the right one. Then I assume I do "make linux26-oldconfig"? > Other targets, such as Busybox, follow the same convention. Yes, the docs do explain how to configure busybox and uclibc. I just hadn't guessed the correct "label" for doing the same thing for the kernel. -- Grant ^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] How do I configure the kernel? 2009-11-21 5:00 ` Grant Edwards @ 2009-11-21 18:20 ` Nicholas Walton 2009-11-22 20:44 ` Peter Korsgaard 1 sibling, 0 replies; 11+ messages in thread From: Nicholas Walton @ 2009-11-21 18:20 UTC (permalink / raw) To: buildroot On Fri, Nov 20, 2009 at 9:00 PM, Grant Edwards <grant.b.edwards@gmail.com> wrote: > On 2009-11-20, Nicholas Walton <nwalton@aplopteng.com> wrote: >> On Fri, Nov 20, 2009 at 2:23 PM, Grant Edwards >><grant.b.edwards@gmail.com> wrote: >>> How do you configure the kernel when using buildroot? >> >> make linux26-menuconfig > > Doh! ?I trield make kernel-menuconfig and several other > variations. ?For future reference, is there somewhere that's > documented? I don't recall. I think I found it by bash autocomplete on make. > The next question was going to be where do I put a kernel > .config file if I already have one I want to use. ?I can > probably do a "find" to search for files named .config and > figure out which is the right one. Then I assume I do "make > linux26-oldconfig"? In target/devices/{manufacturer}/{board} as linux-{version}.config, if I recall correctly. You can automatically create or update the appropriate file with "make linux26-update". And either menuconfig or oldconfig will fetch the linux-{version}.config file if output/build/linux-$version/.config does not exist. Nicholas > >> Other targets, such as Busybox, follow the same convention. > > Yes, the docs do explain how to configure busybox and uclibc. > I just hadn't guessed the correct "label" for doing the same > thing for the kernel. > > -- > Grant ^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] How do I configure the kernel? 2009-11-21 5:00 ` Grant Edwards 2009-11-21 18:20 ` Nicholas Walton @ 2009-11-22 20:44 ` Peter Korsgaard 2009-11-23 19:10 ` Grant Edwards 1 sibling, 1 reply; 11+ messages in thread From: Peter Korsgaard @ 2009-11-22 20:44 UTC (permalink / raw) To: buildroot >>>>> "Grant" == Grant Edwards <grant.b.edwards@gmail.com> writes: Hi, Grant> On 2009-11-20, Nicholas Walton <nwalton@aplopteng.com> wrote: >> On Fri, Nov 20, 2009 at 2:23 PM, Grant Edwards >> <grant.b.edwards@gmail.com> wrote: >>> How do you configure the kernel when using buildroot? >> >> make linux26-menuconfig Grant> Doh! I trield make kernel-menuconfig and several other Grant> variations. For future reference, is there somewhere that's Grant> documented? Yes, in docs/README: Depending on your configuration, there are some targets you can use to use menuconfig of certain packages. This includes: $ make HOSTCC=gcc-4.3 linux26-menuconfig $ make HOSTCC=gcc-4.3 uclibc-menuconfig $ make HOSTCC=gcc-4.3 busybox-menuconfig We should probably also document it in docs/buildroot.html, I'll fix that now. Grant> The next question was going to be where do I put a kernel Grant> .config file if I already have one I want to use. I can Grant> probably do a "find" to search for files named .config and Grant> figure out which is the right one. Then I assume I do "make Grant> linux26-oldconfig"? Use the LINUX26_KCONFIG environment variable, similar to BUSYBOX_CONFIG_FILE / UCLIBC_CONFIG_FILE. I'll also update the doc about that one. -- Bye, Peter Korsgaard ^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] How do I configure the kernel? 2009-11-22 20:44 ` Peter Korsgaard @ 2009-11-23 19:10 ` Grant Edwards 2009-11-23 20:01 ` Grant Edwards 0 siblings, 1 reply; 11+ messages in thread From: Grant Edwards @ 2009-11-23 19:10 UTC (permalink / raw) To: buildroot On 2009-11-22, Peter Korsgaard <jacmet@uclibc.org> wrote: > Grant> The next question was going to be where do I put a kernel > Grant> .config file if I already have one I want to use. I can > Grant> probably do a "find" to search for files named .config and > Grant> figure out which is the right one. Then I assume I do "make > Grant> linux26-oldconfig"? > > Use the LINUX26_KCONFIG environment variable, similar to > BUSYBOX_CONFIG_FILE / UCLIBC_CONFIG_FILE. I'll also update the doc about > that one. Sorry to be so dense, but I still don't get it. I've got a .config file I want to use as the starting point for a "make oldconfig". I can point LINUX26_KCONFIG at that .config file, but how do I do the "make oldconfig" step? -- Grant Edwards grante Yow! Here we are in America at ... when do we collect visi.com unemployment? ^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] How do I configure the kernel? 2009-11-23 19:10 ` Grant Edwards @ 2009-11-23 20:01 ` Grant Edwards 2009-11-23 20:39 ` Nicholas Walton 0 siblings, 1 reply; 11+ messages in thread From: Grant Edwards @ 2009-11-23 20:01 UTC (permalink / raw) To: buildroot On 2009-11-23, Grant Edwards <grant.b.edwards@gmail.com> wrote: > On 2009-11-22, Peter Korsgaard <jacmet@uclibc.org> wrote: > >> Grant> The next question was going to be where do I put a kernel >> Grant> .config file if I already have one I want to use. I can >> Grant> probably do a "find" to search for files named .config and >> Grant> figure out which is the right one. Then I assume I do "make >> Grant> linux26-oldconfig"? >> >> Use the LINUX26_KCONFIG environment variable, similar to >> BUSYBOX_CONFIG_FILE / UCLIBC_CONFIG_FILE. I'll also update the doc about >> that one. > > Sorry to be so dense, but I still don't get it. I've got a > .config file I want to use as the starting point for a > "make oldconfig". I can point LINUX26_KCONFIG at that .config > file, but how do I do the "make oldconfig" step? I got a working kernel by 0) pick the arch, board, target filesystem options, etc. 1) do a "make" and build everything (including a non-working kernel) 2) overwrite output/build/linux-2.6.30.2/.config with my old but "working" config file. 3) "make ARCH=arm oldconfig" in the output/build/linux-2.6.30.2 directory That doesn't feel like the proper way to do it, but it seems to have worked. -- Grant Edwards grante Yow! Zippy's brain cells at are straining to bridge visi.com synapses ... ^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] How do I configure the kernel? 2009-11-23 20:01 ` Grant Edwards @ 2009-11-23 20:39 ` Nicholas Walton 2009-11-23 21:41 ` Grant Edwards 0 siblings, 1 reply; 11+ messages in thread From: Nicholas Walton @ 2009-11-23 20:39 UTC (permalink / raw) To: buildroot On Mon, Nov 23, 2009 at 12:01 PM, Grant Edwards <grant.b.edwards@gmail.com> wrote: > On 2009-11-23, Grant Edwards <grant.b.edwards@gmail.com> wrote: >> On 2009-11-22, Peter Korsgaard <jacmet@uclibc.org> wrote: >> >>> Grant> The next question was going to be where do I put a kernel >>> Grant> .config file if I already have one I want to use. ?I can >>> Grant> probably do a "find" to search for files named .config and >>> Grant> figure out which is the right one. Then I assume I do "make >>> Grant> linux26-oldconfig"? >>> >>> Use the LINUX26_KCONFIG environment variable, similar to >>> BUSYBOX_CONFIG_FILE / UCLIBC_CONFIG_FILE. I'll also update the doc about >>> that one. >> >> Sorry to be so dense, but I still don't get it. ?I've got a >> .config file I want to use as the starting point for a >> "make oldconfig". ?I can point LINUX26_KCONFIG at that .config >> file, but how do I do the "make oldconfig" step? > > I got a working kernel by > > ?0) pick the arch, board, target filesystem options, etc. > ?1) do a "make" and build everything (including a non-working kernel) > ?2) overwrite output/build/linux-2.6.30.2/.config with my old > ? ?but "working" config file. > ?3) "make ARCH=arm oldconfig" in the ?output/build/linux-2.6.30.2 > ? ?directory > > That doesn't feel like the proper way to do it, but it seems to > have worked That does work, but a more direct way would be to do the linux configuration through buildroot. ~/buildroot % make menuconfig ~/buildroot % make linux26-menuconfig ~/buildroot % cp old-linux.config output/build/linux-$version/.config ~/buildroot % make linux26-$either_config ~/buildroot % make and finally ~/buildroot % make linux26-update to copy output/build/linux-$version/.config to target/device/$whatever/linux-$version.config, which unlike output/ is not .gitignore'd. Nicholas ^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] How do I configure the kernel? 2009-11-23 20:39 ` Nicholas Walton @ 2009-11-23 21:41 ` Grant Edwards 2009-11-23 21:50 ` Nicholas Walton 0 siblings, 1 reply; 11+ messages in thread From: Grant Edwards @ 2009-11-23 21:41 UTC (permalink / raw) To: buildroot On 2009-11-23, Nicholas Walton <nwalton@aplopteng.com> wrote: >> I got a working kernel by >> >> ?0) pick the arch, board, target filesystem options, etc. >> ?1) do a "make" and build everything (including a non-working kernel) >> ?2) overwrite output/build/linux-2.6.30.2/.config with my old >> ? ?but "working" config file. >> ?3) "make ARCH=arm oldconfig" in the ?output/build/linux-2.6.30.2 >> ? ?directory >> >> That doesn't feel like the proper way to do it, but it seems to >> have worked > > That does work, but a more direct way would be to do the linux > configuration through buildroot. > > ~/buildroot % make menuconfig > ~/buildroot % make linux26-menuconfig > ~/buildroot % cp old-linux.config output/build/linux-$version/.config > ~/buildroot % make linux26-$either_config > ~/buildroot % make What is $either_config? > and finally > > ~/buildroot % make linux26-update > > to copy output/build/linux-$version/.config to > target/device/$whatever/linux-$version.config, which unlike > output/ is not .gitignore'd. OK, thanks. -- Grant Edwards grante Yow! for ARTIFICIAL at FLAVORING!! visi.com ^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] How do I configure the kernel? 2009-11-23 21:41 ` Grant Edwards @ 2009-11-23 21:50 ` Nicholas Walton 2009-11-23 21:56 ` Grant Edwards 0 siblings, 1 reply; 11+ messages in thread From: Nicholas Walton @ 2009-11-23 21:50 UTC (permalink / raw) To: buildroot On Mon, Nov 23, 2009 at 1:41 PM, Grant Edwards <grant.b.edwards@gmail.com> wrote: > On 2009-11-23, Nicholas Walton <nwalton@aplopteng.com> wrote: > >>> I got a working kernel by >>> >>> ?0) pick the arch, board, target filesystem options, etc. >>> ?1) do a "make" and build everything (including a non-working kernel) >>> ?2) overwrite output/build/linux-2.6.30.2/.config with my old >>> ? ?but "working" config file. >>> ?3) "make ARCH=arm oldconfig" in the ?output/build/linux-2.6.30.2 >>> ? ?directory >>> >>> That doesn't feel like the proper way to do it, but it seems to >>> have worked >> >> That does work, but a more direct way would be to do the linux >> configuration through buildroot. >> >> ~/buildroot % make menuconfig >> ~/buildroot % make linux26-menuconfig >> ~/buildroot % cp old-linux.config ?output/build/linux-$version/.config >> ~/buildroot % make linux26-$either_config >> ~/buildroot % make > > What is $either_config? menuconfig or oldconfig. Oldconfig will prompt you with new options, menuconfig assumes you know what you need to change from defaults. Nicholas >> and finally >> >> ~/buildroot % make linux26-update >> >> to copy output/build/linux-$version/.config to >> target/device/$whatever/linux-$version.config, which unlike >> output/ is not .gitignore'd. > > OK, thanks. ^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] How do I configure the kernel? 2009-11-23 21:50 ` Nicholas Walton @ 2009-11-23 21:56 ` Grant Edwards 0 siblings, 0 replies; 11+ messages in thread From: Grant Edwards @ 2009-11-23 21:56 UTC (permalink / raw) To: buildroot On 2009-11-23, Nicholas Walton <nwalton@aplopteng.com> wrote: >>> That does work, but a more direct way would be to do the linux >>> configuration through buildroot. >>> >>> ~/buildroot % make menuconfig >>> ~/buildroot % make linux26-menuconfig >>> ~/buildroot % cp old-linux.config ?output/build/linux-$version/.config >>> ~/buildroot % make linux26-$either_config >>> ~/buildroot % make >> >> What is $either_config? > > menuconfig or oldconfig. Oldconfig will prompt you with new > options, menuconfig assumes you know what you need to change > from defaults. While make linux26-menuconfig works, I could never get "make linux26-oldconfig" to work. That's why I resorted to the method I described. $ make linux26-oldconfig make: *** No rule to make target linux26-oldconfig'. Stop. -- Grant Edwards grante Yow! Are you selling NYLON at OIL WELLS?? If so, we can visi.com use TWO DOZEN!! ^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2009-11-23 21:56 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-20 22:23 [Buildroot] How do I configure the kernel? Grant Edwards
[not found] ` <b680c1c10911201430s25dadd6aj8d1c48afaff91445@mail.gmail.com>
2009-11-20 22:35 ` Nicholas Walton
2009-11-21 5:00 ` Grant Edwards
2009-11-21 18:20 ` Nicholas Walton
2009-11-22 20:44 ` Peter Korsgaard
2009-11-23 19:10 ` Grant Edwards
2009-11-23 20:01 ` Grant Edwards
2009-11-23 20:39 ` Nicholas Walton
2009-11-23 21:41 ` Grant Edwards
2009-11-23 21:50 ` Nicholas Walton
2009-11-23 21:56 ` Grant Edwards
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox