From patchwork Tue May 30 07:07:28 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe PRIOUZEAU X-Patchwork-Id: 768414 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3wcPnT1wH5z9s06 for ; Tue, 30 May 2017 17:07:41 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 436E28712B; Tue, 30 May 2017 07:07:38 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5AtXMDgIeHTR; Tue, 30 May 2017 07:07:36 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 3B51587177; Tue, 30 May 2017 07:07:36 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id B870A1BFF90 for ; Tue, 30 May 2017 07:07:34 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id AB9A788B57 for ; Tue, 30 May 2017 07:07:34 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jIf394ZWR--5 for ; Tue, 30 May 2017 07:07:33 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) by hemlock.osuosl.org (Postfix) with ESMTPS id AF66888B3E for ; Tue, 30 May 2017 07:07:32 +0000 (UTC) Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx08-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id v4U74PSU007991; Tue, 30 May 2017 09:07:30 +0200 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-.pphosted.com with ESMTP id 2apxk3qt0g-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 30 May 2017 09:07:30 +0200 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 8E75938; Tue, 30 May 2017 07:07:29 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag3node1.st.com [10.75.127.7]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 2C6F610D1; Tue, 30 May 2017 07:07:29 +0000 (GMT) Received: from SFHDAG6NODE2.st.com (10.75.127.17) by SFHDAG3NODE1.st.com (10.75.127.7) with Microsoft SMTP Server (TLS) id 15.0.1178.4; Tue, 30 May 2017 09:07:28 +0200 Received: from SFHDAG6NODE2.st.com ([fe80::a56f:c186:bab7:13d6]) by SFHDAG6NODE2.st.com ([fe80::a56f:c186:bab7:13d6%20]) with mapi id 15.00.1178.000; Tue, 30 May 2017 09:07:28 +0200 From: Christophe PRIOUZEAU To: Thomas Petazzoni Thread-Topic: [Buildroot] [PATCH 1/1] STM32F4xx: use the last kernel Thread-Index: AQHS2HQMgr3ujXydPEK/d5LGThVHLaILobCAgACyqoA= Date: Tue, 30 May 2017 07:07:28 +0000 Message-ID: References: <1496059605-1998-1-git-send-email-christophe.priouzeau@st.com> <20170529222759.7be45b97@free-electrons.com> In-Reply-To: <20170529222759.7be45b97@free-electrons.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: user-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.75.127.51] MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2017-05-30_04:, , signatures=0 Cc: Alexandre TORGUE , Benjamin GAIGNARD , "buildroot@buildroot.org" Subject: Re: [Buildroot] [PATCH 1/1] STM32F4xx: use the last kernel X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" 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 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 diff --git a/board/stmicroelectronics/stm32f469-disco/patches/linux/0001-ARM-stm32f249-disco-don-t-force-init-in-chosen-boota.patch b/board/stmicroelectronics/stm32f469-disco/patches/linux/0001-ARM-stm32f249-disco-don-t-force-init-in-chosen-boota.patch new file mode 100644 index 0000000..750e477 --- /dev/null +++ b/board/stmicroelectronics/stm32f469-disco/patches/linux/0001-ARM-stm32f249-disco-don-t-force-init-in-chosen-boota.patch @@ -0,0 +1,33 @@ +From c8f8f33c2f0460a34c9545b01a7972a7ed2df0e9 Mon Sep 17 00:00:00 2001 +From: Christophe Priouzeau +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 +Signed-off-by: Christophe Priouzeau Do you know if this will be fixed upstream at some point? yes, we have targeted to upstream this change for device tree. diff --git a/configs/stm32f429_disco_defconfig b/configs/stm32f429_disco_defconfig index 3799794..fe2b22d 100644 --- a/configs/stm32f429_disco_defconfig +++ b/configs/stm32f429_disco_defconfig @@ -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