* [Buildroot] [PATCH v3 1/3] board: add stm32f429-disc1 config
@ 2017-05-01 10:24 Samuel Martin
2017-05-01 10:24 ` [Buildroot] [PATCH v3 2/3] toolchain: add 4.11.x choice for headers Samuel Martin
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Samuel Martin @ 2017-05-01 10:24 UTC (permalink / raw)
To: buildroot
This change renders the stm32f429discovery a bit more generic and reuse most
of its settings for the stm32f429-disc1 board.
Cc: Waldemar Brodkorb <wbx@openadk.org>
Cc: Davide Viti <zinosat@tiscali.it>
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
---
changes v1 -> v2:
- fix cc emails
changes v2 -> v3:
- remove symlink (ThomasP)
- list supported board in readme file (ThomasP)
---
board/stmicroelectronics/stm32f429-disco/flash.sh | 10 ++++++++--
board/stmicroelectronics/stm32f429-disco/readme.txt | 9 ++++++++-
2 files changed, 16 insertions(+), 3 deletions(-)
diff --git a/board/stmicroelectronics/stm32f429-disco/flash.sh b/board/stmicroelectronics/stm32f429-disco/flash.sh
index ffb8fcffa..74021369a 100755
--- a/board/stmicroelectronics/stm32f429-disco/flash.sh
+++ b/board/stmicroelectronics/stm32f429-disco/flash.sh
@@ -1,14 +1,20 @@
#!/bin/bash
OUTPUT_DIR=$1
+BOARD_NAME=${2:-stm32f429discovery}
if ! test -d "${OUTPUT_DIR}" ; then
echo "ERROR: no output directory specified."
- echo "Usage: $0 OUTPUT_DIR"
+ echo "Usage: $0 OUTPUT_DIR BOARD_NAME"
+ echo ""
+ echo "Arguments:"
+ echo " OUTPUT_DIR The Buildroot output directory."
+ echo " BOARD_NAME One of the available boards among:"
+ echo " stm32f429discovery, stm32f429disc1"
exit 1
fi
-${OUTPUT_DIR}/host/usr/bin/openocd -f board/stm32f429discovery.cfg \
+${OUTPUT_DIR}/host/usr/bin/openocd -f board/${BOARD_NAME}.cfg \
-c "init" \
-c "reset init" \
-c "flash probe 0" \
diff --git a/board/stmicroelectronics/stm32f429-disco/readme.txt b/board/stmicroelectronics/stm32f429-disco/readme.txt
index 43a25b420..f512cb2e9 100644
--- a/board/stmicroelectronics/stm32f429-disco/readme.txt
+++ b/board/stmicroelectronics/stm32f429-disco/readme.txt
@@ -4,6 +4,12 @@ STM32F429 Discovery
This tutorial describes how to use the predefined Buildroot
configuration for the STM32F429 Discovery evaluation platform.
+Supported HW
+------------
+
+ - STM32F429I-DISCO evaluation board
+ - STM32F429I-DISC1 evaluation board
+
Building
--------
@@ -24,7 +30,8 @@ The UART is configured at 115200.
Flashing
--------
- ./board/stmicroelectronics/stm32f429-disco/flash.sh output/
+ ./board/stmicroelectronics/stm32f429-disco/flash.sh output/ \
+ {stm32f429discovery|stm32f429disc1}
It will flash the minimal bootloader, the Device Tree Blob, and the
kernel image which includes the root filesystem as initramfs.
--
2.12.2
^ permalink raw reply related [flat|nested] 6+ messages in thread* [Buildroot] [PATCH v3 2/3] toolchain: add 4.11.x choice for headers
2017-05-01 10:24 [Buildroot] [PATCH v3 1/3] board: add stm32f429-disc1 config Samuel Martin
@ 2017-05-01 10:24 ` Samuel Martin
2017-05-01 18:55 ` Peter Korsgaard
2017-05-01 10:24 ` [Buildroot] [PATCH v3 3/3] linux-header: bump to 4.11 kernel version Samuel Martin
2017-05-01 18:54 ` [Buildroot] [PATCH v3 1/3] board: add stm32f429-disc1 config Peter Korsgaard
2 siblings, 1 reply; 6+ messages in thread
From: Samuel Martin @ 2017-05-01 10:24 UTC (permalink / raw)
To: buildroot
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
---
changes v2 -> v3
- new patch
---
toolchain/toolchain-common.in | 5 +++++
.../toolchain-external/toolchain-external-custom/Config.in.options | 4 ++++
2 files changed, 9 insertions(+)
diff --git a/toolchain/toolchain-common.in b/toolchain/toolchain-common.in
index 379006d02..37079fad3 100644
--- a/toolchain/toolchain-common.in
+++ b/toolchain/toolchain-common.in
@@ -247,10 +247,15 @@ config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_10
bool
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_9
+config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_11
+ bool
+ select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_10
+
# This order guarantees that the highest version is set, as kconfig
# stops affecting a value on the first matching default.
config BR2_TOOLCHAIN_HEADERS_AT_LEAST
string
+ default "4.11" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_11
default "4.10" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_10
default "4.9" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_9
default "4.8" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_8
diff --git a/toolchain/toolchain-external/toolchain-external-custom/Config.in.options b/toolchain/toolchain-external/toolchain-external-custom/Config.in.options
index 668ea3d9d..ba5b97702 100644
--- a/toolchain/toolchain-external/toolchain-external-custom/Config.in.options
+++ b/toolchain/toolchain-external/toolchain-external-custom/Config.in.options
@@ -89,6 +89,10 @@ choice
m = ( LINUX_VERSION_CODE >> 8 ) & 0xFF
p = ( LINUX_VERSION_CODE >> 0 ) & 0xFF
+config BR2_TOOLCHAIN_EXTERNAL_HEADERS_4_11
+ bool "4.11.x"
+ select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_11
+
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_4_10
bool "4.10.x"
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_10
--
2.12.2
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH v3 3/3] linux-header: bump to 4.11 kernel version
2017-05-01 10:24 [Buildroot] [PATCH v3 1/3] board: add stm32f429-disc1 config Samuel Martin
2017-05-01 10:24 ` [Buildroot] [PATCH v3 2/3] toolchain: add 4.11.x choice for headers Samuel Martin
@ 2017-05-01 10:24 ` Samuel Martin
2017-05-01 18:54 ` Peter Korsgaard
2017-05-01 18:54 ` [Buildroot] [PATCH v3 1/3] board: add stm32f429-disc1 config Peter Korsgaard
2 siblings, 1 reply; 6+ messages in thread
From: Samuel Martin @ 2017-05-01 10:24 UTC (permalink / raw)
To: buildroot
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
---
changes v1 -> v2:
- add missing BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_11 symbol (ThomasP)
changes v2 -> v3:
- split linux-header bump from adding this new version into the
toolchain
---
| 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
--git a/package/linux-headers/Config.in.host b/package/linux-headers/Config.in.host
index 5c67626b2..b1ef3d623 100644
--- a/package/linux-headers/Config.in.host
+++ b/package/linux-headers/Config.in.host
@@ -6,7 +6,7 @@ config BR2_PACKAGE_HOST_LINUX_HEADERS
choice
prompt "Kernel Headers"
default BR2_KERNEL_HEADERS_AS_KERNEL if BR2_LINUX_KERNEL
- default BR2_KERNEL_HEADERS_4_10
+ default BR2_KERNEL_HEADERS_4_11
help
Select the kernel version to get headers from.
@@ -62,6 +62,10 @@ config BR2_KERNEL_HEADERS_4_10
bool "Linux 4.10.x kernel headers"
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_10
+config BR2_KERNEL_HEADERS_4_11
+ bool "Linux 4.11.x kernel headers"
+ select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_11
+
config BR2_KERNEL_HEADERS_VERSION
bool "Manually specified Linux version"
@@ -83,6 +87,10 @@ choice
This is used to hide/show some packages that have strict
requirements on the version of kernel headers.
+config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_11
+ bool "4.11.x"
+ select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_11
+
config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_10
bool "4.10.x"
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_10
@@ -222,4 +230,5 @@ config BR2_DEFAULT_KERNEL_HEADERS
default "4.4.64" if BR2_KERNEL_HEADERS_4_4
default "4.9.25" if BR2_KERNEL_HEADERS_4_9
default "4.10.13" if BR2_KERNEL_HEADERS_4_10
+ default "4.11" if BR2_KERNEL_HEADERS_4_11
default BR2_DEFAULT_KERNEL_VERSION if BR2_KERNEL_HEADERS_VERSION
--
2.12.2
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH v3 1/3] board: add stm32f429-disc1 config
2017-05-01 10:24 [Buildroot] [PATCH v3 1/3] board: add stm32f429-disc1 config Samuel Martin
2017-05-01 10:24 ` [Buildroot] [PATCH v3 2/3] toolchain: add 4.11.x choice for headers Samuel Martin
2017-05-01 10:24 ` [Buildroot] [PATCH v3 3/3] linux-header: bump to 4.11 kernel version Samuel Martin
@ 2017-05-01 18:54 ` Peter Korsgaard
2 siblings, 0 replies; 6+ messages in thread
From: Peter Korsgaard @ 2017-05-01 18:54 UTC (permalink / raw)
To: buildroot
>>>>> "Samuel" == Samuel Martin <s.martin49@gmail.com> writes:
> This change renders the stm32f429discovery a bit more generic and reuse most
> of its settings for the stm32f429-disc1 board.
> Cc: Waldemar Brodkorb <wbx@openadk.org>
> Cc: Davide Viti <zinosat@tiscali.it>
> Signed-off-by: Samuel Martin <s.martin49@gmail.com>
> ---
> changes v1 -> v2:
> - fix cc emails
> changes v2 -> v3:
> - remove symlink (ThomasP)
> - list supported board in readme file (ThomasP)
Committed, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2017-05-01 18:55 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-01 10:24 [Buildroot] [PATCH v3 1/3] board: add stm32f429-disc1 config Samuel Martin
2017-05-01 10:24 ` [Buildroot] [PATCH v3 2/3] toolchain: add 4.11.x choice for headers Samuel Martin
2017-05-01 18:55 ` Peter Korsgaard
2017-05-01 10:24 ` [Buildroot] [PATCH v3 3/3] linux-header: bump to 4.11 kernel version Samuel Martin
2017-05-01 18:54 ` Peter Korsgaard
2017-05-01 18:54 ` [Buildroot] [PATCH v3 1/3] board: add stm32f429-disc1 config Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox