configs: at91sam9x5ek: add development rootfs
PATCH 1/4 configs: at91sam9x5ek: add development rootfs
Add development rootfs based on linux4sam_5.4 for at91sam9x5ek for both NAND flash and SD card.
--- board/atmel/at91sam9x5ek_mmc/genimage.cfg | 34 ++++++++++ board/atmel/at91sam9x5ek_mmc/post-image.sh | 20 ++++++ configs/at91sam9x5ek_dev_defconfig | 99 ++++++++++++++++++++++++++++ configs/at91sam9x5ek_mmc_dev_defconfig | 102 +++++++++++++++++++++++++++++ 4 files changed, 255 insertions(+) create mode 100644 board/atmel/at91sam9x5ek_mmc/genimage.cfg create mode 100755 board/atmel/at91sam9x5ek_mmc/post-image.sh create mode 100644 configs/at91sam9x5ek_dev_defconfig create mode 100644 configs/at91sam9x5ek_mmc_dev_defconfig
board/atmel/at91sam9x5ek_mmc/genimage.cfg new file +34 -0
@@ -0,0 +1,34 @@ +# Image for SD card boot on Atmel at91sam9x5ek boards +# +image boot.vfat { + vfat { + files = { + "zImage", + "at91sam9g15ek.dtb", + "at91sam9g25ek.dtb", + "at91sam9g35ek.dtb", + "at91sam9x25ek.dtb", + "at91sam9x35ek.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 + } +}
board/atmel/at91sam9x5ek_mmc/post-image.sh new file +20 -0
@@ -0,0 +1,20 @@ +#!/bin/sh + +BOARD_DIR="$(dirname $0)" +GENIMAGE_CFG="${BOARD_DIR}/genimage.cfg" +GENIMAGE_TMP="${BUILD_DIR}/genimage.tmp" + +rm -rf "${GENIMAGE_TMP}" + +echo --rootpath "${TARGET_DIR}" +echo --tmppath "${GENIMAGE_TMP}" +echo --inputpath "${BINARIES_DIR}" +echo --outputpath "${BINARIES_DIR}" +echo --config "${GENIMAGE_CFG}" + +genimage \ + --rootpath "${TARGET_DIR}" \ + --tmppath "${GENIMAGE_TMP}" \ + --inputpath "${BINARIES_DIR}" \ + --outputpath "${BINARIES_DIR}" \ + --config "${GENIMAGE_CFG}"
configs/at91sam9x5ek_dev_defconfig new file +99 -0
99 lines not on this page · raw message
configs/at91sam9x5ek_mmc_dev_defconfig new file +102 -0
102 lines not on this page · raw message
Signature · 1 line
2.9.0
PATCH 2/4 board: atmel: genimage: add 1M offset for FAT partition
--- board/atmel/at91sam9x5ek_mmc/genimage.cfg | 1 + board/atmel/sama5d2_xplained_mmc/genimage.cfg | 1 + board/atmel/sama5d3_xplained_mmc/genimage.cfg | 1 + board/atmel/sama5d4_xplained_mmc/genimage.cfg | 1 + 4 files changed, 4 insertions(+)
board/atmel/at91sam9x5ek_mmc/genimage.cfg +1 -0
@@ -24,6 +24,7 @@ image sdcard.img { partition-type = 0xC bootable = "true" image = "boot.vfat" + offset = 1M } partition rootfs {
board/atmel/sama5d2_xplained_mmc/genimage.cfg +1 -0
@@ -23,6 +23,7 @@ image sdcard.img { partition-type = 0xC bootable = "true" image = "boot.vfat" + offset = 1M } partition rootfs {
board/atmel/sama5d3_xplained_mmc/genimage.cfg +1 -0
@@ -23,6 +23,7 @@ image sdcard.img { partition-type = 0xC bootable = "true" image = "boot.vfat" + offset = 1M } partition rootfs {
board/atmel/sama5d4_xplained_mmc/genimage.cfg +1 -0
@@ -24,6 +24,7 @@ image sdcard.img { partition-type = 0xC bootable = "true" image = "boot.vfat" + offset = 1M } partition rootfs {
Signature · 1 line
2.9.0
PATCH 2/4 board: atmel: genimage: add 1M offset for FAT partition
Hello,
Quoted 1 line · Ludovic Desroches
Signed-off-by Ludovic Desroches <[email protected]>
An empty commit log is a bit strange. This really needs some explanation.
Thanks,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com
PATCH 2/4 board: atmel: genimage: add 1M offset for FAT partition
With older SoCs and some SD cards, a 1024-bytes offset is needed to allow ROM code to read the content of the FAT partition. As it is usual to get a 1M bytes offset for the first partition, use this value to avoid boot issues.
--- board/atmel/at91sam9x5ek_mmc/genimage.cfg | 1 + board/atmel/sama5d2_xplained_mmc/genimage.cfg | 1 + board/atmel/sama5d3_xplained_mmc/genimage.cfg | 1 + board/atmel/sama5d4_xplained_mmc/genimage.cfg | 1 + 4 files changed, 4 insertions(+)
board/atmel/at91sam9x5ek_mmc/genimage.cfg +1 -0
@@ -24,6 +24,7 @@ image sdcard.img { partition-type = 0xC bootable = "true" image = "boot.vfat" + offset = 1M } partition rootfs {
board/atmel/sama5d2_xplained_mmc/genimage.cfg +1 -0
@@ -23,6 +23,7 @@ image sdcard.img { partition-type = 0xC bootable = "true" image = "boot.vfat" + offset = 1M } partition rootfs {
board/atmel/sama5d3_xplained_mmc/genimage.cfg +1 -0
@@ -23,6 +23,7 @@ image sdcard.img { partition-type = 0xC bootable = "true" image = "boot.vfat" + offset = 1M } partition rootfs {
board/atmel/sama5d4_xplained_mmc/genimage.cfg +1 -0
@@ -24,6 +24,7 @@ image sdcard.img { partition-type = 0xC bootable = "true" image = "boot.vfat" + offset = 1M } partition rootfs {
Signature · 1 line
2.9.0
PATCH 2/4 board: atmel: genimage: add 1M offset for FAT partition
Hello,
Quoted 5 lines · Ludovic Desroches
With older SoCs and some SD cards, a 1024-bytes offset is needed to allow ROM code to read the content of the FAT partition. As it is usual to get a 1M bytes offset for the first partition, use this value to avoid boot issues.
Quoted 7 lines
Signed-off-by Ludovic Desroches <[email protected]>--- board/atmel/at91sam9x5ek_mmc/genimage.cfg | 1 + board/atmel/sama5d2_xplained_mmc/genimage.cfg | 1 + board/atmel/sama5d3_xplained_mmc/genimage.cfg | 1 + board/atmel/sama5d4_xplained_mmc/genimage.cfg | 1 + 4 files changed, 4 insertions(+)
I've applied to master, after removing the hunk changing board/atmel/at91sam9x5ek_mmc/genimage.cfg. Indeed, this file doesn't exist in master since I haven't committed your PATCH 1/4. It is indeed weird to:
1/ Have patches making fixes *after* patches adding new features in a
patch series. It should be the other way around.
2/ In PATCH 1/4, introduce a genimage.cfg file for the
at91sam9x5ek_mmc configuration that is wrong, and gets fixed in PATCH 2/4.
Anyway, this one is applied to master for SAMA5D{2,3,4}, we will handle 9x5EK separately.
Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com
PATCH 2/4 board: atmel: genimage: add 1M offset for FAT partition
Quoted 21 lines · Thomas Petazzoni
Hello,
Quoted 5 lines · Ludovic Desroches
With older SoCs and some SD cards, a 1024-bytes offset is needed to allow ROM code to read the content of the FAT partition. As it is usual to get a 1M bytes offset for the first partition, use this value to avoid boot issues.
Quoted 7 lines
Signed-off-by Ludovic Desroches <[email protected]>--- board/atmel/at91sam9x5ek_mmc/genimage.cfg | 1 + board/atmel/sama5d2_xplained_mmc/genimage.cfg | 1 + board/atmel/sama5d3_xplained_mmc/genimage.cfg | 1 + board/atmel/sama5d4_xplained_mmc/genimage.cfg | 1 + 4 files changed, 4 insertions(+)I've applied to master, after removing the hunk changing board/atmel/at91sam9x5ek_mmc/genimage.cfg. Indeed, this file doesn't exist in master since I haven't committed your PATCH 1/4. It is indeed weird to:
Quoted 7 lines
1/ Have patches making fixes *after* patches adding new features in a
patch series. It should be the other way around.2/ In PATCH 1/4, introduce a genimage.cfg file for the
at91sam9x5ek_mmcconfiguration that is wrong, and gets fixed in PATCH 2/4.
Sorry, in fact patch 1/4 was done for linux4sam_5.4 but I didn't sent it because we had some issues with this release and we discovered the sd card boot issue when testing the linux4sam_5.5 release.
Quoted 2 lines
Anyway, this one is applied to master for SAMA5D{2,3,4}, we will handle 9x5EK separately.
Thanks
Ludovic
Quoted 8 lines
Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com
PATCH 3/4 configs: atmel: xplained boards: bump to linux4sam_5.5
In reply to Ludovic DesrochesBump at91bootstrap to v3.8.7, U-Boot to linux4sam_5.5, Linux to linux4sam_5.5 (based on v4.4.x).
--- configs/atmel_sama5d2_xplained_mmc_defconfig | 8 ++++---- configs/atmel_sama5d2_xplained_mmc_dev_defconfig | 8 ++++---- configs/atmel_sama5d3_xplained_defconfig | 8 ++++---- configs/atmel_sama5d3_xplained_dev_defconfig | 8 ++++---- configs/atmel_sama5d3_xplained_mmc_defconfig | 8 ++++---- configs/atmel_sama5d3_xplained_mmc_dev_defconfig | 8 ++++---- configs/atmel_sama5d4_xplained_defconfig | 8 ++++---- configs/atmel_sama5d4_xplained_dev_defconfig | 8 ++++---- configs/atmel_sama5d4_xplained_mmc_defconfig | 8 ++++---- configs/atmel_sama5d4_xplained_mmc_dev_defconfig | 8 ++++---- 10 files changed, 40 insertions(+), 40 deletions(-)
configs/atmel_sama5d2_xplained_mmc_defconfig +4 -4
@@ -3,12 +3,12 @@ BR2_cortex_a5=y 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_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_4=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.3" +BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="linux4sam_5.5" 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"
@@ -17,13 +17,13 @@ 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.5" +BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_VERSION="v3.8.7" 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.3" +BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="linux4sam_5.5" BR2_TARGET_UBOOT_BOARD_DEFCONFIG="sama5d2_xplained_mmc" BR2_PACKAGE_HOST_DOSFSTOOLS=y BR2_PACKAGE_HOST_GENIMAGE=y
configs/atmel_sama5d2_xplained_mmc_dev_defconfig +4 -4
@@ -6,7 +6,7 @@ BR2_ARM_ENABLE_VFP=y BR2_ARM_INSTRUCTIONS_THUMB2=y # Toolchain -BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_1=y +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_4=y # Needed for some packages BR2_TOOLCHAIN_BUILDROOT_WCHAR=y # Needed for gdb
@@ -24,7 +24,7 @@ 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.3" +BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="linux4sam_5.5" 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"
@@ -89,13 +89,13 @@ 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.5" +BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_VERSION="v3.8.7" 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.3" +BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="linux4sam_5.5" BR2_TARGET_UBOOT_BOARD_DEFCONFIG="sama5d2_xplained_mmc" # Host packages
configs/atmel_sama5d3_xplained_defconfig +4 -4
@@ -2,11 +2,11 @@ BR2_arm=y BR2_cortex_a5=y BR2_ARM_ENABLE_VFP=y BR2_ARM_INSTRUCTIONS_THUMB2=y -BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_1=y +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_4=y 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.3" +BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="linux4sam_5.5" 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"
@@ -17,12 +17,12 @@ BR2_TARGET_ROOTFS_UBI_SUBSIZE=2048 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.5" +BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_VERSION="v3.8.7" BR2_TARGET_AT91BOOTSTRAP3_DEFCONFIG="sama5d3_xplainednf_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.3" +BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="linux4sam_5.5" BR2_TARGET_UBOOT_BOARD_DEFCONFIG="sama5d3_xplained_nandflash" BR2_PACKAGE_HOST_SAM_BA=y
configs/atmel_sama5d3_xplained_dev_defconfig +4 -4
@@ -5,7 +5,7 @@ BR2_ARM_ENABLE_VFP=y BR2_ARM_INSTRUCTIONS_THUMB2=y # Toolchain -BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_1=y +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_4=y # Needed for some packages BR2_TOOLCHAIN_BUILDROOT_WCHAR=y # Needed for gdb
@@ -21,7 +21,7 @@ BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y 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.3" +BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="linux4sam_5.5" 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"
@@ -88,13 +88,13 @@ BR2_TARGET_ROOTFS_UBI_SUBSIZE=2048 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.5" +BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_VERSION="v3.8.7" BR2_TARGET_AT91BOOTSTRAP3_DEFCONFIG="sama5d3_xplainednf_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.3" +BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="linux4sam_5.5" BR2_TARGET_UBOOT_BOARD_DEFCONFIG="sama5d3_xplained_nandflash" # Host packages
configs/atmel_sama5d3_xplained_mmc_defconfig +4 -4
@@ -2,12 +2,12 @@ BR2_arm=y BR2_cortex_a5=y BR2_ARM_ENABLE_VFP=y BR2_ARM_INSTRUCTIONS_THUMB2=y -BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_1=y +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_4=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" -BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="linux4sam_5.3" +BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="linux4sam_5.5" 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"
@@ -16,13 +16,13 @@ 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.5" +BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_VERSION="v3.8.7" BR2_TARGET_AT91BOOTSTRAP3_DEFCONFIG="sama5d3_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.3" +BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="linux4sam_5.5" BR2_TARGET_UBOOT_BOARD_DEFCONFIG="sama5d3_xplained_mmc" BR2_PACKAGE_HOST_DOSFSTOOLS=y BR2_PACKAGE_HOST_GENIMAGE=y
configs/atmel_sama5d3_xplained_mmc_dev_defconfig +4 -4
@@ -5,7 +5,7 @@ BR2_ARM_ENABLE_VFP=y BR2_ARM_INSTRUCTIONS_THUMB2=y # Toolchain -BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_1=y +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_4=y # Needed for some packages BR2_TOOLCHAIN_BUILDROOT_WCHAR=y # Needed for gdb
@@ -23,7 +23,7 @@ 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" -BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="linux4sam_5.3" +BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="linux4sam_5.5" 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"
@@ -88,13 +88,13 @@ 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.5" +BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_VERSION="v3.8.7" BR2_TARGET_AT91BOOTSTRAP3_DEFCONFIG="sama5d3_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.3" +BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="linux4sam_5.5" BR2_TARGET_UBOOT_BOARD_DEFCONFIG="sama5d3_xplained_mmc" # Host packages
configs/atmel_sama5d4_xplained_defconfig +4 -4
@@ -3,11 +3,11 @@ BR2_cortex_a5=y 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_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_4=y 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.3" +BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="linux4sam_5.5" 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"
@@ -21,12 +21,12 @@ BR2_TARGET_ROOTFS_UBI_SUBSIZE=0 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.5" +BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_VERSION="v3.8.7" BR2_TARGET_AT91BOOTSTRAP3_DEFCONFIG="sama5d4_xplainednf_uboot_secure" 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.3" +BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="linux4sam_5.5" BR2_TARGET_UBOOT_BOARD_DEFCONFIG="sama5d4_xplained_nandflash" BR2_PACKAGE_HOST_SAM_BA=y
configs/atmel_sama5d4_xplained_dev_defconfig +4 -4
@@ -6,7 +6,7 @@ BR2_ARM_ENABLE_VFP=y BR2_ARM_INSTRUCTIONS_THUMB2=y # Toolchain -BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_1=y +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_4=y # Needed for some packages BR2_TOOLCHAIN_BUILDROOT_WCHAR=y # Needed for gdb
@@ -22,7 +22,7 @@ BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y 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.3" +BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="linux4sam_5.5" 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"
@@ -92,13 +92,13 @@ BR2_TARGET_ROOTFS_UBI_SUBSIZE=0 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.5" +BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_VERSION="v3.8.7" BR2_TARGET_AT91BOOTSTRAP3_DEFCONFIG="sama5d4_xplainednf_uboot_secure" 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.3" +BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="linux4sam_5.5" BR2_TARGET_UBOOT_BOARD_DEFCONFIG="sama5d4_xplained_nandflash" # Host packages
configs/atmel_sama5d4_xplained_mmc_defconfig +4 -4
@@ -3,12 +3,12 @@ BR2_cortex_a5=y 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_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_4=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" -BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="linux4sam_5.3" +BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="linux4sam_5.5" 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"
@@ -17,13 +17,13 @@ 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.5" +BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_VERSION="v3.8.7" BR2_TARGET_AT91BOOTSTRAP3_DEFCONFIG="sama5d4_xplainedsd_uboot_secure" 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.3" +BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="linux4sam_5.5" BR2_TARGET_UBOOT_BOARD_DEFCONFIG="sama5d4_xplained_mmc" BR2_PACKAGE_HOST_DOSFSTOOLS=y BR2_PACKAGE_HOST_GENIMAGE=y
configs/atmel_sama5d4_xplained_mmc_dev_defconfig +4 -4
@@ -6,7 +6,7 @@ BR2_ARM_ENABLE_VFP=y BR2_ARM_INSTRUCTIONS_THUMB2=y # Toolchain -BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_1=y +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_4=y # Needed for some packages BR2_TOOLCHAIN_BUILDROOT_WCHAR=y # Needed for gdb
@@ -24,7 +24,7 @@ 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" -BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="linux4sam_5.3" +BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="linux4sam_5.5" 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"
@@ -89,13 +89,13 @@ 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.5" +BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_VERSION="v3.8.7" BR2_TARGET_AT91BOOTSTRAP3_DEFCONFIG="sama5d4_xplainedsd_uboot_secure" 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.3" +BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="linux4sam_5.5" BR2_TARGET_UBOOT_BOARD_DEFCONFIG="sama5d4_xplained_mmc" # Host packages
Signature · 1 line
2.9.0
Thomas Petazzoni
AppliedPATCH 3/4 configs: atmel: xplained boards: bump to linux4sam_5.5
Hello,
Quoted 4 lines · Ludovic Desroches
Bump at91bootstrap to v3.8.7, U-Boot to linux4sam_5.5, Linux to linux4sam_5.5 (based on v4.4.x).
Signed-off-by Ludovic Desroches <[email protected]>
Quoted 12 lines
--- configs/atmel_sama5d2_xplained_mmc_defconfig | 8 ++++---- configs/atmel_sama5d2_xplained_mmc_dev_defconfig | 8 ++++---- configs/atmel_sama5d3_xplained_defconfig | 8 ++++---- configs/atmel_sama5d3_xplained_dev_defconfig | 8 ++++---- configs/atmel_sama5d3_xplained_mmc_defconfig | 8 ++++---- configs/atmel_sama5d3_xplained_mmc_dev_defconfig | 8 ++++---- configs/atmel_sama5d4_xplained_defconfig | 8 ++++---- configs/atmel_sama5d4_xplained_dev_defconfig | 8 ++++---- configs/atmel_sama5d4_xplained_mmc_defconfig | 8 ++++---- configs/atmel_sama5d4_xplained_mmc_dev_defconfig | 8 ++++---- 10 files changed, 40 insertions(+), 40 deletions(-)
Applied to master, thanks.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 4/4 configs: atmel: at91sam9x5ek: bump to linux4sam_5.5
In reply to Ludovic DesrochesBump at91bootstrap to v3.8.7, U-Boot to linux4sam_5.5, Linux to linux4sam_5.5 (based on v4.4.x).
--- configs/at91sam9x5ek_defconfig | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-)
configs/at91sam9x5ek_defconfig +9 -5
@@ -1,11 +1,11 @@ BR2_arm=y BR2_arm926t=y -# Linux headers same as kernel, a 3.18 series -BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_18=y +# Linux headers same as kernel, a 4.4 series +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_4=y 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_CUSTOM_REPO_VERSION="linux4sam_5.5" BR2_LINUX_KERNEL_DEFCONFIG="at91_dt" BR2_LINUX_KERNEL_DTS_SUPPORT=y BR2_LINUX_KERNEL_INTREE_DTS_NAME="at91sam9g15ek at91sam9g25ek at91sam9g35ek at91sam9x25ek at91sam9x35ek"
@@ -14,10 +14,14 @@ BR2_TARGET_ROOTFS_UBIFS_LEBSIZE=0x1f000 BR2_TARGET_ROOTFS_UBI=y BR2_TARGET_ROOTFS_UBI_SUBSIZE=2048 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="at91sam9x5eknf_uboot" BR2_TARGET_UBOOT=y -BR2_TARGET_UBOOT_BOARDNAME="at91sam9x5ek_nandflash" +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="677f3c2340b72131beebace8e96cac17b9569887" +BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="linux4sam_5.5" +BR2_TARGET_UBOOT_BOARD_DEFCONFIG="at91sam9x5ek_nandflash" BR2_PACKAGE_HOST_SAM_BA=y
Signature · 1 line
2.9.0
Thomas Petazzoni
AppliedPATCH 4/4 configs: atmel: at91sam9x5ek: bump to linux4sam_5.5
Hello,
Quoted 7 lines · Ludovic Desroches
Bump at91bootstrap to v3.8.7, U-Boot to linux4sam_5.5, Linux to linux4sam_5.5 (based on v4.4.x).
Signed-off-by Ludovic Desroches <[email protected]>--- configs/at91sam9x5ek_defconfig | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-)
Applied to master, thanks.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 1/4 configs: at91sam9x5ek: add development rootfs
In reply to Ludovic DesrochesHello,
Quoted 9 lines · Ludovic Desroches
Add development rootfs based on linux4sam_5.4 for at91sam9x5ek for both NAND flash and SD card.
Signed-off-by Ludovic Desroches <[email protected]>--- board/atmel/at91sam9x5ek_mmc/genimage.cfg | 34 ++++++++++ board/atmel/at91sam9x5ek_mmc/post-image.sh | 20 ++++++ configs/at91sam9x5ek_dev_defconfig | 99 ++++++++++++++++++++++++++++ configs/at91sam9x5ek_mmc_dev_defconfig | 102 +++++++++++++++++++++++++++++
So after this patch, we would have:
at91sam9x5ek_defconfig
at91sam9x5ek_dev_defconfig
at91sam9x5ek_mmc_dev_defconfig
But no minimal MMC configuration.
That's a lot of configurations for a single board. Can we rationalize a bit, and chose one configuration only (either NAND or MMC), for which we have the minimal and dev configurations?
Thanks,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com
PATCH 1/4 configs: at91sam9x5ek: add development rootfs
Quoted 19 lines · Thomas Petazzoni
Hello,
Quoted 9 lines · Ludovic Desroches
Add development rootfs based on linux4sam_5.4 for at91sam9x5ek for both NAND flash and SD card.
Signed-off-by Ludovic Desroches <[email protected]>--- board/atmel/at91sam9x5ek_mmc/genimage.cfg | 34 ++++++++++ board/atmel/at91sam9x5ek_mmc/post-image.sh | 20 ++++++ configs/at91sam9x5ek_dev_defconfig | 99 ++++++++++++++++++++++++++++ configs/at91sam9x5ek_mmc_dev_defconfig | 102 +++++++++++++++++++++++++++++So after this patch, we would have:
at91sam9x5ek_defconfig
at91sam9x5ek_dev_defconfig
at91sam9x5ek_mmc_dev_defconfig
Quoted 6 lines
But no minimal MMC configuration.
That's a lot of configurations for a single board. Can we rationalize a bit, and chose one configuration only (either NAND or MMC), for which we have the minimal and dev configurations?
I have in mind, but maybe I am wrong since the conversion is not recent, you told me having several defconfigs for the same board won't be an issue. The concern was more about having a dev_defconfig.
Without a defconfig targetted to NAND or MMC, the customer will have to recompile the at91bootstrap and u-boot, this is something we would like to avoid. I think u-boot case could be handled because the difference is mainly about environment variables. Concerning at91bootstrap, it is more complex. If you have any suggestion to handle this case and so reducing the number of defconfig variants, I would be happy.
Thanks
Ludovic
Quoted 7 lines
Thanks,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com
PATCH 1/4 configs: at91sam9x5ek: add development rootfs
Quoted 31 lines · Ludovic Desroches
Quoted 19 lines · Thomas Petazzoni
Hello,
Quoted 9 lines · Ludovic Desroches
Add development rootfs based on linux4sam_5.4 for at91sam9x5ek for both NAND flash and SD card.
Signed-off-by Ludovic Desroches <[email protected]>--- board/atmel/at91sam9x5ek_mmc/genimage.cfg | 34 ++++++++++ board/atmel/at91sam9x5ek_mmc/post-image.sh | 20 ++++++ configs/at91sam9x5ek_dev_defconfig | 99 ++++++++++++++++++++++++++++ configs/at91sam9x5ek_mmc_dev_defconfig | 102 +++++++++++++++++++++++++++++So after this patch, we would have:
at91sam9x5ek_defconfig
at91sam9x5ek_dev_defconfig
at91sam9x5ek_mmc_dev_defconfigQuoted 6 lines
But no minimal MMC configuration.
That's a lot of configurations for a single board. Can we rationalize a bit, and chose one configuration only (either NAND or MMC), for which we have the minimal and dev configurations?
I have in mind, but maybe I am wrong since the conversion is not recent, you told me having several defconfigs for the same board won't be an issue. The concern was more about having a
dev_defconfig.
Quoted 7 lines
Without a defconfig targetted to NAND or MMC, the customer will have to recompile the at91bootstrap and u-boot, this is something we would like to avoid. I think u-boot case could be handled because the difference is mainly about environment variables. Concerning at91bootstrap, it is more complex. If you have any suggestion to handle this case and so reducing the number of defconfig variants, I would be happy.
I think the best would be to be able to merge defconfigs. So, you'd get one iminimal defconfig per machine plus only one for the development image.
Signature · 3 lines
Alexandre Belloni, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com
PATCH 1/4 configs: at91sam9x5ek: add development rootfs
In reply to Ludovic DesrochesHello,
Quoted 7 lines · Ludovic Desroches
Quoted 3 lines
That's a lot of configurations for a single board. Can we rationalize a bit, and chose one configuration only (either NAND or MMC), for which we have the minimal and dev configurations?
I have in mind, but maybe I am wrong since the conversion is not recent, you told me having several defconfigs for the same board won't be an issue. The concern was more about having a
dev_defconfig.
Well, the issue is the overall multiplication of defconfigs, so both the fact that you have separate defconfigs for MMC and NAND, and the fact that you want to have those "dev_defconfig" contribute to the multiplication of defconfigs.
Quoted 6 lines
Without a defconfig targetted to NAND or MMC, the customer will have to recompile the at91bootstrap and u-boot, this is something we would like to avoid. I think u-boot case could be handled because the difference is mainly about environment variables. Concerning at91bootstrap, it is more complex. If you have any suggestion to handle this case and so reducing the number of defconfig variants, I would be happy.
Is it possible to have a single at91bootstrap for both the NAND and MMC scenarios? I guess you can decide depending on the boot source whether you should load u-boot from NAND or from MMC. However, this means you need to have both the NAND code and MMC code compiled in the same at91bootstrap image. Maybe this makes the at91bootstrap image too big? I'm not sure what are the constraints of the ROM code in terms of first stage bootloader size on this SoC.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com
PATCH 1/4 configs: at91sam9x5ek: add development rootfs
Quoted 24 lines · Thomas Petazzoni
Hello,
Quoted 7 lines · Ludovic Desroches
Quoted 3 lines
That's a lot of configurations for a single board. Can we rationalize a bit, and chose one configuration only (either NAND or MMC), for which we have the minimal and dev configurations?
I have in mind, but maybe I am wrong since the conversion is not recent, you told me having several defconfigs for the same board won't be an issue. The concern was more about having a
dev_defconfig.Well, the issue is the overall multiplication of defconfigs, so both the fact that you have separate defconfigs for MMC and NAND, and the fact that you want to have those "
dev_defconfig" contribute to the multiplication of defconfigs.Quoted 6 lines
Without a defconfig targetted to NAND or MMC, the customer will have to recompile the at91bootstrap and u-boot, this is something we would like to avoid. I think u-boot case could be handled because the difference is mainly about environment variables. Concerning at91bootstrap, it is more complex. If you have any suggestion to handle this case and so reducing the number of defconfig variants, I would be happy.
Quoted 7 lines
Is it possible to have a single at91bootstrap for both the NAND and MMC scenarios? I guess you can decide depending on the boot source whether you should load u-boot from NAND or from MMC. However, this means you need to have both the NAND code and MMC code compiled in the same at91bootstrap image. Maybe this makes the at91bootstrap image too big? I'm not sure what are the constraints of the ROM code in terms of first stage bootloader size on this SoC.
No, it is not possible to get a single at91bootstrap to manage several boot medias. The boot media selection is an exclusive choice. Removing this constraint rises two potential issues:
- the size, we may have a binary too big as you said for some SoCs (only 24KB)
- we need to decide at execution time the boot media but we have no guarantee that all components are on the same media.
Ludovic
PATCH 1/4 configs: at91sam9x5ek: add development rootfs
In reply to Ludovic DesrochesHello,
Quoted 4 lines · Ludovic Desroches
Add development rootfs based on linux4sam_5.4 for at91sam9x5ek for both NAND flash and SD card.
Signed-off-by Ludovic Desroches <[email protected]>
Quoted 10 lines
--- board/atmel/at91sam9x5ek_mmc/genimage.cfg | 34 ++++++++++ board/atmel/at91sam9x5ek_mmc/post-image.sh | 20 ++++++ configs/at91sam9x5ek_dev_defconfig | 99 ++++++++++++++++++++++++++++ configs/at91sam9x5ek_mmc_dev_defconfig | 102 +++++++++++++++++++++++++++++ 4 files changed, 255 insertions(+) create mode 100644 board/atmel/at91sam9x5ek_mmc/genimage.cfg create mode 100755 board/atmel/at91sam9x5ek_mmc/post-image.sh create mode 100644 configs/at91sam9x5ek_dev_defconfig create mode 100644 configs/at91sam9x5ek_mmc_dev_defconfig
In the end, I've applied your commit. But before doing so, I've added a at91sam9x5ek_mmc_defconfig, i.e a minimal defconfig for the MMC configuration.
Please check that everything is still OK on your side.
Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 1/4 configs: at91sam9x5ek: add development rootfs
Hi,
Quoted 18 lines · Thomas Petazzoni
Hello,
Quoted 4 lines · Ludovic Desroches
Add development rootfs based on linux4sam_5.4 for at91sam9x5ek for both NAND flash and SD card.
Signed-off-by Ludovic Desroches <[email protected]>Quoted 10 lines
--- board/atmel/at91sam9x5ek_mmc/genimage.cfg | 34 ++++++++++ board/atmel/at91sam9x5ek_mmc/post-image.sh | 20 ++++++ configs/at91sam9x5ek_dev_defconfig | 99 ++++++++++++++++++++++++++++ configs/at91sam9x5ek_mmc_dev_defconfig | 102 +++++++++++++++++++++++++++++ 4 files changed, 255 insertions(+) create mode 100644 board/atmel/at91sam9x5ek_mmc/genimage.cfg create mode 100755 board/atmel/at91sam9x5ek_mmc/post-image.sh create mode 100644 configs/at91sam9x5ek_dev_defconfig create mode 100644 configs/at91sam9x5ek_mmc_dev_defconfig
Quoted 3 lines
In the end, I've applied your commit. But before doing so, I've added a
at91sam9x5ek_mmc_defconfig, i.e a minimal defconfig for the MMC configuration.
Thanks to add it, it is in line with defconfigs provided for other boards.
Quoted 3 lines
Please check that everything is still OK on your side.
We have not release a new version of linux4sam yet, so it's ok.
Thanks
Ludovic
Quoted 4 lines
Thanks!
Thomas