From patchwork Mon Mar 22 09:12:52 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Stephane Viau (OSS)" X-Patchwork-Id: 1456424 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=smtp2.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) 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=PM7c9MKU; dkim-atps=neutral Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4F3pjC4Qppz9sRf for ; Mon, 22 Mar 2021 20:14:23 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id EF38940015; Mon, 22 Mar 2021 09:14:20 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cmNPso3XT4EA; Mon, 22 Mar 2021 09:14:20 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp2.osuosl.org (Postfix) with ESMTP id 04881401C3; Mon, 22 Mar 2021 09:14:18 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id E85751BF27E for ; Mon, 22 Mar 2021 09:13:28 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 44FB382D61 for ; Mon, 22 Mar 2021 09:13:26 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp1.osuosl.org (amavisd-new); dkim=pass (1024-bit key) header.d=nxp1.onmicrosoft.com Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lbKBbQCRHIzW for ; Mon, 22 Mar 2021 09:13:25 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-eopbgr10040.outbound.protection.outlook.com [40.107.1.40]) by smtp1.osuosl.org (Postfix) with ESMTPS id 8C60B82D85 for ; Mon, 22 Mar 2021 09:13:24 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QWowUQg/OUBIy4h5FrB4HkDUEP6A389454PXweQRzTz61DzoyHHUOV2N5ZDR0God0ah+bomSluuRq+xkhYYRsKWs+zfBAvn8UKImaSOKJ2fPuHiIfCtCK1AxxDokqaS8gcIzE/GVB3iwWjGabOh1lMtpoa8NtPuDcWOv05MD8nAcJ8PTfHoVnprl0UKf0JExSBAEX5EO0Z6GN4cHyz1d1BdWO3mhaaOaJAwyIksFtfezR8g47uDSH1IMKMFXfUBT3hapnCz3BJNsUJJO8wEQrQGMFUAtevrYz3MJ3NSGESW1WBnpYQ5XJzv9hJhq/6RQ9zyTJQvk9DAtthB6+sqEJg== 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=i677k8T6nPfvbew3mKRE0JbZNPYljYpIIUL+JnGlA2s=; b=V5RUH5Qyl+XDIVyyvlXJko3bWqcb2kUav61SilaXrcn1Yr0JZEmZ5TJpntSLJ8PBa3l9MGjIHQvyrzSSQAEaC/bmmxMeE2v4IwbEFNqPjJpLBUglGraksxgyrnehI/m8pYWCRqfrZ6XOZfikSvrVoOAuZah09no8nnIDLDQJ/TaAWJ/lN9+/It8VQMqCZ3POsLsV1ujDAb73ESnSagBrAgt3dqsBE/4XWoLIXVjY2HRnjLTW/b2BnzMdkUNGUVvb8Ljk3xC21mNvQCNvzEZ/XR+RetOZ2bloGwI8CqjSUDNvQd2T+pooBwVJuxbVK9gfAlGDLLAQwgI5RVzyUQECqw== 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=i677k8T6nPfvbew3mKRE0JbZNPYljYpIIUL+JnGlA2s=; b=PM7c9MKU/IOjUhqAqItXDzf3qY5OJxrdVuAxzgPiF+YMwnhwCXbeQX2Vaw+wffvjoZTBGDlC4OMbmtMnyv8QbkbmQY00lX+EqNfvC/4gNUvI2p+N/MdoSgwqtpITmHHwpMAHzN3fTEAhnLKZueUHbwar+oFtGPMi4bFyTGMEmW8= 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 AM8PR04MB8003.eurprd04.prod.outlook.com (2603:10a6:20b:240::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3955.18; Mon, 22 Mar 2021 09:13:23 +0000 Received: from AM0PR04MB4786.eurprd04.prod.outlook.com ([fe80::dd02:6dc7:3451:85e8]) by AM0PR04MB4786.eurprd04.prod.outlook.com ([fe80::dd02:6dc7:3451:85e8%6]) with mapi id 15.20.3955.027; Mon, 22 Mar 2021 09:13:23 +0000 From: Stephane Viau To: buildroot@buildroot.org Date: Mon, 22 Mar 2021 10:12:52 +0100 Message-Id: <20210322091252.11392-6-stephane.viau@oss.nxp.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210322091252.11392-1-stephane.viau@oss.nxp.com> References: <20210322091252.11392-1-stephane.viau@oss.nxp.com> X-Originating-IP: [78.114.15.64] X-ClientProxiedBy: AM0PR04CA0076.eurprd04.prod.outlook.com (2603:10a6:208:be::17) To AM0PR04MB4786.eurprd04.prod.outlook.com (2603:10a6:208:cf::25) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (78.114.15.64) by AM0PR04CA0076.eurprd04.prod.outlook.com (2603:10a6:208:be::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3955.18 via Frontend Transport; Mon, 22 Mar 2021 09:13:21 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 33e6673c-78c4-43fb-d608-08d8ed12bdfa X-MS-TrafficTypeDiagnostic: AM8PR04MB8003: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2733; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ffW0ISVG6wkYmaVIL7HL/hNizds6EIV6CndmwCl4FnZ3QtIR8LjfEBcykxyw5HRj188BVpJ6mwldVYgFHuHYHHaEYBJPtcT2YtVx3QTA1DuIj4tbP5h9lKePLHj14XPUZFYKJ3N1JaFkaXdSfygG5+aUjFSMn+5MgWY/8EOISi3c9ieOOlm/huPlzmWudLXlwTLzzTewtEFla2Lby2dXhl8Plw2JDGSpmiW0w90u77LfqXlhCgkp61EgYZau2ZFQtj2FFFeNMwPWm0iDvsWa0PHc4d4KZ0KlL6VyyupeDR/Vype3Zj0zBDA1H5btd5us4AIKSHjEH5p1RHnW3Uyuq7e7hZW/D5afisup4Lyfm3Y7NuumCofagHlTSucIXfERcJokmXG9M8XpRduUSeVfwx7Fuy2q9lZ0Vz7O+j1yWxT/XwL7kNoEo6J2DwSAhUo48S7UL76GYrJwgZw1nECC2A5X+R1zoa0Zd23FHnVy4U4fKBvbug49d6z/7mvzSoACBiw7uWmS5RN/Y4qTYZz39MDOeOS34odPeNLwaFhf7NdAThTF+0kT7UAL7KDf/N4NTebAe4XDzZ4qVMucYD0Vgagci4FCZGEOgcDbSiUu6munRhP448BzpfftwylTvTaK3rg1qDHOXxhkAIgdxAQnyiz7TW3BKyCwHD3xMSHmZ/+RHERblt6wNL5jzJH+SAIeCCaGFGsGRuxtgirp9906L7ojhhikly2YAWOYb5YMSWh+dDg1ZJK8ZuBYgAOG6EpmGUjrzRDjok1HNzFFKMUQBA== 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; SFS:(4636009)(346002)(39860400002)(136003)(396003)(376002)(366004)(69590400012)(5660300002)(6506007)(6512007)(38100700001)(316002)(52116002)(4326008)(86362001)(8936002)(8676002)(44832011)(6666004)(956004)(2906002)(66946007)(6916009)(6486002)(2616005)(16526019)(26005)(966005)(66476007)(83380400001)(186003)(1076003)(478600001)(66556008)(54906003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: adW5OPMqCcjzvAFdqo/djSAtCowg6jKRbuWTPfIxs/l5EM1tiSitk9D3W/s3Yw8uCkad104Zi06UgC4MXxLckJgjHNlcYrtoV5WMxcEs/0Z3LtUaUr+v44f6EqcQF0d7EaGo+y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NvznkmrOisLal0pfbD7sg2R+s9hrvWnWDqFQUtbox11icVcWTa9DONnzt4IcVa2sOuScLDJYmu083ewCj5BMDTRZ+i9rxV6bmku7cGv4aVcTesU8QNzL4DcZroU X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 33e6673c-78c4-43fb-d608-08d8ed12bdfa X-MS-Exchange-CrossTenant-AuthSource: AM0PR04MB4786.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Mar 2021 09:13:22.8750 (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: UmHFFsg6+eKPLumvqCZhR8htrYdSJmmEZLijJyT2EytQw6MiRw+TuXJMSspUZ4BVohc6u51rfExxAKp/qQjwtw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR04MB8003 Subject: [Buildroot] [PATCH v2 5/5] configs/freescale_imx8mpevk: 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 , Gilles Talis , Refik Tuzakli , Erik Larsson , Stephane Viau , Fabio Estevam Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" This patch adds support for the NXP i.MX 8MPlus 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. This first support is based on NXP's 5.4.70_2.3.0 BSP. [1] https://www.nxp.com/design/development-boards/i-mx-evaluation-and-development-boards/evaluation-kit-for-the-i-mx-8m-plus-applications-processor:8MPLUSLPD4-EVK Signed-off-by: Stephane Viau --- DEVELOPERS | 2 + board/freescale/imx8mpevk/readme.txt | 71 +++++++++++++++++++++++++++ configs/freescale_imx8mpevk_defconfig | 42 ++++++++++++++++ 3 files changed, 115 insertions(+) create mode 100644 board/freescale/imx8mpevk/readme.txt create mode 100644 configs/freescale_imx8mpevk_defconfig diff --git a/DEVELOPERS b/DEVELOPERS index 4289fa477c..ab05b352e2 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -2457,7 +2457,9 @@ F: package/mtdev/ N: Stephane Viau F: board/freescale/imx8mnevk/ +F: board/freescale/imx8mpevk/ F: configs/freescale_imx8mnevk_defconfig +F: configs/freescale_imx8mpevk_defconfig N: Steve Calfee F: package/python-pymysql/ diff --git a/board/freescale/imx8mpevk/readme.txt b/board/freescale/imx8mpevk/readme.txt new file mode 100644 index 0000000000..dfc95af3ea --- /dev/null +++ b/board/freescale/imx8mpevk/readme.txt @@ -0,0 +1,71 @@ +********************* +NXP i.MX8MP EVK board +********************* + +This file documents the Buildroot support for the i.MX 8M Plus EVK board. + +Build +===== + +First, configure Buildroot for the i.MX 8M Plus EVK board: + + make freescale_imx8mpevk_defconfig + +Build all components: + + make + +You will find in output/images/ the following files: + - bl31.bin + - boot.vfat + - ddr_fw.bin + - Image + - imx8-boot-sd.bin + - imx8mp-evk.dtb + - lpddr4_pmu_train_fw.bin + - rootfs.ext2 + - rootfs.ext4 + - rootfs.tar + - sdcard.img + - u-boot.bin + - 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.MX 8M Plus EVK board +=============================== + +To boot your newly created system (refer to the i.MX 8M Plus EVK Documentation +[1] for guidance): +- insert the SD card in the SD slot of the board; +- Configure the switches as follows (X = "don't care"): +SW4: 0011 SW4[1-4] +- 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-i-mx-8m-plus-evk:GS-iMX-8M-Plus-EVK diff --git a/configs/freescale_imx8mpevk_defconfig b/configs/freescale_imx8mpevk_defconfig new file mode 100644 index 0000000000..b2369fecd0 --- /dev/null +++ b/configs/freescale_imx8mpevk_defconfig @@ -0,0 +1,42 @@ +BR2_aarch64=y +BR2_ARM_FPU_VFPV3=y +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_4=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/imx8mp-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_5.4.70_2.3.0" +BR2_LINUX_KERNEL_DEFCONFIG="imx_v8" +BR2_LINUX_KERNEL_DTS_SUPPORT=y +BR2_LINUX_KERNEL_INTREE_DTS_NAME="freescale/imx8mp-evk" +BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y +BR2_PACKAGE_FREESCALE_IMX=y +BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MP=y +BR2_PACKAGE_FIRMWARE_IMX=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_5.4.70_2.3.0" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="imx8mp" +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_5.4.70_2.3.0" +BR2_TARGET_UBOOT_BOARD_DEFCONFIG="imx8mp_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