configs: defconfigs for Atmel boards
v2 cover configs: defconfigs for Atmel boards
Hi,
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 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 | 74 +++++
board/atmel/nandflash.tcl | 346 +++++++++++++++++++++
board/atmel/nandflash.txt | 106 +++++++
board/atmel/xplained/readme.txt | 8 +-
configs/at91sam9g45m10ek_defconfig | 22 +-
configs/at91sam9rlek_defconfig | 21 ++
configs/at91sam9x5ek_defconfig | 22 ++
configs/atmel_sama5d3_xplained_defconfig | 26 ++
...config => atmel_sama5d3_xplained_mmc_defconfig} | 0
configs/atmel_sama5d3xek_defconfig | 26 ++
configs/atmel_sama5d4_xplained_defconfig | 30 ++
configs/atmel_sama5d4ek_defconfig | 30 ++
12 files changed, 702 insertions(+), 9 deletions(-)
create mode 100755 board/atmel/flasher.sh
create mode 100644 board/atmel/nandflash.tcl
create mode 100644 board/atmel/nandflash.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 v2 1/9 configs: update at91sam9g45m10ek defconfig
Use kernel (3.18) and u-boot (2015.01) from Atmel's repositories.
--- configs/at91sam9g45m10ek_defconfig | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-)
configs/at91sam9g45m10ek_defconfig +17 -5
@@ -1,9 +1,21 @@ BR2_arm=y BR2_arm926t=y -BR2_PACKAGE_HOST_SAM_BA=y -BR2_TARGET_AT91BOOTSTRAP=y -BR2_TARGET_AT91BOOTSTRAP_BOARD="at91sam9m10g45ek" +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 v2 1/9 configs: update at91sam9g45m10ek defconfig
Hello Alex,
Quoted 12 lines · Alexandre Belloni
Use kernel (3.18) and u-boot (2015.01) from Atmel's repositories.
Signed-off-by Alexandre Belloni <[email protected]>--- configs/at91sam9g45m10ek_defconfig | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-)configs/at91sam9g45m10ek_defconfig +0
-0
configs/at91sam9g45m10ek_defconfig line 6
Quoted 9 lines
configs/at91sam9g45m10ek_defconfig +4
-3@@ -1,9 +1,21 @@ BR2_arm=y BR2_arm926t=y -BR2_PACKAGE_HOST_SAM_BA=y -BR2_TARGET_AT91BOOTSTRAP=y -BR2_TARGET_AT91BOOTSTRAP_BOARD="at91sam9m10g45ek" +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"
You also need to ensure that the kernel headers used for the toolchain are of the same version or older than the kernel you're building/running.
So, something like:
BR2_KERNEL_HEADERS_VERSION=y
BR2_DEFAULT_KERNEL_VERSION="3.18"
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_18=y
And ditto for all your other defconfigs.
Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH v2 2/9 configs: add defconfig for Atmel at91sam9rlek
In reply to Alexandre Belloni--- configs/at91sam9rlek_defconfig | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 configs/at91sam9rlek_defconfig
configs/at91sam9rlek_defconfig new file +21 -0
@@ -0,0 +1,21 @@ +BR2_arm=y +BR2_arm926t=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 v2 3/9 configs: add defconfig for Atmel at91sam9x5ek
In reply to Alexandre BelloniThis supports:
- at91sam9g15ek
- at91sam9g25ek
- at91sam9g35ek
- at91sam9x25ek
- at91sam9x35ek
--- configs/at91sam9x5ek_defconfig | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 configs/at91sam9x5ek_defconfig
configs/at91sam9x5ek_defconfig new file +22 -0
@@ -0,0 +1,22 @@ +BR2_arm=y +BR2_arm926t=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 v2 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 | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 configs/atmel_sama5d3xek_defconfig
configs/atmel_sama5d3xek_defconfig new file +26 -0
@@ -0,0 +1,26 @@ +BR2_arm=y +BR2_cortex_a5=y +BR2_ARM_EABIHF=y +BR2_ARM_FPU_VFPV4D16=y +BR2_ARM_INSTRUCTIONS_THUMB2=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 v2 4/9 configs: add defconfig for Atmel sama5d3xek
Dear Alexandre Belloni,
Quoted 1 line · Alexandre Belloni
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="sama5d31ek
sama5d31ek_pda4sama5d31ek_pda7sama5d31ek_revcsama5d31ek_revc_pda4sama5d31ek_revc_pda7sama5d33eksama5d33ek_pda4sama5d33ek_pda7sama5d33ek_revcsama5d33ek_revc_pda4sama5d33ek_revc_pda7sama5d34eksama5d34ek_pda4sama5d34ek_pda7sama5d34ek_revcsama5d34ek_revc_pda4sama5d34ek_revc_pda7sama5d35eksama5d35ek_revcsama5d36eksama5d36ek_pda4sama5d36ek_pda7sama5d36ek_revcsama5d36ek_revc_pda4sama5d36ek_revc_pda7"
Hum, at some point we'll have to think about using $(wildcard ...) or something like that to allow wildcards in this option. But since there's only one user for now, and it's not very common to have gazillions of DTs for a given board, it's probably not worth the effort.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH v2 5/9 configs: add defconfig for Atmel sama5d4ek
In reply to Alexandre Belloni--- configs/atmel_sama5d4ek_defconfig | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 configs/atmel_sama5d4ek_defconfig
configs/atmel_sama5d4ek_defconfig new file +30 -0
@@ -0,0 +1,30 @@ +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_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 v2 6/9 configs: add defconfig for Atmel sama5d4 Xplained Ultra
In reply to Alexandre Belloni--- configs/atmel_sama5d4_xplained_defconfig | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 configs/atmel_sama5d4_xplained_defconfig
configs/atmel_sama5d4_xplained_defconfig new file +30 -0
@@ -0,0 +1,30 @@ +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_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 v2 7/9 configs: add defconfig for Atmel sama5d3 Xplained
In reply to Alexandre Belloni--- configs/atmel_sama5d3_xplained_defconfig | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 configs/atmel_sama5d3_xplained_defconfig
configs/atmel_sama5d3_xplained_defconfig new file +26 -0
@@ -0,0 +1,26 @@ +BR2_arm=y +BR2_cortex_a5=y +BR2_ARM_EABIHF=y +BR2_ARM_FPU_VFPV4D16=y +BR2_ARM_INSTRUCTIONS_THUMB2=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 v2 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 | 74 ++++++++++ board/atmel/nandflash.tcl | 346 ++++++++++++++++++++++++++++++++++++++++++++++ board/atmel/nandflash.txt | 106 ++++++++++++++ 3 files changed, 526 insertions(+) create mode 100755 board/atmel/flasher.sh create mode 100644 board/atmel/nandflash.tcl create mode 100644 board/atmel/nandflash.txt
board/atmel/flasher.sh new file +74 -0
@@ -0,0 +1,74 @@ +#!/bin/bash + +BUILDIR=$1 +TTY=$2 +BOARD=$3 + +family_at91sam9g45m10ek="FAMILY=at91sam9g45 SUFFIX=ek" +mach_at91sam9g45m10ek="at91sam9m10-g45-ek" + +family_at91sam9rlek="FAMILY=at91sam9rl SUFFIX=ek" +mach_at91sam9rlek="at91sam9rl64-ek" + +family_at91sam9g15ek="FAMILY=at91sam9x5 SUFFIX=ek" +mach_at91sam9g15ek="at91sam9g15-ek" + +family_at91sam9g25ek="FAMILY=at91sam9x5 SUFFIX=ek" +mach_at91sam9g25ek="at91sam9g25-ek" + +family_at91sam9x25ek="FAMILY=at91sam9x5 SUFFIX=ek" +mach_at91sam9x25ek="at91sam9x25-ek" + +family_at91sam9g35ek="FAMILY=at91sam9x5 SUFFIX=ek" +mach_at91sam9g35ek="at91sam9g35-ek" + +family_at91sam9x35ek="FAMILY=at91sam9x5 SUFFIX=ek" +mach_at91sam9x35ek="at91sam9x35-ek" + +family_sama5d3xek="FAMILY=sama5d3 SUFFIX=ek" +mach_sama5d3xek="at91sama5d3x-ek" + +family_sama5d3_xplained="FAMILY=sama5d3 SUFFIX=_xplained" +mach_sama5d3_xplained="at91sama5d3x-xplained" + +family_sama5d4ek="FAMILY=sama5d4 SUFFIX=ek" +mach_sama5d4ek="at91sama5d4x-ek" + +family_sama5d4_xplained="FAMILY=sama5d4 SUFFIX=_xplained" +mach_sama5d4_xplained="at91sama5d4x-ek" + +usage() { + cat << EOF +Usage: + $0 <builddir_path> <interface> <board> + +Available boards: + at91sam9g45m10ek + at91sam9rlek + at91sam9g15ek + at91sam9g25ek + at91sam9x25ek + at91sam9g35ek + at91sam9x35ek + sama5d3xek + sama5d3_xplained + sama5d4ek + sama5d4_xplained + +Example: + $0 ./output /dev/ttyACM0 at91sam9g45m10ek +EOF +} + +F="family_$BOARD" +M="mach_$BOARD" + +if [[ $# != 3 || -z ${!F} ]]; then + usage + exit 1 +fi + +echo "Executing: ${!F} O=$1/images $1/host/opt/sam-ba/sam-ba $TTY ${!M} $(dirname $0)/nandflash.tcl" +export ${!F} O=$1/images +$1/host/opt/sam-ba/sam-ba $TTY ${!M} $(dirname $0)/nandflash.tcl +
board/atmel/nandflash.tcl new file +346 -0
346 lines not on this page · raw message
board/atmel/nandflash.txt new file +106 -0
106 lines not on this page · raw message
Signature · 1 line
2.1.4
PATCH v2 8/9 atmel: add a flashing helper and documentation
Hi Alexandre,
board/atmel/nandflash.txt line 103
Quoted 6 lines · Alexandre Belloni
board/atmel/nandflash.txt new file +6
-0+You can then flash the board using the provided flasher.sh script in board/atmel: + +board/atmel/flasher.sh <builddir_path> <interface> <board> + +For example: +board/atmel/flasher.sh /tmp/atmel_sama5d3_xplained/ /dev/ttyACM0 sama5d3_xplained
Since you didn't mention out of tree build in this document, I think './output/' would be better as first argument example. Adding a comment on out of tree build would be nice, though.
baruch
Signature · 3 lines
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -PATCH v2 8/9 atmel: add a flashing helper and documentation
Hi,
Quoted 12 lines · Baruch Siach
board/atmel/nandflash.txt line 103
Quoted 6 lines · Alexandre Belloni
board/atmel/nandflash.txt new file +6
-0+You can then flash the board using the provided flasher.sh script in board/atmel: + +board/atmel/flasher.sh <builddir_path> <interface> <board> + +For example: +board/atmel/flasher.sh /tmp/atmel_sama5d3_xplained/ /dev/ttyACM0 sama5d3_xplainedSince you didn't mention out of tree build in this document, I think './output/' would be better as first argument example. Adding a comment on out of tree build would be nice, though.
Yeah, I thought about that and that is why I used ./output in usage().
I'll switch to:
"
For example, for an out of tree build made in /tmp/atmel_sama5d3_xplained/ for the sama5d3 Xplained, you would use:board/atmel/flasher.sh /tmp/atmel_sama5d3_xplained/ /dev/ttyACM0 sama5d3_xplained "
Signature · 3 lines
Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH v2 8/9 atmel: add a flashing helper and documentation
In reply to Alexandre BelloniDear Alexandre Belloni,
Quoted 9 lines · Alexandre Belloni
Provide a flashing helper to properly select the sam-ba configuration and reuse the sam-ba tcl script provided by Atmel with minimal modifications.
Signed-off-by Alexandre Belloni <[email protected]>--- board/atmel/flasher.sh | 74 ++++++++++ board/atmel/nandflash.tcl | 346 ++++++++++++++++++++++++++++++++++++++++++++++ board/atmel/nandflash.txt | 106 ++++++++++++++
This file should really be called readme.txt and not nandflash.txt. I know it doesn't cover anything but NAND flash for the moment, but readme.txt is really the convention we use for all platforms.
Otherwise, great job. I really like the tutorial covering all the evaluation boards, with details on connecting the debug UART and the USB device cable.
Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH v2 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