All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v3 0/4] sd card image generation for Xplained boards
@ 2016-04-08 14:30 Ludovic Desroches
  2016-04-08 14:30 ` [Buildroot] [PATCH v3 1/4] configs: atmel: add sama5d2 xplained sd card image generation Ludovic Desroches
                   ` (5 more replies)
  0 siblings, 6 replies; 11+ messages in thread
From: Ludovic Desroches @ 2016-04-08 14:30 UTC (permalink / raw)
  To: buildroot

Use genimage to generate a SD card image

Changes
- v3:
  - fix conflicts when applying these patches
- v2:
  - add missing host packages to generate the FAT partition
  - cleanup post-image.sh
  - update documentation

Ludovic Desroches (4):
  configs: atmel: add sama5d2 xplained sd card image generation
  configs: atmel: add sama5d4 xplained sd card image generation
  configs: atmel: add sama5d3 xplained sd card image generation
  board/atmel: update documentation for SD card generation

 board/atmel/readme.txt                         | 66 +++++++++++---------------
 board/atmel/sama5d2_xplained_mmc/genimage.cfg  | 33 +++++++++++++
 board/atmel/sama5d2_xplained_mmc/post-image.sh | 14 ++++++
 board/atmel/sama5d3_xplained_mmc/genimage.cfg  | 33 +++++++++++++
 board/atmel/sama5d3_xplained_mmc/post-image.sh | 14 ++++++
 board/atmel/sama5d4_xplained_mmc/genimage.cfg  | 34 +++++++++++++
 board/atmel/sama5d4_xplained_mmc/post-image.sh | 14 ++++++
 configs/atmel_sama5d2_xplained_mmc_defconfig   |  6 +++
 configs/atmel_sama5d3_xplained_mmc_defconfig   |  6 +++
 configs/atmel_sama5d4_xplained_mmc_defconfig   |  6 +++
 10 files changed, 188 insertions(+), 38 deletions(-)
 create mode 100644 board/atmel/sama5d2_xplained_mmc/genimage.cfg
 create mode 100755 board/atmel/sama5d2_xplained_mmc/post-image.sh
 create mode 100644 board/atmel/sama5d3_xplained_mmc/genimage.cfg
 create mode 100755 board/atmel/sama5d3_xplained_mmc/post-image.sh
 create mode 100644 board/atmel/sama5d4_xplained_mmc/genimage.cfg
 create mode 100755 board/atmel/sama5d4_xplained_mmc/post-image.sh

-- 
2.5.0

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

* [Buildroot] [PATCH v3 1/4] configs: atmel: add sama5d2 xplained sd card image generation
  2016-04-08 14:30 [Buildroot] [PATCH v3 0/4] sd card image generation for Xplained boards Ludovic Desroches
@ 2016-04-08 14:30 ` Ludovic Desroches
  2016-04-08 14:30 ` [Buildroot] [RFC PATCH] configs: atmel: add sd card demo for sama5d2 xplained Ludovic Desroches
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 11+ messages in thread
From: Ludovic Desroches @ 2016-04-08 14:30 UTC (permalink / raw)
  To: buildroot

Use genimage to generate a sd card with a fat partition (at91bootstrap,
u-boot, kernel, dtbs) and an ext4 partition (rootfs).

Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
---
 board/atmel/sama5d2_xplained_mmc/genimage.cfg  | 33 ++++++++++++++++++++++++++
 board/atmel/sama5d2_xplained_mmc/post-image.sh | 14 +++++++++++
 configs/atmel_sama5d2_xplained_mmc_defconfig   |  6 +++++
 3 files changed, 53 insertions(+)
 create mode 100644 board/atmel/sama5d2_xplained_mmc/genimage.cfg
 create mode 100755 board/atmel/sama5d2_xplained_mmc/post-image.sh

diff --git a/board/atmel/sama5d2_xplained_mmc/genimage.cfg b/board/atmel/sama5d2_xplained_mmc/genimage.cfg
new file mode 100644
index 0000000..b0ba22d
--- /dev/null
+++ b/board/atmel/sama5d2_xplained_mmc/genimage.cfg
@@ -0,0 +1,33 @@
+# Image for SD card boot on Atmel SAMA5D2 Xplained boards
+#
+image boot.vfat {
+	vfat {
+		files = {
+			"zImage",
+			"at91-sama5d2_xplained.dtb",
+			"at91-sama5d2_xplained_pda4.dtb",
+			"at91-sama5d2_xplained_pda7.dtb",
+			"at91-sama5d2_xplained_pda7b.dtb",
+			"boot.bin",
+			"u-boot.bin"
+		}
+	}
+	size = 16M
+}
+
+image sdcard.img {
+	hdimage {
+	}
+
+	partition boot {
+		partition-type = 0xC
+		bootable = "true"
+		image = "boot.vfat"
+	}
+
+	partition rootfs {
+		partition-type = 0x83
+		image = "rootfs.ext4"
+		size = 512M
+	}
+}
diff --git a/board/atmel/sama5d2_xplained_mmc/post-image.sh b/board/atmel/sama5d2_xplained_mmc/post-image.sh
new file mode 100755
index 0000000..359b4c9
--- /dev/null
+++ b/board/atmel/sama5d2_xplained_mmc/post-image.sh
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+BOARD_DIR="$(dirname $0)"
+GENIMAGE_CFG="${BOARD_DIR}/genimage.cfg"
+GENIMAGE_TMP="${BUILD_DIR}/genimage.tmp"
+
+rm -rf "${GENIMAGE_TMP}"
+
+genimage                               \
+	--rootpath "${TARGET_DIR}"     \
+	--tmppath "${GENIMAGE_TMP}"    \
+	--inputpath "${BINARIES_DIR}"  \
+	--outputpath "${BINARIES_DIR}" \
+	--config "${GENIMAGE_CFG}"
diff --git a/configs/atmel_sama5d2_xplained_mmc_defconfig b/configs/atmel_sama5d2_xplained_mmc_defconfig
index b9eaf5e..7f1797d 100644
--- a/configs/atmel_sama5d2_xplained_mmc_defconfig
+++ b/configs/atmel_sama5d2_xplained_mmc_defconfig
@@ -5,6 +5,7 @@ BR2_ARM_ENABLE_VFP=y
 BR2_ARM_FPU_VFPV4=y
 BR2_ARM_INSTRUCTIONS_THUMB2=y
 BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_1=y
+BR2_ROOTFS_POST_IMAGE_SCRIPT="board/atmel/sama5d2_xplained_mmc/post-image.sh"
 BR2_LINUX_KERNEL=y
 BR2_LINUX_KERNEL_CUSTOM_GIT=y
 BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://github.com/linux4sam/linux-at91.git"
@@ -12,6 +13,8 @@ BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="linux4sam_5.2"
 BR2_LINUX_KERNEL_DEFCONFIG="sama5"
 BR2_LINUX_KERNEL_DTS_SUPPORT=y
 BR2_LINUX_KERNEL_INTREE_DTS_NAME="at91-sama5d2_xplained at91-sama5d2_xplained_pda4 at91-sama5d2_xplained_pda7 at91-sama5d2_xplained_pda7b"
+BR2_TARGET_ROOTFS_EXT2=y
+BR2_TARGET_ROOTFS_EXT2_4=y
 BR2_TARGET_AT91BOOTSTRAP3=y
 BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_GIT=y
 BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_URL="https://github.com/linux4sam/at91bootstrap.git"
@@ -23,3 +26,6 @@ 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="linux4sam_5.2"
 BR2_TARGET_UBOOT_BOARD_DEFCONFIG="sama5d2_xplained_mmc"
+BR2_PACKAGE_HOST_DOSFSTOOLS=y
+BR2_PACKAGE_HOST_GENIMAGE=y
+BR2_PACKAGE_HOST_MTOOLS=y
-- 
2.5.0

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

* [Buildroot] [RFC PATCH] configs: atmel: add sd card demo for sama5d2 xplained
  2016-04-08 14:30 [Buildroot] [PATCH v3 0/4] sd card image generation for Xplained boards Ludovic Desroches
  2016-04-08 14:30 ` [Buildroot] [PATCH v3 1/4] configs: atmel: add sama5d2 xplained sd card image generation Ludovic Desroches
@ 2016-04-08 14:30 ` Ludovic Desroches
  2016-04-08 14:32   ` Ludovic Desroches
  2016-04-08 14:30 ` [Buildroot] [PATCH v3 2/4] configs: atmel: add sama5d4 xplained sd card image generation Ludovic Desroches
                   ` (3 subsequent siblings)
  5 siblings, 1 reply; 11+ messages in thread
From: Ludovic Desroches @ 2016-04-08 14:30 UTC (permalink / raw)
  To: buildroot

This demo defconfig adds packages to have an equivalent root filesystem
to the one generated by Yocto with atmel-xplained-demo-image.
---

Hi,

Since we will remove the at91 fork of the Buildroot repository. We would like
to provide a turnkey solution as we do with Yocto. At the moment, it is only
a basic set of packages.

My concern is we would like to provide a SD card demo but also a NAND demo. It
means about 6 demo defconfigs to add. Is it an issue?

Regards

Ludovic

 configs/atmel_sama5d2_xplained_mmc_demo_defconfig | 85 +++++++++++++++++++++++
 1 file changed, 85 insertions(+)
 create mode 100644 configs/atmel_sama5d2_xplained_mmc_demo_defconfig

diff --git a/configs/atmel_sama5d2_xplained_mmc_demo_defconfig b/configs/atmel_sama5d2_xplained_mmc_demo_defconfig
new file mode 100644
index 0000000..792b8cc
--- /dev/null
+++ b/configs/atmel_sama5d2_xplained_mmc_demo_defconfig
@@ -0,0 +1,85 @@
+BR2_arm=y
+BR2_cortex_a5=y
+BR2_ARM_ENABLE_NEON=y
+BR2_ARM_ENABLE_VFP=y
+BR2_ARM_FPU_VFPV4=y
+BR2_ARM_INSTRUCTIONS_THUMB2=y
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_1=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="board/atmel/sama5d2_xplained_mmc/post-image.sh"
+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="linux4sam_5.2"
+BR2_LINUX_KERNEL_DEFCONFIG="sama5"
+BR2_LINUX_KERNEL_DTS_SUPPORT=y
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="at91-sama5d2_xplained at91-sama5d2_xplained_pda4 at91-sama5d2_xplained_pda7 at91-sama5d2_xplained_pda7b"
+BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y
+BR2_PACKAGE_ALSA_UTILS=y
+BR2_PACKAGE_ALSA_UTILS_ALSACONF=y
+BR2_PACKAGE_ALSA_UTILS_APLAY=y
+BR2_PACKAGE_FFMPEG=y
+BR2_PACKAGE_FFMPEG_GPL=y
+BR2_PACKAGE_FFMPEG_SWSCALE=y
+BR2_PACKAGE_MPG123=y
+BR2_PACKAGE_BZIP2=y
+BR2_PACKAGE_GZIP=y
+BR2_PACKAGE_UNZIP=y
+BR2_PACKAGE_XZ=y
+BR2_PACKAGE_ZIP=y
+BR2_PACKAGE_GDB=y
+BR2_PACKAGE_LMBENCH=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_DEVMEM2=y
+BR2_PACKAGE_EVTEST=y
+BR2_PACKAGE_I2C_TOOLS=y
+BR2_PACKAGE_SETSERIAL=y
+BR2_PACKAGE_SPI_TOOLS=y
+BR2_PACKAGE_USBUTILS=y
+BR2_PACKAGE_LIBDRM=y
+BR2_PACKAGE_LIBDRM_INSTALL_TESTS=y
+BR2_PACKAGE_DTC=y
+BR2_PACKAGE_DTC_PROGRAMS=y
+BR2_PACKAGE_BLUEZ_UTILS=y
+BR2_PACKAGE_BRIDGE_UTILS=y
+BR2_PACKAGE_CAN_UTILS=y
+BR2_PACKAGE_DROPBEAR=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_WGET=y
+BR2_PACKAGE_WIRELESS_TOOLS=y
+BR2_PACKAGE_WPA_SUPPLICANT=y
+BR2_PACKAGE_BASH=y
+BR2_PACKAGE_HTOP=y
+BR2_PACKAGE_VIM=y
+BR2_TARGET_ROOTFS_EXT2=y
+BR2_TARGET_ROOTFS_EXT2_4=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.4"
+BR2_TARGET_AT91BOOTSTRAP3_DEFCONFIG="sama5d2_xplainedsd_uboot"
+BR2_TARGET_UBOOT=y
+BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
+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="linux4sam_5.2"
+BR2_TARGET_UBOOT_BOARD_DEFCONFIG="sama5d2_xplained_mmc"
+BR2_PACKAGE_HOST_DOSFSTOOLS=y
+BR2_PACKAGE_HOST_GENIMAGE=y
+BR2_PACKAGE_HOST_MTOOLS=y
-- 
2.5.0

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

* [Buildroot] [PATCH v3 2/4] configs: atmel: add sama5d4 xplained sd card image generation
  2016-04-08 14:30 [Buildroot] [PATCH v3 0/4] sd card image generation for Xplained boards Ludovic Desroches
  2016-04-08 14:30 ` [Buildroot] [PATCH v3 1/4] configs: atmel: add sama5d2 xplained sd card image generation Ludovic Desroches
  2016-04-08 14:30 ` [Buildroot] [RFC PATCH] configs: atmel: add sd card demo for sama5d2 xplained Ludovic Desroches
@ 2016-04-08 14:30 ` Ludovic Desroches
  2016-04-08 14:30 ` [Buildroot] [PATCH v3 3/4] configs: atmel: add sama5d3 " Ludovic Desroches
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 11+ messages in thread
From: Ludovic Desroches @ 2016-04-08 14:30 UTC (permalink / raw)
  To: buildroot

Use genimage to generate a sd card with a fat partition (at91bootstrap,
u-boot, kernel, dtbs) and an ext4 partition (rootfs).

Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
---
 board/atmel/sama5d4_xplained_mmc/genimage.cfg  | 34 ++++++++++++++++++++++++++
 board/atmel/sama5d4_xplained_mmc/post-image.sh | 14 +++++++++++
 configs/atmel_sama5d4_xplained_mmc_defconfig   |  6 +++++
 3 files changed, 54 insertions(+)
 create mode 100644 board/atmel/sama5d4_xplained_mmc/genimage.cfg
 create mode 100755 board/atmel/sama5d4_xplained_mmc/post-image.sh

diff --git a/board/atmel/sama5d4_xplained_mmc/genimage.cfg b/board/atmel/sama5d4_xplained_mmc/genimage.cfg
new file mode 100644
index 0000000..b23ebe4
--- /dev/null
+++ b/board/atmel/sama5d4_xplained_mmc/genimage.cfg
@@ -0,0 +1,34 @@
+# Image for SD card boot on Atmel SAMA5D4 Xplained boards
+#
+image boot.vfat {
+	vfat {
+		files = {
+			"zImage",
+			"at91-sama5d4_xplained.dtb",
+			"at91-sama5d4_xplained_hdmi.dtb",
+			"at91-sama5d4_xplained_pda4.dtb",
+			"at91-sama5d4_xplained_pda7.dtb",
+			"at91-sama5d4_xplained_pda7b.dtb",
+			"boot.bin",
+			"u-boot.bin"
+		}
+	}
+	size = 16M
+}
+
+image sdcard.img {
+	hdimage {
+	}
+
+	partition boot {
+		partition-type = 0xC
+		bootable = "true"
+		image = "boot.vfat"
+	}
+
+	partition rootfs {
+		partition-type = 0x83
+		image = "rootfs.ext4"
+		size = 512M
+	}
+}
diff --git a/board/atmel/sama5d4_xplained_mmc/post-image.sh b/board/atmel/sama5d4_xplained_mmc/post-image.sh
new file mode 100755
index 0000000..359b4c9
--- /dev/null
+++ b/board/atmel/sama5d4_xplained_mmc/post-image.sh
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+BOARD_DIR="$(dirname $0)"
+GENIMAGE_CFG="${BOARD_DIR}/genimage.cfg"
+GENIMAGE_TMP="${BUILD_DIR}/genimage.tmp"
+
+rm -rf "${GENIMAGE_TMP}"
+
+genimage                               \
+	--rootpath "${TARGET_DIR}"     \
+	--tmppath "${GENIMAGE_TMP}"    \
+	--inputpath "${BINARIES_DIR}"  \
+	--outputpath "${BINARIES_DIR}" \
+	--config "${GENIMAGE_CFG}"
diff --git a/configs/atmel_sama5d4_xplained_mmc_defconfig b/configs/atmel_sama5d4_xplained_mmc_defconfig
index 7dca15b..1db660d 100644
--- a/configs/atmel_sama5d4_xplained_mmc_defconfig
+++ b/configs/atmel_sama5d4_xplained_mmc_defconfig
@@ -4,6 +4,7 @@ BR2_ARM_ENABLE_NEON=y
 BR2_ARM_ENABLE_VFP=y
 BR2_ARM_INSTRUCTIONS_THUMB2=y
 BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_1=y
+BR2_ROOTFS_POST_IMAGE_SCRIPT="board/atmel/sama5d4_xplained_mmc/post-image.sh"
 BR2_LINUX_KERNEL=y
 BR2_LINUX_KERNEL_CUSTOM_GIT=y
 BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://github.com/linux4sam/linux-at91.git"
@@ -11,6 +12,8 @@ BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="linux4sam_5.2"
 BR2_LINUX_KERNEL_DEFCONFIG="sama5"
 BR2_LINUX_KERNEL_DTS_SUPPORT=y
 BR2_LINUX_KERNEL_INTREE_DTS_NAME="at91-sama5d4_xplained at91-sama5d4_xplained_hdmi at91-sama5d4_xplained_pda4 at91-sama5d4_xplained_pda7 at91-sama5d4_xplained_pda7b"
+BR2_TARGET_ROOTFS_EXT2=y
+BR2_TARGET_ROOTFS_EXT2_4=y
 BR2_TARGET_AT91BOOTSTRAP3=y
 BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_GIT=y
 BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_URL="https://github.com/linux4sam/at91bootstrap.git"
@@ -22,3 +25,6 @@ BR2_TARGET_UBOOT_CUSTOM_GIT=y
 BR2_TARGET_UBOOT_CUSTOM_REPO_URL="git://github.com/linux4sam/u-boot-at91.git"
 BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="linux4sam_5.2"
 BR2_TARGET_UBOOT_BOARD_DEFCONFIG="sama5d4_xplained_mmc"
+BR2_PACKAGE_HOST_DOSFSTOOLS=y
+BR2_PACKAGE_HOST_GENIMAGE=y
+BR2_PACKAGE_HOST_MTOOLS=y
-- 
2.5.0

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

* [Buildroot] [PATCH v3 3/4] configs: atmel: add sama5d3 xplained sd card image generation
  2016-04-08 14:30 [Buildroot] [PATCH v3 0/4] sd card image generation for Xplained boards Ludovic Desroches
                   ` (2 preceding siblings ...)
  2016-04-08 14:30 ` [Buildroot] [PATCH v3 2/4] configs: atmel: add sama5d4 xplained sd card image generation Ludovic Desroches
@ 2016-04-08 14:30 ` Ludovic Desroches
  2016-04-08 14:30 ` [Buildroot] [PATCH v3 4/4] board/atmel: update documentation for SD card generation Ludovic Desroches
  2016-04-13 21:45 ` [Buildroot] [PATCH v3 0/4] sd card image generation for Xplained boards Thomas Petazzoni
  5 siblings, 0 replies; 11+ messages in thread
From: Ludovic Desroches @ 2016-04-08 14:30 UTC (permalink / raw)
  To: buildroot

Use genimage to generate a sd card with a fat partition (at91bootstrap,
u-boot, kernel, dtbs) and an ext4 partition (rootfs).

Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
---
 board/atmel/sama5d3_xplained_mmc/genimage.cfg  | 33 ++++++++++++++++++++++++++
 board/atmel/sama5d3_xplained_mmc/post-image.sh | 14 +++++++++++
 configs/atmel_sama5d3_xplained_mmc_defconfig   |  6 +++++
 3 files changed, 53 insertions(+)
 create mode 100644 board/atmel/sama5d3_xplained_mmc/genimage.cfg
 create mode 100755 board/atmel/sama5d3_xplained_mmc/post-image.sh

diff --git a/board/atmel/sama5d3_xplained_mmc/genimage.cfg b/board/atmel/sama5d3_xplained_mmc/genimage.cfg
new file mode 100644
index 0000000..32df453
--- /dev/null
+++ b/board/atmel/sama5d3_xplained_mmc/genimage.cfg
@@ -0,0 +1,33 @@
+# Image for SD card boot on Atmel SAMA5D3 Xplained boards
+#
+image boot.vfat {
+	vfat {
+		files = {
+			"zImage",
+			"at91-sama5d3_xplained.dtb",
+			"at91-sama5d3_xplained_pda4.dtb",
+			"at91-sama5d3_xplained_pda7.dtb",
+			"at91-sama5d3_xplained_pda7b.dtb",
+			"boot.bin",
+			"u-boot.bin"
+		}
+	}
+	size = 16M
+}
+
+image sdcard.img {
+	hdimage {
+	}
+
+	partition boot {
+		partition-type = 0xC
+		bootable = "true"
+		image = "boot.vfat"
+	}
+
+	partition rootfs {
+		partition-type = 0x83
+		image = "rootfs.ext4"
+		size = 512M
+	}
+}
diff --git a/board/atmel/sama5d3_xplained_mmc/post-image.sh b/board/atmel/sama5d3_xplained_mmc/post-image.sh
new file mode 100755
index 0000000..359b4c9
--- /dev/null
+++ b/board/atmel/sama5d3_xplained_mmc/post-image.sh
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+BOARD_DIR="$(dirname $0)"
+GENIMAGE_CFG="${BOARD_DIR}/genimage.cfg"
+GENIMAGE_TMP="${BUILD_DIR}/genimage.tmp"
+
+rm -rf "${GENIMAGE_TMP}"
+
+genimage                               \
+	--rootpath "${TARGET_DIR}"     \
+	--tmppath "${GENIMAGE_TMP}"    \
+	--inputpath "${BINARIES_DIR}"  \
+	--outputpath "${BINARIES_DIR}" \
+	--config "${GENIMAGE_CFG}"
diff --git a/configs/atmel_sama5d3_xplained_mmc_defconfig b/configs/atmel_sama5d3_xplained_mmc_defconfig
index 6d99038..fc2f5d9 100644
--- a/configs/atmel_sama5d3_xplained_mmc_defconfig
+++ b/configs/atmel_sama5d3_xplained_mmc_defconfig
@@ -3,6 +3,7 @@ BR2_cortex_a5=y
 BR2_ARM_ENABLE_VFP=y
 BR2_ARM_INSTRUCTIONS_THUMB2=y
 BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_1=y
+BR2_ROOTFS_POST_IMAGE_SCRIPT="board/atmel/sama5d3_xplained_mmc/post-image.sh"
 BR2_LINUX_KERNEL=y
 BR2_LINUX_KERNEL_CUSTOM_GIT=y
 BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://github.com/linux4sam/linux-at91.git"
@@ -10,6 +11,8 @@ BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="linux4sam_5.2"
 BR2_LINUX_KERNEL_DEFCONFIG="sama5"
 BR2_LINUX_KERNEL_DTS_SUPPORT=y
 BR2_LINUX_KERNEL_INTREE_DTS_NAME="at91-sama5d3_xplained at91-sama5d3_xplained_pda4 at91-sama5d3_xplained_pda7 at91-sama5d3_xplained_pda7b"
+BR2_TARGET_ROOTFS_EXT2=y
+BR2_TARGET_ROOTFS_EXT2_4=y
 BR2_TARGET_AT91BOOTSTRAP3=y
 BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_GIT=y
 BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_URL="https://github.com/linux4sam/at91bootstrap.git"
@@ -21,3 +24,6 @@ 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="linux4sam_5.2"
 BR2_TARGET_UBOOT_BOARD_DEFCONFIG="sama5d3_xplained_mmc"
+BR2_PACKAGE_HOST_DOSFSTOOLS=y
+BR2_PACKAGE_HOST_GENIMAGE=y
+BR2_PACKAGE_HOST_MTOOLS=y
-- 
2.5.0

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

* [Buildroot] [PATCH v3 4/4] board/atmel: update documentation for SD card generation
  2016-04-08 14:30 [Buildroot] [PATCH v3 0/4] sd card image generation for Xplained boards Ludovic Desroches
                   ` (3 preceding siblings ...)
  2016-04-08 14:30 ` [Buildroot] [PATCH v3 3/4] configs: atmel: add sama5d3 " Ludovic Desroches
@ 2016-04-08 14:30 ` Ludovic Desroches
  2016-04-13 21:45 ` [Buildroot] [PATCH v3 0/4] sd card image generation for Xplained boards Thomas Petazzoni
  5 siblings, 0 replies; 11+ messages in thread
From: Ludovic Desroches @ 2016-04-08 14:30 UTC (permalink / raw)
  To: buildroot

Henceforth, a sdcard.img file is automatically generated. It simplifies the
procedure to generate a bootable SD card for Atmel Xplained boards.

Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
---
 board/atmel/readme.txt | 66 +++++++++++++++++++++-----------------------------
 1 file changed, 28 insertions(+), 38 deletions(-)

diff --git a/board/atmel/readme.txt b/board/atmel/readme.txt
index 5029e7b..7f1a086 100644
--- a/board/atmel/readme.txt
+++ b/board/atmel/readme.txt
@@ -119,51 +119,41 @@ Reboot, the system should boot up to the buildroot login invite.
 Preparing the SD card
 =====================
 
-The SD card must be partitioned with at least two partitions: one
-FAT16 partition for the bootloaders, kernel image and Device Tree
-blob, and one ext4 partition for the root filesystem. To partition the
-SD card:
+An image named sdcard.img is automatically generated. With this image, you no
+longer have to care about the creation of the partition and copying files to
+the SD card.
 
-sudo sfdisk /dev/mmcblk0 <<EOF
-,64MiB,6
-;
-EOF
+You need@least a 1GB SD card. All the data on the SD card will be lost. To
+copy the image on the SD card:
 
-This creates a 64 MB partition for the FAT16 filesystem (type 6) and
-uses the rest for the ext4 filesystem used for the root filesystem.
+/!\ Caution be sure to do it on the right mmcblk device /!\
 
-Then, format both partitions:
+dd if=output/images/sdcard.img of=/dev/mmcblk0
 
-sudo mkfs.msdos -n boot /dev/mmcblk0p1
-sudo mkfs.ext4 -L rootfs -O ^huge_file /dev/mmcblk0p2
-
- Note: the -O ^huge_file option is needed to avoid enabling the huge
- files features of ext4 (to support files larges than 2 TB), which
- needs the kernel option CONFIG_LBDAF to be enabled.
-
-Mount both partitions (if not done automatically by your system):
-
-sudo mount /dev/mmcblk0p1 /media/boot
-sudo mount /dev/mmcblk0p2 /media/rootfs
-
-Copy the bootloaders, kernel image and Device Tree blob to the first
-partition:
+Insert your SD card in your Xplained board, and enjoy. The default
+U-Boot environment will load properly the kernel and Device Tree blob
+from the first partition of the SD card, so everything works
+automatically.
 
-cp output/images/boot.bin /media/boot/
-cp output/images/u-boot.bin /media/boot/
-cp output/images/zImage /media/boot/
-cp output/images/at91-sama5d2_xplained.dtb /media/boot/
+By default a 16MB FAT partition is created. It contains at91bootstrap, u-boot,
+the kernel image and all dtb variants for your board. The dtb used is the basic
+one:
 
-Extract the root filesystem to the second partition:
+U-Boot> print
+[...]
+bootcmd=fatload mmc 1:1 0x21000000 at91-sama5d2_xplained.dtb; fatload mmc 1:1 0x22000000 zImage; bootz 0x22000000 - 0x21000000
+[...]
 
-sudo tar -C /media/rootfs -xf output/images/rootfs.tar
+If you want to use a variant such as the _pda7 one, you will have to update
+your u-boot environment:
 
-Unmount both partitions:
+U-Boot> setenv bootcmd 'fatload mmc 1:1 0x21000000 at91-sama5d2_xplained_pda7.dtb; fatload mmc 1:1 0x22000000 zImage; bootz 0x22000000 - 0x21000000'
+U-Boot> save
+Saving Environment to FAT...
+writing uboot.env
+done
 
-sudo umount /media/boot
-sudo umount /media/rootfs
+A 512MB ext4 partition is also created to store the rootfs generated.
 
-Insert your SD card in your Xplained board, and enjoy. The default
-U-Boot environment will properly load the kernel and Device Tree blob
-from the first partition of the SD card, so everything works
-automatically.
+If you want to customize the size of the partitions and their content, take a
+look at the the genimage.cfg file in the board repository.
-- 
2.5.0

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

* [Buildroot] [RFC PATCH] configs: atmel: add sd card demo for sama5d2 xplained
  2016-04-08 14:30 ` [Buildroot] [RFC PATCH] configs: atmel: add sd card demo for sama5d2 xplained Ludovic Desroches
@ 2016-04-08 14:32   ` Ludovic Desroches
  0 siblings, 0 replies; 11+ messages in thread
From: Ludovic Desroches @ 2016-04-08 14:32 UTC (permalink / raw)
  To: buildroot

Sorry, sent by mistake.

On Fri, Apr 08, 2016 at 04:30:38PM +0200, Ludovic Desroches wrote:
> This demo defconfig adds packages to have an equivalent root filesystem
> to the one generated by Yocto with atmel-xplained-demo-image.
> ---
> 
> Hi,
> 
> Since we will remove the at91 fork of the Buildroot repository. We would like
> to provide a turnkey solution as we do with Yocto. At the moment, it is only
> a basic set of packages.
> 
> My concern is we would like to provide a SD card demo but also a NAND demo. It
> means about 6 demo defconfigs to add. Is it an issue?
> 
> Regards
> 
> Ludovic
> 
>  configs/atmel_sama5d2_xplained_mmc_demo_defconfig | 85 +++++++++++++++++++++++
>  1 file changed, 85 insertions(+)
>  create mode 100644 configs/atmel_sama5d2_xplained_mmc_demo_defconfig
> 
> diff --git a/configs/atmel_sama5d2_xplained_mmc_demo_defconfig b/configs/atmel_sama5d2_xplained_mmc_demo_defconfig
> new file mode 100644
> index 0000000..792b8cc
> --- /dev/null
> +++ b/configs/atmel_sama5d2_xplained_mmc_demo_defconfig
> @@ -0,0 +1,85 @@
> +BR2_arm=y
> +BR2_cortex_a5=y
> +BR2_ARM_ENABLE_NEON=y
> +BR2_ARM_ENABLE_VFP=y
> +BR2_ARM_FPU_VFPV4=y
> +BR2_ARM_INSTRUCTIONS_THUMB2=y
> +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_1=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="board/atmel/sama5d2_xplained_mmc/post-image.sh"
> +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="linux4sam_5.2"
> +BR2_LINUX_KERNEL_DEFCONFIG="sama5"
> +BR2_LINUX_KERNEL_DTS_SUPPORT=y
> +BR2_LINUX_KERNEL_INTREE_DTS_NAME="at91-sama5d2_xplained at91-sama5d2_xplained_pda4 at91-sama5d2_xplained_pda7 at91-sama5d2_xplained_pda7b"
> +BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y
> +BR2_PACKAGE_ALSA_UTILS=y
> +BR2_PACKAGE_ALSA_UTILS_ALSACONF=y
> +BR2_PACKAGE_ALSA_UTILS_APLAY=y
> +BR2_PACKAGE_FFMPEG=y
> +BR2_PACKAGE_FFMPEG_GPL=y
> +BR2_PACKAGE_FFMPEG_SWSCALE=y
> +BR2_PACKAGE_MPG123=y
> +BR2_PACKAGE_BZIP2=y
> +BR2_PACKAGE_GZIP=y
> +BR2_PACKAGE_UNZIP=y
> +BR2_PACKAGE_XZ=y
> +BR2_PACKAGE_ZIP=y
> +BR2_PACKAGE_GDB=y
> +BR2_PACKAGE_LMBENCH=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_DEVMEM2=y
> +BR2_PACKAGE_EVTEST=y
> +BR2_PACKAGE_I2C_TOOLS=y
> +BR2_PACKAGE_SETSERIAL=y
> +BR2_PACKAGE_SPI_TOOLS=y
> +BR2_PACKAGE_USBUTILS=y
> +BR2_PACKAGE_LIBDRM=y
> +BR2_PACKAGE_LIBDRM_INSTALL_TESTS=y
> +BR2_PACKAGE_DTC=y
> +BR2_PACKAGE_DTC_PROGRAMS=y
> +BR2_PACKAGE_BLUEZ_UTILS=y
> +BR2_PACKAGE_BRIDGE_UTILS=y
> +BR2_PACKAGE_CAN_UTILS=y
> +BR2_PACKAGE_DROPBEAR=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_WGET=y
> +BR2_PACKAGE_WIRELESS_TOOLS=y
> +BR2_PACKAGE_WPA_SUPPLICANT=y
> +BR2_PACKAGE_BASH=y
> +BR2_PACKAGE_HTOP=y
> +BR2_PACKAGE_VIM=y
> +BR2_TARGET_ROOTFS_EXT2=y
> +BR2_TARGET_ROOTFS_EXT2_4=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.4"
> +BR2_TARGET_AT91BOOTSTRAP3_DEFCONFIG="sama5d2_xplainedsd_uboot"
> +BR2_TARGET_UBOOT=y
> +BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
> +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="linux4sam_5.2"
> +BR2_TARGET_UBOOT_BOARD_DEFCONFIG="sama5d2_xplained_mmc"
> +BR2_PACKAGE_HOST_DOSFSTOOLS=y
> +BR2_PACKAGE_HOST_GENIMAGE=y
> +BR2_PACKAGE_HOST_MTOOLS=y
> -- 
> 2.5.0
> 

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

* [Buildroot] [PATCH v3 0/4] sd card image generation for Xplained boards
  2016-04-08 14:30 [Buildroot] [PATCH v3 0/4] sd card image generation for Xplained boards Ludovic Desroches
                   ` (4 preceding siblings ...)
  2016-04-08 14:30 ` [Buildroot] [PATCH v3 4/4] board/atmel: update documentation for SD card generation Ludovic Desroches
@ 2016-04-13 21:45 ` Thomas Petazzoni
  5 siblings, 0 replies; 11+ messages in thread
From: Thomas Petazzoni @ 2016-04-13 21:45 UTC (permalink / raw)
  To: buildroot

Hello,

On Fri, 8 Apr 2016 16:30:36 +0200, Ludovic Desroches wrote:

> Ludovic Desroches (4):
>   configs: atmel: add sama5d2 xplained sd card image generation
>   configs: atmel: add sama5d4 xplained sd card image generation
>   configs: atmel: add sama5d3 xplained sd card image generation
>   board/atmel: update documentation for SD card generation

All four patches applied, thanks!

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

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

* [Buildroot] [RFC PATCH] configs: atmel: add sd card demo for sama5d2 xplained
  2016-04-06 22:54 ` Arnout Vandecappelle
@ 2016-04-07  7:12   ` Ludovic Desroches
  0 siblings, 0 replies; 11+ messages in thread
From: Ludovic Desroches @ 2016-04-07  7:12 UTC (permalink / raw)
  To: buildroot

Hi,

On Thu, Apr 07, 2016 at 12:54:13AM +0200, Arnout Vandecappelle wrote:
> On 04/06/16 17:53, Ludovic Desroches wrote:
> >This demo defconfig adds packages to have an equivalent root filesystem
> >to the one generated by Yocto with atmel-xplained-demo-image.
> >---
> >
> >Hi,
> >
> >Since we will remove the at91 fork of the Buildroot repository. We would like
> >to provide a turnkey solution as we do with Yocto. At the moment, it is only
> >a basic set of packages.
> >
> >My concern is we would like to provide a SD card demo but also a NAND demo. It
> >means about 6 demo defconfigs to add. Is it an issue?
> 
>  No, I don't think it's an issue.
> 
>  It may be a good occasion to improve support for split defconfigs. Once we
> see a bit the commonalities.
> 

The differences between these defconfigs will be the Neon/VFP for the
toolchain and the defconfig of at91bootstrap and u-boot.

> >
> >Regards
> >
> >Ludovic
> >
> >  configs/atmel_sama5d2_xplained_mmc_demo_defconfig | 85 +++++++++++++++++++++++
> >  1 file changed, 85 insertions(+)
> >  create mode 100644 configs/atmel_sama5d2_xplained_mmc_demo_defconfig
> >
> >diff --git a/configs/atmel_sama5d2_xplained_mmc_demo_defconfig b/configs/atmel_sama5d2_xplained_mmc_demo_defconfig
> 
>  I think "demo" is not a great name, if we want more different demos later.
> Maybe "dev" because it's mostly development tools that are added?
>

You might be right. Maybe in the future we will propose a true demo as
we do with Yocto, a basic image and one with demo applications.
 
> >new file mode 100644
> >index 0000000..792b8cc
> >--- /dev/null
> >+++ b/configs/atmel_sama5d2_xplained_mmc_demo_defconfig
> >@@ -0,0 +1,85 @@
> >+BR2_arm=y
> >+BR2_cortex_a5=y
> >+BR2_ARM_ENABLE_NEON=y
> >+BR2_ARM_ENABLE_VFP=y
> >+BR2_ARM_FPU_VFPV4=y
> >+BR2_ARM_INSTRUCTIONS_THUMB2=y
> 
>  Can you add some comments in the defconfig file like we do for most other
> defconfigs?

Ok, I thought using savedefconfig was the best way.

> 
> >+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_1=y
> >+BR2_TOOLCHAIN_BUILDROOT_WCHAR=y
> 
>  Like here, explain why wchar is needed.

Requested for some packages.

> 
> >+BR2_PTHREAD_DEBUG=y
> 
>  And definitely this one needs explanation.
> 

Needed for gdb/gdb server

> >+BR2_TOOLCHAIN_BUILDROOT_CXX=y
> >+BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y
> >+BR2_ROOTFS_POST_IMAGE_SCRIPT="board/atmel/sama5d2_xplained_mmc/post-image.sh"
> >+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="linux4sam_5.2"
> 
>  It's github, you can use an URL rather than a git clone.

Probably better, so I may update other atmel defconfigs and
at91bootstrap / u-boot.

> 
> >+BR2_LINUX_KERNEL_DEFCONFIG="sama5"
> >+BR2_LINUX_KERNEL_DTS_SUPPORT=y
> >+BR2_LINUX_KERNEL_INTREE_DTS_NAME="at91-sama5d2_xplained at91-sama5d2_xplained_pda4 at91-sama5d2_xplained_pda7 at91-sama5d2_xplained_pda7b"
> 
>  For the packages it would also be nice to order them into logical sections,
> with comments.
> 
> >+BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y
> >+BR2_PACKAGE_ALSA_UTILS=y
> >+BR2_PACKAGE_ALSA_UTILS_ALSACONF=y
> >+BR2_PACKAGE_ALSA_UTILS_APLAY=y
> >+BR2_PACKAGE_FFMPEG=y
> >+BR2_PACKAGE_FFMPEG_GPL=y
> >+BR2_PACKAGE_FFMPEG_SWSCALE=y
> >+BR2_PACKAGE_MPG123=y
> >+BR2_PACKAGE_BZIP2=y
> >+BR2_PACKAGE_GZIP=y
> >+BR2_PACKAGE_UNZIP=y
> >+BR2_PACKAGE_XZ=y
> >+BR2_PACKAGE_ZIP=y
> >+BR2_PACKAGE_GDB=y
> >+BR2_PACKAGE_LMBENCH=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
> 
>  Is the wifi always populated? If yes, I think it would make sense to
> include the wifi userspace in the basic defconfig. IMHO the basic defconfig
> should include everything to get the hardware running. In fact, I think that
> also the GPU libs should be included in the basic defconfig.

We provide the kernel modules for WiFi but the WiFi device is a SDIO
module.


Regards

Ludovic

> 
> 
>  Regards,
>  Arnout
> 
> 
> >+BR2_PACKAGE_DEVMEM2=y
> >+BR2_PACKAGE_EVTEST=y
> >+BR2_PACKAGE_I2C_TOOLS=y
> >+BR2_PACKAGE_SETSERIAL=y
> >+BR2_PACKAGE_SPI_TOOLS=y
> >+BR2_PACKAGE_USBUTILS=y
> >+BR2_PACKAGE_LIBDRM=y
> >+BR2_PACKAGE_LIBDRM_INSTALL_TESTS=y
> >+BR2_PACKAGE_DTC=y
> >+BR2_PACKAGE_DTC_PROGRAMS=y
> >+BR2_PACKAGE_BLUEZ_UTILS=y
> >+BR2_PACKAGE_BRIDGE_UTILS=y
> >+BR2_PACKAGE_CAN_UTILS=y
> >+BR2_PACKAGE_DROPBEAR=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_WGET=y
> >+BR2_PACKAGE_WIRELESS_TOOLS=y
> >+BR2_PACKAGE_WPA_SUPPLICANT=y
> >+BR2_PACKAGE_BASH=y
> >+BR2_PACKAGE_HTOP=y
> >+BR2_PACKAGE_VIM=y
> >+BR2_TARGET_ROOTFS_EXT2=y
> >+BR2_TARGET_ROOTFS_EXT2_4=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.4"
> >+BR2_TARGET_AT91BOOTSTRAP3_DEFCONFIG="sama5d2_xplainedsd_uboot"
> >+BR2_TARGET_UBOOT=y
> >+BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
> >+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="linux4sam_5.2"
> >+BR2_TARGET_UBOOT_BOARD_DEFCONFIG="sama5d2_xplained_mmc"
> >+BR2_PACKAGE_HOST_DOSFSTOOLS=y
> >+BR2_PACKAGE_HOST_GENIMAGE=y
> >+BR2_PACKAGE_HOST_MTOOLS=y
> >
> 
> 
> -- 
> Arnout Vandecappelle                          arnout at mind be
> Senior Embedded Software Architect            +32-16-286500
> Essensium/Mind                                http://www.mind.be
> G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
> LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
> GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF

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

* [Buildroot] [RFC PATCH] configs: atmel: add sd card demo for sama5d2 xplained
  2016-04-06 15:53 [Buildroot] [RFC PATCH] configs: atmel: add sd card demo for sama5d2 xplained Ludovic Desroches
@ 2016-04-06 22:54 ` Arnout Vandecappelle
  2016-04-07  7:12   ` Ludovic Desroches
  0 siblings, 1 reply; 11+ messages in thread
From: Arnout Vandecappelle @ 2016-04-06 22:54 UTC (permalink / raw)
  To: buildroot

On 04/06/16 17:53, Ludovic Desroches wrote:
> This demo defconfig adds packages to have an equivalent root filesystem
> to the one generated by Yocto with atmel-xplained-demo-image.
> ---
>
> Hi,
>
> Since we will remove the at91 fork of the Buildroot repository. We would like
> to provide a turnkey solution as we do with Yocto. At the moment, it is only
> a basic set of packages.
>
> My concern is we would like to provide a SD card demo but also a NAND demo. It
> means about 6 demo defconfigs to add. Is it an issue?

  No, I don't think it's an issue.

  It may be a good occasion to improve support for split defconfigs. Once we see 
a bit the commonalities.

>
> Regards
>
> Ludovic
>
>   configs/atmel_sama5d2_xplained_mmc_demo_defconfig | 85 +++++++++++++++++++++++
>   1 file changed, 85 insertions(+)
>   create mode 100644 configs/atmel_sama5d2_xplained_mmc_demo_defconfig
>
> diff --git a/configs/atmel_sama5d2_xplained_mmc_demo_defconfig b/configs/atmel_sama5d2_xplained_mmc_demo_defconfig

  I think "demo" is not a great name, if we want more different demos later. 
Maybe "dev" because it's mostly development tools that are added?

> new file mode 100644
> index 0000000..792b8cc
> --- /dev/null
> +++ b/configs/atmel_sama5d2_xplained_mmc_demo_defconfig
> @@ -0,0 +1,85 @@
> +BR2_arm=y
> +BR2_cortex_a5=y
> +BR2_ARM_ENABLE_NEON=y
> +BR2_ARM_ENABLE_VFP=y
> +BR2_ARM_FPU_VFPV4=y
> +BR2_ARM_INSTRUCTIONS_THUMB2=y

  Can you add some comments in the defconfig file like we do for most other 
defconfigs?

> +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_1=y
> +BR2_TOOLCHAIN_BUILDROOT_WCHAR=y

  Like here, explain why wchar is needed.

> +BR2_PTHREAD_DEBUG=y

  And definitely this one needs explanation.

> +BR2_TOOLCHAIN_BUILDROOT_CXX=y
> +BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y
> +BR2_ROOTFS_POST_IMAGE_SCRIPT="board/atmel/sama5d2_xplained_mmc/post-image.sh"
> +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="linux4sam_5.2"

  It's github, you can use an URL rather than a git clone.

> +BR2_LINUX_KERNEL_DEFCONFIG="sama5"
> +BR2_LINUX_KERNEL_DTS_SUPPORT=y
> +BR2_LINUX_KERNEL_INTREE_DTS_NAME="at91-sama5d2_xplained at91-sama5d2_xplained_pda4 at91-sama5d2_xplained_pda7 at91-sama5d2_xplained_pda7b"

  For the packages it would also be nice to order them into logical sections, 
with comments.

> +BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y
> +BR2_PACKAGE_ALSA_UTILS=y
> +BR2_PACKAGE_ALSA_UTILS_ALSACONF=y
> +BR2_PACKAGE_ALSA_UTILS_APLAY=y
> +BR2_PACKAGE_FFMPEG=y
> +BR2_PACKAGE_FFMPEG_GPL=y
> +BR2_PACKAGE_FFMPEG_SWSCALE=y
> +BR2_PACKAGE_MPG123=y
> +BR2_PACKAGE_BZIP2=y
> +BR2_PACKAGE_GZIP=y
> +BR2_PACKAGE_UNZIP=y
> +BR2_PACKAGE_XZ=y
> +BR2_PACKAGE_ZIP=y
> +BR2_PACKAGE_GDB=y
> +BR2_PACKAGE_LMBENCH=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

  Is the wifi always populated? If yes, I think it would make sense to include 
the wifi userspace in the basic defconfig. IMHO the basic defconfig should 
include everything to get the hardware running. In fact, I think that also the 
GPU libs should be included in the basic defconfig.


  Regards,
  Arnout


> +BR2_PACKAGE_DEVMEM2=y
> +BR2_PACKAGE_EVTEST=y
> +BR2_PACKAGE_I2C_TOOLS=y
> +BR2_PACKAGE_SETSERIAL=y
> +BR2_PACKAGE_SPI_TOOLS=y
> +BR2_PACKAGE_USBUTILS=y
> +BR2_PACKAGE_LIBDRM=y
> +BR2_PACKAGE_LIBDRM_INSTALL_TESTS=y
> +BR2_PACKAGE_DTC=y
> +BR2_PACKAGE_DTC_PROGRAMS=y
> +BR2_PACKAGE_BLUEZ_UTILS=y
> +BR2_PACKAGE_BRIDGE_UTILS=y
> +BR2_PACKAGE_CAN_UTILS=y
> +BR2_PACKAGE_DROPBEAR=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_WGET=y
> +BR2_PACKAGE_WIRELESS_TOOLS=y
> +BR2_PACKAGE_WPA_SUPPLICANT=y
> +BR2_PACKAGE_BASH=y
> +BR2_PACKAGE_HTOP=y
> +BR2_PACKAGE_VIM=y
> +BR2_TARGET_ROOTFS_EXT2=y
> +BR2_TARGET_ROOTFS_EXT2_4=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.4"
> +BR2_TARGET_AT91BOOTSTRAP3_DEFCONFIG="sama5d2_xplainedsd_uboot"
> +BR2_TARGET_UBOOT=y
> +BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
> +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="linux4sam_5.2"
> +BR2_TARGET_UBOOT_BOARD_DEFCONFIG="sama5d2_xplained_mmc"
> +BR2_PACKAGE_HOST_DOSFSTOOLS=y
> +BR2_PACKAGE_HOST_GENIMAGE=y
> +BR2_PACKAGE_HOST_MTOOLS=y
>


-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF

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

* [Buildroot] [RFC PATCH] configs: atmel: add sd card demo for sama5d2 xplained
@ 2016-04-06 15:53 Ludovic Desroches
  2016-04-06 22:54 ` Arnout Vandecappelle
  0 siblings, 1 reply; 11+ messages in thread
From: Ludovic Desroches @ 2016-04-06 15:53 UTC (permalink / raw)
  To: buildroot

This demo defconfig adds packages to have an equivalent root filesystem
to the one generated by Yocto with atmel-xplained-demo-image.
---

Hi,

Since we will remove the at91 fork of the Buildroot repository. We would like
to provide a turnkey solution as we do with Yocto. At the moment, it is only
a basic set of packages.

My concern is we would like to provide a SD card demo but also a NAND demo. It
means about 6 demo defconfigs to add. Is it an issue?

Regards

Ludovic

 configs/atmel_sama5d2_xplained_mmc_demo_defconfig | 85 +++++++++++++++++++++++
 1 file changed, 85 insertions(+)
 create mode 100644 configs/atmel_sama5d2_xplained_mmc_demo_defconfig

diff --git a/configs/atmel_sama5d2_xplained_mmc_demo_defconfig b/configs/atmel_sama5d2_xplained_mmc_demo_defconfig
new file mode 100644
index 0000000..792b8cc
--- /dev/null
+++ b/configs/atmel_sama5d2_xplained_mmc_demo_defconfig
@@ -0,0 +1,85 @@
+BR2_arm=y
+BR2_cortex_a5=y
+BR2_ARM_ENABLE_NEON=y
+BR2_ARM_ENABLE_VFP=y
+BR2_ARM_FPU_VFPV4=y
+BR2_ARM_INSTRUCTIONS_THUMB2=y
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_1=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="board/atmel/sama5d2_xplained_mmc/post-image.sh"
+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="linux4sam_5.2"
+BR2_LINUX_KERNEL_DEFCONFIG="sama5"
+BR2_LINUX_KERNEL_DTS_SUPPORT=y
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="at91-sama5d2_xplained at91-sama5d2_xplained_pda4 at91-sama5d2_xplained_pda7 at91-sama5d2_xplained_pda7b"
+BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y
+BR2_PACKAGE_ALSA_UTILS=y
+BR2_PACKAGE_ALSA_UTILS_ALSACONF=y
+BR2_PACKAGE_ALSA_UTILS_APLAY=y
+BR2_PACKAGE_FFMPEG=y
+BR2_PACKAGE_FFMPEG_GPL=y
+BR2_PACKAGE_FFMPEG_SWSCALE=y
+BR2_PACKAGE_MPG123=y
+BR2_PACKAGE_BZIP2=y
+BR2_PACKAGE_GZIP=y
+BR2_PACKAGE_UNZIP=y
+BR2_PACKAGE_XZ=y
+BR2_PACKAGE_ZIP=y
+BR2_PACKAGE_GDB=y
+BR2_PACKAGE_LMBENCH=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_DEVMEM2=y
+BR2_PACKAGE_EVTEST=y
+BR2_PACKAGE_I2C_TOOLS=y
+BR2_PACKAGE_SETSERIAL=y
+BR2_PACKAGE_SPI_TOOLS=y
+BR2_PACKAGE_USBUTILS=y
+BR2_PACKAGE_LIBDRM=y
+BR2_PACKAGE_LIBDRM_INSTALL_TESTS=y
+BR2_PACKAGE_DTC=y
+BR2_PACKAGE_DTC_PROGRAMS=y
+BR2_PACKAGE_BLUEZ_UTILS=y
+BR2_PACKAGE_BRIDGE_UTILS=y
+BR2_PACKAGE_CAN_UTILS=y
+BR2_PACKAGE_DROPBEAR=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_WGET=y
+BR2_PACKAGE_WIRELESS_TOOLS=y
+BR2_PACKAGE_WPA_SUPPLICANT=y
+BR2_PACKAGE_BASH=y
+BR2_PACKAGE_HTOP=y
+BR2_PACKAGE_VIM=y
+BR2_TARGET_ROOTFS_EXT2=y
+BR2_TARGET_ROOTFS_EXT2_4=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.4"
+BR2_TARGET_AT91BOOTSTRAP3_DEFCONFIG="sama5d2_xplainedsd_uboot"
+BR2_TARGET_UBOOT=y
+BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
+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="linux4sam_5.2"
+BR2_TARGET_UBOOT_BOARD_DEFCONFIG="sama5d2_xplained_mmc"
+BR2_PACKAGE_HOST_DOSFSTOOLS=y
+BR2_PACKAGE_HOST_GENIMAGE=y
+BR2_PACKAGE_HOST_MTOOLS=y
-- 
2.5.0

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

end of thread, other threads:[~2016-04-13 21:45 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-08 14:30 [Buildroot] [PATCH v3 0/4] sd card image generation for Xplained boards Ludovic Desroches
2016-04-08 14:30 ` [Buildroot] [PATCH v3 1/4] configs: atmel: add sama5d2 xplained sd card image generation Ludovic Desroches
2016-04-08 14:30 ` [Buildroot] [RFC PATCH] configs: atmel: add sd card demo for sama5d2 xplained Ludovic Desroches
2016-04-08 14:32   ` Ludovic Desroches
2016-04-08 14:30 ` [Buildroot] [PATCH v3 2/4] configs: atmel: add sama5d4 xplained sd card image generation Ludovic Desroches
2016-04-08 14:30 ` [Buildroot] [PATCH v3 3/4] configs: atmel: add sama5d3 " Ludovic Desroches
2016-04-08 14:30 ` [Buildroot] [PATCH v3 4/4] board/atmel: update documentation for SD card generation Ludovic Desroches
2016-04-13 21:45 ` [Buildroot] [PATCH v3 0/4] sd card image generation for Xplained boards Thomas Petazzoni
  -- strict thread matches above, loose matches on Subject: below --
2016-04-06 15:53 [Buildroot] [RFC PATCH] configs: atmel: add sd card demo for sama5d2 xplained Ludovic Desroches
2016-04-06 22:54 ` Arnout Vandecappelle
2016-04-07  7:12   ` Ludovic Desroches

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.