From patchwork Fri Jun 14 18:26:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gilles Talis X-Patchwork-Id: 1116219 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) 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=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="hC5m3KAf"; 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 45QTbZ1dYcz9s5c for ; Sat, 15 Jun 2019 04:27:04 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 71294204BD; Fri, 14 Jun 2019 18:27:01 +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 YdY8o0gpaIXj; Fri, 14 Jun 2019 18:26:59 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 146E52036C; Fri, 14 Jun 2019 18:26:59 +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 B33941BF83A for ; Fri, 14 Jun 2019 18:26:57 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id AD08387D75 for ; Fri, 14 Jun 2019 18:26: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 3i1DgP02sXjq for ; Fri, 14 Jun 2019 18:26:56 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f66.google.com (mail-wm1-f66.google.com [209.85.128.66]) by whitealder.osuosl.org (Postfix) with ESMTPS id AA3D487D6E for ; Fri, 14 Jun 2019 18:26:56 +0000 (UTC) Received: by mail-wm1-f66.google.com with SMTP id v19so3221155wmj.5 for ; Fri, 14 Jun 2019 11:26:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=evTthrlBzZ6x05lgu/bNvqv1RWPjCKTEHj9UxXmFQAo=; b=hC5m3KAfpf2HosckHgwQTOYdLxLAbE6rBVgb3kRqYWOSfHa5ayqCmWRj4vOKlO4/jD IJwgZr1vx4SKhaOOFr39G4NBXIVhkRNpZWOA6NKyv3hW77BCdolwsuahI7q8OF/WD/gU Wxkk5c9cvF8Lv/wgdROpIHI2BwPhvI527dhqU282Pqs5wmChh/D2xdal5n5LFAtYnolw Vil/Nf88hCbPRxyxRdVxpvwLhMLywNdQ26KzmKPt+NXy4jlg2TKgf7ry3aetXvmLS3bG QdwFr7qWZ0C5sfysrN+avczG2PfXlINcES+WD62mMQ0rBntweyTWxH69Q2McQeE4P2xc DT1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=evTthrlBzZ6x05lgu/bNvqv1RWPjCKTEHj9UxXmFQAo=; b=Wq10HEh8QcXb5suAFA84dXLfXo7+wAp8kqR3X6wEHOJTv5g8iBh0gbUbQV0+9PX1X8 T4kufVslC3de26Le5UvfmqmtxJHTJcZ4W6y3GJ+r1sOd2OuUOP2+A23A8sTPVlBySXMh 7nA/s+UFGjKId3XsCbMZxFgFnB/7So15qJu2B9qRjvhx695gQIgaqEuwHkv6C0r76z0X 3NNljokINMgnLp/59mrkyYODeB18KHLacBF+5unXHtjeyb1SNxl6H67LpzrZwk334EDn okifQgHr5DV3EdwW325iqxIOaunSvm5O9bNfaUDMy7gdvxJjXP3owASv4GrFdC9CtZ1P MK0w== X-Gm-Message-State: APjAAAVn3gvkWIaj1SdRI/N2Cyfc7yzs9tb0MmKFanmeHgfGhmr9We9a GDfw2i5zbzaI1Jsuqrm1XCkzx0A6 X-Google-Smtp-Source: APXvYqwuWgCkH9CUUb1EduzwsWdv+i37VDMzMy+KK3PEU0QXqAsJj/zPuO+9fZT6YV9xTdMND7aZ3g== X-Received: by 2002:a1c:9d86:: with SMTP id g128mr9679026wme.51.1560536815063; Fri, 14 Jun 2019 11:26:55 -0700 (PDT) Received: from gilles-Gazelle-Professional.home ([2a01:cb1d:b6:bd00:e81a:ade1:4a02:315e]) by smtp.gmail.com with ESMTPSA id l8sm9532703wrg.40.2019.06.14.11.26.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 14 Jun 2019 11:26:54 -0700 (PDT) From: Gilles Talis To: buildroot@buildroot.org Date: Fri, 14 Jun 2019 20:26:46 +0200 Message-Id: <1560536806-8286-1-git-send-email-gilles.talis@gmail.com> X-Mailer: git-send-email 2.7.4 Subject: [Buildroot] [PATCH] configs/freescale_imx8mmevk: 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: Gilles Talis MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Signed-off-by: Gilles Talis --- .gitlab-ci.yml | 1 + DEVELOPERS | 2 + board/freescale/imx8mmevk/readme.txt | 71 +++++++++++++++++++++++++++++++++++ configs/freescale_imx8mmevk_defconfig | 42 +++++++++++++++++++++ 4 files changed, 116 insertions(+) create mode 100644 board/freescale/imx8mmevk/readme.txt create mode 100644 configs/freescale_imx8mmevk_defconfig diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2557ce1..087bfa7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -176,6 +176,7 @@ freescale_imx6qsabreauto_defconfig: { extends: .defconfig } freescale_imx6qsabresd_defconfig: { extends: .defconfig } freescale_imx6sxsabresd_defconfig: { extends: .defconfig } freescale_imx7dsabresd_defconfig: { extends: .defconfig } +freescale_imx8mmevk_defconfig: { extends: .defconfig } freescale_imx8mqevk_defconfig: { extends: .defconfig } freescale_imx8qxpmek_defconfig: { extends: .defconfig } freescale_p1025twr_defconfig: { extends: .defconfig } diff --git a/DEVELOPERS b/DEVELOPERS index b64f8b8..62aacc1 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -925,6 +925,8 @@ F: package/python-pycli/ F: package/python-pyyaml/ N: Gilles Talis +F: board/freescale/imx8mmevk/ +F: configs/freescale_imx8mmevk_defconfig F: package/fdk-aac/ F: package/httping/ F: package/iozone/ diff --git a/board/freescale/imx8mmevk/readme.txt b/board/freescale/imx8mmevk/readme.txt new file mode 100644 index 0000000..7b69405 --- /dev/null +++ b/board/freescale/imx8mmevk/readme.txt @@ -0,0 +1,71 @@ +*************************** +Freescale i.MX8MM EVK board +*************************** + +This file documents the Buildroot support for the Freescale i.MX8MM +EVK board. + +Build +===== + +First, configure Buildroot for the i.MX8MM EVK board: + + make freescale_imx8mmevk_defconfig + +Build all components: + + make + +You will find in output/images/ the following files: + - bl31.bin + - boot.vfat + - fsl-imx8mm-evk.dtb + - Image + - imx8-boot-sd.bin + - lpddr4_pmu_train_fw.bin + - rootfs.ext2 + - rootfs.ext4 + - rootfs.tar + - sdcard.img + - u-boot.bin + - u-boot.imx + - u-boot-nodtb.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.MX8MM EVK board +========================== + +To boot your newly created system (refer to the i.MX8MMini EVK Quick Start Guide +[1] for guidance): +- insert the SD card in the SD slot of the board; +- Configure the switches as follows: +SW1101: 0110110010 [D1-D10] +SW1102: 0001101000 [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/document/guide/Get-Started-with-the-i.MX-8M-Mini-EVK:GS-iMX-8M-Mini-EVK diff --git a/configs/freescale_imx8mmevk_defconfig b/configs/freescale_imx8mmevk_defconfig new file mode 100644 index 0000000..1acb3a6 --- /dev/null +++ b/configs/freescale_imx8mmevk_defconfig @@ -0,0 +1,42 @@ +BR2_aarch64=y +BR2_ARM_FPU_VFPV3=y +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_14=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-imx8mm-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.14.78_1.0.0_ga" +BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y +BR2_LINUX_KERNEL_DTS_SUPPORT=y +BR2_LINUX_KERNEL_INTREE_DTS_NAME="freescale/fsl-imx8mm-evk" +BR2_PACKAGE_FREESCALE_IMX=y +BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MM=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_4.14.78_1.0.0_ga" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="imx8mm" +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.14.78_1.0.0_ga" +BR2_TARGET_UBOOT_BOARD_DEFCONFIG="imx8mm_evk" +BR2_TARGET_UBOOT_NEEDS_DTC=y +BR2_TARGET_UBOOT_FORMAT_IMX=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