Skip to contentSkip to conversation

Generating a defconfig

Buildroot Joao Pinto 4 participants 8 messages Sep 21, 2015

lore
Share & tools
lore

Joao Pinto

author
#0 lore raw

Hi all!

I am about to generate a buildroot' defconfig for ARM Juno r1 board, and I would like to know what is the std procedure to make this on buildroot.

Thanks,
Joao

#1 lore raw

Joao,

I believe you need to do the "make linux-menuconfig" command to create your own .config file. To my knowledge, all the configs/defconfig files come along the Buildroot installation. They might not be good for your board.

Tommy

-----Original Message-----
From: buildroot [mailto:buildroot-bounces at busybox.net] On Behalf Of Joao Pinto
Sent: Monday, September 21, 2015 9:12 AM
To: buildroot at buildroot.org
Subject: [Buildroot] Generating a defconfig

Hi all!

I am about to generate a buildroot' defconfig for ARM Juno r1 board, and I would like to know what is the std procedure to make this on buildroot.

Thanks,
Joao
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

This e-mail message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. If you are the intended recipient, please be advised that the content of this message is subject to access, review and disclosure by the sender's e-mail System Administrator.

author
#2 lore raw

Hi Tommy!

Quoted 3 lines · Tommy

Joao,

I believe you need to do the "make linux-menuconfig" command to create your own .config file. To my knowledge, all the configs/defconfig files come along the Buildroot installation. They might not be good for your board.

I need to generate a defconfig of the ARM Juno r1 board to submit to Buildroot, not build an existent buildroot' defconfig.
i already have the .config, but I would like to generate a clean defconfig. Is there a std way or is a manual operation?

Quoted 13 lines

Tommy

-----Original Message-----
From: buildroot [mailto:buildroot-bounces at busybox.net] On Behalf Of Joao Pinto
Sent: Monday, September 21, 2015 9:12 AM
To: buildroot at buildroot.org
Subject: [Buildroot] Generating a defconfig

Hi all!

I am about to generate a buildroot' defconfig for ARM Juno r1 board, and I would like to know what is the std procedure to make this on buildroot.

Quoted 9 lines

Thanks,
Joao
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

This e-mail message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. If you are the intended recipient, please be advised that the content of this message is subject to access, review and disclosure by the sender's e-mail System Administrator.

Thanks,
Joao

#3 lore raw

Joao,

I did not do the defconfig generation work before. Other members should be able to help!

Tommy

-----Original Message-----
From: Joao Pinto [mailto:Joao.Pinto at synopsys.com]
Sent: Monday, September 21, 2015 10:04 AM
To: Lee, Tommy; Joao Pinto
Cc: buildroot at buildroot.org
Subject: Re: [Buildroot] Generating a defconfig

Hi Tommy!

Quoted 3 lines · Tommy

Joao,

I believe you need to do the "make linux-menuconfig" command to create your own .config file. To my knowledge, all the configs/defconfig files come along the Buildroot installation. They might not be good for your board.

I need to generate a defconfig of the ARM Juno r1 board to submit to Buildroot, not build an existent buildroot' defconfig. i already have the .config, but I would like to generate a clean defconfig. Is there a std way or is a manual operation?

Quoted 14 lines

Tommy

-----Original Message-----
From: buildroot [mailto:buildroot-bounces at busybox.net] On Behalf Of Joao Pinto
Sent: Monday, September 21, 2015 9:12 AM
To: buildroot at buildroot.org
Subject: [Buildroot] Generating a defconfig

Hi all!

I am about to generate a buildroot' defconfig for ARM Juno r1 board, and I would like to know what is the std procedure to make this on buildroot.

Quoted 9 lines

Thanks,
Joao
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

This e-mail message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. If you are the intended recipient, please be advised that the content of this message is subject to access, review and disclosure by the sender's e-mail System Administrator.

Thanks,
Joao

This e-mail message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. If you are the intended recipient, please be advised that the content of this message is subject to access, review and disclosure by the sender's e-mail System Administrator.

author
#4 lore raw

Tommy,
Thanks anyway!
-Joao

Quoted 52 lines · Tommy

Joao,

I did not do the defconfig generation work before. Other members should be able to help!

Tommy

-----Original Message-----
From: Joao Pinto [mailto:Joao.Pinto at synopsys.com]
Sent: Monday, September 21, 2015 10:04 AM
To: Lee, Tommy; Joao Pinto
Cc: buildroot at buildroot.org
Subject: Re: [Buildroot] Generating a defconfig

Hi Tommy!

Quoted 3 lines · Tommy

Joao,

I believe you need to do the "make linux-menuconfig" command to create your own .config file. To my knowledge, all the configs/defconfig files come along the Buildroot installation. They might not be good for your board.

I need to generate a defconfig of the ARM Juno r1 board to submit to Buildroot, not build an existent buildroot' defconfig. i already have the .config, but I would like to generate a clean defconfig. Is there a std way or is a manual operation?

Quoted 14 lines

Tommy

-----Original Message-----
From: buildroot [mailto:buildroot-bounces at busybox.net] On Behalf Of Joao Pinto
Sent: Monday, September 21, 2015 9:12 AM
To: buildroot at buildroot.org
Subject: [Buildroot] Generating a defconfig

Hi all!

I am about to generate a buildroot' defconfig for ARM Juno r1 board, and I would like to know what is the std procedure to make this on buildroot.

Quoted 9 lines

Thanks,
Joao
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

This e-mail message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. If you are the intended recipient, please be advised that the content of this message is subject to access, review and disclosure by the sender's e-mail System Administrator.

Thanks,
Joao

This e-mail message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. If you are the intended recipient, please be advised that the content of this message is subject to access, review and disclosure by the sender's e-mail System Administrator.

#5 lore raw
In reply to Lee

Tommy Lee,

Quoted 4 lines · Tommy

I believe you need to do the "make linux-menuconfig" command to create your own .config file. To my knowledge, all the configs/defconfig files come along the Buildroot installation. They might not be good for your board.

"make linux-menuconfig" will fire-up the kernel menuconfig tool to customize the kernel configuration. It will certainly not generate a Buildroot defconfig.

Best regards,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#6 lore raw
In reply to Joao Pinto

Joao,

Quoted 2 lines · Joao Pinto

I am about to generate a buildroot' defconfig for ARM Juno r1 board, and I would like to know what is the std procedure to make this on buildroot.

Just create your Buildroot configuration, and then run:

make savedefconfig

It will create a file named 'defconfig', which you can simply move to configs/<foo>_defconfig.

You can also do it in one step like this:

make BR2_DEFCONFIG=configs/<foo>_defconfig savedefconfig

Note that for the board defconfig, we have a few rules in Buildroot:

* The version of the kernel headers and kernel must be fixed (you should not use the "latest version" option)

* The configuration should be minimal, i.e nothing but the default userspace package (just Busybox).

Best regards,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#7 lore raw

Joao, Thomas, All,

On 2015-09-21 19:08 +0200, Thomas Petazzoni spake thusly:

Quoted 15 lines · Joao Pinto
Quoted 2 lines

I am about to generate a buildroot' defconfig for ARM Juno r1 board, and I would like to know what is the std procedure to make this on buildroot.

Just create your Buildroot configuration, and then run:

make savedefconfig

It will create a file named 'defconfig', which you can simply move to configs/<foo>_defconfig.

You can also do it in one step like this:

make BR2_DEFCONFIG=configs/<foo>_defconfig savedefconfig

Quoted 7 lines

Note that for the board defconfig, we have a few rules in Buildroot:

* The version of the kernel headers and kernel must be fixed (you should not use the "latest version" option)

* The configuration should be minimal, i.e nothing but the default userspace package (just Busybox).

To complement what Thomas said:

... and just the minimal set of packages that make the board boot (e.g. the bootloader, a hardware blob and such low-level stuff).

For example, the raspberrypi defconfig files also enable the rpi-firmware package, because it contains the bootloader blob.

Otherwise, as Thomas said: nothing fancy. The strictly minimum to get the board up to a shell.

Regards,
Yann E. MORIN.

Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'