From patchwork Wed Apr 15 16:18:28 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gary Bisson X-Patchwork-Id: 1271315 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=boundarydevices.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=boundarydevices-com.20150623.gappssmtp.com header.i=@boundarydevices-com.20150623.gappssmtp.com header.a=rsa-sha256 header.s=20150623 header.b=G6b6JXcl; 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 492SJR03mQz9sTZ for ; Thu, 16 Apr 2020 02:18:48 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 9249F870A1; Wed, 15 Apr 2020 16:18:46 +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 OUrZT3+L0JSK; Wed, 15 Apr 2020 16:18:45 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 3247B874AB; Wed, 15 Apr 2020 16:18:45 +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 0EAD71BF9BA for ; Wed, 15 Apr 2020 16:18:40 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 0BD4483AF8 for ; Wed, 15 Apr 2020 16:18:40 +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 gZHQ9jEP6mIT for ; Wed, 15 Apr 2020 16:18:39 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f67.google.com (mail-wm1-f67.google.com [209.85.128.67]) by whitealder.osuosl.org (Postfix) with ESMTPS id 5A58781D3C for ; Wed, 15 Apr 2020 16:18:39 +0000 (UTC) Received: by mail-wm1-f67.google.com with SMTP id o81so226504wmo.2 for ; Wed, 15 Apr 2020 09:18:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=boundarydevices-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=BEU+nzu6RtR/EQX79/5XBcejQ31FQ6FSbAB4JazRA+c=; b=G6b6JXcljROZIc+T4i/lXPmxVWlGuoVoe4UxZ6z8eAjO9rerlZmDxpk+K9sPJoQSsv YIqPZXjupdC5lsq3nmwOfBleeTwm3mOuyrozH1HqGGOrn2rMwnu2m3jGjtSF/k5YEwJe tdgtFb6FbY+1JowhONbV1Y80LTt9ejwE4ORl/pnaYxuHsqN7ZmdN90ohzq30TbYmM3KC BSjC6ShUsHrhRYsUyhZECoDBMwagouKSWyvzEAnlVWTGKmEW528iC92uog+VR5sEfSGU O20QNVdmvP4ughAuarIMUaBoddftI33Ae/VYDSz8W0+MZOx/F23FpfHOPKmmewog/qbQ bpxg== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=BEU+nzu6RtR/EQX79/5XBcejQ31FQ6FSbAB4JazRA+c=; b=YfSQmYpoO0I7PqaLzq+j2kKKB2s7yQmqWct0qej1gUnBM4TqZYBDBNUnsMH4jwGb8R E+jOidVKvuEtkT2LsHwhE0GzrOEz4829XpAhAyk8UlATi5bPKHzbElT/Dq/ddG/cTiw3 SgPBCruijriINuJBGnOw4zmS494HVV8fSNNz6aA1LwwMfWMVMA4R0lLW9xt/sfMGtPF9 YXEylJijhdJ2Bmxymjyy/z/t/pPOsCkp+kZsPLwFmZwIHFPAfSS448TVW9M30zk3I+MX WXCiwGFiVGDeVrc3cxswYORWv0q2ev4YMqY/AgtC3g4lNDW/NimVMnAe9ezLHwVlFx6V DXzw== X-Gm-Message-State: AGi0PubEbw9OPS5zyqM8WFGHN7Lm/RGZ1nqzvEFb2ti6GktOOSmBw2Nx 9W3oLOXDieV0BCoogp28jNNbYsjRGK0= X-Google-Smtp-Source: APiQypKtWdaEeU0VQP04TTGnMyWZpqNZ68y41RhYx+eLY+SKd8tzR9bqjAj1Xu331BvaabchWBiIqg== X-Received: by 2002:a1c:7d15:: with SMTP id y21mr5716851wmc.57.1586967517393; Wed, 15 Apr 2020 09:18:37 -0700 (PDT) Received: from p1g2.home (2a01cb000f89b400cc883edd44ec4519.ipv6.abo.wanadoo.fr. [2a01:cb00:f89:b400:cc88:3edd:44ec:4519]) by smtp.gmail.com with ESMTPSA id s14sm60388wme.33.2020.04.15.09.18.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Apr 2020 09:18:36 -0700 (PDT) From: Gary Bisson To: buildroot@buildroot.org Date: Wed, 15 Apr 2020 18:18:28 +0200 Message-Id: <20200415161831.2093348-5-gary.bisson@boundarydevices.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200415161831.2093348-1-gary.bisson@boundarydevices.com> References: <20200415161831.2093348-1-gary.bisson@boundarydevices.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH 4/7] board/freescale/common/imx: add support for i.MX8M Nano 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 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Almost identical as i.MX8M Mini, here are the differences: - different ATF load address [1] - different entry point [2] - different ROM version (v2) [3] [1] https://gitlab.denx.de/u-boot/u-boot/-/blob/v2020.04/board/freescale/imx8mn_evk/README [2] https://gitlab.denx.de/u-boot/u-boot/-/blob/v2020.04/configs/imx8mn_ddr4_evk_defconfig#L22 [3] https://gitlab.denx.de/u-boot/u-boot/-/commit/b8f16834 Signed-off-by: Gary Bisson --- board/freescale/common/imx/imx8-bootloader-prepare.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/board/freescale/common/imx/imx8-bootloader-prepare.sh b/board/freescale/common/imx/imx8-bootloader-prepare.sh index 45c648e360..abf2e43de8 100755 --- a/board/freescale/common/imx/imx8-bootloader-prepare.sh +++ b/board/freescale/common/imx/imx8-bootloader-prepare.sh @@ -22,6 +22,13 @@ main () rm -f ${BINARIES_DIR}/u-boot.its ${HOST_DIR}/bin/mkimage_imx8 -fit -loader ${BINARIES_DIR}/u-boot-spl-ddr.bin 0x7E1000 -second_loader ${BINARIES_DIR}/u-boot.itb 0x40200000 0x60000 -out ${BINARIES_DIR}/imx8-boot-sd.bin + elif grep -Eq "^BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MN=y$" ${BR2_CONFIG}; then + cat ${BINARIES_DIR}/u-boot-spl.bin ${BINARIES_DIR}/lpddr4_pmu_train_fw.bin > ${BINARIES_DIR}/u-boot-spl-ddr.bin + BL31=${BINARIES_DIR}/bl31.bin BL33=${BINARIES_DIR}/u-boot-nodtb.bin ATF_LOAD_ADDR=0x00960000 ${HOST_DIR}/bin/mkimage_fit_atf.sh ${UBOOT_DTB} > ${BINARIES_DIR}/u-boot.its + ${HOST_DIR}/bin/mkimage -E -p 0x3000 -f ${BINARIES_DIR}/u-boot.its ${BINARIES_DIR}/u-boot.itb + rm -f ${BINARIES_DIR}/u-boot.its + + ${HOST_DIR}/bin/mkimage_imx8 -v v2 -fit -loader ${BINARIES_DIR}/u-boot-spl-ddr.bin 0x912000 -second_loader ${BINARIES_DIR}/u-boot.itb 0x40200000 0x60000 -out ${BINARIES_DIR}/imx8-boot-sd.bin else ${HOST_DIR}/bin/mkimage_imx8 -commit > ${BINARIES_DIR}/mkimg.commit cat ${BINARIES_DIR}/u-boot.bin ${BINARIES_DIR}/mkimg.commit > ${BINARIES_DIR}/u-boot-hash.bin