Skip to contentSkip to conversation

Trying to configure the kernel

Buildroot Ormund Williams 3 participants 5 messages Apr 5, 2013 – Apr 13, 2013

lore
Share & tools
lore
#0 lore raw

Hi everyone,

I downloaded the latest stable release, 2013.02, then ran 'make
menuconfig' then 'make' and it built without errors, then I wanted to
build the kernel so did 'make menuconfig' again and turned on the kernel
but neither of the choices 'defconfig' or 'custom config file' works
when I try to run 'make linux-menuconfig' I get one of the 2 errors
bellow:
linux/linux.mk:321: *** No kernel defconfig name specified, check your BR2_LINUX_KERNEL_DEFCONFIG setting. Stop.
or
linux/linux.mk:327: *** No kernel configuration file specified, check your BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE setting. Stop.

I feel like I've missed a step. Have I?

Signature · 1 line
Ormund
#1 lore raw

Dear Ormund Williams,

Quoted 11 lines · Ormund Williams

I downloaded the latest stable release, 2013.02, then ran 'make
menuconfig' then 'make' and it built without errors, then I wanted to
build the kernel so did 'make menuconfig' again and turned on the kernel
but neither of the choices 'defconfig' or 'custom config file' works
when I try to run 'make linux-menuconfig' I get one of the 2 errors
bellow:
linux/linux.mk:321: *** No kernel defconfig name specified, check your BR2_LINUX_KERNEL_DEFCONFIG setting. Stop.
or
linux/linux.mk:327: *** No kernel configuration file specified, check your BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE setting. Stop.

I feel like I've missed a step. Have I?

Well, I thought the messages were clear enough, but it seems they are not.

* If you chose to use a defconfig, then you must give the name of a defconfig file, using the BR2_LINUX_KERNEL_DEFCONFIG option.

* If you chose to use a kernel configuration file, then you must give the path to this file in BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE.

In short, there is no way to just "start the kernel configuration", you must first give it an initial existing configuration. Maybe we should add an option "Just run the kernel configuration with whatever defaults for the current architecture", so that you don't have to give an existing defconfig or an existing kernel configuration file.

What architecture and hardware are you targeting? If you're targeting x86, then you can set BR2_LINUX_KERNEL_DEFCONFIG to 'i386', if you're targeting x86-64, then you can set BR2_LINUX_KERNEL_DEFCONFIG to 'x86_64'. If you're targeting ARM, then you should look in the kernel sources which defconfig in arch/arm/configs/ matches your hardware.

Best regards,

Thomas

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
#2 lore raw
Quoted 6 lines · Thomas Petazzoni

Well, I thought the messages were clear enough, but it seems they are not.

* If you chose to use a defconfig, then you must give the name of a defconfig file, using the BR2_LINUX_KERNEL_DEFCONFIG option.

Quoted 9 lines

* If you chose to use a kernel configuration file, then you must give the path to this file in BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE.

In short, there is no way to just "start the kernel configuration", you must first give it an initial existing configuration. Maybe we should add an option "Just run the kernel configuration with whatever defaults for the current architecture", so that you don't have to give an existing defconfig or an existing kernel configuration file.

A default would be great but just adding the above paragraph to section 3.3.4 of the manual would be helpful.

Quoted 6 lines

What architecture and hardware are you targeting? If you're targeting x86, then you can set BR2_LINUX_KERNEL_DEFCONFIG to 'i386', if you're targeting x86-64, then you can set BR2_LINUX_KERNEL_DEFCONFIG to 'x86_64'. If you're targeting ARM, then you should look in the kernel sources which defconfig in arch/arm/configs/ matches your hardware.

An ARM board that I'm currently designing. I wanted to explore a complete system and the make files used to build it.

Regards,

Signature · 1 line
Ormund
#3 lore raw
In reply to Thomas Petazzoni
Quoted 5 lines · Thomas Petazzoni

In short, there is no way to just "start the kernel configuration", you must first give it an initial existing configuration. Maybe we should add an option "Just run the kernel configuration with whatever defaults for the current architecture", so that you don't have to give an existing defconfig or an existing kernel configuration file.

I posted a patch to do exactly that a long time ago. Don't have
internet access at the moment so can't look up the patchwork reference.

Regards,
Arnout

Signature · 6 lines
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
#4 lore raw

Dear Arnout Vandecappelle,

Quoted 11 lines · Arnout Vandecappelle
Quoted 6 lines · Thomas Petazzoni

In short, there is no way to just "start the kernel configuration", you must first give it an initial existing configuration. Maybe we should add an option "Just run the kernel configuration with whatever defaults for the current architecture", so that you don't have to give an existing defconfig or an existing kernel configuration file.

I posted a patch to do exactly that a long time ago. Don't have
internet access at the moment so can't look up the patchwork reference.

I think this is something we should commit, probably as part of a rework of how linux-menuconfig/barebox-menuconfig and al. work, as per our discussions at the FOSDEM Buildroot Developers meeting.

Thomas

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com