All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 0/2] macchiatobin: drop vendor defconfig and update bsp
@ 2020-04-15 13:41 Sergey Matyukevich
  2020-04-15 13:41 ` [Buildroot] [PATCH 1/2] configs/solidrun_macchiatobin_mainline: bump bsp versions Sergey Matyukevich
  2020-04-15 13:41 ` [Buildroot] [PATCH 2/2] configs/macchiatobin: drop marvell defconfig Sergey Matyukevich
  0 siblings, 2 replies; 6+ messages in thread
From: Sergey Matyukevich @ 2020-04-15 13:41 UTC (permalink / raw)
  To: buildroot

Hello Thomas and all,

This patch series includes regular MacchiatoBin BSP maintenance. U-Boot
and Linux kernel versions are updated. Besides, removal of vendor
specific defconfig is suggested.

Regards,
Sergey

Sergey Matyukevich (2):
  configs/solidrun_macchiatobin_mainline: bump bsp versions
  configs/macchiatobin: drop marvell defconfig

 DEVELOPERS                                    |  3 +-
 board/solidrun/macchiatobin/readme.txt        | 44 ++++++-------------
 ...config => solidrun_macchiatobin_defconfig} |  8 ++--
 .../solidrun_macchiatobin_marvell_defconfig   | 44 -------------------
 4 files changed, 20 insertions(+), 79 deletions(-)
 rename configs/{solidrun_macchiatobin_mainline_defconfig => solidrun_macchiatobin_defconfig} (90%)
 delete mode 100644 configs/solidrun_macchiatobin_marvell_defconfig

-- 
2.26.0

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

* [Buildroot] [PATCH 1/2] configs/solidrun_macchiatobin_mainline: bump bsp versions
  2020-04-15 13:41 [Buildroot] [PATCH 0/2] macchiatobin: drop vendor defconfig and update bsp Sergey Matyukevich
@ 2020-04-15 13:41 ` Sergey Matyukevich
  2020-04-15 21:07   ` Thomas Petazzoni
  2020-04-15 13:41 ` [Buildroot] [PATCH 2/2] configs/macchiatobin: drop marvell defconfig Sergey Matyukevich
  1 sibling, 1 reply; 6+ messages in thread
From: Sergey Matyukevich @ 2020-04-15 13:41 UTC (permalink / raw)
  To: buildroot

Bump Linux to 5.6.3, U-Boot to 2020.01. New kernel and modules based
on arm64 defconfig do not fit into default size filesystem anymore.
So increase filesystem size to 120M.

Signed-off-by: Sergey Matyukevich <geomatsi@gmail.com>
---
 configs/solidrun_macchiatobin_mainline_defconfig | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/configs/solidrun_macchiatobin_mainline_defconfig b/configs/solidrun_macchiatobin_mainline_defconfig
index e601092d67..f1ca7764b1 100644
--- a/configs/solidrun_macchiatobin_mainline_defconfig
+++ b/configs/solidrun_macchiatobin_mainline_defconfig
@@ -1,5 +1,5 @@
 BR2_aarch64=y
-BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_2=y
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_6=y
 BR2_TARGET_GENERIC_HOSTNAME="mcbin"
 BR2_TARGET_GENERIC_ISSUE="Welcome to Buildroot for Marvell MacchiatoBin"
 
@@ -19,7 +19,7 @@ BR2_TARGET_MV_DDR_MARVELL=y
 # U-Boot
 BR2_TARGET_UBOOT=y
 BR2_TARGET_UBOOT_CUSTOM_VERSION=y
-BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2019.07"
+BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2020.01"
 BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
 BR2_TARGET_UBOOT_USE_DEFCONFIG=y
 BR2_TARGET_UBOOT_BOARD_DEFCONFIG="mvebu_mcbin-88f8040"
@@ -28,7 +28,7 @@ BR2_TARGET_UBOOT_CONFIG_FRAGMENT_FILES="board/solidrun/macchiatobin/uboot-fragme
 # Kernel
 BR2_LINUX_KERNEL=y
 BR2_LINUX_KERNEL_CUSTOM_VERSION=y
-BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.2.14"
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.6.3"
 BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y
 BR2_LINUX_KERNEL_DTS_SUPPORT=y
 BR2_LINUX_KERNEL_INTREE_DTS_NAME="marvell/armada-8040-mcbin"
@@ -40,6 +40,8 @@ BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
 BR2_TARGET_ROOTFS_TAR=y
 BR2_TARGET_ROOTFS_EXT2=y
 BR2_TARGET_ROOTFS_EXT2_4=y
+BR2_TARGET_ROOTFS_EXT2_SIZE="120M"
+
 BR2_PACKAGE_HOST_GENIMAGE=y
 BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh"
 BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/solidrun/macchiatobin/genimage.cfg"
-- 
2.26.0

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

* [Buildroot] [PATCH 2/2] configs/macchiatobin: drop marvell defconfig
  2020-04-15 13:41 [Buildroot] [PATCH 0/2] macchiatobin: drop vendor defconfig and update bsp Sergey Matyukevich
  2020-04-15 13:41 ` [Buildroot] [PATCH 1/2] configs/solidrun_macchiatobin_mainline: bump bsp versions Sergey Matyukevich
@ 2020-04-15 13:41 ` Sergey Matyukevich
  2020-04-15 21:08   ` Thomas Petazzoni
  1 sibling, 1 reply; 6+ messages in thread
From: Sergey Matyukevich @ 2020-04-15 13:41 UTC (permalink / raw)
  To: buildroot

Support for MacchiatoBin board in U-Boot and Linux has been significantly
improved during the last several years. So there is not much sense in
having a separate build configuration based on older vendor Linux kernel
and U-Boot. Drop marvell config and rename mainline config.

Signed-off-by: Sergey Matyukevich <geomatsi@gmail.com>
---
 DEVELOPERS                                    |  3 +-
 board/solidrun/macchiatobin/readme.txt        | 44 ++++++-------------
 ...config => solidrun_macchiatobin_defconfig} |  0
 .../solidrun_macchiatobin_marvell_defconfig   | 44 -------------------
 4 files changed, 15 insertions(+), 76 deletions(-)
 rename configs/{solidrun_macchiatobin_mainline_defconfig => solidrun_macchiatobin_defconfig} (100%)
 delete mode 100644 configs/solidrun_macchiatobin_marvell_defconfig

diff --git a/DEVELOPERS b/DEVELOPERS
index 375ab07092..3d9c976a95 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -2308,8 +2308,7 @@ F:	configs/linksprite_pcduino_defconfig
 F:	configs/orangepi_one_defconfig
 F:	configs/orangepi_pc_plus_defconfig
 F:	configs/orangepi_zero_defconfig
-F:	configs/solidrun_macchiatobin_mainline_defconfig
-F:	configs/solidrun_macchiatobin_marvell_defconfig
+F:	configs/solidrun_macchiatobin_defconfig
 F:	package/armbian-firmware/
 F:	package/hostapd/
 F:	package/rtl8189fs/
diff --git a/board/solidrun/macchiatobin/readme.txt b/board/solidrun/macchiatobin/readme.txt
index dc5d6c794d..7412951aab 100644
--- a/board/solidrun/macchiatobin/readme.txt
+++ b/board/solidrun/macchiatobin/readme.txt
@@ -12,32 +12,14 @@ through the serial console.
 How to build
 ============
 
-There are two build options: mainline support and vendor support.
+Default configuration provides the following BSP versions:
+ - Linux v5.6.3 (mainline)
+ - U-Boot v2020.01 (mainline)
+ - ATF v1.5-18.12.2 (Marvell)
 
-For the mainline BSP, we use:
- - Linux v4.19.2
- - U-Boot v2018.11
+To build images run the following commands:
 
-For the vendor BSP, we use the sources available from Marvell Github
-page at https://github.com/MarvellEmbeddedProcessors, which uses:
- - Linux v4.4.120
- - U-Boot v2018.03
-
-At the moment mainline support for the board is a work in
-progress. Mainline kernel 4.19 enables eth2 in 1Gb (RJ45 connector J5),
-copper 10Gb interfaces, and automatic configuration of select SFP
-modules on the SFP cages. The vendor BSP enables more hardware features
-out of the box, but lacks support for SFP detection and automatic
-configuration.
-
-To use the mainline BSP run the following commands:
-
-    $ make solidrun_macchiatobin_mainline_defconfig
-    $ make
-
-To use the vendor BSP run the following commands:
-
-    $ make solidrun_macchiatobin_marvell_defconfig
+    $ make solidrun_macchiatobin_defconfig
     $ make
 
 How to write the SD card
@@ -74,13 +56,15 @@ Insert the micro SDcard in the MacchiatoBin board and power it up.
 The serial console is accessible at the micro-USB Type-B connector
 marked CON9. The serial line settings are 115200 8N1.
 
-Note: the following text only applies to the vendor BSP from
-solidrun_macchiatobin_marvell_defconfig.
+U-Boot environment
+==================
 
-By default Marvell provided U-Boot will load its environment from the
-SPI flash. On the first boot SPI flash may be empty or it may contain a
-legacy environment that prevents proper boot. Then the following
-commands can be used to boot the board:
+By default current configuration provides U-Boot that keeps environment
+in SD/eMMC. However, if needed, u-boot-fragment.config can be tweaked
+so that U-Boot will keep environment in SPI flash. On the first boot
+SPI flash may be empty or it may contain a stale environment that
+prevents proper boot. Then the following commands can be used
+to boot the board:
 
 => ext4load mmc 1:1 0x01700000 /boot/uEnv-example.txt
 => env import -t 0x01700000 $filesize
diff --git a/configs/solidrun_macchiatobin_mainline_defconfig b/configs/solidrun_macchiatobin_defconfig
similarity index 100%
rename from configs/solidrun_macchiatobin_mainline_defconfig
rename to configs/solidrun_macchiatobin_defconfig
diff --git a/configs/solidrun_macchiatobin_marvell_defconfig b/configs/solidrun_macchiatobin_marvell_defconfig
deleted file mode 100644
index 4d269b9f75..0000000000
--- a/configs/solidrun_macchiatobin_marvell_defconfig
+++ /dev/null
@@ -1,44 +0,0 @@
-BR2_aarch64=y
-BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_4=y
-BR2_TARGET_GENERIC_HOSTNAME="mcbin"
-BR2_TARGET_GENERIC_ISSUE="Welcome to Buildroot for Marvell MacchiatoBin"
-
-# Firmware
-BR2_TARGET_ARM_TRUSTED_FIRMWARE=y
-BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_GIT=y
-BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_REPO_URL="https://github.com/MarvellEmbeddedProcessors/atf-marvell.git"
-# This commit corresponds to release armada-18.09.4
-BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_REPO_VERSION="711ecd32afe465b38052b5ba374c825b158eea18"
-BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="a80x0_mcbin"
-BR2_TARGET_ARM_TRUSTED_FIRMWARE_FIP=y
-BR2_TARGET_ARM_TRUSTED_FIRMWARE_UBOOT_AS_BL33=y
-BR2_TARGET_ARM_TRUSTED_FIRMWARE_ADDITIONAL_VARIABLES="USE_COHERENT_MEM=0"
-BR2_TARGET_BINARIES_MARVELL=y
-BR2_TARGET_MV_DDR_MARVELL=y
-
-# U-Boot
-BR2_TARGET_UBOOT=y
-BR2_TARGET_UBOOT_CUSTOM_GIT=y
-BR2_TARGET_UBOOT_CUSTOM_REPO_URL="https://github.com/MarvellEmbeddedProcessors/u-boot-marvell"
-# This commit corresponds to armada-18.09.1, based on u-boot 2018.03
-BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="8fe403172c58440bcfbb3724242301c0108eff5b"
-BR2_TARGET_UBOOT_BOARDNAME="mvebu_mcbin-88f8040"
-BR2_TARGET_UBOOT_NEEDS_DTC=y
-
-# Kernel
-BR2_LINUX_KERNEL=y
-BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
-BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,MarvellEmbeddedProcessors,linux-marvell,linux-4.4.52-armada-17.10)/linux-linux-4.4.120-armada-18.09.tar.gz"
-BR2_LINUX_KERNEL_DEFCONFIG="mvebu_v8_lsp"
-BR2_LINUX_KERNEL_DTS_SUPPORT=y
-BR2_LINUX_KERNEL_INTREE_DTS_NAME="marvell/armada-8040-mcbin"
-BR2_LINUX_KERNEL_INSTALL_TARGET=y
-
-# rootfs
-BR2_TARGET_ROOTFS_TAR=y
-BR2_TARGET_ROOTFS_EXT2=y
-BR2_TARGET_ROOTFS_EXT2_4=y
-BR2_PACKAGE_HOST_GENIMAGE=y
-BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh"
-BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/solidrun/macchiatobin/genimage.cfg"
-BR2_ROOTFS_POST_BUILD_SCRIPT="board/solidrun/macchiatobin/post-build.sh"
-- 
2.26.0

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

* [Buildroot] [PATCH 1/2] configs/solidrun_macchiatobin_mainline: bump bsp versions
  2020-04-15 13:41 ` [Buildroot] [PATCH 1/2] configs/solidrun_macchiatobin_mainline: bump bsp versions Sergey Matyukevich
@ 2020-04-15 21:07   ` Thomas Petazzoni
  2020-04-16 10:54     ` Sergey Matyukevich
  0 siblings, 1 reply; 6+ messages in thread
From: Thomas Petazzoni @ 2020-04-15 21:07 UTC (permalink / raw)
  To: buildroot

On Wed, 15 Apr 2020 16:41:35 +0300
Sergey Matyukevich <geomatsi@gmail.com> wrote:

> Bump Linux to 5.6.3, U-Boot to 2020.01. New kernel and modules based
> on arm64 defconfig do not fit into default size filesystem anymore.
> So increase filesystem size to 120M.
> 
> Signed-off-by: Sergey Matyukevich <geomatsi@gmail.com>
> ---
>  configs/solidrun_macchiatobin_mainline_defconfig | 8 +++++---
>  1 file changed, 5 insertions(+), 3 deletions(-)

Applied to master, thanks. It would be good to see of upstream ATF
could be used instead of the Marvell-specific version.

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

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

* [Buildroot] [PATCH 2/2] configs/macchiatobin: drop marvell defconfig
  2020-04-15 13:41 ` [Buildroot] [PATCH 2/2] configs/macchiatobin: drop marvell defconfig Sergey Matyukevich
@ 2020-04-15 21:08   ` Thomas Petazzoni
  0 siblings, 0 replies; 6+ messages in thread
From: Thomas Petazzoni @ 2020-04-15 21:08 UTC (permalink / raw)
  To: buildroot

On Wed, 15 Apr 2020 16:41:36 +0300
Sergey Matyukevich <geomatsi@gmail.com> wrote:

> Support for MacchiatoBin board in U-Boot and Linux has been significantly
> improved during the last several years. So there is not much sense in
> having a separate build configuration based on older vendor Linux kernel
> and U-Boot. Drop marvell config and rename mainline config.
> 
> Signed-off-by: Sergey Matyukevich <geomatsi@gmail.com>
> ---
>  DEVELOPERS                                    |  3 +-
>  board/solidrun/macchiatobin/readme.txt        | 44 ++++++-------------
>  ...config => solidrun_macchiatobin_defconfig} |  0
>  .../solidrun_macchiatobin_marvell_defconfig   | 44 -------------------
>  4 files changed, 15 insertions(+), 76 deletions(-)
>  rename configs/{solidrun_macchiatobin_mainline_defconfig => solidrun_macchiatobin_defconfig} (100%)
>  delete mode 100644 configs/solidrun_macchiatobin_marvell_defconfig

I have slightly reworded the commit log, regenerated the .gitlab-ci.yml
file and applied. Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

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

* [Buildroot] [PATCH 1/2] configs/solidrun_macchiatobin_mainline: bump bsp versions
  2020-04-15 21:07   ` Thomas Petazzoni
@ 2020-04-16 10:54     ` Sergey Matyukevich
  0 siblings, 0 replies; 6+ messages in thread
From: Sergey Matyukevich @ 2020-04-16 10:54 UTC (permalink / raw)
  To: buildroot

> > Bump Linux to 5.6.3, U-Boot to 2020.01. New kernel and modules based
> > on arm64 defconfig do not fit into default size filesystem anymore.
> > So increase filesystem size to 120M.
> > 
> > Signed-off-by: Sergey Matyukevich <geomatsi@gmail.com>
> > ---
> >  configs/solidrun_macchiatobin_mainline_defconfig | 8 +++++---
> >  1 file changed, 5 insertions(+), 3 deletions(-)
> 
> Applied to master, thanks. It would be good to see of upstream ATF
> could be used instead of the Marvell-specific version.

I plan to try upstream ATF. But not yet: at the moment I have only
remote access to those boards. So it is a bit risky to experiment
with early boot sequence :)

Meanwhile according to quick comparison between vendor and upstream
ATF versions for Marvell SoCs, PCIe driver is not yet in upstream.
Though I am not sure what could be the implications for the kernel.

Thanks,
Sergey

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

end of thread, other threads:[~2020-04-16 10:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-15 13:41 [Buildroot] [PATCH 0/2] macchiatobin: drop vendor defconfig and update bsp Sergey Matyukevich
2020-04-15 13:41 ` [Buildroot] [PATCH 1/2] configs/solidrun_macchiatobin_mainline: bump bsp versions Sergey Matyukevich
2020-04-15 21:07   ` Thomas Petazzoni
2020-04-16 10:54     ` Sergey Matyukevich
2020-04-15 13:41 ` [Buildroot] [PATCH 2/2] configs/macchiatobin: drop marvell defconfig Sergey Matyukevich
2020-04-15 21:08   ` Thomas Petazzoni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.