From patchwork Mon May 25 16:02:06 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Stephane Viau (OSS)" X-Patchwork-Id: 1297419 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=oss.nxp.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.a=rsa-sha256 header.s=selector2-NXP1-onmicrosoft-com header.b=GuYG5DNr; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49W21H0gS2z9sSd for ; Tue, 26 May 2020 02:02:42 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 7E911869EA; Mon, 25 May 2020 16:02:39 +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 hyaG0V3CL4L1; Mon, 25 May 2020 16:02:38 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 2531E868C6; Mon, 25 May 2020 16:02:38 +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 A28F81BF378 for ; Mon, 25 May 2020 16:02:23 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 9F7B1879C3 for ; Mon, 25 May 2020 16:02:23 +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 2ZZeC0sWNiKR for ; Mon, 25 May 2020 16:02:20 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80079.outbound.protection.outlook.com [40.107.8.79]) by hemlock.osuosl.org (Postfix) with ESMTPS id B57D187C17 for ; Mon, 25 May 2020 16:02:19 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UrxyWenMKCXL90ERGOexX17oDedCpmh9A4uRjP9Y578gG6VxDn5i6Tnv+fxyGLS896O4fYnh7HTOzEZo8N8BR7V8KCovhEAt/NsKwVbMAInkbwkB3Cy/fGPCe9abPu1z79RPWldjYNbXoqUzmxxJQeC1aNEZ7O8S7uvG1UKOzRkZpaz2ujz0dl9mohcwnSJstcj8djgeaIUIo+UsG+2UdliOBbhW/U9uP/78Dsk4tzCx7Kgta3ZacK8Y4oIjahiNIH9L5zib6nrFeuUrLVUTjxaIFG/JHKUvTCHmlFbJMtyyz5CjzLkTuI75pkojM1caDyliNkYW5jtXoFx+B52ayQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=QhDu4QHQvi8WSiPWRpQXoBkOT/Kctll04lO03NoiaTE=; b=T7cnkcT7sXLLxY2kL5Hmk8Y++PNI+pogN14E+/ZUaSCfe2upnmvC2FfYg6eeDY9Vy0lPceNSD+byBcJCgyhNQ4GrzTDHyw7qCEutJtkVSKKuJy1R5J5sXrXDmPPM6LcX61181S/iHv9bX4Z82w825rELfv/MfJypkO8fjcZd3gVgQfPqO/XixYNjTyVYoQbLKmiIUu6YRbRDqgMkVVI3t6eI0r7x+R4GRSiJirSSE+iPEDbIHkF0MsFIk1LRO0Qgwna+LyKDHfI5/tvx7tn3Weuuq37uANVPBlNUKJIgVN5guyXP1ckbFECtEAF1/Zfo3sosWhEYV14pmsSya/XX7A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=QhDu4QHQvi8WSiPWRpQXoBkOT/Kctll04lO03NoiaTE=; b=GuYG5DNr733Jq4YPzg3xoZJelVRwA5q3A+Xa5Vaha+gaawiCR85ukcRG/f8jUPcVsbTjJv2u6a7clhXrxsliiRtjOeIeE/Oxfi7AlE+BGoigCRqOrkHNyGorV0IkSrBGBgwHi4cml2ggnCL6HH2AbiUuaWXjINjjCm5ipCpCBV8= Authentication-Results: buildroot.org; dkim=none (message not signed) header.d=none;buildroot.org; dmarc=none action=none header.from=oss.nxp.com; Received: from AM0PR04MB4786.eurprd04.prod.outlook.com (2603:10a6:208:cf::25) by AM0PR04MB5908.eurprd04.prod.outlook.com (2603:10a6:208:134::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3021.27; Mon, 25 May 2020 16:02:16 +0000 Received: from AM0PR04MB4786.eurprd04.prod.outlook.com ([fe80::715c:fa5c:5b68:5e2c]) by AM0PR04MB4786.eurprd04.prod.outlook.com ([fe80::715c:fa5c:5b68:5e2c%4]) with mapi id 15.20.3021.029; Mon, 25 May 2020 16:02:16 +0000 From: Stephane Viau To: buildroot@buildroot.org Date: Mon, 25 May 2020 18:02:06 +0200 Message-Id: <1590422530-4788-2-git-send-email-stephane.viau@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1590422530-4788-1-git-send-email-stephane.viau@oss.nxp.com> References: <1590422530-4788-1-git-send-email-stephane.viau@oss.nxp.com> X-ClientProxiedBy: AM0PR03CA0056.eurprd03.prod.outlook.com (2603:10a6:208::33) To AM0PR04MB4786.eurprd04.prod.outlook.com (2603:10a6:208:cf::25) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (2a01:e0a:43f:82f0:e5ce:dba0:335b:3910) by AM0PR03CA0056.eurprd03.prod.outlook.com (2603:10a6:208::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3021.23 via Frontend Transport; Mon, 25 May 2020 16:02:15 +0000 X-Mailer: git-send-email 2.7.4 X-Originating-IP: [2a01:e0a:43f:82f0:e5ce:dba0:335b:3910] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 26e19b27-8cbd-487f-c67f-08d800c4fecf X-MS-TrafficTypeDiagnostic: AM0PR04MB5908: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6108; X-Forefront-PRVS: 0414DF926F X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: YQXvANKIjf0leVefVS6bq6iraoGyzajHnxJn09/l22zjqyeVCkdUUsZkq10wV2JlpVnT3UHEHG+9+TQNb5mLPIdFUAf6oy6k2GDSsfG5ZgJb0I2gqWlpbqB+bZvC5e+rBq38DIFEZai+GZy57TjIR+4XTMG/jfnlJPG5bVR7JT8gd79dTDtLP0rp/P9gP5xEike8+1wUQRHAhHmVRCRSqZKYyJNrdnEw+h5a53Pg+FXyCyx7LYHy/Ri0OJShytiAT9nSps3q7X/DKoM4q8kx5BVHNCVryUaEouma+uTfWur+fPxvnTwrm7RLBA6AbVRTlIuNctQnGQSm6Mi0ngtgwF91KRazJd0UgMf1UyqUzI3dvJUEHqPeYJAda8G4gTvH X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM0PR04MB4786.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(366004)(376002)(136003)(396003)(346002)(39860400002)(478600001)(2616005)(2906002)(54906003)(66476007)(69590400007)(66556008)(86362001)(4326008)(6506007)(8936002)(44832011)(66946007)(186003)(6512007)(6916009)(16526019)(316002)(6666004)(52116002)(5660300002)(6486002)(8676002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: eF7ZSJW6uYU82Jfof2jASfOs2HehbnnCWTyDdPZD4McTOdA0o4mbnWl+J7wlxoh7BHQNrXmSadny3QfIvMXDB8POKv8R7Hjrkwzu7YH7uVmRZwHbedjRgy5sV0wDRoCHC6Pzg5j5pp9xd8AKnA9blYz/MRoEeBdbxoACA595GewF91WzYq6+CbUvbIc8wuBN7bfMYXF9OKbfNQAjaAXzfMbONQkUr9quxnQXolR181c/7I2MprWNmf5MhUZ6LhHQSAmsKQguqvzLuMhXRqCUfnD4H1lejDP8rG2w2Q/1JVndKNKzIgEScUtz2v0rtGGIbHOo5ujm0y9yQskLWbJ5XcG49EMf2FGvwm0ZuD2W2y6amNun5fiIQwNukXoPQJQ8tF6sQ84SnljNUuuLo2iJsYiZySRoinzUa3YLpgAXppOjRuErqpeJPbgAGVcjs3p6LgltV0wIfVyIFDrGvnec+eMeNGqyiKrF8KDQJTRXaLTTI6ZDp0wONzF67lgsoB5i2rm2QveO8+hoJd/3zZjdcui1D+yzIopvSwu0QLK7e9E= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 26e19b27-8cbd-487f-c67f-08d800c4fecf X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 May 2020 16:02:16.6901 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: oOONKHj/gtqL9AeLapr5TwtvnRgmIZiLdAMVN+bx4k9z1qNAP5CT9+61R1suUQnqch9bDhkdZopdOjchUqkmuA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB5908 Subject: [Buildroot] [PATCH v3 1/5] package/freescale-imx: Add option for DDR FW need X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Gary Bisson , Maeva Manuel , Gilles Talis , Refik Tuzakli , Julien Olivain , Stephane Viau , Fabio Estevam Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Only some i.MX8 needs a DDR training firmware (8M, 8MM, 8MN). Some other i.MX8 (QuadMax, QuadXPlus) rely on system controller for that task. Suggested-by: Julien Olivain Signed-off-by: Stephane Viau Reviewed-by: Gary Bisson --- v3: - let the others 'select' this newly introduced option instead of 'default y' it. I believe this option is still required since we only want to choose a DDR binary for the i.MX 8M platforms. (Gary) v2: - introduce BR2_PACKAGE_FREESCALE_IMX_NEED_DDR_FW to extend the DDR firmware selection to the whole i.MX 8M family (suggested by Gary) Signed-off-by: Stephane Viau --- package/freescale-imx/Config.in | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/package/freescale-imx/Config.in b/package/freescale-imx/Config.in index b0c7de8..0be37ce 100644 --- a/package/freescale-imx/Config.in +++ b/package/freescale-imx/Config.in @@ -45,12 +45,15 @@ config BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8 config BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8M bool "imx8m" + select BR2_PACKAGE_FREESCALE_IMX_NEED_DDR_FW config BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MM bool "imx8mm" + select BR2_PACKAGE_FREESCALE_IMX_NEED_DDR_FW config BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MN bool "imx8mn" + select BR2_PACKAGE_FREESCALE_IMX_NEED_DDR_FW config BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8X bool "imx8x" @@ -96,6 +99,9 @@ config BR2_PACKAGE_FREESCALE_IMX_HAS_VIV_GPU BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MN || \ BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8X +config BR2_PACKAGE_FREESCALE_IMX_NEED_DDR_FW + bool + source "package/freescale-imx/imx-alsa-plugins/Config.in" source "package/freescale-imx/imx-codec/Config.in" source "package/freescale-imx/imx-kobs/Config.in" From patchwork Mon May 25 16:02:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Stephane Viau (OSS)" X-Patchwork-Id: 1297417 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=oss.nxp.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.a=rsa-sha256 header.s=selector2-NXP1-onmicrosoft-com header.b=ZmrlW+oe; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49W21C2bGxz9sSd for ; Tue, 26 May 2020 02:02:39 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id B1BB720492; Mon, 25 May 2020 16:02:37 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4Aoj-ev1ezuK; Mon, 25 May 2020 16:02:27 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 7E8AD226A9; Mon, 25 May 2020 16:02:25 +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 C81E61BF378 for ; Mon, 25 May 2020 16:02:21 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id C323487E6E for ; Mon, 25 May 2020 16:02:21 +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 5vOgu4pPs1KN for ; Mon, 25 May 2020 16:02:20 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80079.outbound.protection.outlook.com [40.107.8.79]) by hemlock.osuosl.org (Postfix) with ESMTPS id 5AF4F87C76 for ; Mon, 25 May 2020 16:02:20 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iV+XOTNpf5QVJBoQGm7eNojAsgRmLRNr2eC7vp8uxHJTihhcllA2n6/WjT2xh/3l75PFvIbMcBs5iPqb3DVWwM1NFo19+bgN5YWC6kXpdw0re2Ffs5wWkky6f9j+GwLwut0IVzc0CkMSIGS71jH923Z5vU4mVBL/XAdJW0Tr9Y36PY9tcDvv9PQC+pOdPKQHn9jXiOH96MzMRSY+uNCWG0ItYQYIYw4ETD6c4TLf+enDI0atrgA+PSksysZzY5f+a72YXN9s5KLdDTFzJpeaGm/5GmvpdFVI2LvRNS8f3xKCV3jUAsJB8K7xnRxixOhhpsIOQs+8wGjShUub3KKN6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ihKNMyl6O7ZDUosz8uQdUIMBnyNoktnnxA9SOZfBCIY=; b=Wzfun1cvZ8qJ4qNrKxpDgcpjIgEaaU0Y8CYoEyHnnT8NQEMlWU6YDLxkz1PHQI5U2MHNPsht2JHntK8skpOfSRYlcBrtNDwEA6VuI5sQ96xFzJezaiTWKs3POhiA3oCaOFfuXK7CMXscY3EkF9l/0hLm7GWMQJOAOMSJeMLzKQmzNGlNGMkjQN43SQpsdJkRYnes4B3byIaK8KEumEnX2D2ECY3SOFfmjDNAREk7OCjHYfLkLZwMP7phdmyZwyru3w4ehCUFqeSiwYoskVMqDmrNqqvxvfdaRjg75JOutMjYqRWnoRCN+1TeG9Ng3uHhlzIcFZ3iu7JFnqm1Wa5+8Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ihKNMyl6O7ZDUosz8uQdUIMBnyNoktnnxA9SOZfBCIY=; b=ZmrlW+oeAs/Yc4wey8R318F68EYHMo+4sacoo5jX833m4/UK/x5wuRzHQBPuAmO0nl4Oa7rkSMOyAWaMNr1q3c5GMjfPAuZcjP3maXBlP5L0Es9x6N7OKEmnR0NpuBKYr6U/uFrhZKb3E7brfFiHnysqx1Vd0apTwnp6yhVLaZo= Authentication-Results: buildroot.org; dkim=none (message not signed) header.d=none;buildroot.org; dmarc=none action=none header.from=oss.nxp.com; Received: from AM0PR04MB4786.eurprd04.prod.outlook.com (2603:10a6:208:cf::25) by AM0PR04MB5908.eurprd04.prod.outlook.com (2603:10a6:208:134::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3021.27; Mon, 25 May 2020 16:02:18 +0000 Received: from AM0PR04MB4786.eurprd04.prod.outlook.com ([fe80::715c:fa5c:5b68:5e2c]) by AM0PR04MB4786.eurprd04.prod.outlook.com ([fe80::715c:fa5c:5b68:5e2c%4]) with mapi id 15.20.3021.029; Mon, 25 May 2020 16:02:18 +0000 From: Stephane Viau To: buildroot@buildroot.org Date: Mon, 25 May 2020 18:02:07 +0200 Message-Id: <1590422530-4788-3-git-send-email-stephane.viau@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1590422530-4788-1-git-send-email-stephane.viau@oss.nxp.com> References: <1590422530-4788-1-git-send-email-stephane.viau@oss.nxp.com> X-ClientProxiedBy: AM0PR03CA0056.eurprd03.prod.outlook.com (2603:10a6:208::33) To AM0PR04MB4786.eurprd04.prod.outlook.com (2603:10a6:208:cf::25) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (2a01:e0a:43f:82f0:e5ce:dba0:335b:3910) by AM0PR03CA0056.eurprd03.prod.outlook.com (2603:10a6:208::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3021.23 via Frontend Transport; Mon, 25 May 2020 16:02:17 +0000 X-Mailer: git-send-email 2.7.4 X-Originating-IP: [2a01:e0a:43f:82f0:e5ce:dba0:335b:3910] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 49f6f635-f20a-4956-aa85-08d800c4ffad X-MS-TrafficTypeDiagnostic: AM0PR04MB5908: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6790; X-Forefront-PRVS: 0414DF926F X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 3+zNEbNG4FkvSJcqJ2Okpleesy8ZZ2KVWVx7qeRWS5c3Moki8F7mfRZs2hkVDaEElvWAJIfgsrNEK7VsWrLEP/SUJZ1zMsPGUGeEblZ1pk6Lsnm7S4NQQnqmF7rWZ957dyWVeZQwOs2kiaF8Pa+kOh1soYXf5ahcWB1SjbOuvxu5fGyLWMq/NzzxlrnVZ9WQVNh5xR7fU3yJVqyoylJTTH26rx7ixiUMuSGiQISVso4Rg5sZlwmXChMI9PsHWPsvUwPfl0aFGexrzZe7gr/Gs8fLCqth0UGKNP+/A7THLXbYq9sQAOUVBYO557+fAPja8SOtWeIY+OpNUWdONOkBAyeefcXgM2e/fdqRxTBgrFW//bzHceRxXewLy+HhD+e6 X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM0PR04MB4786.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(366004)(376002)(136003)(396003)(346002)(39860400002)(478600001)(2616005)(2906002)(54906003)(66476007)(69590400007)(66556008)(86362001)(4326008)(6506007)(8936002)(44832011)(66946007)(186003)(6512007)(6916009)(16526019)(316002)(6666004)(52116002)(5660300002)(6486002)(8676002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: p9hv4YmfabsDGVtEMWVpfPNgx3v8D8okxSOTZWzLNFJym1ZGnmRFrG7DfZsv/SeHL1K6S8yMHl4o40tDhZXTfotjDKMRo3zkbsiEMXqxwT+fVWXt80XVuP13gJelQJZPINhrV3hmafBS5M6664X3FtR81hmuoO5RLF3q16lvj/NB3TtqX4AJEQS7Zeu7w5YgY+1ex07WU/p9GYDbBr8fR+N0UHXaKGT4juLW5FwfP4YJLojVVadvxrg0Ui4AdaEax+kCA8SUQPmdYNhSS0o85lcpYuskPOh0PAabWXw400QGAZV78rf0h0UEhDAU4daUFiRRhZNVUMhFy74MI63gS+4t+Xp/YG3x+7A5Y0QwLmotQIeOB11FMZJ3YiQY72Bp/ffWys2noo+W+qCKb1cMfOpiSooEpGVes5sG4wNkWeI9rA83UzywSuVaRjSmIfzzNKDS1ZK8/PQN2gcSkIL/CzZQUiBONWK09yhTLsqVXb5jo9uI8YMJm/+chHKCxU7UlDq7QcmQGB66BrdtUl8Zd4PmD+seAdYffyL2Ux1+puU= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 49f6f635-f20a-4956-aa85-08d800c4ffad X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 May 2020 16:02:18.0704 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: eYXCxNSFbJf2Jzmy9mBgHqC/GA2EKq9ZO1475TgWXCsH8JymTbChEwHTYDSVyu5cr9Nro++VdCTqXEbJCy2x7A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB5908 Subject: [Buildroot] [PATCH v3 2/5] package/freescale-imx/firmware-imx: add choice for DDR training binaries X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Gary Bisson , Maeva Manuel , Gilles Talis , Refik Tuzakli , Julien Olivain , Stephane Viau , Fabio Estevam Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Several i.MX8 (e.g.: 8M, 8MM, 8MN) support many DDR types (LPDDR4, DDR4, etc.), for which the DDR training is performed in the bootloader. Some boards have LPDDR4 (e.g.: nitrogen8mn) and some others have the DDR4 (e.g.: NXP's reference board EVK). This patch allows the selection of either of the binaries used to train the DDR. Signed-off-by: Stephane Viau Reviewed-by: Maeva Manuel Reviewed-by: Julien Olivain --- v3: - Use common FIRMWARE_IMX_INSTALL_IMAGES_CMDS for all i.MX8M platforms and let FIRMWARE_IMX_PREPARE_{DDR,HDMI}_FW be different according to the type of DDR mounted (BR2_PACKAGE_FREESCALE_IMX_NEED_DDR_FW choice) or the eventual presence of HDMI, which is SoC dependant. (Gary) v2: - use BR2_PACKAGE_FREESCALE_IMX_NEED_DDR_FW to extend the DDR firmware selection for 8M, 8MM and 8MN (suggested by Gary) Signed-off-by: Stephane Viau --- package/freescale-imx/firmware-imx/Config.in | 24 +++++++++++ package/freescale-imx/firmware-imx/firmware-imx.mk | 47 ++++++++++++++++++++-- 2 files changed, 68 insertions(+), 3 deletions(-) diff --git a/package/freescale-imx/firmware-imx/Config.in b/package/freescale-imx/firmware-imx/Config.in index 56d5b80..4962992 100644 --- a/package/freescale-imx/firmware-imx/Config.in +++ b/package/freescale-imx/firmware-imx/Config.in @@ -8,3 +8,27 @@ config BR2_PACKAGE_FIRMWARE_IMX This library is provided by Freescale as-is and doesn't have an upstream. + +if BR2_PACKAGE_FREESCALE_IMX_NEED_DDR_FW + +choice + bool "DDR training binaries" + default BR2_PACKAGE_FIRMWARE_DDRFW_LPDDR4 + help + Choose the DDR training binaries to be used depending on the + kind of memory that is available on the target board (DDR4, + LPDDR4, etc...). + +config BR2_PACKAGE_FIRMWARE_DDRFW_LPDDR4 + bool "lpddr4" + help + Use LPDDR4 binaries (i.e.: lpddr4_pmu_train_*.bin) + +config BR2_PACKAGE_FIRMWARE_DDRFW_DDR4 + bool "DDR4" + help + Use DDR4 binaries (i.e.: ddr4_*_201810.bin). + +endchoice # DDR training FW + +endif diff --git a/package/freescale-imx/firmware-imx/firmware-imx.mk b/package/freescale-imx/firmware-imx/firmware-imx.mk index cd0dafb..bd87baa 100644 --- a/package/freescale-imx/firmware-imx/firmware-imx.mk +++ b/package/freescale-imx/firmware-imx/firmware-imx.mk @@ -18,8 +18,7 @@ define FIRMWARE_IMX_EXTRACT_CMDS $(call FREESCALE_IMX_EXTRACT_HELPER,$(FIRMWARE_IMX_DL_DIR)/$(FIRMWARE_IMX_SOURCE)) endef -ifeq ($(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8M)$(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MM)$(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MN),y) -FIRMWARE_IMX_INSTALL_IMAGES = YES +ifeq ($(BR2_PACKAGE_FIRMWARE_DDRFW_LPDDR4),y) FIRMWARE_IMX_DDRFW_DIR = $(@D)/firmware/ddr/synopsys define FIRMWARE_IMX_PREPARE_LPDDR4_FW $(TARGET_OBJCOPY) -I binary -O binary --pad-to 0x8000 --gap-fill=0x0 \ @@ -33,7 +32,7 @@ define FIRMWARE_IMX_PREPARE_LPDDR4_FW $(FIRMWARE_IMX_DDRFW_DIR)/lpddr4_pmu_train_$(1)_fw.bin endef -define FIRMWARE_IMX_INSTALL_IMAGES_CMDS +define FIRMWARE_IMX_PREPARE_DDR_FW # Create padded versions of lpddr4_pmu_* and generate lpddr4_pmu_train_fw.bin. # lpddr4_pmu_train_fw.bin is needed when generating imx8-boot-sd.bin # which is done in post-image script. @@ -42,9 +41,51 @@ define FIRMWARE_IMX_INSTALL_IMAGES_CMDS cat $(FIRMWARE_IMX_DDRFW_DIR)/lpddr4_pmu_train_1d_fw.bin \ $(FIRMWARE_IMX_DDRFW_DIR)/lpddr4_pmu_train_2d_fw.bin > \ $(BINARIES_DIR)/lpddr4_pmu_train_fw.bin + ln -sf $(BINARIES_DIR)/lpddr4_pmu_train_fw.bin $(BINARIES_DIR)/ddr_fw.bin +endef +else ifeq ($(BR2_PACKAGE_FIRMWARE_DDRFW_DDR4),y) +FIRMWARE_IMX_DDRFW_DIR = $(@D)/firmware/ddr/synopsys +define FIRMWARE_IMX_PREPARE_DDR4_FW + $(TARGET_OBJCOPY) -I binary -O binary --pad-to 0x8000 --gap-fill=0x0 \ + $(FIRMWARE_IMX_DDRFW_DIR)/ddr4_imem_$(1)_201810.bin \ + $(FIRMWARE_IMX_DDRFW_DIR)/ddr4_imem_$(1)_201810_pad.bin + $(TARGET_OBJCOPY) -I binary -O binary --pad-to 0x4000 --gap-fill=0x0 \ + $(FIRMWARE_IMX_DDRFW_DIR)/ddr4_dmem_$(1)_201810.bin \ + $(FIRMWARE_IMX_DDRFW_DIR)/ddr4_dmem_$(1)_201810_pad.bin + cat $(FIRMWARE_IMX_DDRFW_DIR)/ddr4_imem_$(1)_201810_pad.bin \ + $(FIRMWARE_IMX_DDRFW_DIR)/ddr4_dmem_$(1)_201810_pad.bin > \ + $(FIRMWARE_IMX_DDRFW_DIR)/ddr4_$(1)_201810_fw.bin +endef + +define FIRMWARE_IMX_PREPARE_DDR_FW + # Create padded versions of ddr4_* and generate ddr4_fw.bin. + # ddr4_fw.bin is needed when generating imx8-boot-sd.bin + # which is done in post-image script. + $(call FIRMWARE_IMX_PREPARE_DDR4_FW,1d) + $(call FIRMWARE_IMX_PREPARE_DDR4_FW,2d) + cat $(FIRMWARE_IMX_DDRFW_DIR)/ddr4_1d_201810_fw.bin \ + $(FIRMWARE_IMX_DDRFW_DIR)/ddr4_2d_201810_fw.bin > \ + $(BINARIES_DIR)/ddr4_201810_fw.bin + ln -sf $(BINARIES_DIR)/ddr4_201810_fw.bin $(BINARIES_DIR)/ddr_fw.bin +endef +endif + +ifeq ($(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8M),y) +define FIRMWARE_IMX_PREPARE_HDMI_FW cp $(@D)/firmware/hdmi/cadence/signed_hdmi_imx8m.bin \ $(BINARIES_DIR)/signed_hdmi_imx8m.bin endef +else +define FIRMWARE_IMX_PREPARE_HDMI_FW +endef +endif + +ifeq ($(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8M)$(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MM)$(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MN),y) +FIRMWARE_IMX_INSTALL_IMAGES = YES +define FIRMWARE_IMX_INSTALL_IMAGES_CMDS + $(FIRMWARE_IMX_PREPARE_DDR_FW) + $(FIRMWARE_IMX_PREPARE_HDMI_FW) +endef else ifeq ($(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8X),y) define FIRMWARE_IMX_INSTALL_TARGET_CMDS $(INSTALL) -D -m 0644 $(@D)/firmware/vpu/vpu_fw_imx8_dec.bin \ From patchwork Mon May 25 16:02:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Stephane Viau (OSS)" X-Patchwork-Id: 1297420 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=oss.nxp.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.a=rsa-sha256 header.s=selector2-NXP1-onmicrosoft-com header.b=L8sisTpK; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49W21L6J2Fz9sSd for ; Tue, 26 May 2020 02:02:46 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 7EEDE22721; Mon, 25 May 2020 16:02:42 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uDNRExKUtmEI; Mon, 25 May 2020 16:02:34 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id B911D226A0; Mon, 25 May 2020 16:02:31 +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 274291BF378 for ; Mon, 25 May 2020 16:02:22 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 22F9587C76 for ; Mon, 25 May 2020 16:02:22 +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 wZYTx7+8tUrz for ; Mon, 25 May 2020 16:02:21 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80079.outbound.protection.outlook.com [40.107.8.79]) by hemlock.osuosl.org (Postfix) with ESMTPS id 0D8C7879C3 for ; Mon, 25 May 2020 16:02:21 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PAv/Yamp0kJzq6qredNaBgMBkFRxApAnnGSx9JIROZfO1NVWRjbmTihAeL0LaXR51ujZKDFhgWHBf+5d/zef0sqXhV+atPwOYq/u3r5l3oGNPDo0xMVgjquZNzDkhDNIXI/W1y0yiigLW33IIGyVVEagKGtMOECJRjxGTzgg42E0ioU6L3Ko9tnu7bV+tFdvRfNWnkLyjmZtP9rqemuAV/tTEBF8nXd3hezgYz/TpK7+bd96QXHO0BqtUiBr6ALfLzO76POQO56mWMDymR7NFUGPIdCHyrMDXtqDv/jyP+51eUvGLqsim9j1FyqqqFtH6qxuHvutPG892VRGlUyKwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=16W6Kgho76vIJVqzIVQPPuO3jHiQHy0Ztr0SUBzuoYA=; b=hcamYb6SlpBGKkXYsy/an1j1oss6Ywm8AebZd7xNCUA+3b4fVC/rYBA/z5xSLnUazrFwPwH2e5Lxv1v+CcOlY0PZzalPto/DbwvahmHok+/rGjaPaaiOgquqazQbn0UNliFZK+zHwUL1fh/e+hq/Ta8I4BexcJ0gRasAzbYP1cge4n874PAUFrBdDVWIGn7NuJJKL61cic75G/UbkiS9s+EaobCFo5T0AMCrNhPRvWXeMFw57z84hxkQcvf9v9HDuBZ+tcCMC44Uepz+n2D5JLV/tntkYqch+bDMNYszGDa9u3Mnvj0E+199/yh9aYpy6WlVBmxy6RBtWLjsMPDQJw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=16W6Kgho76vIJVqzIVQPPuO3jHiQHy0Ztr0SUBzuoYA=; b=L8sisTpKWDjA/+P/ZlhM6mpKbuE93fxSNy0JidkkxMP9cklZi87FKU/5mW2Srq4VrHzAnrILvdteci5NqrmFqoNlZhzGkOCjKprZ3eDiaE2Bz873fR7kN5ABwIH5bif331k1zlvsfEU+f5SYgUO+i2R3UZZTqyOtDWoeHNBwDSw= Authentication-Results: buildroot.org; dkim=none (message not signed) header.d=none;buildroot.org; dmarc=none action=none header.from=oss.nxp.com; Received: from AM0PR04MB4786.eurprd04.prod.outlook.com (2603:10a6:208:cf::25) by AM0PR04MB5908.eurprd04.prod.outlook.com (2603:10a6:208:134::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3021.27; Mon, 25 May 2020 16:02:19 +0000 Received: from AM0PR04MB4786.eurprd04.prod.outlook.com ([fe80::715c:fa5c:5b68:5e2c]) by AM0PR04MB4786.eurprd04.prod.outlook.com ([fe80::715c:fa5c:5b68:5e2c%4]) with mapi id 15.20.3021.029; Mon, 25 May 2020 16:02:19 +0000 From: Stephane Viau To: buildroot@buildroot.org Date: Mon, 25 May 2020 18:02:08 +0200 Message-Id: <1590422530-4788-4-git-send-email-stephane.viau@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1590422530-4788-1-git-send-email-stephane.viau@oss.nxp.com> References: <1590422530-4788-1-git-send-email-stephane.viau@oss.nxp.com> X-ClientProxiedBy: AM0PR03CA0056.eurprd03.prod.outlook.com (2603:10a6:208::33) To AM0PR04MB4786.eurprd04.prod.outlook.com (2603:10a6:208:cf::25) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (2a01:e0a:43f:82f0:e5ce:dba0:335b:3910) by AM0PR03CA0056.eurprd03.prod.outlook.com (2603:10a6:208::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3021.23 via Frontend Transport; Mon, 25 May 2020 16:02:18 +0000 X-Mailer: git-send-email 2.7.4 X-Originating-IP: [2a01:e0a:43f:82f0:e5ce:dba0:335b:3910] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 3916d74e-c5e4-45fc-90fa-08d800c50067 X-MS-TrafficTypeDiagnostic: AM0PR04MB5908: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:5516; X-Forefront-PRVS: 0414DF926F X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: u7vKrOQbB8X03KmQ54v/BzMiWig7XeJynjqWzw38CbFsXIujtq3TXnNP+kVywmnBcHT5JRq2VtYqzmeJYe45VRvqWilhFLL4TEc+nhldfkthFomIluxg0h0gpYBKZpA619YBdkV0eF0WRJwxHFjIe5pro/C/IjXKuZaZKhCqqPvh+WUueDNAyeb0gas6xEZnWAIJ2pesdEH+yohrlUtVw0Bqs3v0h+iKz8+B5n138W86JxphQXakbewhx5/bKNpK3nsxup2ZvaDVd3z/Ih91kdj8AsQyO7p2vzKklDJstbCqOQ64IzPJo5PpdSogimv6FVjAPdQqj7tPESdZoiMen0ZujV1WZU2qBToDXBuqKeUCEfmZvcFNfDPDqwx2rtq/9oC1gXJ7Fdl7L9MbktXxkDjyJx+JWn0Vfy5U/9hLHpQ= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM0PR04MB4786.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(366004)(376002)(136003)(396003)(346002)(39860400002)(478600001)(2616005)(2906002)(54906003)(66476007)(69590400007)(66556008)(86362001)(4326008)(6506007)(8936002)(44832011)(66946007)(186003)(6512007)(6916009)(16526019)(316002)(6666004)(52116002)(5660300002)(6486002)(8676002)(41533002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: YQHDD1hseU+6eltEBADJa1Y+wN2QmVJHGGk4JW5cDnjZnelOrM5kHO2G/tNTU3B7Gr0KiZtW3GzuQX3iBxuRMoiwrhQqY5WdOBh5TITjqPOSqnOXTjFb0gL8DFjy0ngklresZJAFUSobhcbOniAcb+7HkLXo5yDeqA9Niod943dfNu/myrX+4e+aini1TWC7GpOcEYyq0IgeAhDyqwKRguAsa8jOb+QrbNmEZD9CAQIxbJGICtWvTlTeIEow9oDyDbar1N9yQn3LHpPuK0WGgVFG9N183sP/6e70GxvByCMpxq2gxUaFaEMYb3LqwYlU2qtZg/+HzoskJhXAZjlNjOFf7QAPEFs4oRzdosvEtoLAPbKK2Y4WnccPTlgVyGCXyklSFIHya93vkWorP8ukebMFqirra2PMKqsDrVHoWszJslGqXpLpwI6Qc+LyQlnwUR3qStgnmEmN9gOpZzYGMSg81Bsv2hjbIe0LQ0zl2RQU7aT4HUzTrCzTkMLTyBIquf3q6TintvbQFg4X2Uk2bMZJCmn0N6AJJZUbqnF5bAo= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3916d74e-c5e4-45fc-90fa-08d800c50067 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 May 2020 16:02:19.3316 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: tZQIgmBJE1EuodNRcrP/K4cOdRtg9crFvr617MPHMPqOTPRSUGZZSckrqLauEJzeFID2JV8zn2NXnriiPprrNA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB5908 Subject: [Buildroot] [PATCH v3 3/5] board/freescale/common/imx: use generic ddr_fw.bin name X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Gary Bisson , Maeva Manuel , Gilles Talis , Refik Tuzakli , Julien Olivain , Stephane Viau , Fabio Estevam Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" For some SoCs (i.e.: i.MX8M Nano for now), the DDR training firmware in the boot image depends on the type of memory installed on a board (LPDDR4, DDR4, etc...). The previous patch makes this firmware name agnostic of the DDR type and uses ddr_fw.bin as a generic name. This patch makes imx8-bootloader-prepare.sh use this generic name, independently of the kind board DDR type. Signed-off-by: Stephane Viau Reviewed-by: Maeva Manuel Reviewed-by: Julien Olivain Reviewed-by: Gary Bisson --- v2: - generic ddr_fw.bin name is now used also for 8M and 8MM, along with 8MN (suggested by Gary) Signed-off-by: Stephane Viau --- board/freescale/common/imx/imx8-bootloader-prepare.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/board/freescale/common/imx/imx8-bootloader-prepare.sh b/board/freescale/common/imx/imx8-bootloader-prepare.sh index abf2e43..cb7c37b 100755 --- a/board/freescale/common/imx/imx8-bootloader-prepare.sh +++ b/board/freescale/common/imx/imx8-bootloader-prepare.sh @@ -9,21 +9,21 @@ main () fi if grep -Eq "^BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8M=y$" ${BR2_CONFIG}; then - cat ${BINARIES_DIR}/u-boot-spl.bin ${BINARIES_DIR}/lpddr4_pmu_train_fw.bin > ${BINARIES_DIR}/u-boot-spl-ddr.bin + cat ${BINARIES_DIR}/u-boot-spl.bin ${BINARIES_DIR}/ddr_fw.bin > ${BINARIES_DIR}/u-boot-spl-ddr.bin BL31=${BINARIES_DIR}/bl31.bin BL33=${BINARIES_DIR}/u-boot-nodtb.bin ATF_LOAD_ADDR=0x00910000 ${HOST_DIR}/bin/mkimage_fit_atf.sh ${UBOOT_DTB} > ${BINARIES_DIR}/u-boot.its ${HOST_DIR}/bin/mkimage -E -p 0x3000 -f ${BINARIES_DIR}/u-boot.its ${BINARIES_DIR}/u-boot.itb rm -f ${BINARIES_DIR}/u-boot.its ${HOST_DIR}/bin/mkimage_imx8 -fit -signed_hdmi ${BINARIES_DIR}/signed_hdmi_imx8m.bin -loader ${BINARIES_DIR}/u-boot-spl-ddr.bin 0x7E1000 -second_loader ${BINARIES_DIR}/u-boot.itb 0x40200000 0x60000 -out ${BINARIES_DIR}/imx8-boot-sd.bin elif grep -Eq "^BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MM=y$" ${BR2_CONFIG}; then - cat ${BINARIES_DIR}/u-boot-spl.bin ${BINARIES_DIR}/lpddr4_pmu_train_fw.bin > ${BINARIES_DIR}/u-boot-spl-ddr.bin + cat ${BINARIES_DIR}/u-boot-spl.bin ${BINARIES_DIR}/ddr_fw.bin > ${BINARIES_DIR}/u-boot-spl-ddr.bin BL31=${BINARIES_DIR}/bl31.bin BL33=${BINARIES_DIR}/u-boot-nodtb.bin ATF_LOAD_ADDR=0x00920000 ${HOST_DIR}/bin/mkimage_fit_atf.sh ${UBOOT_DTB} > ${BINARIES_DIR}/u-boot.its ${HOST_DIR}/bin/mkimage -E -p 0x3000 -f ${BINARIES_DIR}/u-boot.its ${BINARIES_DIR}/u-boot.itb rm -f ${BINARIES_DIR}/u-boot.its ${HOST_DIR}/bin/mkimage_imx8 -fit -loader ${BINARIES_DIR}/u-boot-spl-ddr.bin 0x7E1000 -second_loader ${BINARIES_DIR}/u-boot.itb 0x40200000 0x60000 -out ${BINARIES_DIR}/imx8-boot-sd.bin elif grep -Eq "^BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MN=y$" ${BR2_CONFIG}; then - cat ${BINARIES_DIR}/u-boot-spl.bin ${BINARIES_DIR}/lpddr4_pmu_train_fw.bin > ${BINARIES_DIR}/u-boot-spl-ddr.bin + cat ${BINARIES_DIR}/u-boot-spl.bin ${BINARIES_DIR}/ddr_fw.bin > ${BINARIES_DIR}/u-boot-spl-ddr.bin BL31=${BINARIES_DIR}/bl31.bin BL33=${BINARIES_DIR}/u-boot-nodtb.bin ATF_LOAD_ADDR=0x00960000 ${HOST_DIR}/bin/mkimage_fit_atf.sh ${UBOOT_DTB} > ${BINARIES_DIR}/u-boot.its ${HOST_DIR}/bin/mkimage -E -p 0x3000 -f ${BINARIES_DIR}/u-boot.its ${BINARIES_DIR}/u-boot.itb rm -f ${BINARIES_DIR}/u-boot.its From patchwork Mon May 25 16:02:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Stephane Viau (OSS)" X-Patchwork-Id: 1297418 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=oss.nxp.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.a=rsa-sha256 header.s=selector2-NXP1-onmicrosoft-com header.b=Nn8Zt3TU; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49W21D6TJ5z9sSd for ; Tue, 26 May 2020 02:02:40 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 403CB88146; Mon, 25 May 2020 16:02:38 +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 nkguE+TmI1-X; Mon, 25 May 2020 16:02:37 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id DA69C87C76; Mon, 25 May 2020 16:02: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 7D3E01BF378 for ; Mon, 25 May 2020 16:02:22 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 7A0CE879C3 for ; Mon, 25 May 2020 16:02:22 +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 2TrFQ3Sjlieq for ; Mon, 25 May 2020 16:02:22 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80079.outbound.protection.outlook.com [40.107.8.79]) by hemlock.osuosl.org (Postfix) with ESMTPS id 9CFE987D98 for ; Mon, 25 May 2020 16:02:21 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FnBImXThZ+bVUOQnt7rrVhJw0niQw8cFr6fcdD9XMo4J0B7vlB749og0WBtZk31EZKhjVan4Cvx1pY3A/jCH7XMPgW3HXve4D6a6iRcRfVmahZYbHcbmJA/7TfGdKutX+TgG5z81Ac92XfBtGUNRAmmI6LRS23b1y/p439sgzWrODepWO7CnxpifnncgWdj1jdf/xXyGRJgRY0ZzW2wy/psB1miwkCniTI+tX+rh05w9hLolJTf6I9Gd+IHBGJ1R8+Rxrr1nOHgzDT4eOYaY7MXVC69AlQURPmCN2hsQl7TGYRWe7py7NuvZefLA0b7V5xroe/NCwnRqM2zn+nmfJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3ofcm2qu2Oj9Gd94x5mF0DSmg66IowIXxRSS+rREHeo=; b=bhBqx7Q80corcZ/0tk0+m6ql3EZAVzKQKCwP5idhudeoSgMix51ewqdMTin/nEwH++2QH9IvyfTNtkmHcwljoCQjQgNI3jsQVGNwl+DxTnqZIaJHiEmhuN7zZK0VhEybr4FHqYiOaDNBYb9adkS5iWUO9NGPlSfvptcO2MXOtDv5FA+WKWEklZ3AjJzCjZdOqPbMx+1gKZD2SfTFRMq9CeLJcpzJHZxq5ROVNIdcNpSIXA1BQN5dBSIWX6zzx2X3L9PUDBn7QmxbXKQh3Dsdknvu9YECDw6Mv3DEutNoRPfwAb7v8I+KLjZq3u70AvM0z6XMN3UD03jT1WdyjEJ61Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3ofcm2qu2Oj9Gd94x5mF0DSmg66IowIXxRSS+rREHeo=; b=Nn8Zt3TUle2ZMlcY7304Fp62TIeYrcGnZQppLqJU2SL0BTokv/iJyFJPlK30RvJSiX/YeZXrphbWQCafL4dudfO8DRNJH70R7HAMTUqOM8N5wQDxtC5fMBxc0r5VbdDWby8dTrdO5oJuNcQB/bCewecxPgPAxsbPKVMyJqEAPYw= Authentication-Results: buildroot.org; dkim=none (message not signed) header.d=none;buildroot.org; dmarc=none action=none header.from=oss.nxp.com; Received: from AM0PR04MB4786.eurprd04.prod.outlook.com (2603:10a6:208:cf::25) by AM0PR04MB5908.eurprd04.prod.outlook.com (2603:10a6:208:134::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3021.27; Mon, 25 May 2020 16:02:20 +0000 Received: from AM0PR04MB4786.eurprd04.prod.outlook.com ([fe80::715c:fa5c:5b68:5e2c]) by AM0PR04MB4786.eurprd04.prod.outlook.com ([fe80::715c:fa5c:5b68:5e2c%4]) with mapi id 15.20.3021.029; Mon, 25 May 2020 16:02:20 +0000 From: Stephane Viau To: buildroot@buildroot.org Date: Mon, 25 May 2020 18:02:09 +0200 Message-Id: <1590422530-4788-5-git-send-email-stephane.viau@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1590422530-4788-1-git-send-email-stephane.viau@oss.nxp.com> References: <1590422530-4788-1-git-send-email-stephane.viau@oss.nxp.com> X-ClientProxiedBy: AM0PR03CA0056.eurprd03.prod.outlook.com (2603:10a6:208::33) To AM0PR04MB4786.eurprd04.prod.outlook.com (2603:10a6:208:cf::25) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (2a01:e0a:43f:82f0:e5ce:dba0:335b:3910) by AM0PR03CA0056.eurprd03.prod.outlook.com (2603:10a6:208::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3021.23 via Frontend Transport; Mon, 25 May 2020 16:02:19 +0000 X-Mailer: git-send-email 2.7.4 X-Originating-IP: [2a01:e0a:43f:82f0:e5ce:dba0:335b:3910] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: ca5d7ad4-e6e4-450f-d6ca-08d800c50122 X-MS-TrafficTypeDiagnostic: AM0PR04MB5908: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:296; X-Forefront-PRVS: 0414DF926F X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: cHvntNVj59rwFPfdrFRm/nCOzkZsnXXq+A8WYm0G6IdpPu96AFYZS6R9D3faDpaBGvA9UJJGIobIZ4I8J4M38E0JErpKCywoqF0nLEAsHcEBv6MtSoFV+qH//Rj0Zab24US7nxVi7vl610J1OCTZXpRP0S4ugBXyowjNrugnvx3c8Ak86lOROSRVuUqdJUuA3gqQlY74kixoIze1/Xv81td/93+gGxYF+ouyvqQJcZVflPHQEznFPR6Yz/3xcTyugw7+7I+IlvpusJ3T3J/mXoi4RokKSXzgPZdlmFqAKZi5/q286s1ZoZa6/z9eKp4bliwrxQXdpE8zWTPjhvytUJWr6w4WbYiaYnYhBVKrHkZo1S2tb2PTnOZdS+lwAG2/ X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM0PR04MB4786.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(366004)(376002)(136003)(396003)(346002)(39860400002)(478600001)(2616005)(2906002)(54906003)(66476007)(69590400007)(66556008)(86362001)(4326008)(6506007)(8936002)(44832011)(66946007)(186003)(6512007)(6916009)(16526019)(316002)(6666004)(52116002)(5660300002)(6486002)(8676002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: u+XtEdhDrsPS/2uCDN22dc8YG6xw7rQNFZUravGKCnnLb+VX/6ZkzLKvxnGIDuxfn5EGpNIFpi5b/gbZE1ItUcx308najbFxPr3Oh0i94iZXuXUvozYlw3h/qxfb2E5PGE7rqBd4hQkkI9HmNZc0jaBgXO1K6jfsqaCLH7JQ+w4INlizP21TKVrGVJcdB/WsSuElX67cMM7N0PceuPCb6wKjgrc9oC8fEOauaMjjTZxmRNKTNcf1YDAmJ5pWzuzWpb5VrDpUwvF8TsZlJzG/cN76HaF0gTyXZx10Zqc0ZrF0W4OTtR+pS36npDiAWeC7X0tZqehQ/FjAMIIp9nEZN2mffTnbg7bI0dICBwGMJFTfSjnf3SCUV59Ati1Pbr5jl8vi07T7sLEZFjBDSCCav30uiLmmO+2mHctbhEVuu/qKRacOOkAEJB6/xFT/wJsmqau/2qjHQUf7qig9likHxcC+bVUcyW8hc1QXWNNoFOmUrVtjqe4d4HjZBYeUhlrce/UdmSHlz3ozsFxgq3Bg7KPyBfq/YH8qxD35NI5ubiclBGWh1BnF5ri3pBeEgSS9 X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: ca5d7ad4-e6e4-450f-d6ca-08d800c50122 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 May 2020 16:02:20.3571 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: rSg4ZsIzIlGovsvFZuYgn0vJmmk8lSGwL9EBEnGoMrjyetTq2qMR3yxHYfNcPp4NKdJ0yYfLaHGmrNDqxO4OoA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB5908 Subject: [Buildroot] [PATCH v3 4/5] board/freescale/common/imx: add support for i.MX8M Nano X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Gary Bisson , Maeva Manuel , Gilles Talis , Refik Tuzakli , Julien Olivain , Stephane Viau , Fabio Estevam Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Signed-off-by: Stephane Viau Reviewed-by: Maeva Manuel Reviewed-by: Julien Olivain Reviewed-by: Gary Bisson --- board/freescale/common/imx/post-image.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board/freescale/common/imx/post-image.sh b/board/freescale/common/imx/post-image.sh index 138ea7b..06ccaac 100755 --- a/board/freescale/common/imx/post-image.sh +++ b/board/freescale/common/imx/post-image.sh @@ -38,6 +38,8 @@ genimage_type() echo "genimage.cfg.template_imx8" elif grep -Eq "^BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MM=y$" ${BR2_CONFIG}; then echo "genimage.cfg.template_imx8" + elif grep -Eq "^BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MN=y$" ${BR2_CONFIG}; then + echo "genimage.cfg.template_imx8" elif grep -Eq "^BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8X=y$" ${BR2_CONFIG}; then echo "genimage.cfg.template_imx8" elif grep -Eq "^BR2_LINUX_KERNEL_INSTALL_TARGET=y$" ${BR2_CONFIG}; then From patchwork Mon May 25 16:02:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Stephane Viau (OSS)" X-Patchwork-Id: 1297421 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=oss.nxp.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.a=rsa-sha256 header.s=selector2-NXP1-onmicrosoft-com header.b=Q4cw3KwY; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49W21f0dHyz9sSd for ; Tue, 26 May 2020 02:03:00 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 6646E226F5; Mon, 25 May 2020 16:02:58 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id u2cedaXPId7t; Mon, 25 May 2020 16:02:43 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 409CA2270C; Mon, 25 May 2020 16:02:39 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id BA2A41BF378 for ; Mon, 25 May 2020 16:02:27 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id B639685E7D for ; Mon, 25 May 2020 16:02:27 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fnu3awJUGZ2q for ; Mon, 25 May 2020 16:02:26 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80089.outbound.protection.outlook.com [40.107.8.89]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 98C3685D56 for ; Mon, 25 May 2020 16:02:25 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kIg3q6xlZMLjhv1l64mjngeZTGc6UaAmWTlJCWVaJJUi/tPPqbQkCgUVR3pQmxcjrfagcRm2ng3ShdVBzHL8rWYRu7kQStFpOZMi7nnzf98q6VjIlsdcJPVgDQnsouxIY9TT1STV7CExcf4ZYvRP+tPtUDz0Y26m963egy9Sab5QD5OknpyprRFRoqP/5Hslm3c6jH7g3tvhlUicoXlQOqqNjylrBH/Ninf/yelB615VhKI8j7uNRnImDJgHMw3PMcWwjnu5sr2fjB63wJiSngxolNvncr5feX6zqnV9Cr6z803yS3SGBW7tz2v2tu3SPXuY0EDMl+dG3bAQyGpGLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=7G251P2EfCaAJDFVn3R0W+EtczUgWWDuw/+oYrVanCU=; b=bZod4pNx3M82OwETmmqSCsy3Xqn4thBGtwqzW9wlsZZiysAFikD20Xw8To9UO/so4ewtFRid2ptO19qnA0lF4h3to1m/c3lSQtMHFTa6GW4y+6PyR85023XwWZ9YvxCVZQmt/EZB2DZvO8csDbjG3eLcPMHBAsjJSgw1PtkTld3N3153kRSumVu7kn8iknVmgOkfGFSnrCVcJoQfaC+0GbFhbge+Idwep+lUDHceoY/cCA0lvKTFeKx4XbamAiLqK0/YGfcFloEMrkh1P2+En2gQWfXjsZasu7XWPNM2+Re3UuT/wwFaz8D5CGrVzrq/Rp6L3k+U3BhjoHENmzwXhA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=7G251P2EfCaAJDFVn3R0W+EtczUgWWDuw/+oYrVanCU=; b=Q4cw3KwYMlt0wqMivHhTFpjwjJn6gkvqdQqkCibW+D8TW4tnHRYVacAG7Q4sxWIHFqtek6QjdBDIhqBXnCCRNr+GsXSM7QFfTM23TgRwT5JIJNOcKESorUifHVy3X6P85Ht8pjOkcOMH3rUzf6V8+iV6qZBT4hiinEnYGPn6Z34= Authentication-Results: buildroot.org; dkim=none (message not signed) header.d=none;buildroot.org; dmarc=none action=none header.from=oss.nxp.com; Received: from AM0PR04MB4786.eurprd04.prod.outlook.com (2603:10a6:208:cf::25) by AM0PR04MB5908.eurprd04.prod.outlook.com (2603:10a6:208:134::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3021.27; Mon, 25 May 2020 16:02:21 +0000 Received: from AM0PR04MB4786.eurprd04.prod.outlook.com ([fe80::715c:fa5c:5b68:5e2c]) by AM0PR04MB4786.eurprd04.prod.outlook.com ([fe80::715c:fa5c:5b68:5e2c%4]) with mapi id 15.20.3021.029; Mon, 25 May 2020 16:02:21 +0000 From: Stephane Viau To: buildroot@buildroot.org Date: Mon, 25 May 2020 18:02:10 +0200 Message-Id: <1590422530-4788-6-git-send-email-stephane.viau@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1590422530-4788-1-git-send-email-stephane.viau@oss.nxp.com> References: <1590422530-4788-1-git-send-email-stephane.viau@oss.nxp.com> X-ClientProxiedBy: AM0PR03CA0056.eurprd03.prod.outlook.com (2603:10a6:208::33) To AM0PR04MB4786.eurprd04.prod.outlook.com (2603:10a6:208:cf::25) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (2a01:e0a:43f:82f0:e5ce:dba0:335b:3910) by AM0PR03CA0056.eurprd03.prod.outlook.com (2603:10a6:208::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3021.23 via Frontend Transport; Mon, 25 May 2020 16:02:20 +0000 X-Mailer: git-send-email 2.7.4 X-Originating-IP: [2a01:e0a:43f:82f0:e5ce:dba0:335b:3910] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 1b33dc3d-464d-4992-61ba-08d800c501e2 X-MS-TrafficTypeDiagnostic: AM0PR04MB5908: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7691; X-Forefront-PRVS: 0414DF926F X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: MjdY1lPMYd0GgDGrMUtM5mdzwrhqN+LvZxIkDysajFz/g75A2vbDXQipSm6LcnvH8CqUQG7kZ5j14FUu+ipKfGfkU/EkhrnlwYZ20ibLoAkAYs5+tVw9LJnvsMFU9YCm2JEXvCMXESpXicaEnQjkQWmkHoj9Mg3ENOzH/GoMsbFYrTeIb5+iJ0RbPjVzpgrYCCF01irGQCXRtzQvMmQ/8ZaEIoAzcau2aKbN0WyehFMpaYKVtsDI/UCClwehBEJAR0qFgIeQ5t4ibegYRnL569BVfT2MJH3Xy9oT2bR1enCuXt+zYUuka46k7nImmzj0N1wAe+VuheB2RvzCOzuzixeldPSTzKjFVwekfcWnwfb6/4nAUB/bqhzHkS0QToefuWjFJY4EJg6YVRcEfejlSRccarCixyM7Ni+6DYKj+MqwAR/QU7t/uyyntZ1g7qagJlEn4UyS+K3Ku9JxYAeYeA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM0PR04MB4786.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(366004)(376002)(136003)(396003)(346002)(39860400002)(966005)(478600001)(2616005)(2906002)(54906003)(66476007)(69590400007)(66556008)(86362001)(4326008)(6506007)(8936002)(44832011)(66946007)(186003)(6512007)(6916009)(16526019)(316002)(6666004)(52116002)(5660300002)(6486002)(8676002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: P2DFcawTSdR/7jCOJGrUvpsDEnfblvz7/E4TSZ57I1bVkFeJsrg7/R3gZrYOdWTIlDuUWVKK9BCQnlLK8Gly/Rf4Ya3Hwhjx0mVEnKWb2nXVNstMAopD4ngz9PTXewQyWvacgJaIlAixo2P2X25k1rWziPcDid17lnPnWTHwJkjxTlOZ13oU4eVlE87zJrqO/lkbMD8v6bA/8u2bOFyh+JMefOnJ4egKrXbWs491ePa0ShpCcaChOMd1buOSi1sQsdho1EMRIz8u4KwWvOPbMneLtJhh4M3itUqLIz2G6g5WUyax0sw5Td6p7b7JzmbbaH6y/Qgab/PwOfJ2GiF4H8S8QNDQSK9LzEKYpfJNt9gCDOjYukytCs27A90hL3YYqffJ4k6phh86GSgJFHcqIygplJkH96g4bk/7eaYGeP1NWZIarB1kf3uOAsh5iJhRwKNvOXzsmj51xQGZB79TqdOjF0gbpXDr2BgAz2Xn0rj7znRrY42lb9HUr+7FdFlDWU17eVUmkRPcLxFyUxWLag2fcUGgUgYd9qcOHun3XmmeabtIATGkLjlFrUcb30EY X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1b33dc3d-464d-4992-61ba-08d800c501e2 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 May 2020 16:02:21.6014 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: PrCJZbWT2Zv8B5lOJwd4Wra9V6dtFPXfWv7OrCSYHTxbEgFucsw3Ja++E4fHeKN13YUwIobYodlTJVn0usbRlQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB5908 Subject: [Buildroot] [PATCH v3 5/5] configs/freescale_imx8mnevk: new defconfig X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Gary Bisson , Maeva Manuel , Gilles Talis , Refik Tuzakli , Julien Olivain , Stephane Viau , Fabio Estevam Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" This patch adds support for the i.MX8M Nano EVK Board [1]. The final boot image is created from uboot and firmware binaries in post image script board/freescale/common/imx/imx8-bootloader-prepare.sh Note that this config is based on 4.19.35_1.1.0 ; hence, the kernel configuration needs host-openssl to build. [1] https://www.nxp.com/design/development-boards/i-mx-evaluation-and-development-boards/evaluation-kit-for-the-i-mx-8m-nano-applications-processor:8MNANOD4-EVK Signed-off-by: Stephane Viau Reviewed-by: Maeva Manuel Reviewed-by: Julien Olivain --- v3: - Remove hdmi bin from 8MN config now that this feature can easily be (re)set through FIRMWARE_IMX_PREPARE_HDMI_FW. v2: - reword commit title about uboot.imx generation: sentence removed (Gary) - replace link which was confusing because mentioning LPD4 when DDR4 EVK is actually available (suggested by Gary) Signed-off-by: Stephane Viau --- .gitlab-ci.yml | 1 + DEVELOPERS | 4 ++ board/freescale/imx8mnevk/readme.txt | 73 +++++++++++++++++++++++++++++++++++ configs/freescale_imx8mnevk_defconfig | 43 +++++++++++++++++++++ 4 files changed, 121 insertions(+) create mode 100644 board/freescale/imx8mnevk/readme.txt create mode 100644 configs/freescale_imx8mnevk_defconfig diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index fa8e077..0bf8a73 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -190,6 +190,7 @@ freescale_imx8mmevk_defconfig: { extends: .defconfig } freescale_imx8mqevk_defconfig: { extends: .defconfig } freescale_imx8qmmek_defconfig: { extends: .defconfig } freescale_imx8qxpmek_defconfig: { extends: .defconfig } +freescale_imx8mnevk_defconfig: { extends: .defconfig } freescale_p1025twr_defconfig: { extends: .defconfig } freescale_t1040d4rdb_defconfig: { extends: .defconfig } freescale_t2080_qds_rdb_defconfig: { extends: .defconfig } diff --git a/DEVELOPERS b/DEVELOPERS index d1426f6..704c38d 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -2398,6 +2398,10 @@ F: package/gtest/ F: package/libhttpserver/ F: package/mtdev/ +N: Stephane Viau +F: board/freescale/imx8mnevk/ +F: configs/freescale_imx8mnevk_defconfig + N: Steve Calfee F: package/python-pymysql/ F: package/python-pyratemp/ diff --git a/board/freescale/imx8mnevk/readme.txt b/board/freescale/imx8mnevk/readme.txt new file mode 100644 index 0000000..d770056 --- /dev/null +++ b/board/freescale/imx8mnevk/readme.txt @@ -0,0 +1,73 @@ +*************************** +Freescale i.MX8MN EVK board +*************************** + +This file documents the Buildroot support for the i.MX8M Nano EVK board. + +Build +===== + +First, configure Buildroot for the i.MX8MN EVK board: + + make freescale_imx8mnevk_defconfig + +Build all components: + + make + +You will find in output/images/ the following files: + - bl31.bin + - boot.vfat + - ddr4_201810_fw.bin + - ddr_fw.bin + - fsl-imx8mn-ddr4-evk.dtb + - Image + - imx8-boot-sd.bin + - rootfs.ext2 + - rootfs.ext4 + - rootfs.tar + - sdcard.img + - u-boot.bin + - u-boot.imx + - u-boot.itb + - u-boot-nodtb.bin + - u-boot-spl.bin + - u-boot-spl-ddr.bin + +Create a bootable SD card +========================= + +To determine the device associated to the SD card have a look in the +/proc/partitions file: + + cat /proc/partitions + +Buildroot prepares a bootable "sdcard.img" image in the output/images/ +directory, ready to be dumped on a SD card. Launch the following +command as root: + + dd if=output/images/sdcard.img of=/dev/ + +*** WARNING! This will destroy all the card content. Use with care! *** + +For details about the medium image layout, see the definition in +board/freescale/common/imx/genimage.cfg.template_imx8. + +Boot the i.MX8MN EVK board +========================== + +To boot your newly created system (refer to the i.MX8MNano EVK Quick Start Guide +[1] for guidance): +- insert the SD card in the SD slot of the board; +- Configure the switches as follows (X = "don't care"): +SW1101: 1100XXXXXX [D1-D10] +SW1102: XXXXXXXXXX [D1-D10] +- put a micro USB cable into the Debug USB Port and connect using a terminal + emulator at 115200 bps, 8n1; +- power on the board. + +Enjoy! + +References +========== +[1] https://www.nxp.com/design/development-boards/i-mx-evaluation-and-development-boards/evaluation-kit-for-the-i-mx-8m-nano-applications-processor:8MNANOD4-EVK diff --git a/configs/freescale_imx8mnevk_defconfig b/configs/freescale_imx8mnevk_defconfig new file mode 100644 index 0000000..a859d1c --- /dev/null +++ b/configs/freescale_imx8mnevk_defconfig @@ -0,0 +1,43 @@ +BR2_aarch64=y +BR2_ARM_FPU_VFPV3=y +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_19=y +BR2_TARGET_GENERIC_GETTY_PORT="ttymxc1" +BR2_ROOTFS_POST_IMAGE_SCRIPT="board/freescale/common/imx/imx8-bootloader-prepare.sh board/freescale/common/imx/post-image.sh" +BR2_ROOTFS_POST_SCRIPT_ARGS="${UBOOT_DIR}/arch/arm/dts/fsl-imx8mn-ddr4-evk.dtb" +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_CUSTOM_GIT=y +BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://source.codeaurora.org/external/imx/linux-imx" +BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="rel_imx_4.19.35_1.1.0" +BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y +BR2_LINUX_KERNEL_DTS_SUPPORT=y +BR2_LINUX_KERNEL_INTREE_DTS_NAME="freescale/fsl-imx8mn-ddr4-evk" +BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y +BR2_PACKAGE_FREESCALE_IMX=y +BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MN=y +BR2_PACKAGE_FIRMWARE_IMX=y +BR2_PACKAGE_FIRMWARE_DDRFW_DDR4=y +BR2_TARGET_ROOTFS_EXT2=y +BR2_TARGET_ROOTFS_EXT2_4=y +BR2_TARGET_ROOTFS_EXT2_SIZE="120M" +BR2_TARGET_ARM_TRUSTED_FIRMWARE=y +BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_GIT=y +BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_REPO_URL="https://source.codeaurora.org/external/imx/imx-atf" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_REPO_VERSION="rel_imx_4.19.35_1.1.0" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="imx8mn" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_BL31=y +BR2_TARGET_UBOOT=y +BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y +BR2_TARGET_UBOOT_CUSTOM_GIT=y +BR2_TARGET_UBOOT_CUSTOM_REPO_URL="https://source.codeaurora.org/external/imx/uboot-imx" +BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="rel_imx_4.19.35_1.1.0" +BR2_TARGET_UBOOT_BOARD_DEFCONFIG="imx8mn_ddr4_evk" +BR2_TARGET_UBOOT_NEEDS_DTC=y +BR2_TARGET_UBOOT_FORMAT_CUSTOM=y +BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="u-boot-nodtb.bin" +BR2_TARGET_UBOOT_SPL=y +BR2_PACKAGE_HOST_DOSFSTOOLS=y +BR2_PACKAGE_HOST_GENIMAGE=y +BR2_PACKAGE_HOST_IMX_MKIMAGE=y +BR2_PACKAGE_HOST_MTOOLS=y +BR2_PACKAGE_HOST_UBOOT_TOOLS=y +BR2_PACKAGE_HOST_UBOOT_TOOLS_FIT_SUPPORT=y