From patchwork Wed Apr 29 09:12:25 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: 1279115 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=jERq7t1L; 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 49BtD66YPWz9sSq for ; Wed, 29 Apr 2020 19:16:06 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 040FB230A1; Wed, 29 Apr 2020 09:16: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 hzijIdeqphVr; Wed, 29 Apr 2020 09:16:03 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id DBCBA22E89; Wed, 29 Apr 2020 09:16:02 +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 B609C1BF309 for ; Wed, 29 Apr 2020 09:16:01 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id B2BC18644F for ; Wed, 29 Apr 2020 09:16:01 +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 iQ8v8UGYnF-A for ; Wed, 29 Apr 2020 09:16:00 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2045.outbound.protection.outlook.com [40.107.20.45]) by fraxinus.osuosl.org (Postfix) with ESMTPS id ED81986381 for ; Wed, 29 Apr 2020 09:15:59 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=O0h70tG1hWOzNDtlsnvQxkImu8qtFkVlAegCuu4D7n4FUR2bxkDNpuojIykn0bBkf4yYAVA/CPqolanp38g/dcY0RuNjPdiweNtvi/CNWR4bX7Ux3qkcByNHSPHYMz6mTOYMZYSUndXScaj3EgOaHPa+p1wEO01CE3vSjQipxP7UZtYTrAlzxINJ7p/4khPpuUfk4Ytd8nvS1bM53Gq/DVv075Go9pPJ2de54Fj3pYqSFDjikzna+7yX3u78cJj3oGoOmKvy/jf2v6yjKzFl+4/3+tyhpqAIaaiPKt3XWEOuklQ3w/2gJykkx5y3r2Sp2p5IyHOajLpfk89NrhXyww== 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=GVMA/+8RefKvkMr6u6IWrS8K+HcWidH5tr5lXl9DCAQ=; b=GZx8wdLZGcfUUohDXrTJxfAkOGbtBXd5k+6P+VNz1Yj6fKkaSOzvxrZlondqSuY9erudeezRDsCIexLOtYMwWX7rZYXkWzRapUJzBVxZPOGvJf9QylO5jG9Qx1n4WADEWbpqN78glb0DxDOPlHGOLylwbRFc3U91fy7cqO6TDttqNw6a6X1PhUSeEHDoBePMGrrGXRnJrIOjF2KvILcUtIALXygEeiwuSOK9CySLmbmAQ2GpVzkx931IDFqqIxGB/9CyWpagwImDl6S+YBTsKgzWlX8mp5usR4/NqmdjYs9ysPx/oD9ygn9eH5+wX6wsNrGTjcgEpeNAmGX2wZGfvQ== 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=GVMA/+8RefKvkMr6u6IWrS8K+HcWidH5tr5lXl9DCAQ=; b=jERq7t1Lpcrhkt6wWee6In8Um+WZpSVmjdEhWvyOMayGmkdWasoLwJL02vXnT53jvXAA9vZ0OMQM8RURn9UOGZkVxWBpa3HhKdyel4if120scJb5a3pQlVbIOAX9WLVZH4WiZV1ahTnsNX2btPkcRzELUT8z6AMHuEVFTkgOp94= 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 AM0PR04MB6081.eurprd04.prod.outlook.com (2603:10a6:208:144::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2958.20; Wed, 29 Apr 2020 09:15:57 +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.2937.023; Wed, 29 Apr 2020 09:15:57 +0000 From: Stephane Viau To: buildroot@buildroot.org Date: Wed, 29 Apr 2020 11:12:25 +0200 Message-Id: <1588151545-9346-6-git-send-email-stephane.viau@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1588151545-9346-1-git-send-email-stephane.viau@oss.nxp.com> References: <1588151545-9346-1-git-send-email-stephane.viau@oss.nxp.com> X-ClientProxiedBy: SGBP274CA0003.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b0::15) To AM0PR04MB4786.eurprd04.prod.outlook.com (2603:10a6:208:cf::25) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (81.1.10.98) by SGBP274CA0003.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b0::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.2958.19 via Frontend Transport; Wed, 29 Apr 2020 09:15:53 +0000 X-Mailer: git-send-email 2.7.4 X-Originating-IP: [81.1.10.98] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 805b9eda-2337-4e89-8a15-08d7ec1decc8 X-MS-TrafficTypeDiagnostic: AM0PR04MB6081:|AM0PR04MB6081: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7219; X-Forefront-PRVS: 03883BD916 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /c+yQ61GGEwXKXMDhV521N2a95cylyk0MI/e0HAA2eLr6tpigux9pGxCr+PiurXZKLlf+9+UN2QioJPU8OQ2Re0Fy9WjSD4Oy9DfVUiZuuO0ZnYV8u0ifLWc4BqJy+nBPjN8tpUb3P9Z2bxbDEEahXkV2Py6LltJvLoqyN58GU3DZZQOWUH7l/neWllvS1vHQD+kFaMNAelzff1/xa0NA6bPAcq+vuiZqYc0o5wjy78MJbd00L1tPjX507Lgdxp0UP/ElazDi8p8+x/ZY2D8NFeGDQ1p877M9lYaB2mtBhZR//qwkT045ojCqTNYBP3C6YaxLyMC6IuuuvW/GNbXYIu7wqq00e4hYvM0ixxmVGgeISbNP21CI+TBV7hJCcq5nSRd4PI4330HQm785QydqwG+yAjxS81ZoHBUPZd/LVo1rofeQVe2f2A1qWVvj/9H58lzTKVd6u0jx+x76sK9l4eAhyxdBvKpTM1ReSc4ZYQ/ZH2l5d7LoTX16epZxHH+IvYpVJTXCrox/++BfrGLUTGpeu/ifhXgx6XhcGMIY2V6TLDFv2KHrbBmwWZHgZgJIFb3xVRbXoUbmk0YC4gV3A== 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)(396003)(376002)(346002)(39860400002)(366004)(136003)(6916009)(54906003)(6506007)(8936002)(69590400007)(44832011)(6666004)(52116002)(478600001)(5660300002)(8676002)(86362001)(316002)(186003)(16526019)(66476007)(66556008)(4326008)(66946007)(26005)(2906002)(6486002)(966005)(6512007)(2616005)(956004); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: emcjWCUWMaS71F2hEdmfEYl1i0l3RSdHXhZ1q1Be3VjKwR+w29BJRVHejkrw+1w1s73njZnSHCUsQ/7TggOGuYNeoraQssPzmpxHJqbx0htaeIrU8O7M9RIAP0Ibh8YxT6frx1mYMVXLDI57r8vAMKJZsg764Hzvipzf4j1/0QnNSJItRIyqiOn4qvxITXIQFnH4POhTclRF7oVLUXi1EEkw1jL0ydFytfqpgP67eco+EbwDw5ecH9Dwl3cRUtywqY6CSzFeqKKsH97d03YR5jJ5zA9qbMZ0mVinbzMA91gIKfOy1v7p7UP7MRDXR8HIPulpnTV+WT7d6cnuZ0sDTyoaX935ehcsjliDN1bQi7pn8XqgByE8x/iQeChL4/uW8qTd5POETYvvsFghli9IMSYv2Xfl0+sag9OzMBcLfdJomwzjfoR1KZOFVOurfGwAUp/TirKUXh5/5Lanc1IBDpHbt5OM3si//VsqrAGGQuD5aj8F4hkzpi8NXRiOSxPmyxHyPF8hK7DDJdGGDXiLqp6KikBIkIlHjWSI3isOxPT/9+56C7iIPNCdE/bQMTCdPrRUFMZH+j5ZcOhkej1OZ+Hg0SaRUNeSYPjGQXzmm+eDEgNE5DbkNs3u5zI8PcKcVR8Pbc9yrgRvuV55180cqmR2yOGKrAxd9dRo2Gns2na5z1DZqU8gyMuFy0NpJmNooIFsOjtXxmuQfeJGLWcM8LH7ts46fwwTP+ltrvYg2qrmUVVhDSm4r4kHSm3tkz2Rpilb7JdTC8tvbVOmHGJb2Ql74FOc2TXpLXI8b50C7Uk= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 805b9eda-2337-4e89-8a15-08d7ec1decc8 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Apr 2020 09:15:57.5062 (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: 9xcDtH7GlTrlkClHHZEYXoaikutranIcDOKp1Uw1tKIU5OIv6TOIkRFoW/Uuao5MmoTM7ivIWmY+/H54LZSm4A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB6081 Subject: [Buildroot] [PATCH v2 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 --- 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 | 74 +++++++++++++++++++++++++++++++++++ configs/freescale_imx8mnevk_defconfig | 43 ++++++++++++++++++++ 4 files changed, 122 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 cc72b28..6fb2d84 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -2402,6 +2402,10 @@ F: package/mtdev2tuio/ N: Stephan Hoffmann F: package/libhttpserver/ +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..379d851 --- /dev/null +++ b/board/freescale/imx8mnevk/readme.txt @@ -0,0 +1,74 @@ +*************************** +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 + - signed_hdmi_imx8m.bin + - 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