From patchwork Wed May 27 05:07:44 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: 1298617 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=kOF6/gKn; 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 49WzQF42h5z9sRW for ; Wed, 27 May 2020 15:09:09 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 9B73A20BF8; Wed, 27 May 2020 05:09:05 +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 4JzU-oFwgpS4; Wed, 27 May 2020 05:09:04 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id EDA82204AD; Wed, 27 May 2020 05:09:03 +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 7D5CD1BF86C for ; Wed, 27 May 2020 05:08:56 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 76A3386AB3 for ; Wed, 27 May 2020 05:08:56 +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 VMEbdZNM510i for ; Wed, 27 May 2020 05:08:54 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70082.outbound.protection.outlook.com [40.107.7.82]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 16F9886055 for ; Wed, 27 May 2020 05:08:54 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Stlvhp8eqFzaAa5o1hl3g3c58NAuUOLUvAIgOW99g6wPti8rhhFQmjfFZLN5fPDObH0sCC7BtKBEzPNLd1K3sSzFzo1tcMHldObdZ+W807LLPDOPkfMK0q/+jhy2lKKqo7Q00dEwOkGh3I3x+pAQq7iKZbHbI4Cpeyzc4TL43CTlLpLJTdeX9+YR9o3pmDGJFM8ewQ846GFc+KQybesiYJjUSMVpaAFMcsAmq1aHBvl+i37alZbTtbzVGAUzbjSFUf1Kxux5ZpDehErJa9TMlWawpeKQsjlaBT6B7UNjlqrY9SrioGR/f67TTk1YZqlpqmn+2Dasr5HLe86Bddiumw== 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=FwftuJqMd24BqT9yVUPgchG4H/KbUXYffaddXFABnHs=; b=c0wGPC+zLRMAQlIqqbKqdcarGMt98mdR0durTRmjctSUnB/taA1NIB+TLzSDssrdLEEwGSTVaqTvo/3ttBAb8/6U659xDzMj46TgaOH2tKMVc6BNxyCl22TdCn1SP0WtmOeiV/fv8otj4QAEm0jwX1HV266JqtWL1wqwtdWE8gcHtKD9drl+ZPuOREvh3d5Qwb66G+MC67axx6Sa/DDSyyDqcQEtt55Ft/LCQUz9LI9fDxh5wH/WGBiADmNACrDHCIlt6vdInORKDaHQI+F87xRkuhEQFlxHv6xcBsrEnRC1wngzye4Fr/XuAgLiA2sTMDELNSIct15mwl742XHOBw== 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=FwftuJqMd24BqT9yVUPgchG4H/KbUXYffaddXFABnHs=; b=kOF6/gKnRpNtL90meGfTaEWs5r+xcNGrcw6F0bRV54ZDwdAXK6cYVVYOSj4q3p9xG3O9q/ZCo9M5JnJhF2kzesfsubWNfLvH0N32a6YqPLMzyfcIRZfgSc6TsNsAjPNrTH1B+LbdI6bRkweXjfk9+jjxsxTtoFKpzd5iT3tCwnw= 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 AM0PR04MB5412.eurprd04.prod.outlook.com (2603:10a6:208:10f::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3021.23; Wed, 27 May 2020 05:08:41 +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; Wed, 27 May 2020 05:08:41 +0000 From: Stephane Viau To: buildroot@buildroot.org Date: Wed, 27 May 2020 07:07:44 +0200 Message-Id: <1590556068-7043-2-git-send-email-stephane.viau@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1590556068-7043-1-git-send-email-stephane.viau@oss.nxp.com> References: <1590556068-7043-1-git-send-email-stephane.viau@oss.nxp.com> X-ClientProxiedBy: PR0P264CA0199.FRAP264.PROD.OUTLOOK.COM (2603:10a6:100:1f::19) 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 PR0P264CA0199.FRAP264.PROD.OUTLOOK.COM (2603:10a6:100:1f::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3045.17 via Frontend Transport; Wed, 27 May 2020 05:08:40 +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: eb175266-2c99-4258-39c0-08d801fc05bd X-MS-TrafficTypeDiagnostic: AM0PR04MB5412: 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: 04163EF38A X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: EuKxnnn79uqMPSCJVCjf4FISXEaXd1g49QM5WArM06slxvZdB14zjKo7xWgLqpoZ1OO61RRFv0aTb3l6iH46WAk7tPaHaWBmNc+TYD8xQo8VW+XoQ1cmiY/pF9sGToqeGjSWK0R4hJgpdks7YoqNvrHcY2kNiDSgsumrxvQBP/ivxJlZXF8k++ZFmyk14SS+nw1XwlbnKH90+kDdYLxS5yB8wX4VsGOsQ7UVNzaiXZLQHQbkvD5k6Ux3msVko3St04QWz7YyrYacLcG9y0EzFqLFjt+KSMc+XF6acV9Aqircfb0aXWHSkWeGi14K6FIH218U8UOO4j9cgTHGr18NfK5KLMEOUxTJzZMpDRkhWhz/YaKnlwsFCD4uKsziL2sM 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)(376002)(346002)(366004)(396003)(136003)(39860400002)(6486002)(54906003)(52116002)(6506007)(478600001)(316002)(6916009)(2906002)(44832011)(4326008)(8676002)(2616005)(8936002)(5660300002)(69590400007)(66476007)(66556008)(66946007)(6512007)(186003)(16526019)(86362001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: pahYS3P/Q3Z34Ut9rDiFbYN+u3o9n4VeSOQwRRCkvTVKgUJxHvd3SqT0yIcBQNSZ7gaCEVApuJqYlQx2zGTMoeVB5wNcjZ2PqtwnXynpKpRFV3MNf6kX2Y46zAhsvRtYL3w4Ifkqas61gI7YqJIPLk2QkDfQDMFFSpFT+krFEMkZLZ2ufHqPWIstjsK8zehXa5+uxAqLWCR7XsXa7HhbhIljvfN8UKhaGukY3VG3RJxTfiuPxx1JWtVkA1bk5ESk44BHDQy/9YQ0oPNcliGhyEV9DiPKPICIBtUOS67XmZC2t1WBDvFL9h+ieTdnZFqNXTtJDaTpSaPZe7rbwC5jDq4QRwxvSOp4GDx7kTk9N5SSFsxjson3YhEU/Udxm/KONo50LvN57bZFttW3VB6i3slqsFmlThI2Ssh8+sWzidrxXpBxOZGA4A1wG2zH/01mTQB3l6DfUZttdBlHQkUIabSU3Tg6A8J7QV8P5lD6CbpMNjtTnX/ZPiQ2R2qlcrRI4rSOWYozQfKE7LXmCwXzbfSlUI0LA87Z/Ap2fGFeUKmFjPd+Mr19lrgy6FAFqqNY X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: eb175266-2c99-4258-39c0-08d801fc05bd X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 May 2020 05:08:41.4807 (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: l4L4x5wYwu9zNObsM817RUID0/I66fPQ5i2HdZSh7JtBT84rg3eUyK4F+5SXGAVeJbm9KBJTyp3iKHBOobvQyQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB5412 Subject: [Buildroot] [PATCH v4 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 --- v4: - add Gary's reviewed-by 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. (Yann/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 Wed May 27 05:07:45 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: 1298614 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=kKityhtJ; 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 49WzQ91HFJz9sRW for ; Wed, 27 May 2020 15:09:05 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id ACB718856F; Wed, 27 May 2020 05:08:59 +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 ndBpJXwtPQix; Wed, 27 May 2020 05:08:57 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 8B84F8852D; Wed, 27 May 2020 05:08:57 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 363E41BF86C for ; Wed, 27 May 2020 05:08:55 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 32B75877E8 for ; Wed, 27 May 2020 05:08:55 +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 gwjWZhqCG-zn for ; Wed, 27 May 2020 05:08:52 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70059.outbound.protection.outlook.com [40.107.7.59]) by whitealder.osuosl.org (Postfix) with ESMTPS id 2903D81F17 for ; Wed, 27 May 2020 05:08:52 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CeJ58hAwJt2WDFjxgiITozcosCKzF7SPPfVpsORYQNSiQL0g8gY7xVVjIHj31J3NdlzxfkIP/dqVJAxJ/24xBhx9FjRocd579NHE/uODNMNptNI577MnfBm6l0obvOwUlSXKGJf1nSb3rt27CqdZUS/yjS+7z8kr9kIJcPoVstngeDLKb8yBhX9jWnVoAyhJuo8tib5oI/KXN9WGiJ2qV2IyddqS6QN02SMHGZEHBGBe4aPDWkJ2o6XVJGLrbQrMJ3C2pgcRy16oNWg7N28GucuyPJYRVBpiZbj11QPG/UPdEiHJWSDNa1zgxdg4k1Ss8egmZ8SyWo+15e5n7mpIXw== 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=EIZBrM8OpLPcRO7m+bRbXYn0dUqRl5vmeLwe7AWRAHg=; b=mL44OsvxZKYNXUh18WaT1F0Y8KXRDTt9L0hjY6HpPCkNZalGMlFwjBcXJKtry4gH5OAaDO1yTDDLa73ekQWnshaXhHwmgzk/Wj3ZA2mwlMljbx4HMJT4FrC1yaZ3PeI2fovZjiEJI6xYKtnyHcBGdfoitDMSQvHxKUv80Tg32bZqa88zOna9A+vkZ/VJEtZrvKP7SA1XAfw4PdgCw7r7eV2i/5Xx7EsJz/cR7WhamVUnFs6CHrF8wm8Tgu34XwfaaqwvRg+V3l9M6IXh8SabTNADxiB9csT49+5V88QY/2n245uTWxrwWAb0Vq1qp/F1NYm+nGYtroKgZJEK6+KxPw== 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=EIZBrM8OpLPcRO7m+bRbXYn0dUqRl5vmeLwe7AWRAHg=; b=kKityhtJ0ILv6C+ZBAERN/w5jsuAue111sydcOUYsLfi6VNBvZaIhUn6CmA2zXpy1e3aKwEjTBhR0fTtRN5Uj5Yb2bRyEzXUVCxOy7j7cE3g8WkwRR/FzBkUOmK/PZGx9xntbXCrdLT3TSy0DuGTpanGXeS5uquPM2ZMA0ZKidk= 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 AM0PR04MB5412.eurprd04.prod.outlook.com (2603:10a6:208:10f::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3021.23; Wed, 27 May 2020 05:08:42 +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; Wed, 27 May 2020 05:08:42 +0000 From: Stephane Viau To: buildroot@buildroot.org Date: Wed, 27 May 2020 07:07:45 +0200 Message-Id: <1590556068-7043-3-git-send-email-stephane.viau@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1590556068-7043-1-git-send-email-stephane.viau@oss.nxp.com> References: <1590556068-7043-1-git-send-email-stephane.viau@oss.nxp.com> X-ClientProxiedBy: PR0P264CA0199.FRAP264.PROD.OUTLOOK.COM (2603:10a6:100:1f::19) 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 PR0P264CA0199.FRAP264.PROD.OUTLOOK.COM (2603:10a6:100:1f::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3045.17 via Frontend Transport; Wed, 27 May 2020 05:08:41 +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: d0bba767-4b9e-4f02-041e-08d801fc064f X-MS-TrafficTypeDiagnostic: AM0PR04MB5412: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:5797; X-Forefront-PRVS: 04163EF38A X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 2Q0ruFbc5YH389HjUttzaBLTH2kb+rMKO0gSGY88BUGw/U6C3FtD6RgFc0lRHL7rQ0Comc7fdSWtHDrct++j4CNRSx+4c6DjoYa8ZvRhfbDbE8HjLDdFiYw6/ixQwFrF3+wvz8hVi/JW4TwFPhrGDSqC/ltRXSojYT0qQFbi+ru+Nyp3LsaHG71D0wMLSe+1GGzpYoa2cw5aOnUkaI3VUjEQLU1+j6pXz5i71kRkGr6EVtvFuYA4DXih6omQQ2STCwKVg9RYttMLoC3g2vfXfuYlfUMgrCY8F8XYkAFdyCAymRtImt/J9Zll9QFoItCYJxN4KXUJcVNXaQUCBmbnWlh0aqEgbgCN5GZ1UI0hPDmMWEFXzeKnCKx3+NYaSc4/ 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)(376002)(346002)(366004)(396003)(136003)(39860400002)(6486002)(54906003)(52116002)(6506007)(478600001)(316002)(6916009)(2906002)(44832011)(4326008)(8676002)(2616005)(8936002)(5660300002)(69590400007)(66476007)(66556008)(66946007)(6512007)(83380400001)(186003)(16526019)(86362001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: /8uce4UivYSkCFQjcmtEy+YX0MMdnKCdeEFwMVAo1Bhr+apE4TBRiop5pAgoZe+SqbRigE5ojASSWk2NWVksmWu77udM+YD1KC5TZmZ7+3KMqHSjmzX+8YCysj9QQuIbhCgDeCJDYQJQo8gDRKLBzcpDpAhJEANd6ztaZSZ9Pq9an12ZEyM6T1PfN2AntuM4XKvBweqIvJeyCd5cRMKkqWVrJhrLdNCN8uRtpVI6KLCYzPucDaPI/WNXfagKUHgpibXR8OJmtr/2ovT5aIiFl8AIax8BkKWWz95KZ8eFArJxIkJWEdye6c923vqvBS8OZt1JLv1FeWzvy2uMeGTo/FvlQ1mpM/IzDklFMETDuqpHJb+B52jmE6LzQ1sw1MfiC2Su1QHizDaSKcaBO+vPSCGJb/AY/SdkCznclo07/OooI8nkXllwDkfWc3Qn3fybi75odRgZnBP36nCBkBXyrhxhUTzRJSUTHmi2d47dCl8Vux6yZAjgqjW8h4rvh7J06MdsCgQ+Ha6w42vvuAMQLkb/MxCTzXTqIodFAmqHDllX/qGp7IqTQ9Z/g8CRfbtG X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d0bba767-4b9e-4f02-041e-08d801fc064f X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 May 2020 05:08:42.4731 (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: JsSh5+PyQSFEfRnU+ZhHJjtND7jh7UyOj1KvyOl5OH9FCM2bc6bmLdy3+dT4Wbjna0Xh5Pu7UnwMrVtmK/FOSw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB5412 Subject: [Buildroot] [PATCH v4 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. Note that DDR and HDMI FW copies are now separated, which makes latter being properly copied only for the relevant SoC (i.MX8MQ). Suggested-by: Gary Bisson Signed-off-by: Stephane Viau Reviewed-by: Maeva Manuel Reviewed-by: Julien Olivain Reviewed-by: Gary Bisson --- v4: - Keep the 'if IMX8M...' around the whole block (Gary) - Remove FIRMWARE_IMX_PREPARE_HDMI_FW empty definition (Gary) 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) fixup! package/freescale-imx/firmware-imx: add choice for DDR training binaries Signed-off-by: Stephane Viau --- package/freescale-imx/firmware-imx/Config.in | 24 ++++++++++++ package/freescale-imx/firmware-imx/firmware-imx.mk | 43 +++++++++++++++++++++- 2 files changed, 65 insertions(+), 2 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..32f1bb1 100644 --- a/package/freescale-imx/firmware-imx/firmware-imx.mk +++ b/package/freescale-imx/firmware-imx/firmware-imx.mk @@ -19,7 +19,8 @@ define FIRMWARE_IMX_EXTRACT_CMDS 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 +34,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 +43,47 @@ 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 +endif + +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 Wed May 27 05:07:46 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: 1298616 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=aWIYnirp; 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 49WzQB2JTyz9sRW for ; Wed, 27 May 2020 15:09:06 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 17EF487D36; Wed, 27 May 2020 05:09:03 +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 S+87TwsQUaHr; Wed, 27 May 2020 05:09:01 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id B83BD823DF; Wed, 27 May 2020 05:09:01 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 951521BF86C for ; Wed, 27 May 2020 05:08:55 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 8F12981F17 for ; Wed, 27 May 2020 05:08:55 +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 4lsaI4QIdnB2 for ; Wed, 27 May 2020 05:08:53 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70059.outbound.protection.outlook.com [40.107.7.59]) by whitealder.osuosl.org (Postfix) with ESMTPS id C1FEF823DF for ; Wed, 27 May 2020 05:08:52 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oOAA/+aD+i/6pG8qMvqg/UrG4K+JjkJHwpZM8FfpqkR7jUDvR7UBp++V+nPVrmfLyi3JHYUzimUlFCchqXlQx1q0v3+m+PBj4limW0tj//8/jXA6bfu7Qfo/mUyvncyplBOlNVknUTMS57RU5Gh2TM/6HRq3iKxhSjmXIpXXuuBW09dU+sugkofiQ2wibXkctQa63J9afJJlnpulfa1dCLkm/qcSUlCCvfMvn6dFIhkt3Vq91AIpC07JlgEJN1qFutKZXDW3Pr+5Vde4/F5X15LKzhNgS9pPQtUzACh2+kOoM9DmgE+Hd1Pu69mXPK0LwEKQX1rhOkes1Ipn5YqPJA== 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=0BkyieGygRbJdbjsiTOGYQAlqtR9T0G4F+kvK7qZw8g=; b=kmJcBnYYLNR7pAQ7hBTGlc270jHFFlMzjqch8lLV3QN4wekhAn6EPxu7fU3jKFRSBhk/L3p4jOaJWdIKyxq0DnhG6SN9hbFERvJITcg0WH5Bj1NUp+ZW0NJ3LVNIH+igveb2gjrhHDJYqzqGDllNQL4BeV39dPaiUBEleOuVkqSIjCI+zU7irJyLd1n9zWL8c8TJzeV+usnd+/q2p8kn13/3un2us0hsTFRxUFTBWK6vnoJAb1ZAsySTxdU5Q5NL+ao5Ifw1MmL2CimDQ+Tg9uokoXd504VySPJ/Sl0BrnJrLZkCKPBBYGG34hvdehsZJVEwTbyK14dNecgRvnlv6w== 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=0BkyieGygRbJdbjsiTOGYQAlqtR9T0G4F+kvK7qZw8g=; b=aWIYnirpG2CJJMYTkKFEA296pJ1lpEIhuQ/I4FO7OUzN0L7OMHBciAJEoyK3/1cangw9OYrpzFNCSX04ks1W+MNRHcveNRipbsJT4tOtMm8dDJLCzJL+Z8RB0nuCqyCa46jOA7YAVQZ5E8It6+Rl++jb6q8kl5V1waah26GT/RY= 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 AM0PR04MB5412.eurprd04.prod.outlook.com (2603:10a6:208:10f::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3021.23; Wed, 27 May 2020 05:08:43 +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; Wed, 27 May 2020 05:08:43 +0000 From: Stephane Viau To: buildroot@buildroot.org Date: Wed, 27 May 2020 07:07:46 +0200 Message-Id: <1590556068-7043-4-git-send-email-stephane.viau@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1590556068-7043-1-git-send-email-stephane.viau@oss.nxp.com> References: <1590556068-7043-1-git-send-email-stephane.viau@oss.nxp.com> X-ClientProxiedBy: PR0P264CA0199.FRAP264.PROD.OUTLOOK.COM (2603:10a6:100:1f::19) 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 PR0P264CA0199.FRAP264.PROD.OUTLOOK.COM (2603:10a6:100:1f::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3045.17 via Frontend Transport; Wed, 27 May 2020 05:08:42 +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: 4f3d658d-bd12-4160-bc92-08d801fc06e8 X-MS-TrafficTypeDiagnostic: AM0PR04MB5412: 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: 04163EF38A X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: R1pA5+2XvEiZwJAq28434MFWaDHZ6PHGiicY/rNlLePSHpMRyhB2Y+fiNTLh/ZD5iOmvdU/xhoEMuqjT+kwqG+DT9M9yKfqAgwjPsNxL63QC755ALb1naEkTSxklhrFpkBskoBMgQu9mQI0+svwo6AcvGTyHEIf9O3KudKtzaanWewD6oVltPPwNjzwCGUlE4M81Ydfs3m3Kz1lSimSFNmGjuejVlxj/otXSK63aPR77Jh0tZI90Hz6RgFAVu8SXW7Wm6y3BjmIFX/hqkBs+16veoHQAde3t8ptEc+QbgwDWSRBTLE1ZMFyucApabXu6Z2EZPhHnGgQIE54Tu1uF38JcshcGJ6BJTj7sv/htsn6pll1UdhBs3OdTfcGtQINtKtajqWbrYCn0DRZU8ZxmsyrXiAJdyNem2LTcPqlbBXQ= 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)(376002)(346002)(366004)(396003)(136003)(39860400002)(6486002)(54906003)(52116002)(6506007)(478600001)(316002)(6916009)(2906002)(44832011)(4326008)(8676002)(2616005)(8936002)(5660300002)(69590400007)(66476007)(66556008)(66946007)(6512007)(83380400001)(186003)(16526019)(86362001)(41533002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: BM7qtdG5cQ45sCNNU9Na541hp6cOsp8eAQyD7B6UYrdWWNIyS7RJUa47XB56NpEE0QWZp6nUVUzv4WrNF+z6RpZ6m7qALQIjM0Q0K0Jz8QTUXWgbBeqslNU0AtCINqmiMjErac4ypIivXWURg7wYzm96rlG5i84P4dLY4Z0kxJ+maYJbdrMLBzmXLeS5YSR8r+1XJk3qdeCeXFYHQn7c4ttHD/mhcDEL52XIL9cwZ4olUNRm+1kjlzFL335luTksBPwd01xp585HwIquqQnrxwxjVyvc9Vhax5G/BuEq8cENXZ1meLm5N9ffVwFgjZNHoSmrBPNbVm/puT3XyriW8s6dbz1HCVVqtNgVJhFWScuhQnBNNEj8NgQWaDuZOfe1Q8dP+iVi3tpZ2cV5GSw0RCFb6A5eyAOS5TOKjKUAk01BttsSDkFmdjkEHrmTYWA4p9ASR88610jto6cxHcYnJ1km2qnojSPfM+CG+yC0xr2PDBO0T2tfgk4zXDRzP+QO6GA4gnQSSi1qxkNK3PQ5F8Ha4NbJbIgxVi4kP/DoVynaH1LUGJru1CYaZEWaqVjG X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4f3d658d-bd12-4160-bc92-08d801fc06e8 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 May 2020 05:08:43.4376 (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: LFy40zbe6LXrd+s0BF0mj4uUa9UGa908zQbX0QrRE2KhN05A3Osfh0P6o7p+1HKR4tPhbiVXbMa1auGLJrsk8Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB5412 Subject: [Buildroot] [PATCH v4 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 --- v4: - add Gary's reviewed-by 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 Wed May 27 05:07:47 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: 1298613 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.137; helo=fraxinus.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=Gq6fSPvA; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49WzQ70c7Pz9sSd for ; Wed, 27 May 2020 15:09:01 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 5F94D86AD0; Wed, 27 May 2020 05:08:58 +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 i1Jr6HdUyFzT; Wed, 27 May 2020 05:08:56 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 864D786AB3; Wed, 27 May 2020 05:08:56 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id ED3331BF86C for ; Wed, 27 May 2020 05:08:54 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id E2502877E8 for ; Wed, 27 May 2020 05:08:54 +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 zrfVewS6gy6Y for ; Wed, 27 May 2020 05:08:53 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70059.outbound.protection.outlook.com [40.107.7.59]) by whitealder.osuosl.org (Postfix) with ESMTPS id 665CE8783B for ; Wed, 27 May 2020 05:08:53 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZVNnDiJsHZ9MatQ6ty2UWFQVkxZ9GWkVcEc9RLFwoLKy8i1BYx2cfOwZnbXIwVsjJ6BMXU198pUoRrroP+6Ta7XKk53v64P/PY9gjLw6yv6DHy6pFA+KXnwU0tIZx6N8gO8vWsMjyauhPkpbZUA8Fy4Aq5EsD0WUvmm8T3RJaD3UJjQxkJTbvJ7HfNAjMAmNicZp7WkSmJzUDKao4nqYiIl8y/qtxY0g+SBAvAd3EqlKhRaYBhdCv47kpXBB+rQ/sXMToNYTC1iVMtwZR/oV5FZ/VlbFR9vimh3QBbUlrkHdEDjZfvxGW9lOE+zkpD3sTuDRe4JVTSsbyJSjAneBEA== 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=eY1SR0ofFAzvzptupLj4KXd5Ks8B2mnnaLQlefY3esgZFOG0A/U0BAs0DRxxU0CgvNaxINeecgVyr+n8P/qhcimKufNXnC3XI+vEuH+HI2Ntx4QwGPSibhe+ngQuFSKb34jELwlh6nPTdDOqy8VtP4dNYyJ6iw5dyBVBORXrYitX6WhmxpuyJPA2hSOcDxSqRt6fuzjkuOyqQ5VebmtQZU1JR5/5lvHfx9kY3V3kxUX9+hcmjVtjPkiQCP/+MoTilVcsWXGqT8MaGOkI9yWsAhLqINmZ89TQZQoMB7gIE4p4bQh+SV2tYgxtm0O6mW6tvwOJkXbx6zBO62LqJt051w== 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=Gq6fSPvA37M8eFkjA6baT+dvbgKR0NW51ec6DQg66ymOtnfMXR8l7o0EymrquPKUt5mSLI6SNxQpM8SiOyw+cm7s+eU2VvJJEPsP9PB8W3K12qw2e19qrL5ecftesvU/jof8JYkyimLvN82utBYP5i7sDlfB7vP+HzcwIOXxWVc= 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 AM0PR04MB5412.eurprd04.prod.outlook.com (2603:10a6:208:10f::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3021.23; Wed, 27 May 2020 05:08:44 +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; Wed, 27 May 2020 05:08:44 +0000 From: Stephane Viau To: buildroot@buildroot.org Date: Wed, 27 May 2020 07:07:47 +0200 Message-Id: <1590556068-7043-5-git-send-email-stephane.viau@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1590556068-7043-1-git-send-email-stephane.viau@oss.nxp.com> References: <1590556068-7043-1-git-send-email-stephane.viau@oss.nxp.com> X-ClientProxiedBy: PR0P264CA0199.FRAP264.PROD.OUTLOOK.COM (2603:10a6:100:1f::19) 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 PR0P264CA0199.FRAP264.PROD.OUTLOOK.COM (2603:10a6:100:1f::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3045.17 via Frontend Transport; Wed, 27 May 2020 05:08:43 +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: 4ee79924-4348-43e0-f277-08d801fc0787 X-MS-TrafficTypeDiagnostic: AM0PR04MB5412: 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: 04163EF38A X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: GspwZE+IJ+BXQfZzEJYzRoArp0RxufMlh/Y48gSkh+bHa9P/8hYAHn+GH0f74E3GpZKx/44MDOFCcKS+gATKaXpMS2d8YgloB/oVG/aRKimLvm6UAGuUwXo/G+jRIYajjs2rDBQn48SDluQ3oN3QZx617re4LeL1uZP/ifcwSftC5227HmjJ9cR1+WyWvfYxYHBBZHpzA20ynGpjJDZZguCsamnPleWks6fsPSQazQi0VAVfn85of7EuXDjyXitand9u8RZsYdykfzJuO2dbmY/Y//mPrEVCa48IQj0TxyyGlDQL0/YAglA5Gq3uKoSAL5FZN3W1Tc8iSwR5QNkYWpM0KO/lgaq1BTm8cd5N0NOo2Ik5H5AiYurkw7U6Q1uV 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)(376002)(346002)(366004)(396003)(136003)(39860400002)(6486002)(54906003)(52116002)(6506007)(478600001)(316002)(6916009)(2906002)(44832011)(4326008)(8676002)(2616005)(8936002)(5660300002)(69590400007)(66476007)(66556008)(66946007)(6512007)(186003)(16526019)(86362001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: 6rkvfGN0ibVtRn+2pemm4yZQdWtbLWwnQm2IQUM4DSqIdm1xI364sTuzqMQHxnUgct+2c3rSXNIR62zfpVHJtb/MhF964WyntMXpIqmWeWMMvujENTZABrSXhGqva/XV7aTDNXdmV2Ak/VSZzfENGg7/0SBQ/nxCJU9P/4gLDvrzc4eNYitbaf/xQOQaTGWzcJa3T0CnbtDv8S5hLUgMLkc9Qt7p5xUfL51xe2VDGsYZ8Mo9FoYsyfOEdVsQDam3rZDhwJQlNPLq+z9apOuIOz1FydsJJZCu/qTOkdcncOEkLHEHX3l7aho36KGoLOCBPcJ7Wj+RketP40jdWdMIIdOynPgnUrjjrBsAleBdocN4ycscLJ/KNFSkcCgeeMn4DlwnhV/WgeoxQ6wn6JYiIKlE9EERjdkhDtweuylvqeAK2MbyyhI+/pqFhBDNSb8HL0yzyCUDkO5aIalj8dkxN/YrBc6nzWVGwEKjU/oxzvBcxpwkQ26XQ2pCvXXT/Rsp4NwnhsajhyucD6QviEG1a4uq3A3x4fAumjB9/B2VeKQxJtzhMB/TRwPE+89PM2aY X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4ee79924-4348-43e0-f277-08d801fc0787 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 May 2020 05:08:44.5959 (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: IyY6vhWkr8kBAF87letlU4mv5fd0kbp/UALm2XogH93D7cM5Zvk844Snqcj8kjuUJCYhsrqedCR3kshzgRWETQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB5412 Subject: [Buildroot] [PATCH v4 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 Wed May 27 05:07:48 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: 1298618 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=iCtgTWfR; 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 49WzQG22j3z9sSd for ; Wed, 27 May 2020 15:09:10 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 556718873F; Wed, 27 May 2020 05:09:08 +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 ZfPiGzIHXPji; Wed, 27 May 2020 05:09:06 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id C1F51885FF; Wed, 27 May 2020 05:09:06 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 66B681BF86C for ; Wed, 27 May 2020 05:08:57 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 612B681F17 for ; Wed, 27 May 2020 05:08:57 +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 HHRpTUWI8qTq for ; Wed, 27 May 2020 05:08:54 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70059.outbound.protection.outlook.com [40.107.7.59]) by whitealder.osuosl.org (Postfix) with ESMTPS id 108BE87CB1 for ; Wed, 27 May 2020 05:08:54 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aamgGf0Z7Csgq85bnCoxZqvszlk1tR8oUt0qIuRXPC4zrfbOWdq+y/l0aTly+PgO0JKmfqOIgTmX5sV/2EXQB5UMusNri7lpULN5tz+/kmTeFH2aRKhOaqy1vQx10Ic/kBAuGA2F/XVexMiyC/2zhgJU/npE3j3Y0pAYjhwFj8KcJiMm6kj4T2h1PXa2v3w2WCXH1SE4ZsBNWMn99lDe9PynHmp66oEfqNNa/WMKHfszpC2xKcCi+NSU9KfI7MxyvcFc1Iu5nXkJxJq3YABlqeBxBN2GE3/+Mt0yFbpA1sRzmv/IE/dOIVY24FjLdht03vRC0wKd8FzLaPYUDN9jgw== 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=Fgrc/busJFyUosHc3+YR6UQ7fruzJ3oMq9PWgUNYDFM=; b=XQkJphcMCBlv5rUDxrQ5PvIi/75lc5Gmd+uRtp5sBK9rYgU2pyZeJjivBkc93BH5M1CNcyRplIOgH4qvi09nWYbnAn/4gklY75ZrYnhGVfqfj7AQUsuycse7fiRGyrvuvJMtVQkQfV8x2dJoDtfZzmhFIMDNpcPR1dru572flg7LsQtnqcMPNewibcEJpFm+WZCZPL4MMmbEgtU1VxLiSzLjFX9EE/QSS+hbS8wHV3wZxbcxAHEE/JSO+6wt95jfQvcwptKG8AJGPTqnP5Je9jRz8dUiVMH15x1UrfQcuqC4tP/WGa/qFflTcHb5vhV/9za3/aGi4ozeBUbrqqAiAQ== 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=Fgrc/busJFyUosHc3+YR6UQ7fruzJ3oMq9PWgUNYDFM=; b=iCtgTWfRzRtDa1DrNbP6dHyoWA4/FgrnITaW2s9CNHBEkJQD/q4tKuZvqZ2OkjtEJF8KDXy6dgPdxq5QNrgWVvXJqaMgZEN/Uh4iTJ5k1RbzLTB8fcYpcS/o21AlRZtDDoqNgRQ6ZYHfwmYGkgVoZD7O1SkQpxtNHsJOg59hjJg= 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 AM0PR04MB5412.eurprd04.prod.outlook.com (2603:10a6:208:10f::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3021.23; Wed, 27 May 2020 05:08:45 +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; Wed, 27 May 2020 05:08:45 +0000 From: Stephane Viau To: buildroot@buildroot.org Date: Wed, 27 May 2020 07:07:48 +0200 Message-Id: <1590556068-7043-6-git-send-email-stephane.viau@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1590556068-7043-1-git-send-email-stephane.viau@oss.nxp.com> References: <1590556068-7043-1-git-send-email-stephane.viau@oss.nxp.com> X-ClientProxiedBy: PR0P264CA0199.FRAP264.PROD.OUTLOOK.COM (2603:10a6:100:1f::19) 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 PR0P264CA0199.FRAP264.PROD.OUTLOOK.COM (2603:10a6:100:1f::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3045.17 via Frontend Transport; Wed, 27 May 2020 05:08:44 +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: ae0a0bba-78a4-47df-5716-08d801fc0835 X-MS-TrafficTypeDiagnostic: AM0PR04MB5412: 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: 04163EF38A X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: tOz4PwX8j62gJQt/IgBfF1wa/Fe5oguyZhBDvpK1F5x4JX6uMIVr0OfpS+dzImJHnWMkzo/DIJ//63jSIu9ltzLBEUAjqCkD+MPbGM/VovsXfYjZlxGiWcwLxIh026ZXGCD1ONWcxpAUI6Rm8zNYTJl01FZaDGxMq7tWq26lpczJYdwkFPRyVhs02seFHA4PYgqnHc3fQ030cAB5Vz2aMc4H7RNCUUNWdEhXuTavqveAMWjK8mb44/AdXdMFZnioSlwvvDMQe8u9loEt4ImecHS+pt3hJbL/RAWsy8WdfLer+MFDjvzOb9B1xqwJ7qnVw8BdA0Mx6LivCBb0eLrZFSLi7KW2cS3j4YTVGuyMoReHBzbAWnFjFO660GWvOxK8XAhQZbIdY08RZrjqm1D0A6DfaWCJiuIlxMUqZa2iztF0QgdvYPFabASnZRYQuCRiuMpXkVFfQnjk/bSpzZS6uw== 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)(376002)(346002)(366004)(396003)(136003)(39860400002)(6486002)(54906003)(52116002)(6506007)(478600001)(316002)(966005)(6916009)(2906002)(44832011)(4326008)(8676002)(2616005)(8936002)(5660300002)(69590400007)(66476007)(66556008)(66946007)(6512007)(83380400001)(186003)(16526019)(86362001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: RJmsF8Ws/0putCoLRU+G4n7KeqaiTLE/r81VYypypUCs3onqZBEJQZqzlCikICOQTFQTw1mOy99pNyXdHiS8Rzi3m+gvtCHHfJbpUB5D1QFPHPcwkG+/xUsvI6X9tFJnw0wG+jU4kveAFbHHZkbCdetW8OWwYip/2YyvqNGO6GDmNYxGbq2QayPeaagg4GXxaPNY1BFxB2q7Lf7n16pOMWIM/eRtdaYwN+w1wTSVDxQmYM+ZbyP7DtfcnEA4RGC0wMbS/gnJJ4JM78+IFdAQVC+yqlUZJ6kbfBKez1HuDwGjWT0ngJ5N5bRv9/3K22hdU/F8bICZi9Y9XVdzsquHgciQtS4gd6qbUw1JPYkBixcaLZ1IVo7RtOO7MCK5ZAw/6pG/cGSgVHrwkGY/y8wCQcqv9gyOUHD9wofxh5LnT8JT5YlKaxBW4pkPg1+/KiHgh5hGIDEFpTMwMpTY9Q3cZ/hn2f3FLWB8eesieQBMDXlfQqPnzpTZedEW6YW46Yz7by7mN6PRW1TGiRJCRlVt6nQ3Z6kIDy+RCBpgxLZibmY= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: ae0a0bba-78a4-47df-5716-08d801fc0835 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 May 2020 05:08:45.6983 (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: EAmjWszeCjiSmVeXsTwzpoD41jVBvgUa6pY/WS5viQQRFlGyPwG/OZIrwJAowLSPlJahIFn9KqFie36E59MmrQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB5412 Subject: [Buildroot] [PATCH v4 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 99f47c3..27db106 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -2397,6 +2397,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