configs: defconfigs for Atmel boards
v3 cover configs: defconfigs for Atmel boards
This series updates and adds defconfigs for the recent(ish) atmel boards. They use Atmel's u-boot and kernel tree and are meant to be flashed on the NAND flash.
It also provides a flahing helper to ease the flashing of the board and includes documentation on how to do so.
Changes in v3:
- select 3.18 headers for the toolchain
- rename the documentation
- update the flasher helper to support more boards
- update the tcl script to the latest version from Atmel (demos v4.7) It has better debug messages and takes the dtb filename as a parameter It also supports giving different video modes to support the DRM/KMS display driver
Changes in v2:
- Add flashing helper and instructions
- Update the existing xplained readme
- Use commit ids instead of branch names
- Include ubi image generation in the defconfig
Alexandre Belloni (9):
configs: update at91sam9g45m10ek defconfig
configs: add defconfig for Atmel at91sam9rlek
configs: add defconfig for Atmel at91sam9x5ek
configs: add defconfig for Atmel sama5d3xek
configs: add defconfig for Atmel sama5d4ek
configs: add defconfig for Atmel sama5d4 Xplained Ultra
configs: add defconfig for Atmel sama5d3 Xplained
atmel: add a flashing helper and documentation
configs: rename atmel_xplained_defconfig
board/atmel/flasher.sh | 136 ++++++++
board/atmel/nandflash.tcl | 358 +++++++++++++++++++++
board/atmel/readme.txt | 107 ++++++
board/atmel/xplained/readme.txt | 8 +-
configs/at91sam9g45m10ek_defconfig | 25 +-
configs/at91sam9rlek_defconfig | 24 ++
configs/at91sam9x5ek_defconfig | 25 ++
configs/atmel_sama5d3_xplained_defconfig | 29 ++
...config => atmel_sama5d3_xplained_mmc_defconfig} | 0
configs/atmel_sama5d3xek_defconfig | 29 ++
configs/atmel_sama5d4_xplained_defconfig | 33 ++
configs/atmel_sama5d4ek_defconfig | 33 ++
12 files changed, 798 insertions(+), 9 deletions(-)
create mode 100755 board/atmel/flasher.sh
create mode 100644 board/atmel/nandflash.tcl
create mode 100644 board/atmel/readme.txt
create mode 100644 configs/at91sam9rlek_defconfig
create mode 100644 configs/at91sam9x5ek_defconfig
create mode 100644 configs/atmel_sama5d3_xplained_defconfig
rename configs/{atmel_xplained_defconfig => atmel_sama5d3_xplained_mmc_defconfig} (100%)
create mode 100644 configs/atmel_sama5d3xek_defconfig
create mode 100644 configs/atmel_sama5d4_xplained_defconfig
create mode 100644 configs/atmel_sama5d4ek_defconfigSignature · 1 line
2.1.4
PATCH v3 1/9 configs: update at91sam9g45m10ek defconfig
Use kernel (3.18) and u-boot (2015.01) from Atmel's repositories.
--- configs/at91sam9g45m10ek_defconfig | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-)
configs/at91sam9g45m10ek_defconfig +20 -5
@@ -1,9 +1,24 @@ BR2_arm=y BR2_arm926t=y -BR2_PACKAGE_HOST_SAM_BA=y -BR2_TARGET_AT91BOOTSTRAP=y -BR2_TARGET_AT91BOOTSTRAP_BOARD="at91sam9m10g45ek" +BR2_KERNEL_HEADERS_VERSION=y +BR2_DEFAULT_KERNEL_VERSION="3.18" +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_18=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_DEFCONFIG="at91_dt" +BR2_LINUX_KERNEL_ZIMAGE=y +BR2_LINUX_KERNEL_DTS_SUPPORT=y +BR2_LINUX_KERNEL_INTREE_DTS_NAME="at91sam9m10g45ek" +BR2_TARGET_ROOTFS_UBIFS=y +BR2_TARGET_ROOTFS_UBIFS_MAXLEBCNT=2047 +BR2_TARGET_ROOTFS_UBI=y +BR2_TARGET_AT91BOOTSTRAP3=y +BR2_TARGET_AT91BOOTSTRAP3_DEFCONFIG="at91sam9m10g45eknf_uboot" BR2_TARGET_UBOOT=y BR2_TARGET_UBOOT_BOARDNAME="at91sam9m10g45ek_nandflash" -BR2_LINUX_KERNEL=y -BR2_LINUX_KERNEL_DEFCONFIG="at91sam9g45" +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="677f3c2340b72131beebace8e96cac17b9569887" +BR2_PACKAGE_HOST_SAM_BA=y
Signature · 1 line
2.1.4
PATCH v3 2/9 configs: add defconfig for Atmel at91sam9rlek
In reply to Alexandre Belloni--- configs/at91sam9rlek_defconfig | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 configs/at91sam9rlek_defconfig
configs/at91sam9rlek_defconfig new file +24 -0
@@ -0,0 +1,24 @@ +BR2_arm=y +BR2_arm926t=y +BR2_KERNEL_HEADERS_VERSION=y +BR2_DEFAULT_KERNEL_VERSION="3.18" +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_18=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_DEFCONFIG="at91_dt" +BR2_LINUX_KERNEL_ZIMAGE=y +BR2_LINUX_KERNEL_DTS_SUPPORT=y +BR2_LINUX_KERNEL_INTREE_DTS_NAME="at91sam9rlek" +BR2_TARGET_ROOTFS_UBIFS=y +BR2_TARGET_ROOTFS_UBIFS_MAXLEBCNT=2047 +BR2_TARGET_ROOTFS_UBI=y +BR2_TARGET_AT91BOOTSTRAP3=y +BR2_TARGET_AT91BOOTSTRAP3_DEFCONFIG="at91sam9rleknf_uboot" +BR2_TARGET_UBOOT=y +BR2_TARGET_UBOOT_BOARDNAME="at91sam9rlek_nandflash" +BR2_TARGET_UBOOT_CUSTOM_GIT=y +BR2_TARGET_UBOOT_CUSTOM_REPO_URL="git://github.com/linux4sam/u-boot-at91.git" +BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="677f3c2340b72131beebace8e96cac17b9569887" +BR2_PACKAGE_HOST_SAM_BA=y
Signature · 1 line
2.1.4
PATCH v3 3/9 configs: add defconfig for Atmel at91sam9x5ek
In reply to Alexandre BelloniThis supports:
- at91sam9g15ek
- at91sam9g25ek
- at91sam9g35ek
- at91sam9x25ek
- at91sam9x35ek
--- configs/at91sam9x5ek_defconfig | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 configs/at91sam9x5ek_defconfig
configs/at91sam9x5ek_defconfig new file +25 -0
@@ -0,0 +1,25 @@ +BR2_arm=y +BR2_arm926t=y +BR2_KERNEL_HEADERS_VERSION=y +BR2_DEFAULT_KERNEL_VERSION="3.18" +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_18=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_DEFCONFIG="at91_dt" +BR2_LINUX_KERNEL_ZIMAGE=y +BR2_LINUX_KERNEL_DTS_SUPPORT=y +BR2_LINUX_KERNEL_INTREE_DTS_NAME="at91sam9g15ek at91sam9g25ek at91sam9g35ek at91sam9x25ek at91sam9x35ek" +BR2_TARGET_ROOTFS_UBIFS=y +BR2_TARGET_ROOTFS_UBIFS_LEBSIZE=0x1f000 +BR2_TARGET_ROOTFS_UBI=y +BR2_TARGET_ROOTFS_UBI_SUBSIZE=2048 +BR2_TARGET_AT91BOOTSTRAP3=y +BR2_TARGET_AT91BOOTSTRAP3_DEFCONFIG="at91sam9x5eknf_uboot" +BR2_TARGET_UBOOT=y +BR2_TARGET_UBOOT_BOARDNAME="at91sam9x5ek_nandflash" +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="677f3c2340b72131beebace8e96cac17b9569887" +BR2_PACKAGE_HOST_SAM_BA=y
Signature · 1 line
2.1.4
PATCH v3 4/9 configs: add defconfig for Atmel sama5d3xek
In reply to Alexandre BelloniThis supports:
- sama5d31ek
- sama5d33ek
- sama5d34ek
- sama5d35ek
- sama5d36ek
with or without the PDA4 or PDA7 screens.
--- configs/atmel_sama5d3xek_defconfig | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 configs/atmel_sama5d3xek_defconfig
configs/atmel_sama5d3xek_defconfig new file +29 -0
@@ -0,0 +1,29 @@ +BR2_arm=y +BR2_cortex_a5=y +BR2_ARM_EABIHF=y +BR2_ARM_FPU_VFPV4D16=y +BR2_ARM_INSTRUCTIONS_THUMB2=y +BR2_KERNEL_HEADERS_VERSION=y +BR2_DEFAULT_KERNEL_VERSION="3.18" +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_18=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_DEFCONFIG="sama5" +BR2_LINUX_KERNEL_ZIMAGE=y +BR2_LINUX_KERNEL_DTS_SUPPORT=y +BR2_LINUX_KERNEL_INTREE_DTS_NAME="sama5d31ek sama5d31ek_pda4 sama5d31ek_pda7 sama5d31ek_revc sama5d31ek_revc_pda4 sama5d31ek_revc_pda7 sama5d33ek sama5d33ek_pda4 sama5d33ek_pda7 sama5d33ek_revc sama5d33ek_revc_pda4 sama5d33ek_revc_pda7 sama5d34ek sama5d34ek_pda4 sama5d34ek_pda7 sama5d34ek_revc sama5d34ek_revc_pda4 sama5d34ek_revc_pda7 sama5d35ek sama5d35ek_revc sama5d36ek sama5d36ek_pda4 sama5d36ek_pda7 sama5d36ek_revc sama5d36ek_revc_pda4 sama5d36ek_revc_pda7" +BR2_TARGET_ROOTFS_UBIFS=y +BR2_TARGET_ROOTFS_UBIFS_LEBSIZE=0x1f000 +BR2_TARGET_ROOTFS_UBI=y +BR2_TARGET_ROOTFS_UBI_SUBSIZE=2048 +BR2_TARGET_AT91BOOTSTRAP3=y +BR2_TARGET_AT91BOOTSTRAP3_DEFCONFIG="sama5d3xeknf_uboot" +BR2_TARGET_UBOOT=y +BR2_TARGET_UBOOT_BOARDNAME="sama5d3xek_nandflash" +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="677f3c2340b72131beebace8e96cac17b9569887" +BR2_TARGET_UBOOT_SPL=y +BR2_PACKAGE_HOST_SAM_BA=y
Signature · 1 line
2.1.4
PATCH v3 5/9 configs: add defconfig for Atmel sama5d4ek
In reply to Alexandre Belloni--- configs/atmel_sama5d4ek_defconfig | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 configs/atmel_sama5d4ek_defconfig
configs/atmel_sama5d4ek_defconfig new file +33 -0
@@ -0,0 +1,33 @@ +BR2_arm=y +BR2_cortex_a5=y +BR2_ARM_EABIHF=y +BR2_ARM_ENABLE_NEON=y +BR2_ARM_FPU_VFPV4D16=y +BR2_ARM_INSTRUCTIONS_THUMB2=y +BR2_KERNEL_HEADERS_VERSION=y +BR2_DEFAULT_KERNEL_VERSION="3.18" +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_18=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_DEFCONFIG="sama5" +BR2_LINUX_KERNEL_ZIMAGE=y +BR2_LINUX_KERNEL_DTS_SUPPORT=y +BR2_LINUX_KERNEL_INTREE_DTS_NAME="at91-sama5d4ek" +BR2_TARGET_ROOTFS_UBIFS=y +BR2_TARGET_ROOTFS_UBIFS_LEBSIZE=0x3e000 +BR2_TARGET_ROOTFS_UBIFS_MINIOSIZE=0x1000 +BR2_TARGET_ROOTFS_UBIFS_MAXLEBCNT=2082 +BR2_TARGET_ROOTFS_UBI=y +BR2_TARGET_ROOTFS_UBI_PEBSIZE=0x40000 +BR2_TARGET_ROOTFS_UBI_SUBSIZE=0 +BR2_TARGET_AT91BOOTSTRAP3=y +BR2_TARGET_AT91BOOTSTRAP3_DEFCONFIG="sama5d4eknf_uboot_secure" +BR2_TARGET_UBOOT=y +BR2_TARGET_UBOOT_BOARDNAME="sama5d4ek_nandflash" +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="677f3c2340b72131beebace8e96cac17b9569887" +BR2_TARGET_UBOOT_SPL=y +BR2_PACKAGE_HOST_SAM_BA=y
Signature · 1 line
2.1.4
PATCH v3 6/9 configs: add defconfig for Atmel sama5d4 Xplained Ultra
In reply to Alexandre Belloni--- configs/atmel_sama5d4_xplained_defconfig | 33 ++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 configs/atmel_sama5d4_xplained_defconfig
configs/atmel_sama5d4_xplained_defconfig new file +33 -0
@@ -0,0 +1,33 @@ +BR2_arm=y +BR2_cortex_a5=y +BR2_ARM_EABIHF=y +BR2_ARM_ENABLE_NEON=y +BR2_ARM_FPU_VFPV4D16=y +BR2_ARM_INSTRUCTIONS_THUMB2=y +BR2_KERNEL_HEADERS_VERSION=y +BR2_DEFAULT_KERNEL_VERSION="3.18" +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_18=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_DEFCONFIG="sama5" +BR2_LINUX_KERNEL_ZIMAGE=y +BR2_LINUX_KERNEL_DTS_SUPPORT=y +BR2_LINUX_KERNEL_INTREE_DTS_NAME="at91-sama5d4_xplained" +BR2_TARGET_ROOTFS_UBIFS=y +BR2_TARGET_ROOTFS_UBIFS_LEBSIZE=0x3e000 +BR2_TARGET_ROOTFS_UBIFS_MINIOSIZE=0x1000 +BR2_TARGET_ROOTFS_UBIFS_MAXLEBCNT=2082 +BR2_TARGET_ROOTFS_UBI=y +BR2_TARGET_ROOTFS_UBI_PEBSIZE=0x40000 +BR2_TARGET_ROOTFS_UBI_SUBSIZE=0 +BR2_TARGET_AT91BOOTSTRAP3=y +BR2_TARGET_AT91BOOTSTRAP3_DEFCONFIG="sama5d4_xplainednf_uboot_secure" +BR2_TARGET_UBOOT=y +BR2_TARGET_UBOOT_BOARDNAME="sama5d4_xplained_nandflash" +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="677f3c2340b72131beebace8e96cac17b9569887" +BR2_TARGET_UBOOT_SPL=y +BR2_PACKAGE_HOST_SAM_BA=y
Signature · 1 line
2.1.4
PATCH v3 7/9 configs: add defconfig for Atmel sama5d3 Xplained
In reply to Alexandre Belloni--- configs/atmel_sama5d3_xplained_defconfig | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 configs/atmel_sama5d3_xplained_defconfig
configs/atmel_sama5d3_xplained_defconfig new file +29 -0
@@ -0,0 +1,29 @@ +BR2_arm=y +BR2_cortex_a5=y +BR2_ARM_EABIHF=y +BR2_ARM_FPU_VFPV4D16=y +BR2_ARM_INSTRUCTIONS_THUMB2=y +BR2_KERNEL_HEADERS_VERSION=y +BR2_DEFAULT_KERNEL_VERSION="3.18" +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_18=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_DEFCONFIG="sama5" +BR2_LINUX_KERNEL_ZIMAGE=y +BR2_LINUX_KERNEL_DTS_SUPPORT=y +BR2_LINUX_KERNEL_INTREE_DTS_NAME="at91-sama5d3_xplained at91-sama5d3_xplained_pda4 at91-sama5d3_xplained_pda7" +BR2_TARGET_ROOTFS_UBIFS=y +BR2_TARGET_ROOTFS_UBIFS_LEBSIZE=0x1f000 +BR2_TARGET_ROOTFS_UBI=y +BR2_TARGET_ROOTFS_UBI_SUBSIZE=2048 +BR2_TARGET_AT91BOOTSTRAP3=y +BR2_TARGET_AT91BOOTSTRAP3_DEFCONFIG="sama5d3_xplainednf_uboot" +BR2_TARGET_UBOOT=y +BR2_TARGET_UBOOT_BOARDNAME="sama5d3_xplained_nandflash" +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="677f3c2340b72131beebace8e96cac17b9569887" +BR2_TARGET_UBOOT_SPL=y +BR2_PACKAGE_HOST_SAM_BA=y
Signature · 1 line
2.1.4
PATCH v3 8/9 atmel: add a flashing helper and documentation
In reply to Alexandre BelloniProvide a flashing helper to properly select the sam-ba configuration and reuse the sam-ba tcl script provided by Atmel with minimal modifications.
--- board/atmel/flasher.sh | 136 ++++++++++++++++++ board/atmel/nandflash.tcl | 358 ++++++++++++++++++++++++++++++++++++++++++++++ board/atmel/readme.txt | 107 ++++++++++++++ 3 files changed, 601 insertions(+) create mode 100755 board/atmel/flasher.sh create mode 100644 board/atmel/nandflash.tcl create mode 100644 board/atmel/readme.txt
board/atmel/flasher.sh new file +136 -0
@@ -0,0 +1,136 @@ +#!/bin/bash + +BUILDIR=$1 +TTY=$2 +BOARD=$3 + +family_at91sam9g45m10ek="at91sam9m10g45ek" +mach_at91sam9g45m10ek="at91sam9m10-g45-ek" +dtb_at91sam9g45m10ek="at91sam9m10g45ek.dtb" + +family_at91sam9rlek="at91sam9rlek" +mach_at91sam9rlek="at91sam9rl64-ek" +dtb_at91sam9rlek="at91sam9rlek.dtb" + +family_at91sam9g15ek="at91sam9x5ek" +mach_at91sam9g15ek="at91sam9g15-ek" +dtb_at91sam9g15ek="at91sam9g15ek.dtb" + +family_at91sam9g25ek="at91sam9x5ek" +mach_at91sam9g25ek="at91sam9g25-ek" +dtb_at91sam9g25ek="at91sam9g25ek.dtb" + +family_at91sam9g35ek="at91sam9x5ek" +mach_at91sam9g35ek="at91sam9g35-ek" +dtb_at91sam9g35ek="at91sam9g35ek.dtb" + +family_at91sam9x25ek="at91sam9x5ek" +mach_at91sam9x25ek="at91sam9x25-ek" +dtb_at91sam9x25ek="at91sam9x25ek.dtb" + +family_at91sam9x35ek="at91sam9x5ek" +mach_at91sam9x35ek="at91sam9x35-ek" +dtb_at91sam9x35ek="at91sam9x35ek.dtb" + +family_sama5d31ek="sama5d3xek" +mach_sama5d31ek="at91sama5d3x-ek" +dtb_sama5d31ek="sama5d31ek.dtb" + +family_sama5d31ek_revc="sama5d3xek" +mach_sama5d31ek_revc="at91sama5d3x-ek" +dtb_sama5d31ek_revc="sama5d31ek_revc.dtb" + +family_sama5d33ek="sama5d3xek" +mach_sama5d33ek="at91sama5d3x-ek" +dtb_sama5d33ek="sama5d33ek.dtb" + +family_sama5d33ek_revc="sama5d3xek" +mach_sama5d33ek_revc="at91sama5d3x-ek" +dtb_sama5d33ek_revc="sama5d33ek_revc.dtb" + +family_sama5d34ek="sama5d3xek" +mach_sama5d34ek="at91sama5d3x-ek" +dtb_sama5d34ek="sama5d34ek.dtb" + +family_sama5d34ek_revc="sama5d3xek" +mach_sama5d34ek_revc="at91sama5d3x-ek" +dtb_sama5d34ek_revc="sama5d34ek_revc.dtb" + +family_sama5d35ek="sama5d3xek" +mach_sama5d35ek="at91sama5d3x-ek" +dtb_sama5d35ek="sama5d35ek.dtb" + +family_sama5d35ek_revc="sama5d3xek" +mach_sama5d35ek_revc="at91sama5d3x-ek" +dtb_sama5d35ek_revc="sama5d35ek_revc.dtb" + +family_sama5d36ek="sama5d3xek" +mach_sama5d36ek="at91sama5d3x-ek" +dtb_sama5d36ek="sama5d36ek.dtb" + +family_sama5d36ek_revc="sama5d3xek" +mach_sama5d36ek_revc="at91sama5d3x-ek" +dtb_sama5d36ek_revc="sama5d36ek_revc.dtb" + +family_sama5d3_xplained="sama5d3_xplained" +mach_sama5d3_xplained="at91sama5d3x-xplained" +dtb_sama5d3_xplained="at91-sama5d3_xplained.dtb" + +family_sama5d4ek="sama5d4ek" +mach_sama5d4ek="at91sama5d4x-ek" +dtb_sama5d4ek="at91-sama5d4ek.dtb" + +family_sama5d4_xplained="sama5d4_xplained" +mach_sama5d4_xplained="at91sama5d4x-ek" +dtb_sama5d4_xplained="at91-sama5d4_xplained.dtb" + +usage() { + cat << EOF +Usage: + $0 <builddir_path> <interface> <board> + +Available boards: + at91sam9g45m10ek + at91sam9rlek + at91sam9g15ek + at91sam9g25ek + at91sam9x25ek + at91sam9g35ek + at91sam9x35ek + sama5d31ek + sama5d33ek + sama5d34ek + sama5d35ek + sama5d36ek + sama5d31ek_revc (Until rev. C) + sama5d33ek_revc (Until rev. C) + sama5d34ek_revc (Until rev. C) + sama5d35ek_revc (Until rev. C) + sama5d36ek_revc (Until rev. C) + sama5d3_xplained + sama5d4ek + sama5d4_xplained + +Example: + $0 ./output /dev/ttyACM0 at91sam9g45m10ek +EOF +} + +F="family_$BOARD" +M="mach_$BOARD" +D="dtb_$BOARD" + +if [[ $# != 3 || -z ${!F} ]]; then + usage + exit 1 +fi + +video_mode="video=LVDS-1:800x480-16" +if [[ $BOARD == "*pda4" ]]; then + video_mode="video=LVDS-1:480x272-16" +fi + +echo "Executing: ${!F} O=$1/images $1/host/opt/sam-ba/sam-ba $TTY ${!M} $(dirname $0)/nandflash.tcl -- ${!F} ${!D} $video_mode" +export O=$1/images +$1/host/opt/sam-ba/sam-ba $TTY ${!M} $(dirname $0)/nandflash.tcl -- ${!F} ${!D} $video_mode +
board/atmel/nandflash.tcl new file +358 -0
358 lines not on this page · raw message
board/atmel/readme.txt new file +107 -0
107 lines not on this page · raw message
Signature · 1 line
2.1.4
PATCH v3 9/9 configs: rename atmel_xplained_defconfig
In reply to Alexandre BelloniFor consistency, rename atmel_xplained_defconfig to atmel_sama5d3_xplained_mmc_defconfig as this configuration supports booting the sama5d3 Xplained with an MMC card (as opposed to the NAND flash).
---
board/atmel/xplained/readme.txt | 8 ++++----
...el_xplained_defconfig => atmel_sama5d3_xplained_mmc_defconfig} | 0
2 files changed, 4 insertions(+), 4 deletions(-)
rename configs/{atmel_xplained_defconfig => atmel_sama5d3_xplained_mmc_defconfig} (100%)board/atmel/xplained/readme.txt +4 -4
@@ -10,19 +10,19 @@ web site. Note that the default Buildroot configuration is prepared to boot from an SD card: the first stage bootloader, second stage bootloader, kernel image and root filesystem are all located on the SD card. Some -adjustements in the bootloader configuration will be needed to boot -from NAND flash. +adjustments in the bootloader configuration will be needed to boot +from NAND flash, see board/atmel/nandflash.txt Configuring and building Buildroot ---------------------------------- - make atmel_xplained_defconfig + make atmel_sama5d3_xplained_mmc_defconfig make Preparing the SD card --------------------- -The SD card must be partitionned with at least two partitions: one +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:
configs/atmel_sama5d3_xplained_mmc_defconfig renamed from configs/atmel_xplained_defconfig +0 -0
Signature · 1 line
2.1.4
v3 cover configs: defconfigs for Atmel boards
In reply to Alexandre BelloniDear Alexandre Belloni,
Quoted 7 lines · Alexandre Belloni
Changes in v3:
- select 3.18 headers for the toolchain
- rename the documentation
- update the flasher helper to support more boards
- update the tcl script to the latest version from Atmel (demos v4.7) It has better debug messages and takes the dtb filename as a parameter It also supports giving different video modes to support the DRM/KMS display driver
Ah, so the TCL script is available somewhere upstream? In this case, why don't we create a simple Buildroot package to download it and install it somewhere, instead of having it copy/pasted inside Buildroot?
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
v3 cover configs: defconfigs for Atmel boards
Hi,
Quoted 12 lines · Thomas Petazzoni
Dear Alexandre Belloni,
Quoted 7 lines · Alexandre Belloni
Changes in v3:
- select 3.18 headers for the toolchain
- rename the documentation
- update the flasher helper to support more boards
- update the tcl script to the latest version from Atmel (demos v4.7) It has better debug messages and takes the dtb filename as a parameter It also supports giving different video modes to support the DRM/KMS display driver
Quoted 4 lines
Ah, so the TCL script is available somewhere upstream? In this case, why don't we create a simple Buildroot package to download it and install it somewhere, instead of having it copy/pasted inside Buildroot?
It is not really available per se. It is distributed alongside with the demos in a 160MB and more often than not is only aimed at supporting the specific SoC supported by the demo.
Signature · 3 lines
Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
v3 cover configs: defconfigs for Atmel boards
Alex,
Quoted 7 lines · Alexandre Belloni
Quoted 3 lines
Ah, so the TCL script is available somewhere upstream? In this case, why don't we create a simple Buildroot package to download it and install it somewhere, instead of having it copy/pasted inside Buildroot?
It is not really available per se. It is distributed alongside with the demos in a 160MB and more often than not is only aimed at supporting the specific SoC supported by the demo.
Ok. Then let's keep it the way you did it.
Thanks,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
v3 cover configs: defconfigs for Atmel boards
In reply to Alexandre BelloniDear Alexandre Belloni,
Quoted 10 lines · Alexandre Belloni
Alexandre Belloni (9):
configs: update at91sam9g45m10ek defconfig
configs: add defconfig for Atmel at91sam9rlek
configs: add defconfig for Atmel at91sam9x5ek
configs: add defconfig for Atmel sama5d3xek
configs: add defconfig for Atmel sama5d4ek
configs: add defconfig for Atmel sama5d4 Xplained Ultra
configs: add defconfig for Atmel sama5d3 Xplained
atmel: add a flashing helper and documentation
configs: renameatmel_xplained_defconfig
All applied, thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com