From patchwork Mon May 25 16:02:10 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: 1297421 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=Q4cw3KwY; 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 49W21f0dHyz9sSd for ; Tue, 26 May 2020 02:03:00 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 6646E226F5; Mon, 25 May 2020 16:02:58 +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 u2cedaXPId7t; Mon, 25 May 2020 16:02:43 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 409CA2270C; Mon, 25 May 2020 16:02:39 +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 BA2A41BF378 for ; Mon, 25 May 2020 16:02:27 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id B639685E7D for ; Mon, 25 May 2020 16:02:27 +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 fnu3awJUGZ2q for ; Mon, 25 May 2020 16:02:26 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80089.outbound.protection.outlook.com [40.107.8.89]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 98C3685D56 for ; Mon, 25 May 2020 16:02:25 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kIg3q6xlZMLjhv1l64mjngeZTGc6UaAmWTlJCWVaJJUi/tPPqbQkCgUVR3pQmxcjrfagcRm2ng3ShdVBzHL8rWYRu7kQStFpOZMi7nnzf98q6VjIlsdcJPVgDQnsouxIY9TT1STV7CExcf4ZYvRP+tPtUDz0Y26m963egy9Sab5QD5OknpyprRFRoqP/5Hslm3c6jH7g3tvhlUicoXlQOqqNjylrBH/Ninf/yelB615VhKI8j7uNRnImDJgHMw3PMcWwjnu5sr2fjB63wJiSngxolNvncr5feX6zqnV9Cr6z803yS3SGBW7tz2v2tu3SPXuY0EDMl+dG3bAQyGpGLA== 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=7G251P2EfCaAJDFVn3R0W+EtczUgWWDuw/+oYrVanCU=; b=bZod4pNx3M82OwETmmqSCsy3Xqn4thBGtwqzW9wlsZZiysAFikD20Xw8To9UO/so4ewtFRid2ptO19qnA0lF4h3to1m/c3lSQtMHFTa6GW4y+6PyR85023XwWZ9YvxCVZQmt/EZB2DZvO8csDbjG3eLcPMHBAsjJSgw1PtkTld3N3153kRSumVu7kn8iknVmgOkfGFSnrCVcJoQfaC+0GbFhbge+Idwep+lUDHceoY/cCA0lvKTFeKx4XbamAiLqK0/YGfcFloEMrkh1P2+En2gQWfXjsZasu7XWPNM2+Re3UuT/wwFaz8D5CGrVzrq/Rp6L3k+U3BhjoHENmzwXhA== 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=7G251P2EfCaAJDFVn3R0W+EtczUgWWDuw/+oYrVanCU=; b=Q4cw3KwYMlt0wqMivHhTFpjwjJn6gkvqdQqkCibW+D8TW4tnHRYVacAG7Q4sxWIHFqtek6QjdBDIhqBXnCCRNr+GsXSM7QFfTM23TgRwT5JIJNOcKESorUifHVy3X6P85Ht8pjOkcOMH3rUzf6V8+iV6qZBT4hiinEnYGPn6Z34= 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 AM0PR04MB5908.eurprd04.prod.outlook.com (2603:10a6:208:134::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3021.27; Mon, 25 May 2020 16:02:21 +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; Mon, 25 May 2020 16:02:21 +0000 From: Stephane Viau To: buildroot@buildroot.org Date: Mon, 25 May 2020 18:02:10 +0200 Message-Id: <1590422530-4788-6-git-send-email-stephane.viau@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1590422530-4788-1-git-send-email-stephane.viau@oss.nxp.com> References: <1590422530-4788-1-git-send-email-stephane.viau@oss.nxp.com> X-ClientProxiedBy: AM0PR03CA0056.eurprd03.prod.outlook.com (2603:10a6:208::33) 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 AM0PR03CA0056.eurprd03.prod.outlook.com (2603:10a6:208::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3021.23 via Frontend Transport; Mon, 25 May 2020 16:02:20 +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: 1b33dc3d-464d-4992-61ba-08d800c501e2 X-MS-TrafficTypeDiagnostic: AM0PR04MB5908: 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: 0414DF926F X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: MjdY1lPMYd0GgDGrMUtM5mdzwrhqN+LvZxIkDysajFz/g75A2vbDXQipSm6LcnvH8CqUQG7kZ5j14FUu+ipKfGfkU/EkhrnlwYZ20ibLoAkAYs5+tVw9LJnvsMFU9YCm2JEXvCMXESpXicaEnQjkQWmkHoj9Mg3ENOzH/GoMsbFYrTeIb5+iJ0RbPjVzpgrYCCF01irGQCXRtzQvMmQ/8ZaEIoAzcau2aKbN0WyehFMpaYKVtsDI/UCClwehBEJAR0qFgIeQ5t4ibegYRnL569BVfT2MJH3Xy9oT2bR1enCuXt+zYUuka46k7nImmzj0N1wAe+VuheB2RvzCOzuzixeldPSTzKjFVwekfcWnwfb6/4nAUB/bqhzHkS0QToefuWjFJY4EJg6YVRcEfejlSRccarCixyM7Ni+6DYKj+MqwAR/QU7t/uyyntZ1g7qagJlEn4UyS+K3Ku9JxYAeYeA== 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)(376002)(136003)(396003)(346002)(39860400002)(966005)(478600001)(2616005)(2906002)(54906003)(66476007)(69590400007)(66556008)(86362001)(4326008)(6506007)(8936002)(44832011)(66946007)(186003)(6512007)(6916009)(16526019)(316002)(6666004)(52116002)(5660300002)(6486002)(8676002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: P2DFcawTSdR/7jCOJGrUvpsDEnfblvz7/E4TSZ57I1bVkFeJsrg7/R3gZrYOdWTIlDuUWVKK9BCQnlLK8Gly/Rf4Ya3Hwhjx0mVEnKWb2nXVNstMAopD4ngz9PTXewQyWvacgJaIlAixo2P2X25k1rWziPcDid17lnPnWTHwJkjxTlOZ13oU4eVlE87zJrqO/lkbMD8v6bA/8u2bOFyh+JMefOnJ4egKrXbWs491ePa0ShpCcaChOMd1buOSi1sQsdho1EMRIz8u4KwWvOPbMneLtJhh4M3itUqLIz2G6g5WUyax0sw5Td6p7b7JzmbbaH6y/Qgab/PwOfJ2GiF4H8S8QNDQSK9LzEKYpfJNt9gCDOjYukytCs27A90hL3YYqffJ4k6phh86GSgJFHcqIygplJkH96g4bk/7eaYGeP1NWZIarB1kf3uOAsh5iJhRwKNvOXzsmj51xQGZB79TqdOjF0gbpXDr2BgAz2Xn0rj7znRrY42lb9HUr+7FdFlDWU17eVUmkRPcLxFyUxWLag2fcUGgUgYd9qcOHun3XmmeabtIATGkLjlFrUcb30EY X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1b33dc3d-464d-4992-61ba-08d800c501e2 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 May 2020 16:02:21.6014 (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: PrCJZbWT2Zv8B5lOJwd4Wra9V6dtFPXfWv7OrCSYHTxbEgFucsw3Ja++E4fHeKN13YUwIobYodlTJVn0usbRlQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB5908 Subject: [Buildroot] [PATCH v3 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 d1426f6..704c38d 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -2398,6 +2398,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