From patchwork Wed Apr 29 08:31:23 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: 1279098 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=S/dxHpBA; 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 49BsJp18gcz9sSG for ; Wed, 29 Apr 2020 18:35:06 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 2F3C92306F; Wed, 29 Apr 2020 08:35:04 +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 zwMdxXccvHNS; Wed, 29 Apr 2020 08:35:01 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 7CB9522F4C; Wed, 29 Apr 2020 08:35: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 EFB1C1BF35B for ; Wed, 29 Apr 2020 08:34:58 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id E4CD484BA5 for ; Wed, 29 Apr 2020 08:34:58 +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 e2oo9-YWt2Vr for ; Wed, 29 Apr 2020 08:34:58 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80055.outbound.protection.outlook.com [40.107.8.55]) by whitealder.osuosl.org (Postfix) with ESMTPS id 7E5A786DF4 for ; Wed, 29 Apr 2020 08:34:57 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MhVCBq+ODhvPMv4va4tpLIbBRbfSXgblJCbg7SDZCejfJbj+d5z5MlNK4LaWW5idJ/MmWk8SSTcTjNO5rbqoZQVqXz5AKYkKgfwRFYxTSSgs2gKG66PSQVGReVzTgkCpvDigWzcDz9E93kIo8WYaPnOfTuIq59xJdw/f+9x2Gg908777dOeLyf9mJLOeEn3slcRmoQp4MWaNGMkYeLFilK3qY1C6OGivWEffoqD/6b9oKHRZ+drMEXpNmCor2nI4AFAuQTfQR/o4aqE/sa2pLjNqLfkP6CBD/g3ILmtwKmQWfD4F7hITy7zgiqRkREYtGRttGlsxAeszS08PYhKy5Q== 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=PsYP9FGXvmhHMA/L4Sq1T/JGA8i3cH777Njiji2UgevdwfBhX9gXwolBzQLVjOEZMVy2pHCJBnBioqt6nRVr4NlzUUzLRaD/kK4pHK7m0vafmwWOeUGE2ZVojoinAOVlrxlgbDzYk+KSGEGiNFwdmdwem9YeytFg8iqHLZodvTeieF7Hn8wL42cPy9m1du3IZ37Gf0vPuV2InqHWxiVQw+XqdvhBCXRnQPCes2LH4vkxaDC211K4z8RNfzIZ7CDhXYgog2nkn4xLMPG4QFnDtkW8iZLP1TjnYQoflk9TaT224ANByCFjOUbORpa9ZjmpGB7ZdKXiwDGIcUbA92Ya7Q== 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=S/dxHpBA2B3UtI8wGxZS3z2mbOpLSbJOe6ylL2xEdUOLW1Q8AEB/jX7Fkn85SWs3uRilb3JZOY/+nycqyEH+FjikcG/uPJSeFCDauSrW7PDh0rBCuzO27OLivk+h5IbThevveMRQVNPBCx8Te3eO+H8e3GJ8BYcJIn0s5iNAYdM= 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 AM0PR04MB5060.eurprd04.prod.outlook.com (2603:10a6:208:cb::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2937.22; Wed, 29 Apr 2020 08:34:54 +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 08:34:54 +0000 From: Stephane Viau To: buildroot@buildroot.org Date: Wed, 29 Apr 2020 10:31:23 +0200 Message-Id: <1588149083-8229-6-git-send-email-stephane.viau@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1588149083-8229-1-git-send-email-stephane.viau@oss.nxp.com> References: <1588059233-11467-1-git-send-email-stephane.viau@oss.nxp.com> <1588149083-8229-1-git-send-email-stephane.viau@oss.nxp.com> X-ClientProxiedBy: SG2PR02CA0083.apcprd02.prod.outlook.com (2603:1096:4:90::23) 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 SG2PR02CA0083.apcprd02.prod.outlook.com (2603:1096:4:90::23) 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 08:34:50 +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: 5c85fd24-dd53-4556-faf3-08d7ec1830f9 X-MS-TrafficTypeDiagnostic: AM0PR04MB5060:|AM0PR04MB5060: 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-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)(366004)(396003)(39860400002)(376002)(346002)(136003)(6916009)(66946007)(6506007)(66476007)(66556008)(52116002)(8676002)(966005)(16526019)(86362001)(478600001)(6666004)(2616005)(44832011)(186003)(69590400007)(6486002)(4326008)(8936002)(956004)(6512007)(26005)(316002)(2906002)(54906003)(5660300002); DIR:OUT; SFP:1101; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: UCrt11KiOhBLHBW4/QUjbUipF9JhgXFAr4eMZLwppL5NDXiaNFAlNfd7SX1WPe5GGb6uxoEWXD/Ogp0N97SfUEmvD9WYHABWYnuxci+RImjTvKTEAvFxP+AfIyeQo5l62/tQPAeDbRLsYdLCatH4SbmImcYVYghuU+ZIcM6RskWk6y8gn/ZCTjnnB/JPXYO5WCxTgmatHNYeYaDEPOC9KmZFOMRhtONVGgRWgSlus1gqMxFXRPpuxxpVjy9ei22XgAeuJV5no0EX5kDsDvlhb5+5VemNQTvMw0mxzSAF1osxHgqvjaGRErXVE1Oae6h+y975ci/kbCPvAZHseR8qTSTGY7Q0gAn8V5v7Oqj9RidkvCBjAdor0GL1gjTdbFE54XkdP+ERdvH54bu0KGYasG5P/WsSRTGYrRWWgL8rakI/XkrITn959DLU3NPitXzqZAy3iLpptx1hANv3ZIIIQtnyoqOVINgNFjD3s0mn3bCY7yHl3Mc7BjSLUlRgnAz5OI9oBwTUtmZNle+gY9+YopPnl8v/IKfvFcnvrDfgs3p/y9QtS0mzNIucqiGkXA1CvgLwk6vYjB0FOleORLtfSg== X-MS-Exchange-AntiSpam-MessageData: e3EIOlAGWFdXEWfAlNQL4b0gmCZk83Mrbis3zaF8qxqW87ynqnJK93WEzMpYO2plVve9jQNJCWovQ97BhdOrpXJ6wIDcbRFxj7ABGdI1SwX2jvIYKxaN3a66OXDm1iMM79PBl0hii4QRGGNM74PD494MjGMNcxh+KcTAJKA8wUnbrDgsHS7FVL6tJ2RJ4VdMQudWdZPGL+puo3UVb5PHHzDLASZdWHaNsgYrJNu5oLwE9uSnLqzf+Sq0NZ+RHwkAgmvIQL5hm2q70Dwg9vbQQ+5zHTqToUd+Am8zsv7wOqhEcF2bfDfSYGAYxMV5cCIHHuu1np3OBmVUwFJPVi3koUzc85DhroKMXfF5J6IErvlC0sE+nXoyclji5zDLN1gx2+web1YUagesnDnFMR9uOThs+ymtXsELWjkDjrkQkfAm+cGb5GDz6CfLwVjC7TiQvgQv+xmSDf+F750sG4yvdaqRQjEM8VwAoaYt3FCqw7PuAzpLFRDr8OJ3Femyc/XXyaPq7pqAJRJWA/09HHMsspNnG/4b1INSDu+RHPCSSaNaWCkcc/1m8SElyvHspSaRBaKhRcuJ6uW5MgW/CX+CQXgj0U8PpxWMeQi8r67VxfgSjCpm7QNTYexC0k/pQ6zqOZl1DKwL0Y35NmIn4se/21fSN6lAwKJ/nWg8fqCqnRrHTUDdyP/qUPm2w3UyCXHO22XfJgTdmyLFolIDcAK3GiTw31u2+OCZY1Tlfn6DH5rnxSM4ZCWJypWYs5H70SX2SnayB8JEdGLAYGIRWmRXGDSbFdGG+vh8fT+l5BVXqtw= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5c85fd24-dd53-4556-faf3-08d7ec1830f9 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Apr 2020 08:34:54.4661 (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: HNQVM+GMTx2a3HDMCGGdiHamv6wd4amE93AzfBG0J3z+lAUEwRiyI4OWgdF66UaRiDFzpqz+c6RDaKIfOOrp8g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB5060 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