Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/9] iMX6S-PICO: add default config file (imx6spico_defconfig)
Date: Wed, 11 Oct 2017 15:17:25 +0200	[thread overview]
Message-ID: <20171011151725.54ba232c@windsurf.lan> (raw)
In-Reply-To: <1507724378-23461-1-git-send-email-agambier.dev@gmail.com>

Hello,

On Wed, 11 Oct 2017 14:19:30 +0200, Alexandre Gambier wrote:
> Signed-off-by: Alexandre Gambier <agambier.dev@gmail.com>
> ---
>  configs/imx6spico_defconfig | 58 +++++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 58 insertions(+)
>  create mode 100644 configs/imx6spico_defconfig
> 
> diff --git a/configs/imx6spico_defconfig b/configs/imx6spico_defconfig
> new file mode 100644
> index 0000000..16ebf5b
> --- /dev/null
> +++ b/configs/imx6spico_defconfig
> @@ -0,0 +1,58 @@
> +BR2_arm=y
> +BR2_cortex_a9=y
> +BR2_ARM_ENABLE_NEON=y
> +BR2_ARM_ENABLE_VFP=y
> +BR2_ARM_FPU_VFPV3=y
> +BR2_TOOLCHAIN_BUILDROOT_GLIBC=y

Please use the default C library, i.e uClibc.

> +BR2_KERNEL_HEADERS_4_1=y

Please use the "Same as kernel being built" option for the kernel
headers.

> +BR2_GCC_VERSION_5_X=y

Please use the default gcc version.

> +BR2_TOOLCHAIN_BUILDROOT_CXX=y
> +BR2_GCC_ENABLE_LTO=y

Don't enable C++ or LTO support in a defconfig.

> +BR2_PACKAGE_HOST_GDB=y
> +BR2_PACKAGE_HOST_GDB_PYTHON=y

I don't think this is really needed for a defconfig.

> +BR2_ROOTFS_MERGED_USR=y

Same, not needed.

> +BR2_TARGET_GENERIC_GETTY_PORT="ttymxc0"
> +BR2_TARGET_GENERIC_GETTY_BAUDRATE_115200=y
> +BR2_SYSTEM_DHCP="eth0"
> +BR2_ROOTFS_OVERLAY="board/technexion/imx6spico/rootfs_overlay"
> +BR2_ROOTFS_POST_IMAGE_SCRIPT="board/technexion/imx6spico/post-image.sh"

This doesn't work because those files are added in follow-up patches. A
patch series should be bisectable, so it should work if I apply just
PATCH 1, or just PATCH 1, 2, or just PATCH 1, 2, 3.

> +BR2_LINUX_KERNEL=y
> +BR2_LINUX_KERNEL_CUSTOM_GIT=y
> +BR2_LINUX_KERNEL_CUSTOM_REPO_URL="git://github.com/TechNexion/linux.git"
> +BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="ecb66a3d34667fb4402457bbd6a4864e73b0fe87"
> +BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
> +BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/technexion/imx6spico/linux/linux-tn-imx-4.1.15/defconfig"

Same comment here: this is added in a follow up patch.

> +BR2_LINUX_KERNEL_DTS_SUPPORT=y
> +BR2_LINUX_KERNEL_INTREE_DTS_NAME="imx6dl-pico_dwarf"
> +BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y
> +BR2_PACKAGE_EXPAT=y
> +BR2_PACKAGE_LIBCAP=y
> +BR2_PACKAGE_READLINE=y
> +BR2_PACKAGE_DHCP=y
> +BR2_PACKAGE_DHCP_CLIENT=y
> +BR2_PACKAGE_ETHTOOL=y
> +BR2_PACKAGE_IW=y
> +BR2_PACKAGE_NETCAT=y
> +BR2_PACKAGE_OPENSSH=y
> +BR2_PACKAGE_WIRELESS_TOOLS=y
> +BR2_PACKAGE_HTOP=y
> +BR2_PACKAGE_KMOD=y
> +BR2_PACKAGE_KMOD_TOOLS=y
> +BR2_PACKAGE_UTIL_LINUX=y
> +BR2_PACKAGE_UTIL_LINUX_BINARIES=y
> +BR2_PACKAGE_UTIL_LINUX_FSCK=y
> +BR2_PACKAGE_UTIL_LINUX_MOUNT=y
> +BR2_PACKAGE_UTIL_LINUX_NOLOGIN=y

None of these BR2_PACKAGE_* options are needed in a defconfig. We want
them to be minimal.

> +BR2_TARGET_ROOTFS_EXT2=y
> +BR2_TARGET_ROOTFS_EXT2_4=y
> +BR2_TARGET_ROOTFS_EXT2_SIZE="40M"

Why this custom size ?

> +BR2_TARGET_UBOOT=y
> +BR2_TARGET_UBOOT_BOARDNAME="pico-imx6"
> +BR2_TARGET_UBOOT_CUSTOM_GIT=y
> +BR2_TARGET_UBOOT_CUSTOM_REPO_URL="git://github.com/TechNexion/u-boot-edm.git"
> +BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="6b12193853eceda0da3da7eeb73c41ed6059acb4"
> +# BR2_TARGET_UBOOT_FORMAT_BIN is not set
> +BR2_TARGET_UBOOT_FORMAT_IMG=y
> +BR2_TARGET_UBOOT_SPL=y
> +BR2_TARGET_UBOOT_SPL_NAME="SPL"
> +BR2_PACKAGE_HOST_GENIMAGE=y

You also need HOST_DOSFSTOOLS and HOST_MTOOLS, because your
genimage.cfg file generates a VFAT partition.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

  parent reply	other threads:[~2017-10-11 13:17 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-11 12:19 [Buildroot] [PATCH 1/9] iMX6S-PICO: add default config file (imx6spico_defconfig) Alexandre Gambier
2017-10-11 12:19 ` [Buildroot] [PATCH 2/9] iMX6S-PICO: add linux default config file (defconfig) Alexandre Gambier
2017-10-11 12:19 ` [Buildroot] [PATCH 3/9] iMX6S-PICO: add post image scripts Alexandre Gambier
2017-10-11 12:19 ` [Buildroot] [PATCH 4/9] iMX6S-PICO: add firmware files (nvram*) Alexandre Gambier
2017-10-11 12:19 ` [Buildroot] [PATCH 5/9] iMX6S-PICO: add firmware files (bcm*) Alexandre Gambier
2017-10-11 12:19 ` [Buildroot] [PATCH 6/9] iMX6S-PICO: add firmware files (bcmfmac*) Alexandre Gambier
2017-10-11 13:14 ` [Buildroot] [PATCH 1/9] iMX6S-PICO: add default config file (imx6spico_defconfig) Thomas Petazzoni
2017-10-11 16:34   ` Arnout Vandecappelle
2017-10-11 13:17 ` Thomas Petazzoni [this message]
     [not found]   ` <CAKrb2srEz1UeT-RJgY7NCEDp28OX7xGq=JD5qOvR_eZBkkahKg@mail.gmail.com>
     [not found]     ` <20171011164908.3cc14130@windsurf.lan>
     [not found]       ` <CAKrb2soZLWtymDeToLxPmk=Vtdt0E+wT5KHMcCa6x-BLukSCaQ@mail.gmail.com>
2017-10-11 15:34         ` Thomas Petazzoni
2017-10-11 16:04 ` Fabio Estevam
2017-10-11 16:06   ` Fabio Estevam
2017-10-11 16:26 ` Arnout Vandecappelle

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20171011151725.54ba232c@windsurf.lan \
    --to=thomas.petazzoni@free-electrons.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox