Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 0/4] configs: atmel: update of old boards
@ 2016-11-09  6:59 Ludovic Desroches
  2016-11-09  6:59 ` [Buildroot] [PATCH 1/4] configs: atmel: at91sam9260eknf: update defconfig Ludovic Desroches
                   ` (3 more replies)
  0 siblings, 4 replies; 14+ messages in thread
From: Ludovic Desroches @ 2016-11-09  6:59 UTC (permalink / raw)
  To: buildroot

Hi,

Thomas reported me that some components (kernel or u-Boot) are no longer
compiling due to incompatibilities with gcc.

Since there is no longer official releases (linux4sam) for these products,
they will rely on mainline versions for U-Boot and Linux. AT91bootstrap is
bumped to a recent version.

Regards

Ludovic Desroches (4):
  configs: atmel: at91sam9260eknf: update defconfig
  configs: atmel: at91sam9rlek: update defconfig
  configs: atmel: at91sam9g20dfc: update defconfig
  configs: atmel: at91sam9g45m10ek: update defconfig

 configs/at91sam9260eknf_defconfig  | 29 +++++++++++++++--------------
 configs/at91sam9g20dfc_defconfig   | 21 ++++++++++-----------
 configs/at91sam9g45m10ek_defconfig | 23 ++++++++++++++---------
 configs/at91sam9rlek_defconfig     | 23 ++++++++++++++---------
 4 files changed, 53 insertions(+), 43 deletions(-)

-- 
2.9.0

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Buildroot] [PATCH 1/4] configs: atmel: at91sam9260eknf: update defconfig
  2016-11-09  6:59 [Buildroot] [PATCH 0/4] configs: atmel: update of old boards Ludovic Desroches
@ 2016-11-09  6:59 ` Ludovic Desroches
  2016-11-09  7:36   ` Baruch Siach
  2016-11-09  6:59 ` [Buildroot] [PATCH 2/4] configs: atmel: at91sam9rlek: " Ludovic Desroches
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 14+ messages in thread
From: Ludovic Desroches @ 2016-11-09  6:59 UTC (permalink / raw)
  To: buildroot

Bump to a recent version of AT91bootstrap and use mainline version of
U-Boot and Linux.

Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
---
 configs/at91sam9260eknf_defconfig | 22 ++++++++++++----------
 1 file changed, 12 insertions(+), 10 deletions(-)

diff --git a/configs/at91sam9260eknf_defconfig b/configs/at91sam9260eknf_defconfig
index 92bb071..4c17cb6 100644
--- a/configs/at91sam9260eknf_defconfig
+++ b/configs/at91sam9260eknf_defconfig
@@ -2,9 +2,6 @@
 BR2_arm=y
 BR2_arm926t=y
 
-# Linux headers same as kernel, a 3.9 series
-BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_9=y
-
 # Packages
 BR2_PACKAGE_HOST_SAM_BA=y
 
@@ -13,15 +10,20 @@ BR2_TARGET_ROOTFS_UBIFS=y
 BR2_TARGET_ROOTFS_UBI=y
 
 # Bootloaders
-BR2_TARGET_AT91BOOTSTRAP=y
-BR2_TARGET_AT91BOOTSTRAP_BOARD="at91sam9260ek"
-BR2_TARGET_AT91BOOTSTRAP_NANDFLASH=y
+BR2_TARGET_AT91BOOTSTRAP3=y
+BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_GIT=y
+BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_URL="https://github.com/linux4sam/at91bootstrap.git"
+BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_VERSION="v3.8.7"
+BR2_TARGET_AT91BOOTSTRAP3_DEFCONFIG="at91sam9260eknf_uboot"
 BR2_TARGET_BAREBOX=y
 BR2_TARGET_BAREBOX_BOARD_DEFCONFIG="at91sam9260ek"
+BR2_TARGET_UBOOT=y
+BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
+BR2_TARGET_UBOOT_BOARD_DEFCONFIG="at91sam9260ek_nandflash"
 
 # Kernel
 BR2_LINUX_KERNEL=y
-BR2_LINUX_KERNEL_CUSTOM_VERSION=y
-BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="3.9.1"
-BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
-BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/atmel/at91sam9260ek/linux-3.9.config"
+BR2_LINUX_KERNEL_DEFCONFIG="at91_dt"
+BR2_LINUX_KERNEL_DTS_SUPPORT=y
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="at91sam9260ek"
+
-- 
2.9.0

^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [Buildroot] [PATCH 2/4] configs: atmel: at91sam9rlek: update defconfig
  2016-11-09  6:59 [Buildroot] [PATCH 0/4] configs: atmel: update of old boards Ludovic Desroches
  2016-11-09  6:59 ` [Buildroot] [PATCH 1/4] configs: atmel: at91sam9260eknf: update defconfig Ludovic Desroches
@ 2016-11-09  6:59 ` Ludovic Desroches
  2016-11-09  6:59 ` [Buildroot] [PATCH 3/4] configs: atmel: at91sam9g20dfc: " Ludovic Desroches
  2016-11-09  6:59 ` [Buildroot] [PATCH 4/4] configs: atmel: at91sam9g45m10ek: " Ludovic Desroches
  3 siblings, 0 replies; 14+ messages in thread
From: Ludovic Desroches @ 2016-11-09  6:59 UTC (permalink / raw)
  To: buildroot

Bump to a recent version of AT91bootstrap and use mainline version of
U-Boot and Linux.

Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
---
 configs/at91sam9rlek_defconfig | 23 ++++++++++++++---------
 1 file changed, 14 insertions(+), 9 deletions(-)

diff --git a/configs/at91sam9rlek_defconfig b/configs/at91sam9rlek_defconfig
index 66e4a88..ff9ed52 100644
--- a/configs/at91sam9rlek_defconfig
+++ b/configs/at91sam9rlek_defconfig
@@ -1,22 +1,27 @@
+# Architecture
 BR2_arm=y
 BR2_arm926t=y
-# Linux headers same as kernel, a 3.18 series
-BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_18=y
+
+# Kernel
 BR2_LINUX_KERNEL=y
-BR2_LINUX_KERNEL_CUSTOM_GIT=y
-BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://github.com/linux4sam/linux-at91.git"
-BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="03329ca4cf6b94acc5c65b59b2d1f90fdeee0887"
 BR2_LINUX_KERNEL_DEFCONFIG="at91_dt"
 BR2_LINUX_KERNEL_DTS_SUPPORT=y
 BR2_LINUX_KERNEL_INTREE_DTS_NAME="at91sam9rlek"
+
+# Filesystem
 BR2_TARGET_ROOTFS_UBIFS=y
 BR2_TARGET_ROOTFS_UBIFS_MAXLEBCNT=2047
 BR2_TARGET_ROOTFS_UBI=y
+
+# Bootloaders
 BR2_TARGET_AT91BOOTSTRAP3=y
+BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_GIT=y
+BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_URL="https://github.com/linux4sam/at91bootstrap.git"
+BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_VERSION="v3.8.7"
 BR2_TARGET_AT91BOOTSTRAP3_DEFCONFIG="at91sam9rleknf_uboot"
 BR2_TARGET_UBOOT=y
-BR2_TARGET_UBOOT_BOARDNAME="at91sam9rlek_nandflash"
-BR2_TARGET_UBOOT_CUSTOM_GIT=y
-BR2_TARGET_UBOOT_CUSTOM_REPO_URL="https://github.com/linux4sam/u-boot-at91.git"
-BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="677f3c2340b72131beebace8e96cac17b9569887"
+BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
+BR2_TARGET_UBOOT_BOARD_DEFCONFIG="at91sam9rlek_nandflash"
+
+# Tools
 BR2_PACKAGE_HOST_SAM_BA=y
-- 
2.9.0

^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [Buildroot] [PATCH 3/4] configs: atmel: at91sam9g20dfc: update defconfig
  2016-11-09  6:59 [Buildroot] [PATCH 0/4] configs: atmel: update of old boards Ludovic Desroches
  2016-11-09  6:59 ` [Buildroot] [PATCH 1/4] configs: atmel: at91sam9260eknf: update defconfig Ludovic Desroches
  2016-11-09  6:59 ` [Buildroot] [PATCH 2/4] configs: atmel: at91sam9rlek: " Ludovic Desroches
@ 2016-11-09  6:59 ` Ludovic Desroches
  2016-11-09  6:59 ` [Buildroot] [PATCH 4/4] configs: atmel: at91sam9g45m10ek: " Ludovic Desroches
  3 siblings, 0 replies; 14+ messages in thread
From: Ludovic Desroches @ 2016-11-09  6:59 UTC (permalink / raw)
  To: buildroot

Bump to a recent version of AT91bootstrap and use mainline version of
U-Boot and Linux.

Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
---
 configs/at91sam9g20dfc_defconfig | 21 ++++++++++-----------
 1 file changed, 10 insertions(+), 11 deletions(-)

diff --git a/configs/at91sam9g20dfc_defconfig b/configs/at91sam9g20dfc_defconfig
index 4ed5a9b..f3a0881 100644
--- a/configs/at91sam9g20dfc_defconfig
+++ b/configs/at91sam9g20dfc_defconfig
@@ -2,28 +2,27 @@
 BR2_arm=y
 BR2_arm926t=y
 
-# Linux headers same as kernel, a 3.1 series
-BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_1=y
-
 # Host utilities
 #
 BR2_PACKAGE_HOST_SAM_BA=y
 
 # First stage bootloader
-BR2_TARGET_AT91BOOTSTRAP=y
-BR2_TARGET_AT91BOOTSTRAP_BOARD="at91sam9g20ek"
-BR2_TARGET_AT91BOOTSTRAP_DATAFLASHCARD=y
+BR2_TARGET_AT91BOOTSTRAP3=y
+BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_GIT=y
+BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_URL="https://github.com/linux4sam/at91bootstrap.git"
+BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_VERSION="v3.8.7"
+BR2_TARGET_AT91BOOTSTRAP3_DEFCONFIG="at91sam9g20eknf_uboot"
 
 # Second stage bootloader
 BR2_TARGET_UBOOT=y
-BR2_TARGET_UBOOT_BOARDNAME="at91sam9g20ek_nandflash"
+BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
+BR2_TARGET_UBOOT_BOARD_DEFCONFIG="at91sam9g20ek_nandflash"
 
 # Kernel
 BR2_LINUX_KERNEL=y
-BR2_LINUX_KERNEL_CUSTOM_VERSION=y
-BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="3.1.6"
-BR2_LINUX_KERNEL_USE_DEFCONFIG=y
-BR2_LINUX_KERNEL_DEFCONFIG="at91sam9g20ek"
+BR2_LINUX_KERNEL_DEFCONFIG="at91_dt"
+BR2_LINUX_KERNEL_DTS_SUPPORT=y
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="at91sam9g20ek"
 
 # Filesystem
 BR2_TARGET_ROOTFS_TAR=y
-- 
2.9.0

^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [Buildroot] [PATCH 4/4] configs: atmel: at91sam9g45m10ek: update defconfig
  2016-11-09  6:59 [Buildroot] [PATCH 0/4] configs: atmel: update of old boards Ludovic Desroches
                   ` (2 preceding siblings ...)
  2016-11-09  6:59 ` [Buildroot] [PATCH 3/4] configs: atmel: at91sam9g20dfc: " Ludovic Desroches
@ 2016-11-09  6:59 ` Ludovic Desroches
  3 siblings, 0 replies; 14+ messages in thread
From: Ludovic Desroches @ 2016-11-09  6:59 UTC (permalink / raw)
  To: buildroot

Bump to a recent version of AT91bootstrap and use mainline version of
U-Boot and Linux.

Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
---
 configs/at91sam9g45m10ek_defconfig | 23 ++++++++++++++---------
 1 file changed, 14 insertions(+), 9 deletions(-)

diff --git a/configs/at91sam9g45m10ek_defconfig b/configs/at91sam9g45m10ek_defconfig
index 35618d5..de0e92b 100644
--- a/configs/at91sam9g45m10ek_defconfig
+++ b/configs/at91sam9g45m10ek_defconfig
@@ -1,22 +1,27 @@
+# Architecture
 BR2_arm=y
 BR2_arm926t=y
-# Linux headers same as kernel, a 3.18 series
-BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_18=y
+
+# Kernel
 BR2_LINUX_KERNEL=y
-BR2_LINUX_KERNEL_CUSTOM_GIT=y
-BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://github.com/linux4sam/linux-at91.git"
-BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="03329ca4cf6b94acc5c65b59b2d1f90fdeee0887"
 BR2_LINUX_KERNEL_DEFCONFIG="at91_dt"
 BR2_LINUX_KERNEL_DTS_SUPPORT=y
 BR2_LINUX_KERNEL_INTREE_DTS_NAME="at91sam9m10g45ek"
+
+# Filesystem
 BR2_TARGET_ROOTFS_UBIFS=y
 BR2_TARGET_ROOTFS_UBIFS_MAXLEBCNT=2047
 BR2_TARGET_ROOTFS_UBI=y
+
+# Bootloaders
 BR2_TARGET_AT91BOOTSTRAP3=y
+BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_GIT=y
+BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_URL="https://github.com/linux4sam/at91bootstrap.git"
+BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_VERSION="v3.8.7"
 BR2_TARGET_AT91BOOTSTRAP3_DEFCONFIG="at91sam9m10g45eknf_uboot"
 BR2_TARGET_UBOOT=y
-BR2_TARGET_UBOOT_BOARDNAME="at91sam9m10g45ek_nandflash"
-BR2_TARGET_UBOOT_CUSTOM_GIT=y
-BR2_TARGET_UBOOT_CUSTOM_REPO_URL="https://github.com/linux4sam/u-boot-at91.git"
-BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="677f3c2340b72131beebace8e96cac17b9569887"
+BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
+BR2_TARGET_UBOOT_BOARD_DEFCONFIG="at91sam9m10g45ek_nandflash"
+
+# Tools
 BR2_PACKAGE_HOST_SAM_BA=y
-- 
2.9.0

^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [Buildroot] [PATCH 1/4] configs: atmel: at91sam9260eknf: update defconfig
  2016-11-09  6:59 ` [Buildroot] [PATCH 1/4] configs: atmel: at91sam9260eknf: update defconfig Ludovic Desroches
@ 2016-11-09  7:36   ` Baruch Siach
  2016-11-09  9:52     ` Alexandre Belloni
  2016-11-09 10:10     ` Ludovic Desroches
  0 siblings, 2 replies; 14+ messages in thread
From: Baruch Siach @ 2016-11-09  7:36 UTC (permalink / raw)
  To: buildroot

Hi Ludovic,

On Wed, Nov 09, 2016 at 07:59:45AM +0100, Ludovic Desroches wrote:
> Bump to a recent version of AT91bootstrap and use mainline version of
> U-Boot and Linux.
> 
> Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
> ---
>  configs/at91sam9260eknf_defconfig | 22 ++++++++++++----------
>  1 file changed, 12 insertions(+), 10 deletions(-)
> 
> diff --git a/configs/at91sam9260eknf_defconfig b/configs/at91sam9260eknf_defconfig
> index 92bb071..4c17cb6 100644
> --- a/configs/at91sam9260eknf_defconfig
> +++ b/configs/at91sam9260eknf_defconfig
> @@ -2,9 +2,6 @@
>  BR2_arm=y
>  BR2_arm926t=y
>  
> -# Linux headers same as kernel, a 3.9 series
> -BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_9=y
> -
>  # Packages
>  BR2_PACKAGE_HOST_SAM_BA=y
>  
> @@ -13,15 +10,20 @@ BR2_TARGET_ROOTFS_UBIFS=y
>  BR2_TARGET_ROOTFS_UBI=y
>  
>  # Bootloaders
> -BR2_TARGET_AT91BOOTSTRAP=y
> -BR2_TARGET_AT91BOOTSTRAP_BOARD="at91sam9260ek"
> -BR2_TARGET_AT91BOOTSTRAP_NANDFLASH=y
> +BR2_TARGET_AT91BOOTSTRAP3=y
> +BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_GIT=y
> +BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_URL="https://github.com/linux4sam/at91bootstrap.git"
> +BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_VERSION="v3.8.7"
> +BR2_TARGET_AT91BOOTSTRAP3_DEFCONFIG="at91sam9260eknf_uboot"
>  BR2_TARGET_BAREBOX=y
>  BR2_TARGET_BAREBOX_BOARD_DEFCONFIG="at91sam9260ek"
> +BR2_TARGET_UBOOT=y
> +BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
> +BR2_TARGET_UBOOT_BOARD_DEFCONFIG="at91sam9260ek_nandflash"

Why enable both U-Boot and Barebox?

>  # Kernel
>  BR2_LINUX_KERNEL=y
> -BR2_LINUX_KERNEL_CUSTOM_VERSION=y
> -BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="3.9.1"

For the sake of reproducibility you should set this to the version you tested, 
say, 4.8.6. The same goes for other patches in this series.

> -BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
> -BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/atmel/at91sam9260ek/linux-3.9.config"

You can now drop this file.

> +BR2_LINUX_KERNEL_DEFCONFIG="at91_dt"
> +BR2_LINUX_KERNEL_DTS_SUPPORT=y
> +BR2_LINUX_KERNEL_INTREE_DTS_NAME="at91sam9260ek"

baruch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Buildroot] [PATCH 1/4] configs: atmel: at91sam9260eknf: update defconfig
  2016-11-09  7:36   ` Baruch Siach
@ 2016-11-09  9:52     ` Alexandre Belloni
  2016-11-09 10:00       ` Baruch Siach
  2016-11-09 10:10     ` Ludovic Desroches
  1 sibling, 1 reply; 14+ messages in thread
From: Alexandre Belloni @ 2016-11-09  9:52 UTC (permalink / raw)
  To: buildroot

On 09/11/2016 at 09:36:38 +0200, Baruch Siach wrote :
> Hi Ludovic,
> 
> On Wed, Nov 09, 2016 at 07:59:45AM +0100, Ludovic Desroches wrote:
> >  # Kernel
> >  BR2_LINUX_KERNEL=y
> > -BR2_LINUX_KERNEL_CUSTOM_VERSION=y
> > -BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="3.9.1"
> 
> For the sake of reproducibility you should set this to the version you tested, 
> say, 4.8.6. The same goes for other patches in this series.
> 

I'm not sure this is actually useful because the amount of testing is
minimal and it just increases the maintenance burden.


-- 
Alexandre Belloni, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Buildroot] [PATCH 1/4] configs: atmel: at91sam9260eknf: update defconfig
  2016-11-09  9:52     ` Alexandre Belloni
@ 2016-11-09 10:00       ` Baruch Siach
  2016-11-09 10:12         ` Alexandre Belloni
  2016-11-09 10:15         ` Ludovic Desroches
  0 siblings, 2 replies; 14+ messages in thread
From: Baruch Siach @ 2016-11-09 10:00 UTC (permalink / raw)
  To: buildroot

Hi Alexandre,

On Wed, Nov 09, 2016 at 10:52:49AM +0100, Alexandre Belloni wrote:
> On 09/11/2016 at 09:36:38 +0200, Baruch Siach wrote :
> > On Wed, Nov 09, 2016 at 07:59:45AM +0100, Ludovic Desroches wrote:
> > >  # Kernel
> > >  BR2_LINUX_KERNEL=y
> > > -BR2_LINUX_KERNEL_CUSTOM_VERSION=y
> > > -BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="3.9.1"
> > 
> > For the sake of reproducibility you should set this to the version you tested, 
> > say, 4.8.6. The same goes for other patches in this series.
> 
> I'm not sure this is actually useful because the amount of testing is
> minimal and it just increases the maintenance burden.

I don't understand. How would locking a specific kernel version in the 
defconfig increase maintenance burden? Any tested kernel version would do. We 
just want to ensure consistent user experience. Otherwise the built kernel 
will change with the default value of BR2_LINUX_KERNEL_VERSION.

baruch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Buildroot] [PATCH 1/4] configs: atmel: at91sam9260eknf: update defconfig
  2016-11-09  7:36   ` Baruch Siach
  2016-11-09  9:52     ` Alexandre Belloni
@ 2016-11-09 10:10     ` Ludovic Desroches
  2016-11-09 10:25       ` Thomas Petazzoni
  1 sibling, 1 reply; 14+ messages in thread
From: Ludovic Desroches @ 2016-11-09 10:10 UTC (permalink / raw)
  To: buildroot

On Wed, Nov 09, 2016 at 09:36:38AM +0200, Baruch Siach wrote:
> Hi Ludovic,
> 
> On Wed, Nov 09, 2016 at 07:59:45AM +0100, Ludovic Desroches wrote:
> > Bump to a recent version of AT91bootstrap and use mainline version of
> > U-Boot and Linux.
> > 
> > Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
> > ---
> >  configs/at91sam9260eknf_defconfig | 22 ++++++++++++----------
> >  1 file changed, 12 insertions(+), 10 deletions(-)
> > 
> > diff --git a/configs/at91sam9260eknf_defconfig b/configs/at91sam9260eknf_defconfig
> > index 92bb071..4c17cb6 100644
> > --- a/configs/at91sam9260eknf_defconfig
> > +++ b/configs/at91sam9260eknf_defconfig
> > @@ -2,9 +2,6 @@
> >  BR2_arm=y
> >  BR2_arm926t=y
> >  
> > -# Linux headers same as kernel, a 3.9 series
> > -BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_9=y
> > -
> >  # Packages
> >  BR2_PACKAGE_HOST_SAM_BA=y
> >  
> > @@ -13,15 +10,20 @@ BR2_TARGET_ROOTFS_UBIFS=y
> >  BR2_TARGET_ROOTFS_UBI=y
> >  
> >  # Bootloaders
> > -BR2_TARGET_AT91BOOTSTRAP=y
> > -BR2_TARGET_AT91BOOTSTRAP_BOARD="at91sam9260ek"
> > -BR2_TARGET_AT91BOOTSTRAP_NANDFLASH=y
> > +BR2_TARGET_AT91BOOTSTRAP3=y
> > +BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_GIT=y
> > +BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_URL="https://github.com/linux4sam/at91bootstrap.git"
> > +BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_VERSION="v3.8.7"
> > +BR2_TARGET_AT91BOOTSTRAP3_DEFCONFIG="at91sam9260eknf_uboot"
> >  BR2_TARGET_BAREBOX=y
> >  BR2_TARGET_BAREBOX_BOARD_DEFCONFIG="at91sam9260ek"
> > +BR2_TARGET_UBOOT=y
> > +BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
> > +BR2_TARGET_UBOOT_BOARD_DEFCONFIG="at91sam9260ek_nandflash"
> 
> Why enable both U-Boot and Barebox?
> 

I don't know why Barebox was selected but the 'official' bootloader is
U-Boot for all our products that's why I add it. I kept Barebox because
it was already selected and I don't know if someone is still using it or
not.

> >  # Kernel
> >  BR2_LINUX_KERNEL=y
> > -BR2_LINUX_KERNEL_CUSTOM_VERSION=y
> > -BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="3.9.1"
> 
> For the sake of reproducibility you should set this to the version you tested, 
> say, 4.8.6. The same goes for other patches in this series.
>

As Alexandre said, we don't want to spend time for the maintainance of these
old boards so sticking to the mainline seems to be the way to go. Giving a
version is a kind of commitment but we no longer perform tests on these
boards excepting kernel boot with kernelci.

> > -BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
> > -BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/atmel/at91sam9260ek/linux-3.9.config"
> 
> You can now drop this file.

Ok.

> 
> > +BR2_LINUX_KERNEL_DEFCONFIG="at91_dt"
> > +BR2_LINUX_KERNEL_DTS_SUPPORT=y
> > +BR2_LINUX_KERNEL_INTREE_DTS_NAME="at91sam9260ek"
> 
> baruch
> 
> -- 
>      http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
> =}------------------------------------------------ooO--U--Ooo------------{=
>    - baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Buildroot] [PATCH 1/4] configs: atmel: at91sam9260eknf: update defconfig
  2016-11-09 10:00       ` Baruch Siach
@ 2016-11-09 10:12         ` Alexandre Belloni
  2016-11-09 10:15         ` Ludovic Desroches
  1 sibling, 0 replies; 14+ messages in thread
From: Alexandre Belloni @ 2016-11-09 10:12 UTC (permalink / raw)
  To: buildroot

On 09/11/2016 at 12:00:27 +0200, Baruch Siach wrote :
> Hi Alexandre,
> 
> On Wed, Nov 09, 2016 at 10:52:49AM +0100, Alexandre Belloni wrote:
> > On 09/11/2016 at 09:36:38 +0200, Baruch Siach wrote :
> > > On Wed, Nov 09, 2016 at 07:59:45AM +0100, Ludovic Desroches wrote:
> > > >  # Kernel
> > > >  BR2_LINUX_KERNEL=y
> > > > -BR2_LINUX_KERNEL_CUSTOM_VERSION=y
> > > > -BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="3.9.1"
> > > 
> > > For the sake of reproducibility you should set this to the version you tested, 
> > > say, 4.8.6. The same goes for other patches in this series.
> > 
> > I'm not sure this is actually useful because the amount of testing is
> > minimal and it just increases the maintenance burden.
> 
> I don't understand. How would locking a specific kernel version in the 
> defconfig increase maintenance burden? Any tested kernel version would do. We 
> just want to ensure consistent user experience. Otherwise the built kernel 
> will change with the default value of BR2_LINUX_KERNEL_VERSION.
> 

Yeah, that's my point. Any kernel version will do and that avoids having
to update it in the defconfig all the time, hence less maintenance. The
previous defconfig has not been building for a while (basically, since
the switch to gcc5).

-- 
Alexandre Belloni, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Buildroot] [PATCH 1/4] configs: atmel: at91sam9260eknf: update defconfig
  2016-11-09 10:00       ` Baruch Siach
  2016-11-09 10:12         ` Alexandre Belloni
@ 2016-11-09 10:15         ` Ludovic Desroches
  1 sibling, 0 replies; 14+ messages in thread
From: Ludovic Desroches @ 2016-11-09 10:15 UTC (permalink / raw)
  To: buildroot

On Wed, Nov 09, 2016 at 12:00:27PM +0200, Baruch Siach wrote:
> Hi Alexandre,
> 
> On Wed, Nov 09, 2016 at 10:52:49AM +0100, Alexandre Belloni wrote:
> > On 09/11/2016 at 09:36:38 +0200, Baruch Siach wrote :
> > > On Wed, Nov 09, 2016 at 07:59:45AM +0100, Ludovic Desroches wrote:
> > > >  # Kernel
> > > >  BR2_LINUX_KERNEL=y
> > > > -BR2_LINUX_KERNEL_CUSTOM_VERSION=y
> > > > -BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="3.9.1"
> > > 
> > > For the sake of reproducibility you should set this to the version you tested, 
> > > say, 4.8.6. The same goes for other patches in this series.
> > 
> > I'm not sure this is actually useful because the amount of testing is
> > minimal and it just increases the maintenance burden.
> 
> I don't understand. How would locking a specific kernel version in the 
> defconfig increase maintenance burden? Any tested kernel version would do. We 
> just want to ensure consistent user experience. Otherwise the built kernel 
> will change with the default value of BR2_LINUX_KERNEL_VERSION.
> 

That's the goal. Kernel was no longer compiling because it was too old
to be used with gcc5. We may have the same situation in the future and
we'll simply choose the latest kernel release for the update as I do today.
That's why Alexandre says that it will increase the maintenance.

Ludovic

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Buildroot] [PATCH 1/4] configs: atmel: at91sam9260eknf: update defconfig
  2016-11-09 10:10     ` Ludovic Desroches
@ 2016-11-09 10:25       ` Thomas Petazzoni
  2016-11-09 10:39         ` Ludovic Desroches
  0 siblings, 1 reply; 14+ messages in thread
From: Thomas Petazzoni @ 2016-11-09 10:25 UTC (permalink / raw)
  To: buildroot

Hello,

On Wed, 9 Nov 2016 11:10:09 +0100, Ludovic Desroches wrote:

> > Why enable both U-Boot and Barebox?
> >   
> 
> I don't know why Barebox was selected but the 'official' bootloader is
> U-Boot for all our products that's why I add it. I kept Barebox because
> it was already selected and I don't know if someone is still using it or
> not.

But the end result is a defconfig that doesn't make any sense.

Please provide a defconfig that makes sense, and with an updated
readme.txt if you decide to change the bootloader (and therefore the
flashing instructions).

> > >  # Kernel
> > >  BR2_LINUX_KERNEL=y
> > > -BR2_LINUX_KERNEL_CUSTOM_VERSION=y
> > > -BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="3.9.1"  
> > 
> > For the sake of reproducibility you should set this to the version you tested, 
> > say, 4.8.6. The same goes for other patches in this series.
> 
> As Alexandre said, we don't want to spend time for the maintainance of these
> old boards so sticking to the mainline seems to be the way to go. Giving a
> version is a kind of commitment but we no longer perform tests on these
> boards excepting kernel boot with kernelci.

That's not Buildroot policy. We want defconfigs with fixed kernel and
bootloader versions, so that we know they have been tested.

If you are not able/willing to test those defconfigs, then we could
just as well remove them. But I'm not going to merge a defconfig that
doesn't comply with our policy of having a fixed kernel and a fixed
bootloader version.

Best regards,

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

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Buildroot] [PATCH 1/4] configs: atmel: at91sam9260eknf: update defconfig
  2016-11-09 10:25       ` Thomas Petazzoni
@ 2016-11-09 10:39         ` Ludovic Desroches
  2016-11-09 11:08           ` Thomas Petazzoni
  0 siblings, 1 reply; 14+ messages in thread
From: Ludovic Desroches @ 2016-11-09 10:39 UTC (permalink / raw)
  To: buildroot

On Wed, Nov 09, 2016 at 11:25:50AM +0100, Thomas Petazzoni wrote:
> Hello,
> 
> On Wed, 9 Nov 2016 11:10:09 +0100, Ludovic Desroches wrote:
> 
> > > Why enable both U-Boot and Barebox?
> > >   
> > 
> > I don't know why Barebox was selected but the 'official' bootloader is
> > U-Boot for all our products that's why I add it. I kept Barebox because
> > it was already selected and I don't know if someone is still using it or
> > not.
> 
> But the end result is a defconfig that doesn't make any sense.
> 
> Please provide a defconfig that makes sense, and with an updated
> readme.txt if you decide to change the bootloader (and therefore the
> flashing instructions).
> 
> > > >  # Kernel
> > > >  BR2_LINUX_KERNEL=y
> > > > -BR2_LINUX_KERNEL_CUSTOM_VERSION=y
> > > > -BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="3.9.1"  
> > > 
> > > For the sake of reproducibility you should set this to the version you tested, 
> > > say, 4.8.6. The same goes for other patches in this series.
> > 
> > As Alexandre said, we don't want to spend time for the maintainance of these
> > old boards so sticking to the mainline seems to be the way to go. Giving a
> > version is a kind of commitment but we no longer perform tests on these
> > boards excepting kernel boot with kernelci.
> 
> That's not Buildroot policy. We want defconfigs with fixed kernel and
> bootloader versions, so that we know they have been tested.
> 
> If you are not able/willing to test those defconfigs, then we could
> just as well remove them. But I'm not going to merge a defconfig that
> doesn't comply with our policy of having a fixed kernel and a fixed
> bootloader version.
> 

Can I use a fixed version of the compiler too? It seems it makes sense
because this defconfig was tested but is no more compiling.

Regards

Ludovic

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

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Buildroot] [PATCH 1/4] configs: atmel: at91sam9260eknf: update defconfig
  2016-11-09 10:39         ` Ludovic Desroches
@ 2016-11-09 11:08           ` Thomas Petazzoni
  0 siblings, 0 replies; 14+ messages in thread
From: Thomas Petazzoni @ 2016-11-09 11:08 UTC (permalink / raw)
  To: buildroot

Hello,

On Wed, 9 Nov 2016 11:39:55 +0100, Ludovic Desroches wrote:

> > If you are not able/willing to test those defconfigs, then we could
> > just as well remove them. But I'm not going to merge a defconfig that
> > doesn't comply with our policy of having a fixed kernel and a fixed
> > bootloader version.
> 
> Can I use a fixed version of the compiler too? It seems it makes sense
> because this defconfig was tested but is no more compiling.

This could be an option indeed (reverting to gcc 4.x instead of gcc
5.x). However, the fact that no-one is willing to test/maintain this
defconfig is a sign that nobody is interested in it. So I'd rather
remove it, than keep a defconfig that gets never updated, even when
there is a build issue.

So, options are clear:

 1. Remove the defconfig entirely.

 2. Update the defconfig in the proper way, minimally tested on HW.

Best regards,

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

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2016-11-09 11:08 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-09  6:59 [Buildroot] [PATCH 0/4] configs: atmel: update of old boards Ludovic Desroches
2016-11-09  6:59 ` [Buildroot] [PATCH 1/4] configs: atmel: at91sam9260eknf: update defconfig Ludovic Desroches
2016-11-09  7:36   ` Baruch Siach
2016-11-09  9:52     ` Alexandre Belloni
2016-11-09 10:00       ` Baruch Siach
2016-11-09 10:12         ` Alexandre Belloni
2016-11-09 10:15         ` Ludovic Desroches
2016-11-09 10:10     ` Ludovic Desroches
2016-11-09 10:25       ` Thomas Petazzoni
2016-11-09 10:39         ` Ludovic Desroches
2016-11-09 11:08           ` Thomas Petazzoni
2016-11-09  6:59 ` [Buildroot] [PATCH 2/4] configs: atmel: at91sam9rlek: " Ludovic Desroches
2016-11-09  6:59 ` [Buildroot] [PATCH 3/4] configs: atmel: at91sam9g20dfc: " Ludovic Desroches
2016-11-09  6:59 ` [Buildroot] [PATCH 4/4] configs: atmel: at91sam9g45m10ek: " Ludovic Desroches

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox