From patchwork Wed May 27 05:07:48 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: 1298618 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=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=iCtgTWfR; 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 49WzQG22j3z9sSd for ; Wed, 27 May 2020 15:09:10 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 556718873F; Wed, 27 May 2020 05:09:08 +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 ZfPiGzIHXPji; Wed, 27 May 2020 05:09:06 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id C1F51885FF; Wed, 27 May 2020 05:09:06 +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 66B681BF86C for ; Wed, 27 May 2020 05:08:57 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 612B681F17 for ; Wed, 27 May 2020 05:08:57 +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 HHRpTUWI8qTq for ; Wed, 27 May 2020 05:08:54 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70059.outbound.protection.outlook.com [40.107.7.59]) by whitealder.osuosl.org (Postfix) with ESMTPS id 108BE87CB1 for ; Wed, 27 May 2020 05:08:54 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aamgGf0Z7Csgq85bnCoxZqvszlk1tR8oUt0qIuRXPC4zrfbOWdq+y/l0aTly+PgO0JKmfqOIgTmX5sV/2EXQB5UMusNri7lpULN5tz+/kmTeFH2aRKhOaqy1vQx10Ic/kBAuGA2F/XVexMiyC/2zhgJU/npE3j3Y0pAYjhwFj8KcJiMm6kj4T2h1PXa2v3w2WCXH1SE4ZsBNWMn99lDe9PynHmp66oEfqNNa/WMKHfszpC2xKcCi+NSU9KfI7MxyvcFc1Iu5nXkJxJq3YABlqeBxBN2GE3/+Mt0yFbpA1sRzmv/IE/dOIVY24FjLdht03vRC0wKd8FzLaPYUDN9jgw== 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=Fgrc/busJFyUosHc3+YR6UQ7fruzJ3oMq9PWgUNYDFM=; b=XQkJphcMCBlv5rUDxrQ5PvIi/75lc5Gmd+uRtp5sBK9rYgU2pyZeJjivBkc93BH5M1CNcyRplIOgH4qvi09nWYbnAn/4gklY75ZrYnhGVfqfj7AQUsuycse7fiRGyrvuvJMtVQkQfV8x2dJoDtfZzmhFIMDNpcPR1dru572flg7LsQtnqcMPNewibcEJpFm+WZCZPL4MMmbEgtU1VxLiSzLjFX9EE/QSS+hbS8wHV3wZxbcxAHEE/JSO+6wt95jfQvcwptKG8AJGPTqnP5Je9jRz8dUiVMH15x1UrfQcuqC4tP/WGa/qFflTcHb5vhV/9za3/aGi4ozeBUbrqqAiAQ== 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=Fgrc/busJFyUosHc3+YR6UQ7fruzJ3oMq9PWgUNYDFM=; b=iCtgTWfRzRtDa1DrNbP6dHyoWA4/FgrnITaW2s9CNHBEkJQD/q4tKuZvqZ2OkjtEJF8KDXy6dgPdxq5QNrgWVvXJqaMgZEN/Uh4iTJ5k1RbzLTB8fcYpcS/o21AlRZtDDoqNgRQ6ZYHfwmYGkgVoZD7O1SkQpxtNHsJOg59hjJg= 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 AM0PR04MB5412.eurprd04.prod.outlook.com (2603:10a6:208:10f::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3021.23; Wed, 27 May 2020 05:08:45 +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.3021.029; Wed, 27 May 2020 05:08:45 +0000 From: Stephane Viau To: buildroot@buildroot.org Date: Wed, 27 May 2020 07:07:48 +0200 Message-Id: <1590556068-7043-6-git-send-email-stephane.viau@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1590556068-7043-1-git-send-email-stephane.viau@oss.nxp.com> References: <1590556068-7043-1-git-send-email-stephane.viau@oss.nxp.com> X-ClientProxiedBy: PR0P264CA0199.FRAP264.PROD.OUTLOOK.COM (2603:10a6:100:1f::19) To AM0PR04MB4786.eurprd04.prod.outlook.com (2603:10a6:208:cf::25) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (2a01:e0a:43f:82f0:e5ce:dba0:335b:3910) by PR0P264CA0199.FRAP264.PROD.OUTLOOK.COM (2603:10a6:100:1f::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3045.17 via Frontend Transport; Wed, 27 May 2020 05:08:44 +0000 X-Mailer: git-send-email 2.7.4 X-Originating-IP: [2a01:e0a:43f:82f0:e5ce:dba0:335b:3910] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: ae0a0bba-78a4-47df-5716-08d801fc0835 X-MS-TrafficTypeDiagnostic: AM0PR04MB5412: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7691; X-Forefront-PRVS: 04163EF38A X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: tOz4PwX8j62gJQt/IgBfF1wa/Fe5oguyZhBDvpK1F5x4JX6uMIVr0OfpS+dzImJHnWMkzo/DIJ//63jSIu9ltzLBEUAjqCkD+MPbGM/VovsXfYjZlxGiWcwLxIh026ZXGCD1ONWcxpAUI6Rm8zNYTJl01FZaDGxMq7tWq26lpczJYdwkFPRyVhs02seFHA4PYgqnHc3fQ030cAB5Vz2aMc4H7RNCUUNWdEhXuTavqveAMWjK8mb44/AdXdMFZnioSlwvvDMQe8u9loEt4ImecHS+pt3hJbL/RAWsy8WdfLer+MFDjvzOb9B1xqwJ7qnVw8BdA0Mx6LivCBb0eLrZFSLi7KW2cS3j4YTVGuyMoReHBzbAWnFjFO660GWvOxK8XAhQZbIdY08RZrjqm1D0A6DfaWCJiuIlxMUqZa2iztF0QgdvYPFabASnZRYQuCRiuMpXkVFfQnjk/bSpzZS6uw== 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)(376002)(346002)(366004)(396003)(136003)(39860400002)(6486002)(54906003)(52116002)(6506007)(478600001)(316002)(966005)(6916009)(2906002)(44832011)(4326008)(8676002)(2616005)(8936002)(5660300002)(69590400007)(66476007)(66556008)(66946007)(6512007)(83380400001)(186003)(16526019)(86362001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: RJmsF8Ws/0putCoLRU+G4n7KeqaiTLE/r81VYypypUCs3onqZBEJQZqzlCikICOQTFQTw1mOy99pNyXdHiS8Rzi3m+gvtCHHfJbpUB5D1QFPHPcwkG+/xUsvI6X9tFJnw0wG+jU4kveAFbHHZkbCdetW8OWwYip/2YyvqNGO6GDmNYxGbq2QayPeaagg4GXxaPNY1BFxB2q7Lf7n16pOMWIM/eRtdaYwN+w1wTSVDxQmYM+ZbyP7DtfcnEA4RGC0wMbS/gnJJ4JM78+IFdAQVC+yqlUZJ6kbfBKez1HuDwGjWT0ngJ5N5bRv9/3K22hdU/F8bICZi9Y9XVdzsquHgciQtS4gd6qbUw1JPYkBixcaLZ1IVo7RtOO7MCK5ZAw/6pG/cGSgVHrwkGY/y8wCQcqv9gyOUHD9wofxh5LnT8JT5YlKaxBW4pkPg1+/KiHgh5hGIDEFpTMwMpTY9Q3cZ/hn2f3FLWB8eesieQBMDXlfQqPnzpTZedEW6YW46Yz7by7mN6PRW1TGiRJCRlVt6nQ3Z6kIDy+RCBpgxLZibmY= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: ae0a0bba-78a4-47df-5716-08d801fc0835 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 May 2020 05:08:45.6983 (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: EAmjWszeCjiSmVeXsTwzpoD41jVBvgUa6pY/WS5viQQRFlGyPwG/OZIrwJAowLSPlJahIFn9KqFie36E59MmrQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB5412 Subject: [Buildroot] [PATCH v4 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 --- v3: - Remove hdmi bin from 8MN config now that this feature can easily be (re)set through FIRMWARE_IMX_PREPARE_HDMI_FW. 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 | 73 +++++++++++++++++++++++++++++++++++ configs/freescale_imx8mnevk_defconfig | 43 +++++++++++++++++++++ 4 files changed, 121 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 99f47c3..27db106 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -2397,6 +2397,10 @@ F: package/gtest/ F: package/libhttpserver/ F: package/mtdev/ +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..d770056 --- /dev/null +++ b/board/freescale/imx8mnevk/readme.txt @@ -0,0 +1,73 @@ +*************************** +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 + - 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