From patchwork Fri Jul 31 12:13:33 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Goucem X-Patchwork-Id: 1339429 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=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=WoVOR3Nj; 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 4BJ6710p45z9s1x for ; Fri, 31 Jul 2020 22:30:05 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 938D88869D; Fri, 31 Jul 2020 12:30:02 +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 hgtAFrMnb3QR; Fri, 31 Jul 2020 12:30:01 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id E10E8885C6; Fri, 31 Jul 2020 12:30:00 +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 8D6CF1BF28F for ; Fri, 31 Jul 2020 12:29:59 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 8A11788672 for ; Fri, 31 Jul 2020 12:29:59 +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 NDvey4uBVRjz for ; Fri, 31 Jul 2020 12:29:57 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80053.outbound.protection.outlook.com [40.107.8.53]) by whitealder.osuosl.org (Postfix) with ESMTPS id 430F18866F for ; Fri, 31 Jul 2020 12:29:57 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TKAMLZGiQNE/9lJTMUYEHyrzR5K1J2yodLB5NkvHgxukARZb58VwxaplpHIIz7+hzIR0WHl5IOZ9URyO9nUbpS2sknVjsN6+Jg++wmD0+LEMIbhVnnJF46ZdP5wOAlqu8c2HnOpe0+HHIdjGN+FztWG6tU1H5wM299yhcR/p+6qTAYLBftmFVsr4IBR7BJwVh3UYYazFfs/05ZYQWRJZKOHNjNmwDQqecJsovKsWXlwjbB42o9fLNioUAVh1mDn6tB/mihnPUB9XZvq4lk1EUIVy7Tgy1tyHjf+38aebh+wEJr5qLKJ5pYMTjyQR0nR0bcsOzpYP3CZYaZtvJF+dAA== 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=ejHcLkGrrvPu/w4dzYw7MNYJXPR2Ciga+2LEdF2xNbM=; b=H8zeK/PLc9aZfqXaFtpl1ma9aBP5WmPcx7+FIOUIHXtzw+pPtf2XlOqKW4ZXJNCYxloRniiY6ive7q0e0Cq3wUJHgzAe6rCtlZa/Knm8t2SrsHrRlzCg/hLRGCGj1IpzSk/clLWOxGpU55t28jfQTVMeTLYFssBhc8fTrzzxbebQKbfwole99+dFqgAl5zq6FHflp+BqB9BFY7NXl0e5J2cmW28LeQFE8pRG7/RrABjZ+zqdDyuvEylzUy8OzSM2NMnZfwUNBufIWTVTGWqaFfEfR5h9q5cM9NuAfIs1pCVG97kcwxK0ZKsRjyszUqHQl2ReKTeqRo+ysHjs1GAnVA== 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=ejHcLkGrrvPu/w4dzYw7MNYJXPR2Ciga+2LEdF2xNbM=; b=WoVOR3Njj06nztea5H/5mSMes+RvTz2hH9sK6w4ASD+DrtKIS4UKb/kdIlZq5oqwC4FDk/t00wQJDVH/P90WD0RaJds13gCMpe33c1rKK9m7wr44qiMFCOyexQ565Lsu2pmayia5gmjbm9Nv+3F1xPGCGsddEoODL0OAIuJxwTQ= 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 VI1PR04MB3069.eurprd04.prod.outlook.com (2603:10a6:802:9::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3239.16; Fri, 31 Jul 2020 12:13:58 +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.3239.020; Fri, 31 Jul 2020 12:13:58 +0000 From: Fabrice Goucem To: buildroot@buildroot.org Date: Fri, 31 Jul 2020 14:13:33 +0200 Message-Id: <20200731121333.3754957-2-fabrice.goucem@oss.nxp.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200731121333.3754957-1-fabrice.goucem@oss.nxp.com> References: <20200731121333.3754957-1-fabrice.goucem@oss.nxp.com> X-ClientProxiedBy: AM0PR02CA0021.eurprd02.prod.outlook.com (2603:10a6:208:3e::34) To VI1PR04MB6943.eurprd04.prod.outlook.com (2603:10a6:803:13a::16) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (2a01:e0a:464:3cb0:a002:a1fb:daa8:ad54) by AM0PR02CA0021.eurprd02.prod.outlook.com (2603:10a6:208:3e::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3239.17 via Frontend Transport; Fri, 31 Jul 2020 12:13:57 +0000 X-Mailer: git-send-email 2.27.0 X-Originating-IP: [2a01:e0a:464:3cb0:a002:a1fb:daa8:ad54] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 5dc20795-877f-4a27-cc03-08d8354b33a3 X-MS-TrafficTypeDiagnostic: VI1PR04MB3069: 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: ZR+CcnGSG+F9PWiEDdUYf1FT4ivyMebmxA8ZVKlTqAozQWF5q5cg4+lLMMPSjUHt1A76+ZSbjidG7yyYDFSE+7rJUlydz4YWOf+UzCTgiHDmDS1FlUvoJOFf8SsVqap4UGCm8MqmwGVIK9mrtMXKh32C7XWBJNlB/9wNybNdTIqupsE9f/BdR0pwjARejyoSblj83OelsV5TXczhznnd8Bt9x+nOdXkQY4d2HSMA6gXn2TqgQaif3ThBYf9acUOypJeu7PsrPjv0KSqBA5K4wBwfuVb1H/sPQR85AnjwUgcQX8O1ueklJqDZvsj54cB2abMKZPQxx5y7p4B89wIY+wnja+y93REHh1O0wIYj0GskF3Uinr3u+NzYsbYsp0cuAGIItdmfH7Im34qCsCqcwGgCiGSeixevk+dmixoEsD4qNnwKAZfKjV1f4qhcYoblHuklW4/uhSL4GWZZmel11A== 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)(376002)(136003)(346002)(396003)(39860400002)(366004)(66946007)(6916009)(2616005)(6512007)(8676002)(8936002)(1076003)(5660300002)(66556008)(66476007)(6666004)(83380400001)(2906002)(4326008)(6486002)(54906003)(966005)(478600001)(69590400007)(86362001)(52116002)(16526019)(316002)(6506007)(44832011)(186003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: NQ+ysHkehH1hhfg7hZGf5B7OkLJ1EMF1OZYjcmtHuXfiqkDxlwdLiZQltHHOOjCxLXFCNj1r1tEQv6GNnWO3+YToaY9x5A8UdLVvpjQei7axBkt/tGxqHmGEnPe13JeDCcqEhxL7u7sWhT4vMxnrF0wEtcDhgkz+zjGMcATSsyfbulaAxBZrgZx9BFYfxrrwkdP3U6yQTY9oQapok8Mb85TzipjLThlCyEbl36J/yAdkIlNmRrMRPUal8kMcyh+OjasxvlBu2Nqr10vJFFfqXe5vIF/EkyU2rZ2twmeZmFk1Y33oN8OcP4OdtdQCiRGj3sYx7XrAtgPnFmGcvE3PuBzQnd/UvEzMO0D7cm/Q+LQQmFaQbrvoItRLGwuPFYJU4wxHq025Ztk5M+ohRteMnKOBOeKSrfKp/2XeD+yKRfXHxwrgL0tyVDYZBbonao+X9IiqQH7PXO9EbHES/+IrvbnaQqo3OmvfY6slf7XCZ140HXI0tUKlMLBZtxclZ+Fj7O7xYQwxx6GUWIJhe6r6YTwrNYzOQlvnUzRTB0IuqdIZQNjeAmEdcb2c1/8KXmGfVK5A6AVMXmVny0wk/poEmKoThxO5VezDKdiTsLoZ9XTeEamTQ8VvdlcdDfCOcALSuQlmiKJsrJcLza/N6I45C1Gs9FS7Kwl+t70uIftwNaI51ZdWY1AHBTswumiVNJsWkcvo3jTttwNvxy2k5xs8gQ== X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5dc20795-877f-4a27-cc03-08d8354b33a3 X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB6943.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Jul 2020 12:13:58.1492 (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: VCg+Ut2lbcu4VOpDOMh+Ra+d7d+NxrnGTweJwGp1hF5XXpzJn4qqouzb7fle8JuDLkD+lRzGO1BYqldhzbCizA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB3069 Subject: [Buildroot] [PATCH 2/2] configs/freescale_imx7ulpevkb: 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 v6 -> v7: - Updated imx-mcore-demos Yocto's URL (suggested by Gary Bisson) - Renamed package imx-m4-demos to imx-mcore-demos (suggested by Gary Bisson) - Factorised firmware copies in imx-mcore-demos recipe (suggested by Gary Bisson) - Updated all mcore demos (bar i.MX7D) to 2.8.0 (suggested by Gary Bisson) Signed-off-by: Fabrice Goucem --- DEVELOPERS | 2 + board/freescale/imx7ulpevkb/readme.txt | 76 +++++++++++++++++++++++++ configs/freescale_imx7ulpevkb_defconfig | 29 ++++++++++ package/freescale-imx/Config.in | 8 ++- 4 files changed, 114 insertions(+), 1 deletion(-) create mode 100644 board/freescale/imx7ulpevkb/readme.txt create mode 100644 configs/freescale_imx7ulpevkb_defconfig diff --git a/DEVELOPERS b/DEVELOPERS index 387eb61c06..78be02ccc8 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -907,7 +907,9 @@ F: package/whois/ N: Fabrice Goucem F: board/freescale/imx6ullevk/ +F: board/freescale/imx7ulpevkb/ F: configs/freescale_imx6ullevk_defconfig +F: configs/freescale_imx7ulpevkb_defconfig F: package/freescale-imx/imx-mcore-demos/ N: Falco Hyfing diff --git a/board/freescale/imx7ulpevkb/readme.txt b/board/freescale/imx7ulpevkb/readme.txt new file mode 100644 index 0000000000..d8b0abaee6 --- /dev/null +++ b/board/freescale/imx7ulpevkb/readme.txt @@ -0,0 +1,76 @@ +******************************* +Freescale i.MX7ULP EVK B1 board +******************************* + +This file documents the Buildroot support for the Freescale i.MX7ULP EVK B1 board. + +Build +===== + +First, configure Buildroot for your i.MX7ULP EVK B1 board: + + make freescale_imx7ulpevkb_defconfig + +Build all components: + + make + +You will find in output/images/ the following files: + - boot.vfat + - imx7ulp-evkb.dtb + - mcore_imx7ulp_erpc_matrix_multiply_rpmsg_rtos_imxcm4.img + - mcore_imx7ulp_m4_demo.img + - mcore_imx7ulp_rpmsg_lite_pingpong_rtos.img + - mcore_imx7ulp_rpmsg_lite_str_echo_rtos.img + - mcore_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 an 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 handle PMIC management. +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 B1 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_imx7ulpevkb_defconfig b/configs/freescale_imx7ulpevkb_defconfig new file mode 100644 index 0000000000..9402062663 --- /dev/null +++ b/configs/freescale_imx7ulpevkb_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_MCORE_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 75c213a1d7..cc0d8fc7a8 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_MCORE 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 || \