All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] configs: new configuration for at91sam9g20ek
@ 2015-11-09  1:20 Jens Kamenik
  2015-11-09 11:55 ` Alexandre Belloni
  0 siblings, 1 reply; 4+ messages in thread
From: Jens Kamenik @ 2015-11-09  1:20 UTC (permalink / raw)
  To: buildroot

- added NAND-based configuration configs/at91sam9g20ek_defconfig for the at91sam9g20ek eval. board
- added at91sam9g20ek option to the atmel/flasher.sh tool
- removed old configs/at91sam9g20dfc_defconfig
- added at91sam9g20ek description for configuring the board for flashing

Signed-off-by: Jens Kamenik <jenskamenik@googlemail.com>
---
 board/atmel/flasher.sh           |  5 +++++
 board/atmel/readme.txt           |  7 +++++++
 configs/at91sam9g20dfc_defconfig | 31 -------------------------------
 configs/at91sam9g20ek_defconfig  | 23 +++++++++++++++++++++++
 4 files changed, 35 insertions(+), 31 deletions(-)
 delete mode 100644 configs/at91sam9g20dfc_defconfig
 create mode 100644 configs/at91sam9g20ek_defconfig

diff --git a/board/atmel/flasher.sh b/board/atmel/flasher.sh
index bbdb199..7707c6d 100755
--- a/board/atmel/flasher.sh
+++ b/board/atmel/flasher.sh
@@ -20,6 +20,10 @@ family_at91sam9g25ek="at91sam9x5ek"
 mach_at91sam9g25ek="at91sam9g25-ek"
 dtb_at91sam9g25ek="at91sam9g25ek.dtb"
 
+family_at91sam9g20ek="at91sam9g20ek"
+mach_at91sam9g20ek="at91sam9g20-ek"
+dtb_at91sam9g20ek="at91sam9g20ek.dtb"
+
 family_at91sam9g35ek="at91sam9x5ek"
 mach_at91sam9g35ek="at91sam9g35-ek"
 dtb_at91sam9g35ek="at91sam9g35ek.dtb"
@@ -93,6 +97,7 @@ Available boards:
   at91sam9g45m10ek
   at91sam9rlek
   at91sam9g15ek
+  at91sam9g20ek
   at91sam9g25ek
   at91sam9x25ek
   at91sam9g35ek
diff --git a/board/atmel/readme.txt b/board/atmel/readme.txt
index 539ef66..25682cf 100644
--- a/board/atmel/readme.txt
+++ b/board/atmel/readme.txt
@@ -7,6 +7,7 @@ also be found on the Linux4SAM website, in particular here:
 http://www.at91.com/linux4sam/bin/view/Linux4SAM/GettingStarted
 
 This guide covers the following configurations:
+ - at91sam9g20ek_defconfig
  - at91sam9g45m10ek_defconfig
  - at91sam9rlek_defconfig
  - at91sam9x5ek_defconfig (at91sam9g15, at91sam9g25, at91sam9x25,
@@ -33,6 +34,7 @@ Flashing the board
 ------------------
 
 Connect the board:
+ o at91sam9g20ek: DBGU: J17, USB sam-ba: J19
  o at91sam9g45m10ek: DBGU: J10, USB sam-ba: J14
  o at91sam9rlek: DBGU: J19, USB sam-ba: J21
  o at91sam9x5ek: DBGU: J11, USB sam-ba: J20
@@ -42,6 +44,11 @@ Connect the board:
  o sama5d4 Xplained: DBGU: J1, USB sam-ba: J11
 
 Start the board in RomBOOT:
+ o at91sam9g20ek:
+    1. open JP7, JP33 and JP34
+    2. start the board
+    3. close JP34
+
  o at91sam9g45m10ek:
     1. open JP8, JP10 and JP12
     2. start the board
diff --git a/configs/at91sam9g20dfc_defconfig b/configs/at91sam9g20dfc_defconfig
deleted file mode 100644
index 1d346c2..0000000
--- a/configs/at91sam9g20dfc_defconfig
+++ /dev/null
@@ -1,31 +0,0 @@
-# Architecture
-BR2_arm=y
-BR2_arm926t=y
-
-# Lock down headers to avoid breaking with new defaults
-BR2_KERNEL_HEADERS_VERSION=y
-BR2_DEFAULT_KERNEL_VERSION="3.1.6"
-BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_1=y
-
-# Host utilities
-#
-BR2_PACKAGE_HOST_SAM_BA=y
-
-# First stage bootloader
-BR2_TARGET_AT91BOOTSTRAP=y
-BR2_TARGET_AT91BOOTSTRAP_BOARD="at91sam9g20ek"
-BR2_TARGET_AT91BOOTSTRAP_DATAFLASHCARD=y
-
-# Second stage bootloader
-BR2_TARGET_UBOOT=y
-BR2_TARGET_UBOOT_BOARDNAME="at91sam9g20ek_nandflash"
-
-# Kernel
-BR2_LINUX_KERNEL=y
-BR2_LINUX_KERNEL_CUSTOM_VERSION=y
-BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="3.1.6"
-BR2_LINUX_KERNEL_USE_DEFCONFIG=y
-BR2_LINUX_KERNEL_DEFCONFIG="at91sam9g20ek"
-
-# Filesystem
-BR2_TARGET_ROOTFS_TAR=y
diff --git a/configs/at91sam9g20ek_defconfig b/configs/at91sam9g20ek_defconfig
new file mode 100644
index 0000000..10125e1
--- /dev/null
+++ b/configs/at91sam9g20ek_defconfig
@@ -0,0 +1,23 @@
+BR2_arm=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="cad9c452bfeda05527fa46972c9d717b46f7b746"
+BR2_LINUX_KERNEL_DEFCONFIG="at91_dt"
+BR2_LINUX_KERNEL_ZIMAGE=y
+BR2_LINUX_KERNEL_DTS_SUPPORT=y
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="at91sam9g20ek"
+BR2_TARGET_ROOTFS_UBIFS=y
+BR2_TARGET_ROOTFS_UBIFS_MAXLEBCNT=2047
+BR2_TARGET_ROOTFS_UBI=y
+BR2_TARGET_AT91BOOTSTRAP3=y
+BR2_TARGET_AT91BOOTSTRAP3_DEFCONFIG="at91sam9g20eknf_uboot"
+BR2_TARGET_UBOOT=y
+BR2_TARGET_UBOOT_BOARDNAME="at91sam9g20ek_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
-- 
1.9.1

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

* [Buildroot] [PATCH] configs: new configuration for at91sam9g20ek
  2015-11-09  1:20 [Buildroot] [PATCH] configs: new configuration for at91sam9g20ek Jens Kamenik
@ 2015-11-09 11:55 ` Alexandre Belloni
  2015-11-09 21:23   ` Thomas Petazzoni
  0 siblings, 1 reply; 4+ messages in thread
From: Alexandre Belloni @ 2015-11-09 11:55 UTC (permalink / raw)
  To: buildroot

Hi Jens,

A few small nitpicks below:

On 09/11/2015 at 02:20:23 +0100, Jens Kamenik wrote :
> --- a/board/atmel/flasher.sh
> +++ b/board/atmel/flasher.sh
> @@ -20,6 +20,10 @@ family_at91sam9g25ek="at91sam9x5ek"
>  mach_at91sam9g25ek="at91sam9g25-ek"
>  dtb_at91sam9g25ek="at91sam9g25ek.dtb"
>  
> +family_at91sam9g20ek="at91sam9g20ek"
> +mach_at91sam9g20ek="at91sam9g20-ek"
> +dtb_at91sam9g20ek="at91sam9g20ek.dtb"
> +
>  family_at91sam9g35ek="at91sam9x5ek"
>  mach_at91sam9g35ek="at91sam9g35-ek"
>  dtb_at91sam9g35ek="at91sam9g35ek.dtb"
> @@ -93,6 +97,7 @@ Available boards:
>    at91sam9g45m10ek
>    at91sam9rlek
>    at91sam9g15ek
> +  at91sam9g20ek

regarding the sort order, I'd say that at91sam9g20ek is not between
at91sam9g15ek and at91sam9g25ek (both part of the at91sam9x5 familiy). I
would place it before at91sam9g45m10ek. That comment is also valid for
the family_, mach_ and dtb_ definitions

>    at91sam9g25ek
>    at91sam9x25ek
>    at91sam9g35ek

[...]

> diff --git a/configs/at91sam9g20ek_defconfig b/configs/at91sam9g20ek_defconfig
> new file mode 100644
> index 0000000..10125e1
> --- /dev/null
> +++ b/configs/at91sam9g20ek_defconfig
> @@ -0,0 +1,23 @@
> +BR2_arm=y
> +BR2_KERNEL_HEADERS_VERSION=y
> +BR2_DEFAULT_KERNEL_VERSION="3.18"
> +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_18=y

These can probably be updated to 4.1

Everything else seems OK, thanks for your patch.

-- 
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

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

* [Buildroot] [PATCH] configs: new configuration for at91sam9g20ek
  2015-11-09 11:55 ` Alexandre Belloni
@ 2015-11-09 21:23   ` Thomas Petazzoni
  2015-11-10 17:23     ` Alexandre Belloni
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Petazzoni @ 2015-11-09 21:23 UTC (permalink / raw)
  To: buildroot

Alex,

On Mon, 9 Nov 2015 12:55:25 +0100, Alexandre Belloni wrote:

> regarding the sort order, I'd say that at91sam9g20ek is not between
> at91sam9g15ek and at91sam9g25ek (both part of the at91sam9x5 familiy). I
> would place it before at91sam9g45m10ek. That comment is also valid for
> the family_, mach_ and dtb_ definitions

I think you should explain why. It's because you're not interested in
alphabetic ordering here, but rather "release date" ordering of the
platform. Is that correct ?


> > diff --git a/configs/at91sam9g20ek_defconfig b/configs/at91sam9g20ek_defconfig
> > new file mode 100644
> > index 0000000..10125e1
> > --- /dev/null
> > +++ b/configs/at91sam9g20ek_defconfig
> > @@ -0,0 +1,23 @@
> > +BR2_arm=y
> > +BR2_KERNEL_HEADERS_VERSION=y
> > +BR2_DEFAULT_KERNEL_VERSION="3.18"
> > +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_18=y
> 
> These can probably be updated to 4.1

Indeed.

Jens, can you fix those two issues and send an updated version of your
patch ?

Thanks!

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

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

* [Buildroot] [PATCH] configs: new configuration for at91sam9g20ek
  2015-11-09 21:23   ` Thomas Petazzoni
@ 2015-11-10 17:23     ` Alexandre Belloni
  0 siblings, 0 replies; 4+ messages in thread
From: Alexandre Belloni @ 2015-11-10 17:23 UTC (permalink / raw)
  To: buildroot

Hi,

On 09/11/2015 at 22:23:09 +0100, Thomas Petazzoni wrote :
> Alex,
> 
> On Mon, 9 Nov 2015 12:55:25 +0100, Alexandre Belloni wrote:
> 
> > regarding the sort order, I'd say that at91sam9g20ek is not between
> > at91sam9g15ek and at91sam9g25ek (both part of the at91sam9x5 familiy). I
> > would place it before at91sam9g45m10ek. That comment is also valid for
> > the family_, mach_ and dtb_ definitions
> 
> I think you should explain why. It's because you're not interested in
> alphabetic ordering here, but rather "release date" ordering of the
> platform. Is that correct ?
> 

I'd say that I'm more interested in grouping by families and that indeed
would be almost the same as the release date order.
The sam9g20 is almost the same as a sam9260 but is quite far from the
sam9x5 family.


-- 
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

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

end of thread, other threads:[~2015-11-10 17:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-09  1:20 [Buildroot] [PATCH] configs: new configuration for at91sam9g20ek Jens Kamenik
2015-11-09 11:55 ` Alexandre Belloni
2015-11-09 21:23   ` Thomas Petazzoni
2015-11-10 17:23     ` Alexandre Belloni

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.