From patchwork Sun Nov 10 23:08:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Goucem X-Patchwork-Id: 1192692 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=fail (p=none dis=none) header.from=nxp.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.b="cChn1/dR"; 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 47BDFy5Q1tz9s4Y for ; Mon, 11 Nov 2019 12:44:54 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 1B22F81AE4; Mon, 11 Nov 2019 01:44:51 +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 9gdqlMywFxzW; Mon, 11 Nov 2019 01:44:47 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id C3B3B81F3F; Mon, 11 Nov 2019 01:44:47 +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 6546D1BF94B for ; Mon, 11 Nov 2019 01:44:46 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 5FA72842FF for ; Mon, 11 Nov 2019 01:44:46 +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 19tvM7wmZh_Y for ; Mon, 11 Nov 2019 01:44:44 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-eopbgr50083.outbound.protection.outlook.com [40.107.5.83]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 8D464841D4 for ; Mon, 11 Nov 2019 01:44:43 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=g5lcPq0GO8vMxTghw+jai6xZcHnK7zPXpI2K60VJUyPGnpOLL020WPCJx49ETnPE8Jsyr2pLoFcbyqARXSuMUsMfUt5bDIVrDTYpBiaOyZHq7VUJSkaBIFOjJSvL03e7W+vOkpY8VhVbNVnm8Vawzk+m+eZ2xaPoXXmeRfbTFV2C0hqy7nYGgKsLw9srxLeGjf8qKhXJ5xrEpAKRnDvgx1NwnQIBSDlHeOdOHZoAFxEo44F/1Xs97qq/aKTwVg7eDXYpZm1UKERqxWcvPzaIe3ZsFtUsdoEhoPeg3jClzf6AyZk+rfWr575Edv6EOdF3YYdIsNXMIOYorpTF2vPzIg== 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=Ptpd+ORvemuDoq5osgFx+jus1LTSOfSOkuhMUoitCFg=; b=OytkjQyq1Aj0yc3NTRkew7aa37vBN+KwLVXZvEGoGBcEYUw/kFCycUPvLJx0nCyMqXeGPevrjrvJ/vgmQjMqxLONOHHs4ZPSb4DKeV2Jpyh+Hl1cer9/mm91tEBDdS+J1Y0/an2X6zImjKr0yfsj8GKRqPzENYhGospMxFa2tCXl6rUItIzD/XUEzwXkOXYmnhATux8MmTMB0bC8MecFVindIVav6nEo+9GWsbrxUwtQC6gZdywJFTHn1IEqrGRaOpn3f6DnvtbHkYTGZDgkzJSzgJPDtAvSTdgLwPm3J4U+wGhRoeAAv/SgzvzH41J4BIBS9soGl2rhUdGsfsD6yA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Ptpd+ORvemuDoq5osgFx+jus1LTSOfSOkuhMUoitCFg=; b=cChn1/dRGv/gPTk54tuB/1oszldTfx/mCHvQd2OKzpjlatuxQfMnYFF8iOYo4j/tKm8/GO/6JblDjlt6/CFTv5jhcehf9TZJpxk1gaGcqwrfMIhRKg4jdELReCyMiW1w8n8Y0AwdX02pk9i+JzSmPArgf6Bg5NebnoWjx90K3Dw= Received: from AM6PR04MB6005.eurprd04.prod.outlook.com (20.178.92.205) by AM6PR04MB5317.eurprd04.prod.outlook.com (20.177.36.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2430.20; Sun, 10 Nov 2019 23:08:50 +0000 Received: from AM6PR04MB6005.eurprd04.prod.outlook.com ([fe80::d496:adfb:7247:1f77]) by AM6PR04MB6005.eurprd04.prod.outlook.com ([fe80::d496:adfb:7247:1f77%2]) with mapi id 15.20.2430.023; Sun, 10 Nov 2019 23:08:50 +0000 From: Fabrice Goucem To: "buildroot@buildroot.org" Thread-Topic: [PATCH v4 1/2] package/freescale-imx/imx-m4-demos: new package Thread-Index: AQHVmBvQlRa0gfsacEOzmJz6hO+wGw== Date: Sun, 10 Nov 2019 23:08:50 +0000 Message-ID: <20191110230831.11479-1-fabrice.goucem@nxp.com> References: <20191105120304.19928-1-fabrice.goucem@nxp.com> In-Reply-To: <20191105120304.19928-1-fabrice.goucem@nxp.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: SN4PR0801CA0016.namprd08.prod.outlook.com (2603:10b6:803:29::26) To AM6PR04MB6005.eurprd04.prod.outlook.com (2603:10a6:20b:94::13) x-mailer: git-send-email 2.24.0.rc1 authentication-results: spf=none (sender IP is ) smtp.mailfrom=fabrice.goucem@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [2a01:e35:8b02:1b00:e54e:9eb1:2405:d8d8] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 169edb28-3a00-4133-3b51-08d76632f2aa x-ms-traffictypediagnostic: AM6PR04MB5317:|AM6PR04MB5317: x-ms-exchange-purlcount: 1 x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5797; x-forefront-prvs: 02176E2458 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(366004)(136003)(39860400002)(396003)(346002)(376002)(189003)(199004)(66946007)(6116002)(99286004)(52116002)(7736002)(14454004)(5660300002)(305945005)(6916009)(966005)(186003)(25786009)(2906002)(478600001)(66446008)(64756008)(66556008)(66476007)(386003)(71200400001)(71190400001)(2351001)(36756003)(44832011)(86362001)(76176011)(4326008)(6306002)(6512007)(316002)(6486002)(486006)(6436002)(8936002)(11346002)(2616005)(446003)(476003)(1730700003)(81156014)(81166006)(8676002)(5640700003)(2501003)(6506007)(14444005)(256004)(102836004)(46003)(1076003)(50226002)(54906003); DIR:OUT; SFP:1101; SCL:1; SRVR:AM6PR04MB5317; H:AM6PR04MB6005.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: yIPvG39PrAUe3ARu3ULUdv1BUY2qY2ytVih4rF3yJKuT4WcSxbJbCvZjO4R0XIlhUzmTKMKIohdl9m0Q9E3mD+2YYTfndRS3Ye0sDFH73i2KmcA2nDpBct87POn4SL80EuCFjYaBELPcOU3K0HojYcfvhiOJwe2fBGUO/DDH2L6oIECwycVNlZsI8hY6SBW+D5UgdSYXea6yMy2xURX0tdm5Vo1sq//+4kwLo0INkw+r2Qr3HgIDKLXiTNrsY8Mr/0XTJ/JXHvFbnnp0orWwfalpMzAYXYilHdN/YaChtMwmgCrHKI4u2/0KbWhQSCwa67w6TvwWH7wKuZ9ODFKnzFBT0Eeaz/peE6lrDWpn8hZwy1e4zKxdek1m48F0bXrqJTtleHwPCiBr7FeH8t0wK6mz7dX1R31UQBxiT4OZkOBDXIV8NOI0cnOoHjgM2iH/hPHG13JKmKHJazbfPE4sJjKO2Z7ynQrqTahNtX0SXbw= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 169edb28-3a00-4133-3b51-08d76632f2aa X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Nov 2019 23:08:50.5632 (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: FOfqJngo3YZ9xuaXF+/2hYss9nNpqYKqoZSwQ1SP+fhXge7L3CDPa30DWEG/7gcKiVBcEDDOEf4tC8NWYgr9lA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR04MB5317 Subject: [Buildroot] [PATCH v4 1/2] package/freescale-imx/imx-m4-demos: new package 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 , Fabrice Goucem , Fabio Estevam , Julien Olivain Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" New package to download and install i.MX Cortex-M4 demos for following SoCs: * i.MX7D * i.MX7ULP * i.MX8M * i.MX8MM * i.MX8QXP Yocto recipes from where the demos location has been extracted: https://source.codeaurora.org/external/imx/meta-fsl-bsp-release/tree/imx/meta-sdk/recipes-fsl/m4-demos?h=imx-morty&id=bfb1e26798775f161b14218ac6f1d50069bea8ed Signed-off-by: Fabrice Goucem Tested-by: Julien Olivain --- DEVELOPERS | 3 + board/freescale/common/imx/post-image.sh | 14 +++- package/freescale-imx/Config.in | 8 +++ package/freescale-imx/imx-m4-demos/Config.in | 11 +++ .../imx-m4-demos/imx-m4-demos.hash | 8 +++ .../imx-m4-demos/imx-m4-demos.mk | 72 +++++++++++++++++++ 6 files changed, 115 insertions(+), 1 deletion(-) create mode 100644 package/freescale-imx/imx-m4-demos/Config.in create mode 100644 package/freescale-imx/imx-m4-demos/imx-m4-demos.hash create mode 100644 package/freescale-imx/imx-m4-demos/imx-m4-demos.mk diff --git a/DEVELOPERS b/DEVELOPERS index c0863aabc6..194e5249d0 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -874,6 +874,9 @@ F: package/tinydtls/ F: package/tinymembench/ F: package/whois/ +N: Fabrice Goucem +F: package/freescale-imx/imx-m4-firmware/ + N: Falco Hyfing F: package/python-pymodbus/ diff --git a/board/freescale/common/imx/post-image.sh b/board/freescale/common/imx/post-image.sh index 19d8fffb63..f9851c2d3b 100755 --- a/board/freescale/common/imx/post-image.sh +++ b/board/freescale/common/imx/post-image.sh @@ -30,6 +30,18 @@ linux_image() fi } +# +# m4_image prints all available M4 firmware file names for the genimage +# configuration file +# +m4_image() +{ + if grep -Eq "^BR2_PACKAGE_IMX_M4_FIRMWARE=y$" ${BR2_CONFIG}; then + echo -n ", " + for f in $(ls ${BINARIES_DIR}/m4_*); do echo -n "$(basename $f), "; done + fi +} + genimage_type() { if grep -Eq "^BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8M=y$" ${BR2_CONFIG}; then @@ -75,7 +87,7 @@ uboot_image() main() { - local FILES="$(dtb_list) $(linux_image)" + local FILES="$(dtb_list) $(linux_image) $(m4_image)" local IMXOFFSET="$(imx_offset)" local UBOOTBIN="$(uboot_image)" local GENIMAGE_CFG="$(mktemp --suffix genimage.cfg)" diff --git a/package/freescale-imx/Config.in b/package/freescale-imx/Config.in index f010aab87b..55cd53aa37 100644 --- a/package/freescale-imx/Config.in +++ b/package/freescale-imx/Config.in @@ -83,10 +83,18 @@ config BR2_PACKAGE_FREESCALE_IMX_HAS_VIV_GPU BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8M || \ BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MM +config BR2_PACKAGE_FREESCALE_IMX_HAS_M4 + bool + default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX7 || \ + BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8X || \ + BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8M || \ + BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MM + 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" source "package/freescale-imx/imx-lib/Config.in" +source "package/freescale-imx/imx-m4-demos/Config.in" source "package/freescale-imx/imx-m4fwloader/Config.in" source "package/freescale-imx/imx-parser/Config.in" source "package/freescale-imx/imx-uuc/Config.in" diff --git a/package/freescale-imx/imx-m4-demos/Config.in b/package/freescale-imx/imx-m4-demos/Config.in new file mode 100644 index 0000000000..fc2312d410 --- /dev/null +++ b/package/freescale-imx/imx-m4-demos/Config.in @@ -0,0 +1,11 @@ +comment "imx-m4-demos needs an i.MX platform with Cortex-M4" + depends on !BR2_PACKAGE_FREESCALE_IMX_HAS_M4 + +config BR2_PACKAGE_IMX_M4_DEMOS + bool "imx-m4-demos" + depends on BR2_PACKAGE_FREESCALE_IMX_HAS_M4 + help + Cortex-M4 firmware blobs for the Freescale i.MX SoCs. + + This library is provided by Freescale as-is and doesn't have + an upstream. diff --git a/package/freescale-imx/imx-m4-demos/imx-m4-demos.hash b/package/freescale-imx/imx-m4-demos/imx-m4-demos.hash new file mode 100644 index 0000000000..fdbf1ab608 --- /dev/null +++ b/package/freescale-imx/imx-m4-demos/imx-m4-demos.hash @@ -0,0 +1,8 @@ +# locally computed +sha256 cc00d3b936d49b2794a2a99e10129437e70caba3fd26b8379b8c50dd22f73254 imx7d-sabresd-m4-freertos-1.0.1.bin +sha256 e4efb9646b66df867f618bd8121e14afe17ebadea4a405a4df951d45d841e681 imx7ulp-m4-demo-2.6.0.bin +sha256 4e41e270506870e0fd2d53e3d69afdcf6d613d099b0da5c516a512944c5c12c3 imx8mm-m4-demo-2.5.0.bin +sha256 fd441e75395b0c6f90626c883ee8a93406b14e7d55adc7925116254394bb7ad8 imx8mq-m4-demo-2.3.0.bin +sha256 4e83d60e27cd8ad67d4174ad3082a5f4a06b7df93571cfd2274615cbdf66eb6c imx8qx-m4-demo-2.5.0.bin + +# no hash for license file as it is different for each package listed above diff --git a/package/freescale-imx/imx-m4-demos/imx-m4-demos.mk b/package/freescale-imx/imx-m4-demos/imx-m4-demos.mk new file mode 100644 index 0000000000..6d08dcc8f8 --- /dev/null +++ b/package/freescale-imx/imx-m4-demos/imx-m4-demos.mk @@ -0,0 +1,72 @@ +################################################################################ +# +# imx-m4-demos +# +################################################################################ + +IMX_M4_DEMOS_SITE = $(FREESCALE_IMX_SITE) + +IMX_M4_DEMOS_LICENSE = NXP Semiconductor Software License Agreement +IMX_M4_DEMOS_LICENSE_FILES = COPYING +IMX_M4_DEMOS_REDISTRIBUTE = NO + +define IMX_M4_DEMOS_EXTRACT_CMDS + $(call FREESCALE_IMX_EXTRACT_HELPER,$(IMX_M4_DEMOS_DL_DIR)/$(IMX_M4_DEMOS_SOURCE)) +endef + +# Note: firmware names are copied to binaries directory with an "m4_" prefix, for easier post image scripting + +ifeq ($(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX7ULP),y) +IMX_M4_DEMOS_VERSION = 2.6.0 +IMX_M4_DEMOS_SOURCE = imx7ulp-m4-demo-$(IMX_M4_DEMOS_VERSION).bin +IMX_M4_DEMOS_INSTALL_IMAGES = YES +define IMX_M4_DEMOS_INSTALL_IMAGES_CMDS + cp $(@D)/imx7ulp_erpc_matrix_multiply_rpmsg_rtos_imxcm4.img $(BINARIES_DIR)/m4_imx7ulp_erpc_matrix_multiply_rpmsg_rtos_imxcm4.img + cp $(@D)/imx7ulp_m4_demo.img $(BINARIES_DIR)/m4_imx7ulp_m4_demo.img + cp $(@D)/imx7ulp_rpmsg_lite_pingpong_rtos.img $(BINARIES_DIR)/m4_imx7ulp_rpmsg_lite_pingpong_rtos.img + cp $(@D)/imx7ulp_rpmsg_lite_str_echo_rtos.img $(BINARIES_DIR)/m4_imx7ulp_rpmsg_lite_str_echo_rtos.img + cp $(@D)/imx7ulp_wireless_uart_bridge.img $(BINARIES_DIR)/m4_imx7ulp_wireless_uart_bridge.img +endef +else ifeq ($(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX7),y) +IMX_M4_DEMOS_VERSION = 1.0.1 +IMX_M4_DEMOS_SOURCE = imx7d-sabresd-m4-freertos-$(IMX_M4_DEMOS_VERSION).bin +IMX_M4_DEMOS_INSTALL_IMAGES = YES +define IMX_M4_DEMOS_INSTALL_IMAGES_CMDS + cp $(@D)/imx7d_sabresd_m4_TCM_helloworld.bin $(BINARIES_DIR)/m4_imx7d_sabresd_m4_TCM_helloworld.bin + cp $(@D)/imx7d_sabresd_m4_TCM_mcctty.bin $(BINARIES_DIR)/m4_imx7d_sabresd_m4_TCM_mcctty.bin + cp $(@D)/imx7d_sabresd_m4_TCM_Pingpang.bin $(BINARIES_DIR)/m4_imx7d_sabresd_m4_TCM_Pingpang.bin +endef +else ifeq ($(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8X),y) +IMX_M4_DEMOS_VERSION = 2.5.0 +IMX_M4_DEMOS_SOURCE = imx8qx-m4-demo-$(IMX_M4_DEMOS_VERSION).bin +IMX_M4_DEMOS_INSTALL_IMAGES = YES +define IMX_M4_DEMOS_INSTALL_IMAGES_CMDS + cp $(@D)/imx8qx_m4_TCM_hello_world.bin $(BINARIES_DIR)/m4_imx8qx_m4_TCM_hello_world.bin + cp $(@D)/imx8qx_m4_TCM_power_mode_switch.bin $(BINARIES_DIR)/m4_imx8qx_m4_TCM_power_mode_switch.bin + cp $(@D)/imx8qx_m4_TCM_rear_view_camera.bin $(BINARIES_DIR)/m4_imx8qx_m4_TCM_rear_view_camera.bin + cp $(@D)/imx8qx_m4_TCM_rpmsg_lite_pingpong_rtos_linux_remote.bin $(BINARIES_DIR)/m4_imx8qx_m4_TCM_rpmsg_lite_pingpong_rtos_linux_remote.bin + cp $(@D)/imx8qx_m4_TCM_rpmsg_lite_str_echo_rtos.bin $(BINARIES_DIR)/m4_imx8qx_m4_TCM_rpmsg_lite_str_echo_rtos.bin + cp $(@D)/imx8qx_m4_TCM_srtm_demo.bin $(BINARIES_DIR)/m4_imx8qx_m4_TCM_srtm_demo.bin +endef +else ifeq ($(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8M),y) +IMX_M4_DEMOS_VERSION = 2.3.0 +IMX_M4_DEMOS_SOURCE = imx8mq-m4-demo-$(IMX_M4_DEMOS_VERSION).bin +IMX_M4_DEMOS_INSTALL_IMAGES = YES +define IMX_M4_DEMOS_INSTALL_IMAGES_CMDS + cp $(@D)/imx8mq_m4_TCM_hello_world.bin $(BINARIES_DIR)/m4_imx8mq_m4_TCM_hello_world.bin + cp $(@D)/imx8mq_m4_TCM_rpmsg_lite_pingpong_rtos_linux_remote.bin $(BINARIES_DIR)/m4_imx8mq_m4_TCM_rpmsg_lite_pingpong_rtos_linux_remote.bin + cp $(@D)/imx8mq_m4_TCM_rpmsg_lite_str_echo_rtos.bin $(BINARIES_DIR)/m4_imx8mq_m4_TCM_rpmsg_lite_str_echo_rtos.bin +endef +else ifeq ($(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MM),y) +IMX_M4_DEMOS_VERSION = 2.5.0 +IMX_M4_DEMOS_SOURCE = imx8mm-m4-demo-$(IMX_M4_DEMOS_VERSION).bin +IMX_M4_DEMOS_INSTALL_IMAGES = YES +define IMX_M4_DEMOS_INSTALL_IMAGES_CMDS + cp $(@D)/imx8mm_m4_TCM_hello_world.bin $(BINARIES_DIR)/m4_imx8mm_m4_TCM_hello_world.bin + cp $(@D)/imx8mm_m4_TCM_rpmsg_lite_pingpong_rtos_linux_remote.bin $(BINARIES_DIR)/m4_imx8mm_m4_TCM_rpmsg_lite_pingpong_rtos_linux_remote.bin + cp $(@D)/imx8mm_m4_TCM_rpmsg_lite_str_echo_rtos.bin $(BINARIES_DIR)/m4_imx8mm_m4_TCM_rpmsg_lite_str_echo_rtos.bin + cp $(@D)/imx8mm_m4_TCM_sai_low_power_audio.bin $(BINARIES_DIR)/m4_imx8mm_m4_TCM_sai_low_power_audio.bin +endef +endif + +$(eval $(generic-package)) From patchwork Sun Nov 10 23:08:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Goucem X-Patchwork-Id: 1192691 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=fail (p=none dis=none) header.from=nxp.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.b="bBAglQ0F"; 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 47BDCB4kP0z9s4Y for ; Mon, 11 Nov 2019 12:42:28 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id EB0D687985; Mon, 11 Nov 2019 01:42: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 bqjIbXBk3a-L; Mon, 11 Nov 2019 01:42:19 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 1ECEE87482; Mon, 11 Nov 2019 01:42:19 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 5839E1BF94B for ; Mon, 11 Nov 2019 01:42:18 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 4CDB920C45 for ; Mon, 11 Nov 2019 01:42:18 +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 AKwSWmhfjSBY for ; Mon, 11 Nov 2019 01:42:15 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-eopbgr50086.outbound.protection.outlook.com [40.107.5.86]) by silver.osuosl.org (Postfix) with ESMTPS id 029E62048C for ; Mon, 11 Nov 2019 01:42:14 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=W5UCU/Vna40RuQoo+J5SW9J6q7FYSaMUCgd6Yi7dzvUYsRjju3Pi+9z6ZzO5Eu8ZSnPNgOC0Ilh7S4RaIpZXX1coUkpPAVTb3tEsYPJNQb33EXSOJgJp13AzSqdgUBu9uLkL+H/Lgjc8yXtSG8TQQtoMiakWdPMG5NDRSS9QNI+JERQiLGPWlID1chBaWPkWkbid94s/th2v2QIPJdotaiNGAT5N9Vyp5m79rx1GRcExgcXVCI8X8ZD7dc0kUtZmyFssUaq6FWztD1NgK05DkLkXeIKgoOQazuKkMrMUFSnuuLpjBJ4TA8s77J46+MuCtCti4JfHzWwpbze/q5rc1g== 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=G4KsMgyzhgjXmdWWgqv+9/N9eWwEXx4lxhqr8KBGs+Y=; b=dfEshHUAy83rNRkmOfB84vV/EvS6nhCBf3MvqGNLWbCcvmohkrxG9PvaOukqSTEhCcHaKdLcZzMWjfjNHXvwesjCxahHLnF8XAyfA1034hjJRGdreYa2iW8kZeb3K6+UOhgXf2xZLgYmIcjkAHz152MA0sOwOZderLSSP+6K6x2s+AL33IB15xBubriItMI5LubrTybVDBzFL7zpUVScXtwBHEE2LKa5QV76hxmL6u1MaAFaOsfA9V00oY7UknPGTi+SgmKp3oRQ+fo2/4PO0mBr3R3WkiKCumI54Rtzn5MCccGmNk6Hb9Ig5MiQ7vDappVLo8dzKEq2clMZ/vongg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=G4KsMgyzhgjXmdWWgqv+9/N9eWwEXx4lxhqr8KBGs+Y=; b=bBAglQ0FNnzgQ/9QBPbYFltHJitlSgksN/nSPE+KmyEhhwrz8kUaIsdsrv9MgL4LSeAZLIcbYRKrZal3Rfrl2blO9+G1K8Ze0Juhawf4+QtwjYvQcACYIshDmltzxhBi26jyfPe6IO70923D7z3N2qzpNgc+YlFdVjw0/Vj74pw= Received: from AM6PR04MB6005.eurprd04.prod.outlook.com (20.178.92.205) by AM6PR04MB5317.eurprd04.prod.outlook.com (20.177.36.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2430.20; Sun, 10 Nov 2019 23:08:55 +0000 Received: from AM6PR04MB6005.eurprd04.prod.outlook.com ([fe80::d496:adfb:7247:1f77]) by AM6PR04MB6005.eurprd04.prod.outlook.com ([fe80::d496:adfb:7247:1f77%2]) with mapi id 15.20.2430.023; Sun, 10 Nov 2019 23:08:55 +0000 From: Fabrice Goucem To: "buildroot@buildroot.org" Thread-Topic: [PATCH v4 2/2] configs/freescale_imx7ulpevk: new defconfig Thread-Index: AQHVmBvTeumOVCZ5d0+uH5nq54tOgw== Date: Sun, 10 Nov 2019 23:08:54 +0000 Message-ID: <20191110230831.11479-2-fabrice.goucem@nxp.com> References: <20191105120304.19928-1-fabrice.goucem@nxp.com> <20191110230831.11479-1-fabrice.goucem@nxp.com> In-Reply-To: <20191110230831.11479-1-fabrice.goucem@nxp.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: SN4PR0801CA0016.namprd08.prod.outlook.com (2603:10b6:803:29::26) To AM6PR04MB6005.eurprd04.prod.outlook.com (2603:10a6:20b:94::13) x-mailer: git-send-email 2.24.0.rc1 authentication-results: spf=none (sender IP is ) smtp.mailfrom=fabrice.goucem@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [2a01:e35:8b02:1b00:e54e:9eb1:2405:d8d8] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: b9d02016-b836-4a61-d798-08d76632f552 x-ms-traffictypediagnostic: AM6PR04MB5317:|AM6PR04MB5317: x-ms-exchange-purlcount: 4 x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1013; x-forefront-prvs: 02176E2458 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(366004)(136003)(39860400002)(396003)(346002)(376002)(189003)(199004)(66946007)(6116002)(99286004)(52116002)(7736002)(14454004)(5660300002)(305945005)(6916009)(966005)(186003)(25786009)(2906002)(478600001)(66446008)(64756008)(66556008)(66476007)(386003)(71200400001)(71190400001)(2351001)(36756003)(44832011)(86362001)(76176011)(4326008)(6306002)(6512007)(316002)(6486002)(486006)(6436002)(8936002)(11346002)(2616005)(446003)(476003)(1730700003)(81156014)(81166006)(8676002)(5640700003)(2501003)(6506007)(14444005)(256004)(102836004)(46003)(1076003)(50226002)(54906003); DIR:OUT; SFP:1101; SCL:1; SRVR:AM6PR04MB5317; H:AM6PR04MB6005.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: eCQd0pk0I31RE/DS+Zq24a4F2kgDcSeV0aFg0NjzYuXGYskQqbPQx8YQ4MqcCXVCV9OPx6k2SPw3N3Y6qEM1qClpjw4RyhkNPMRE2ReEQNOc79YGDU5StP+0qo4rmXCwgW/ARb0BFuZZ1YBCVO9K/zl72Qon3uaSn3QJmaxT2Immu7ur513TYR39iEDSzYoqL/4wFxN6qPTh99f6b5oPtdIccClSX5WyBLcqVdfTyemG91h0xwgx/mRAAqYd5LKorpk8sabyQGi2NAnBQiPcATx3MvKzl1wmRhMkqGj8HxsSCes1zJhIdkCkhVRY+k66cykf+kRcBNo6Hqfs/kIumnhPwVcSzRYeR3VT8pGJRlMqM75GfcwILKzz4re3xLHWmbUM1o9OmL4XBCsMtGQ49djdtiCBreFtYmnxpzZnN6r7zF7Tx/zp9GE6G9Q38jvT3Jj1eDpv+7M7gjYMkMcQwSegFpmRXyYn65yaLhTcFd0= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b9d02016-b836-4a61-d798-08d76632f552 X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Nov 2019 23:08:54.9517 (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: IdGP7iMZtDOcdw51C3svoOF6W7u+QT9dhYDBR/i3A3U/jVyQPu5gNWbs/mnuAqXq6mdhPTzTtfhpsmq35ERI/Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR04MB5317 Subject: [Buildroot] [PATCH v4 2/2] configs/freescale_imx7ulpevk: 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 , Fabrice Goucem , Fabio Estevam Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Add basic support for NXP's i.MX7 ULP EVK board: https://www.nxp.com/design/development-boards/i.mx-evaluation-and-development-boards/evaluation-kit-for-the-i.mx-7ulp-applications-processor:MCIMX7ULP-EVK Signed-off-by: Fabrice Goucem --- Changes v3 -> v4: - Renamed M4 package to imx-m4-demos (suggested by Gary Bisson) - Added link to m4-demos Yocto recipes in commit log (suggested by Gary Bisson) Signed-off-by: Fabrice Goucem --- .gitlab-ci.yml | 1 + DEVELOPERS | 2 + board/freescale/imx7ulpevk/readme.txt | 76 ++++++++++++++++++++++++++ configs/freescale_imx7ulpevk_defconfig | 28 ++++++++++ package/freescale-imx/Config.in | 8 ++- 5 files changed, 114 insertions(+), 1 deletion(-) create mode 100644 board/freescale/imx7ulpevk/readme.txt create mode 100644 configs/freescale_imx7ulpevk_defconfig diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1d71257a20..74ee5b732e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -177,6 +177,7 @@ freescale_imx6qsabreauto_defconfig: { extends: .defconfig } freescale_imx6qsabresd_defconfig: { extends: .defconfig } freescale_imx6sxsabresd_defconfig: { extends: .defconfig } freescale_imx7dsabresd_defconfig: { extends: .defconfig } +freescale_imx7ulpevk_defconfig: { extends: .defconfig } freescale_imx8mmevk_defconfig: { extends: .defconfig } freescale_imx8mqevk_defconfig: { extends: .defconfig } freescale_imx8qxpmek_defconfig: { extends: .defconfig } diff --git a/DEVELOPERS b/DEVELOPERS index 194e5249d0..2205a49000 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -875,6 +875,8 @@ F: package/tinymembench/ F: package/whois/ N: Fabrice Goucem +F: board/freescale/imx7ulpevk/ +F: configs/freescale_imx7ulpevk_defconfig F: package/freescale-imx/imx-m4-firmware/ N: Falco Hyfing diff --git a/board/freescale/imx7ulpevk/readme.txt b/board/freescale/imx7ulpevk/readme.txt new file mode 100644 index 0000000000..a2aa68b46f --- /dev/null +++ b/board/freescale/imx7ulpevk/readme.txt @@ -0,0 +1,76 @@ +**************************** +Freescale i.MX7ULP EVK board +**************************** + +This file documents the Buildroot support for the Freescale i.MX7ULP EVK board. + +Build +===== + +First, configure Buildroot for your i.MX7ULP EVK board: + + make freescale_imx7ulpevk_defconfig + +Build all components: + + make + +You will find in output/images/ the following files: + - boot.vfat + - imx7ulp-evkb.dtb + - m4_imx7ulp_erpc_matrix_multiply_rpmsg_rtos_imxcm4.img + - m4_imx7ulp_m4_demo.img + - m4_imx7ulp_rpmsg_lite_pingpong_rtos.img + - m4_imx7ulp_rpmsg_lite_str_echo_rtos.img + - m4_imx7ulp_wireless_uart_bridge.img + - rootfs.ext2 + - rootfs.ext4 + - rootfs.tar + - sdcard.img + - u-boot.imx + - zImage + +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. + +Flash QSPI with Cortex-M4 firmware +================================== + +Cortex-M4 firmware can be flashed onto QSPI NOR memory. +To do so, stop at u-boot prompt and run the following commands: + + sf probe + sf erase 0 30000 + fatload mmc 0 62000000 m4_imx7ulp_m4_demo.img + sf write 62000000 0 30000 + +Boot the i.MX7ULP EVK board +=========================== + +To boot your newly created system (refer to the i.MX 7ULP EVK Quick Start Guide [1] for guidance): +- insert the SD card in the micro SD slot of the board; +- 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/docs/en/user-guide/IMX7ULPQSG.pdf diff --git a/configs/freescale_imx7ulpevk_defconfig b/configs/freescale_imx7ulpevk_defconfig new file mode 100644 index 0000000000..7998eb04ad --- /dev/null +++ b/configs/freescale_imx7ulpevk_defconfig @@ -0,0 +1,28 @@ +BR2_arm=y +BR2_cortex_a7=y +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_19=y +BR2_TARGET_GENERIC_GETTY_PORT="ttyLP0" +BR2_ROOTFS_POST_IMAGE_SCRIPT="board/freescale/common/imx/post-image.sh" +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_CUSTOM_GIT=y +BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://source.codeaurora.org/external/imx/linux-imx.git" +BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="rel_imx_4.19.35_1.0.0" +BR2_LINUX_KERNEL_DEFCONFIG="imx_v7" +BR2_LINUX_KERNEL_DTS_SUPPORT=y +BR2_LINUX_KERNEL_INTREE_DTS_NAME="imx7ulp-evkb" +BR2_PACKAGE_FREESCALE_IMX=y +BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX7ULP=y +BR2_PACKAGE_IMX_M4_DEMOS=y +BR2_TARGET_ROOTFS_EXT2=y +BR2_TARGET_ROOTFS_EXT2_4=y +BR2_TARGET_UBOOT=y +BR2_TARGET_UBOOT_BOARDNAME="mx7ulp_evk" +BR2_TARGET_UBOOT_CUSTOM_GIT=y +BR2_TARGET_UBOOT_CUSTOM_REPO_URL="https://source.codeaurora.org/external/imx/uboot-imx.git" +BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="rel_imx_4.19.35_1.0.0" +BR2_TARGET_UBOOT_NEEDS_DTC=y +# BR2_TARGET_UBOOT_FORMAT_BIN is not set +BR2_TARGET_UBOOT_FORMAT_IMX=y +BR2_PACKAGE_HOST_DOSFSTOOLS=y +BR2_PACKAGE_HOST_GENIMAGE=y +BR2_PACKAGE_HOST_MTOOLS=y diff --git a/package/freescale-imx/Config.in b/package/freescale-imx/Config.in index 55cd53aa37..639b789ebe 100644 --- a/package/freescale-imx/Config.in +++ b/package/freescale-imx/Config.in @@ -38,7 +38,10 @@ config BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX6UL bool "imx6ul/imx6ull" config BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX7 - bool "imx7d/imx7ulp" + bool "imx7d" + +config BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX7ULP + bool "imx7ulp" config BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8M bool "imx8m" @@ -62,6 +65,7 @@ config BR2_PACKAGE_FREESCALE_IMX_PLATFORM default "IMX6S" if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX6S default "IMX6UL" if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX6UL default "IMX7" if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX7 + default "IMX7ULP" if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX7ULP default "IMX8" if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8M config BR2_PACKAGE_FREESCALE_IMX_HAS_VPU @@ -80,12 +84,14 @@ config BR2_PACKAGE_FREESCALE_IMX_HAS_VIV_GPU default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX6Q || \ BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX6S || \ BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX7 || \ + BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX7ULP || \ BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8M || \ BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MM config BR2_PACKAGE_FREESCALE_IMX_HAS_M4 bool default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX7 || \ + BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX7ULP || \ BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8X || \ BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8M || \ BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MM