new file mode 100644
@@ -0,0 +1,33 @@
+From c8f8f33c2f0460a34c9545b01a7972a7ed2df0e9 Mon Sep 17 00:00:00 2001
+From: Christophe Priouzeau <christophe.priouzeau@st.com><mailto:christophe.priouzeau@st.com>
+Date: Mon, 29 May 2017 13:38:16 +0200
+Subject: [PATCH] ARM: stm32f249-disco: don't force init= in /chosen/bootargs
+
+There is no reason to override the kernel's default init= value, as
+this breaks userspace that assumes the kernel default of /init is
+used. Since stm32 is often used with a minimal bootloader
+(afboot-stm32) that doesn't provide any mechanism to override the DTB,
+we need to adjust the kernel command line in the Device Tree source.
+
+Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com><mailto:thomas.petazzoni@free-electrons.com>
+Signed-off-by: Christophe Priouzeau <christophe.priouzeau@st.com><mailto:christophe.priouzeau@st.com>
Do you know if this will be fixed upstream at some point?
yes, we have targeted to upstream this change for device tree.
@@ -1,11 +1,9 @@
BR2_arm=y
BR2_cortex_m4=y
BR2_GLOBAL_PATCH_DIR="board/stmicroelectronics/stm32f429-disco/patches"
-BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_5=y
BR2_ROOTFS_POST_BUILD_SCRIPT="board/stmicroelectronics/stm32-post-build.sh"
BR2_LINUX_KERNEL=y
Hello On 05/29/2017 10:27 PM, Thomas Petazzoni wrote: Hello, On Mon, 29 May 2017 12:06:48 +0000, Christophe PRIOUZEAU wrote: Linux kernel support the two stm32f4 discovery board since kernel 4.5 (stm32f429i-disco and stm32f469i-disco). Use last kernel supported on buildroot for stm32f429 and stmf469 board. Signed-off-by: Christophe Priouzeau <christophe.priouzeau@st.com><mailto:christophe.priouzeau@st.com> Thanks Christophe for this contribution! A few comments. First, the commit title should be: configs/stm32f4xx: use kernel version 4... I make the change for the next version. -BR2_LINUX_KERNEL_CUSTOM_VERSION=y -BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.5" +BR2_LINUX_KERNEL_LATEST_VERSION=y Please don't use "latest version", but a fixed kernel version that you have tested. And therefore, keep the corresponding BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_X=y option. Thanks! Thomas Thanks for your feedback. Regards Christophe -- Best regards / Cordialement, [cid:part1.E0B9AC10.914B4565@st.com] Christophe Priouzeau | TINA: 166 7320 | Tel: +33 244027320 STMicroelectronics ST oneline: www.st.com<http://www.st.com>