From patchwork Tue Jul 28 16:00:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Goucem X-Patchwork-Id: 1337918 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=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=GOUsiZA1; 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 4BGMfk6VLrz9sSd for ; Wed, 29 Jul 2020 02:33:02 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id E70E18808C; Tue, 28 Jul 2020 16:33:00 +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 AJdpQ+e0v5wl; Tue, 28 Jul 2020 16:32:57 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 55F1588085; Tue, 28 Jul 2020 16:32:56 +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 C60291BF29E for ; Tue, 28 Jul 2020 16:32:54 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id BFB9986A8F for ; Tue, 28 Jul 2020 16:32:54 +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 IyAOSkidUZVU for ; Tue, 28 Jul 2020 16:32:53 +0000 (UTC) X-Greylist: delayed 00:17:36 by SQLgrey-1.7.6 Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00087.outbound.protection.outlook.com [40.107.0.87]) by fraxinus.osuosl.org (Postfix) with ESMTPS id B9DB586AAA for ; Tue, 28 Jul 2020 16:32:52 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XBw4v6iD9aPIbck0yzjEr+xBYo6WNlKMbLTIw+K9ikS/YLH60pEd6o9DrXk9JsIoruYJ+i9FFjF4e5GxGpMN+jO6kOiKkDuJBZiP+1rF5Jvsp0WKk/L/6tsXwPYB16lkliwuqjOOCKL5BoXPDHif3LiDz9VOpE3fcu8Tc7yQMAgFM8McuuZl1iG4m1Paj1t5W6UelfpmvbxqxU0LwwTYMjEHfUBjJS34fedQC3I9WfU7gfm5xxIxzlPguUdkaKqGwfWYVdK6URchFyNasdAAYRhUO/l8RP+F10fcaY5sB8t/VzsDx0XdFoWt9tnqOyECfXW5zaEfmGzcLVsDSUP9aw== 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=J6vZHZCXCtsa/HRHnuhticeWydHolg+cmCvjsaP6nVI=; b=i6zszJlwCfHmWPj2FVPcuFd2Rg/zPEo0eLdO/u9fdOqnU3JtygFtyF9soNSQaasLU4/xPp+oNq7lEYFJW7tEEP7GljU5ZhnaX7BGwSuqe7WKb3oUpYPEs05f7R+ELdu78XUB6qQfs403wEEl7xTpwQCCYX7h5Dx+0Yiinl9SSFCtgLAhZeekXE/K5OT1+jySwgV//GU/YvEQrrHKZVbYaTFHkQ6ORa4VWoCUXh6iBfHupcSVpcuHk3w3kTa9Xx270yYZuHZij9K+t+IfwDKOJXXfwIVjSD/I+vZpri9/ughuEnIXW375lFWTqiIO3IDOwVJEngrvisAPwCL9fKhPvQ== 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=J6vZHZCXCtsa/HRHnuhticeWydHolg+cmCvjsaP6nVI=; b=GOUsiZA1Wq/41OPdf4xN5dUPnY5mujUnozEpTxUcLlK7AXutb8h047/mrkplaHNqJjbR5NYuaet7XinohZ1ldcGb3XJOQod859QghD/vV38VK1rCKpo+Qngp5BI9V6ZRq3/aIW2dPYEvKHPi502fkw05bOQ8ZPESRZ9hvTJQ1xc= 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 VI1PR04MB6943.eurprd04.prod.outlook.com (2603:10a6:803:13a::16) by VI1PR04MB7104.eurprd04.prod.outlook.com (2603:10a6:800:126::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3216.26; Tue, 28 Jul 2020 16:01:00 +0000 Received: from VI1PR04MB6943.eurprd04.prod.outlook.com ([fe80::bdd6:ff62:e1ee:a5b3]) by VI1PR04MB6943.eurprd04.prod.outlook.com ([fe80::bdd6:ff62:e1ee:a5b3%6]) with mapi id 15.20.3216.033; Tue, 28 Jul 2020 16:01:00 +0000 From: Fabrice Goucem To: buildroot@buildroot.org Date: Tue, 28 Jul 2020 18:00:41 +0200 Message-Id: <20200728160041.520201-2-fabrice.goucem@oss.nxp.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200728160041.520201-1-fabrice.goucem@oss.nxp.com> References: <20200728160041.520201-1-fabrice.goucem@oss.nxp.com> X-ClientProxiedBy: AM0PR10CA0011.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:208:17c::21) To VI1PR04MB6943.eurprd04.prod.outlook.com (2603:10a6:803:13a::16) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from b47180-l-01.ea.freescale.net (81.1.10.98) by AM0PR10CA0011.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:208:17c::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3216.22 via Frontend Transport; Tue, 28 Jul 2020 16:00:59 +0000 X-Mailer: git-send-email 2.27.0 X-Originating-IP: [81.1.10.98] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: afd2908d-38dc-4090-704d-08d8330f6c29 X-MS-TrafficTypeDiagnostic: VI1PR04MB7104: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:813; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: DHItfyrxa7DfoLJ2ceJmj2/SmrgMyPQ6tkpsrk7EshG6EojgDNAE0rdfoMV8MB92RoT3RwOY37MnCWC/OOmI2HyA/LgF13ezDlHGL7g9J/ps5aUpKxuhQcraZSKtP3nd3v5PzCGXCrL8j+QXwY5rOxfK4179fERg8TAsLs50gUVwNSWm5z6ehCfsujSEWRC0DPwgk6JUhOTdW6pDjJpwx89b1/ZcwpmGrn1GiR2Pzfmq2XRBcde1ak0z2nc5Ff8PG/3QTru8j031K1fJzr8zL095myPezGp+7mF6CGT9X8AOHKUDjht73XIsrWN6SK2A40JUh/MrnUEowr80DVPjdUny+gahZe+peuLssuHbvbtzd6sSQa2is7V2vCbWAxAK6pFAExElw66I5kJqPGFQdA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR04MB6943.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(136003)(376002)(346002)(396003)(366004)(39860400002)(8676002)(6666004)(2906002)(316002)(6512007)(52116002)(44832011)(66556008)(66476007)(66946007)(966005)(6506007)(6916009)(1076003)(86362001)(478600001)(8936002)(186003)(54906003)(16526019)(956004)(4326008)(83380400001)(2616005)(5660300002)(6486002)(26005); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: N8V0BbTxYXyOcT1PVKNO2NFHkVY+iWUZSflEkmAQeS/ZRJvlC+XjbiEnBa5qe1fp4vt1vv9wPoLGp+rBLd9e8fQ8UGoL5MiYZmSNzRR1IFe0gt3MVxmVvapq1R7GM573H5ffXZNWP1e0E06joO9dMh901GbgW6Ft+OzeQnMsy/OW+K8hXR+Bsp+BxXPMsbvKVZia5lvytB3FX597R8tIoeicpOI+go2LnXjg2Cw5hipts2qZpraF2qyCFbNhkMFgs54bUYSo/CyKIBDsrcykuEkaC+GKf3kieB5Gb0cJubfV6qe3BEYKpLFCQBvZWPNaAIQAiqVfNgjOYEDDW7CwUoN4p3RlPlgsmhBGaYOjbm8/5V3JeieCbSZlz7FhlQRCZ2CQ0NrQZf9Xy+6Z2utC9uNn9+KT3+x6ap7GxlWEEMRVKu7leemBu7SG0/glKQzixiOWNu2gBcGZCnE0eRmwmYepVmyXder5SrsW40EsmAk= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: afd2908d-38dc-4090-704d-08d8330f6c29 X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB6943.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Jul 2020 16:01:00.7664 (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: v22fvNL5KzDMp7rvzIQrXb10DmjLNsGhEYZdyjlC/EZ/Lqj6MYURByeqYdmjrv4DFODD0ooqX3eaha1aujXGNA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB7104 Subject: [Buildroot] [PATCH 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: Fabrice Goucem , Gary Bisson , Fabrice Goucem , Fabio Estevam , Refik Tuzakli 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 v5 -> v6: - Enable flag BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL - Bump Linux and u-boot to rel_imx_5.4.24-2.1.0 - Update URL for Quick Start Guide - Email address update Signed-off-by: Fabrice Goucem --- DEVELOPERS | 2 + board/freescale/imx7ulpevk/readme.txt | 76 ++++++++++++++++++++++++++ configs/freescale_imx7ulpevk_defconfig | 29 ++++++++++ package/freescale-imx/Config.in | 8 ++- 4 files changed, 114 insertions(+), 1 deletion(-) create mode 100644 board/freescale/imx7ulpevk/readme.txt create mode 100644 configs/freescale_imx7ulpevk_defconfig diff --git a/DEVELOPERS b/DEVELOPERS index 5e24b55167..e29840c371 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -907,7 +907,9 @@ F: package/whois/ N: Fabrice Goucem F: board/freescale/imx6ullevk/ +F: board/freescale/imx7ulpevk/ F: configs/freescale_imx6ullevk_defconfig +F: configs/freescale_imx7ulpevk_defconfig F: package/freescale-imx/imx-m4-demos/ N: Falco Hyfing diff --git a/board/freescale/imx7ulpevk/readme.txt b/board/freescale/imx7ulpevk/readme.txt new file mode 100644 index 0000000000..2e813f36b6 --- /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 demo +============================== + +Cortex-M4 image must 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_rpmsg_lite_pingpong_rtos.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/document/guide/get-started-with-the-mcimx7ulp-evk:GS-MCIMX7ULP-EVK diff --git a/configs/freescale_imx7ulpevk_defconfig b/configs/freescale_imx7ulpevk_defconfig new file mode 100644 index 0000000000..816e90a0f4 --- /dev/null +++ b/configs/freescale_imx7ulpevk_defconfig @@ -0,0 +1,29 @@ +BR2_arm=y +BR2_cortex_a7=y +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_4=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_5.4.24_2.1.0" +BR2_LINUX_KERNEL_DEFCONFIG="imx_v7" +BR2_LINUX_KERNEL_DTS_SUPPORT=y +BR2_LINUX_KERNEL_INTREE_DTS_NAME="imx7ulp-evkb" +BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y +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_5.4.24_2.1.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 b95de54f4c..fbcab8c33d 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_IMX8 bool "imx8" @@ -68,6 +71,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_IMX8 default "IMX8MQ" if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8M default "IMX8MM" if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MM @@ -90,6 +94,7 @@ 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_IMX8 || \ BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8M || \ BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MM || \ @@ -99,6 +104,7 @@ config BR2_PACKAGE_FREESCALE_IMX_HAS_VIV_GPU 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_IMX8 || \ BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8M || \ BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MM || \