Skip to contentSkip to conversation

board: add stm32f429-disc1 config

PATCH Superseded Samuel Martin 2 participants 5 messages May 1, 2017 Arm STM32

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/2 board: add stm32f429-disc1 config

This change renders the stm32f429discovery a bit more generic and reuse most of its settings for the stm32f429-disc1 board.

Cc Waldemar Brodkorb <[email protected]>
Cc Davide Viti <[email protected]>

---
changes v1 -> v2:
- fix cc emails

---
 board/stmicroelectronics/stm32f429-disc1            |  1 +
 board/stmicroelectronics/stm32f429-disco/flash.sh   | 10 ++++++++--
 board/stmicroelectronics/stm32f429-disco/readme.txt |  7 ++++---
 3 files changed, 13 insertions(+), 5 deletions(-)
 create mode 120000 board/stmicroelectronics/stm32f429-disc1
board/stmicroelectronics/stm32f429-disc1 new file +1 -0
new file mode 120000
index 000000000..6b0439142
@@ -0,0 +1 @@
+stm32f429-disco
\ No newline at end of file
board/stmicroelectronics/stm32f429-disco/flash.sh +8 -2
index ffb8fcffa..74021369a 100755
@@ -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" \
board/stmicroelectronics/stm32f429-disco/readme.txt +4 -3
index 43a25b420..a1d91d234 100644
@@ -15,8 +15,8 @@ Wire the UART
 
 Use a USB to TTL adapter, and connect:
 
- - RX to PA9
- - TX to PA10
+ - RX to PA9 (or the RX pin on the stm32f429i-disc1 board)
+ - TX to PA10 (or the TX pin on the stm32f429i-disc1 board)
  - GND to one of the GND available on the board
 
 The UART is configured at 115200.
@@ -24,7 +24,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.
Signature · 1 line
2.12.2
#1 lore raw

PATCH v2 2/2 linux-header: bump default to version 4.11

---
changes v1 -> v2:
- add missing BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_11 symbol (ThomasP)

---
 package/linux-headers/Config.in.host | 11 ++++++++++-
 toolchain/toolchain-common.in        |  4 ++++
 2 files changed, 14 insertions(+), 1 deletion(-)
package/linux-headers/Config.in.host +10 -1
index 5c67626b2..b1ef3d623 100644
@@ -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
toolchain/toolchain-common.in +4 -0
index 379006d02..c47482455 100644
@@ -247,6 +247,10 @@ 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
Signature · 1 line
2.12.2
#3 lore raw

PATCH v2 1/2 board: add stm32f429-disc1 config

In reply to Samuel Martin

Hello,

Quoted 1 line · Samuel Martin
 board/stmicroelectronics/stm32f429-disc1            |  1 +

Does it really make sense to create a symbolic link ?

board/stmicroelectronics/stm32f429-disco/readme.txt Wire the UART · line 15

Quoted 4 lines
board/stmicroelectronics/stm32f429-disco/readme.txt +0 -0
@@ -15,8 +15,8 @@ Wire the UART
 

The beginning of this document should be updated to mention that it supports both platform, through the same defconfig.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
#2 lore raw

PATCH v2 2/2 linux-header: bump default to version 4.11

In reply to Samuel Martin

Hello,

Quoted 5 lines · Samuel Martin

---
changes v1 -> v2:
- add missing BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_11 symbol (ThomasP)

Still not good. Please read the commit I pointed out in my previous review.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
#4 lore raw

PATCH v2 1/2 board: add stm32f429-disc1 config

In reply to Thomas Petazzoni
Quoted 7 lines · Thomas Petazzoni

Hello,

Quoted 1 line · Samuel Martin
 board/stmicroelectronics/stm32f429-disc1            |  1 +

Does it really make sense to create a symbolic link ?

indeed none, I'll remove it

Quoted 8 lines

board/stmicroelectronics/stm32f429-disco/readme.txt Wire the UART · line 15

Quoted 5 lines
board/stmicroelectronics/stm32f429-disco/readme.txt +0 -0
@@ -15,8 +15,8 @@ Wire the UART
 

The beginning of this document should be updated to mention that it supports both platform, through the same defconfig.

Done

Quoted 6 lines

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

Signature · 1 line
Samuel