diff mbox series

[1/2] configs/microchip_sama7g5ek: add new defconfigs

Message ID 20211104152329.1560933-1-eugen.hristev@microchip.com
State Accepted
Headers show
Series [1/2] configs/microchip_sama7g5ek: add new defconfigs | expand

Commit Message

Eugen Hristev Nov. 4, 2021, 3:23 p.m. UTC
Add new defconfigs for sama7g5 evaluation kit.
Update README with new defconfigs.
Board uses linux 5.15 mainline.

Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
---
 board/atmel/readme.txt                        |  2 +
 board/microchip/sama7g5ek/genimage.cfg        | 31 +++++++++
 configs/microchip_sama7g5ek_mmc_defconfig     | 26 +++++++
 configs/microchip_sama7g5ek_mmc_dev_defconfig | 69 +++++++++++++++++++
 4 files changed, 128 insertions(+)
 create mode 100644 board/microchip/sama7g5ek/genimage.cfg
 create mode 100644 configs/microchip_sama7g5ek_mmc_defconfig
 create mode 100644 configs/microchip_sama7g5ek_mmc_dev_defconfig

Comments

Maier, Brandon L Collins via buildroot Dec. 6, 2021, 7:45 a.m. UTC | #1
On 11/4/21 5:23 PM, Eugen Hristev wrote:
> Add new defconfigs for sama7g5 evaluation kit.
> Update README with new defconfigs.
> Board uses linux 5.15 mainline.
> 
> Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
> ---


Hi Thomas,

Will this go into -next as well?
We plan to move to the 2022.02 LTS next year and it would be a big 
milestone for us to have this board for the next buildroot major LTS.

Thanks,
Eugen
Thomas Petazzoni Dec. 11, 2021, 2:57 p.m. UTC | #2
Hello Eugen,

On Mon, 6 Dec 2021 07:45:33 +0000
<Eugen.Hristev@microchip.com> wrote:

> Will this go into -next as well?
> We plan to move to the 2022.02 LTS next year and it would be a big 
> milestone for us to have this board for the next buildroot major LTS.

We can make sure to merge these defconfigs for 2022.02 LTS indeed,
there's still enough time for that.

Best regards,

Thomas
Thomas Petazzoni Dec. 28, 2021, 9:03 p.m. UTC | #3
Hello Eugen,

On Thu, 4 Nov 2021 17:23:28 +0200
Eugen Hristev via buildroot <buildroot@buildroot.org> wrote:

> Add new defconfigs for sama7g5 evaluation kit.
> Update README with new defconfigs.
> Board uses linux 5.15 mainline.
> 
> Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
> ---
>  board/atmel/readme.txt                        |  2 +
>  board/microchip/sama7g5ek/genimage.cfg        | 31 +++++++++
>  configs/microchip_sama7g5ek_mmc_defconfig     | 26 +++++++
>  configs/microchip_sama7g5ek_mmc_dev_defconfig | 69 +++++++++++++++++++
>  4 files changed, 128 insertions(+)
>  create mode 100644 board/microchip/sama7g5ek/genimage.cfg
>  create mode 100644 configs/microchip_sama7g5ek_mmc_defconfig
>  create mode 100644 configs/microchip_sama7g5ek_mmc_dev_defconfig

I have applied both patches. On the first patch, I dropped
BR2_OPTIMIZE_FAST=y from the defconfigs, as we normally don't override
the default optimize level in our defconfigs, and I also added you in
the DEVELOPERS file for the files added for these defconfigs.

Thanks a lot!

Thomas
diff mbox series

Patch

diff --git a/board/atmel/readme.txt b/board/atmel/readme.txt
index a29d027214..a9c427e90b 100644
--- a/board/atmel/readme.txt
+++ b/board/atmel/readme.txt
@@ -25,6 +25,8 @@  This guide covers the following configurations:
  - microchip_sam9x60ek_mmc_dev_defconfig
  - microchip_sama5d2_icp_mmc_defconfig
  - microchip_sama5d2_icp_mmc_dev_defconfig
+ - microchip_sama7g5ek_mmc_defconfig
+ - microchip_sama7g5ek_mmc_dev_defconfig
 
 These configurations will use AT91Bootstrap, u-boot and a linux kernel from
 the git trees maintained by Atmel.
diff --git a/board/microchip/sama7g5ek/genimage.cfg b/board/microchip/sama7g5ek/genimage.cfg
new file mode 100644
index 0000000000..ade29e4b5d
--- /dev/null
+++ b/board/microchip/sama7g5ek/genimage.cfg
@@ -0,0 +1,31 @@ 
+# Image for SD card boot on Microchip SAMA7G5EK (sama7g5 evaluation kit)
+#
+image boot.vfat {
+	vfat {
+		files = {
+			"zImage",
+			"at91-sama7g5ek.dtb",
+			"boot.bin",
+			"u-boot.bin"
+		}
+	}
+	size = 16M
+}
+
+image sdcard.img {
+	hdimage {
+	}
+
+	partition boot {
+		partition-type = 0xC
+		bootable = "true"
+		image = "boot.vfat"
+		offset = 1M
+	}
+
+	partition rootfs {
+		partition-type = 0x83
+		image = "rootfs.ext4"
+		size = 512M
+	}
+}
diff --git a/configs/microchip_sama7g5ek_mmc_defconfig b/configs/microchip_sama7g5ek_mmc_defconfig
new file mode 100644
index 0000000000..406a49dd94
--- /dev/null
+++ b/configs/microchip_sama7g5ek_mmc_defconfig
@@ -0,0 +1,26 @@ 
+BR2_arm=y
+BR2_cortex_a7=y
+BR2_ARM_FPU_NEON_VFPV4=y
+BR2_OPTIMIZE_FAST=y
+BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh"
+BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/microchip/sama7g5ek/genimage.cfg"
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_DEFCONFIG="sama7"
+BR2_LINUX_KERNEL_DTS_SUPPORT=y
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="at91-sama7g5ek"
+BR2_TARGET_ROOTFS_EXT2=y
+BR2_TARGET_ROOTFS_EXT2_4=y
+BR2_TARGET_ROOTFS_EXT2_SIZE="120M"
+BR2_TARGET_AT91BOOTSTRAP3=y
+BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_TARBALL=y
+BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_TARBALL_LOCATION="$(call github,linux4sam,at91bootstrap,v4.0.0)/at91bootstrap-v4.0.0.tar.gz"
+BR2_TARGET_AT91BOOTSTRAP3_DEFCONFIG="sama7g5eksd_uboot"
+BR2_TARGET_UBOOT=y
+BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
+BR2_TARGET_UBOOT_CUSTOM_TARBALL=y
+BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION="$(call github,linux4sam,u-boot-at91,linux4sam-2021.04)/u-boot-at91-linux4sam-2021.04.tar.gz"
+BR2_TARGET_UBOOT_BOARD_DEFCONFIG="sama7g5ek_mmc1"
+BR2_TARGET_UBOOT_NEEDS_DTC=y
+BR2_PACKAGE_HOST_DOSFSTOOLS=y
+BR2_PACKAGE_HOST_GENIMAGE=y
+BR2_PACKAGE_HOST_MTOOLS=y
diff --git a/configs/microchip_sama7g5ek_mmc_dev_defconfig b/configs/microchip_sama7g5ek_mmc_dev_defconfig
new file mode 100644
index 0000000000..df72722221
--- /dev/null
+++ b/configs/microchip_sama7g5ek_mmc_dev_defconfig
@@ -0,0 +1,69 @@ 
+BR2_arm=y
+BR2_cortex_a7=y
+BR2_ARM_FPU_NEON_VFPV4=y
+BR2_OPTIMIZE_FAST=y
+BR2_TOOLCHAIN_BUILDROOT_WCHAR=y
+BR2_PTHREAD_DEBUG=y
+BR2_TOOLCHAIN_BUILDROOT_CXX=y
+BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y
+BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh"
+BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/microchip/sama7g5ek/genimage.cfg"
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_DEFCONFIG="sama7"
+BR2_LINUX_KERNEL_DTS_SUPPORT=y
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="at91-sama7g5ek"
+BR2_PACKAGE_LINUX_TOOLS_IIO=y
+BR2_PACKAGE_BZIP2=y
+BR2_PACKAGE_XZ=y
+BR2_PACKAGE_ZIP=y
+BR2_PACKAGE_GDB=y
+BR2_PACKAGE_LMBENCH=y
+BR2_PACKAGE_STRACE=y
+BR2_PACKAGE_TREE=y
+BR2_PACKAGE_DOSFSTOOLS=y
+BR2_PACKAGE_DOSFSTOOLS_FATLABEL=y
+BR2_PACKAGE_DOSFSTOOLS_FSCK_FAT=y
+BR2_PACKAGE_DOSFSTOOLS_MKFS_FAT=y
+BR2_PACKAGE_MMC_UTILS=y
+BR2_PACKAGE_MTD=y
+BR2_PACKAGE_WILC1000_FIRMWARE=y
+BR2_PACKAGE_EVTEST=y
+BR2_PACKAGE_SETSERIAL=y
+BR2_PACKAGE_SPI_TOOLS=y
+BR2_PACKAGE_USBUTILS=y
+BR2_PACKAGE_LIBSYSFS=y
+BR2_PACKAGE_LIBDRM=y
+BR2_PACKAGE_LIBDRM_INSTALL_TESTS=y
+BR2_PACKAGE_DTC=y
+BR2_PACKAGE_DTC_PROGRAMS=y
+BR2_PACKAGE_ARGP_STANDALONE=y
+BR2_PACKAGE_BLUEZ5_UTILS=y
+BR2_PACKAGE_BRIDGE_UTILS=y
+BR2_PACKAGE_CAN_UTILS=y
+BR2_PACKAGE_ETHTOOL=y
+BR2_PACKAGE_IPERF=y
+BR2_PACKAGE_IPROUTE2=y
+BR2_PACKAGE_IPTABLES=y
+BR2_PACKAGE_IW=y
+BR2_PACKAGE_LRZSZ=y
+BR2_PACKAGE_MII_DIAG=y
+BR2_PACKAGE_OPENSSH=y
+BR2_PACKAGE_WIRELESS_TOOLS=y
+BR2_PACKAGE_WPA_SUPPLICANT=y
+BR2_PACKAGE_HTOP=y
+BR2_TARGET_ROOTFS_EXT2=y
+BR2_TARGET_ROOTFS_EXT2_4=y
+BR2_TARGET_ROOTFS_EXT2_SIZE="120M"
+BR2_TARGET_AT91BOOTSTRAP3=y
+BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_TARBALL=y
+BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_TARBALL_LOCATION="$(call github,linux4sam,at91bootstrap,v4.0.0)/at91bootstrap-v4.0.0.tar.gz"
+BR2_TARGET_AT91BOOTSTRAP3_DEFCONFIG="sama7g5eksd_uboot"
+BR2_TARGET_UBOOT=y
+BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
+BR2_TARGET_UBOOT_CUSTOM_TARBALL=y
+BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION="$(call github,linux4sam,u-boot-at91,linux4sam-2021.04)/u-boot-at91-linux4sam-2021.04.tar.gz"
+BR2_TARGET_UBOOT_BOARD_DEFCONFIG="sama7g5ek_mmc1"
+BR2_TARGET_UBOOT_NEEDS_DTC=y
+BR2_PACKAGE_HOST_DOSFSTOOLS=y
+BR2_PACKAGE_HOST_GENIMAGE=y
+BR2_PACKAGE_HOST_MTOOLS=y