From patchwork Thu Jul 19 07:32:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gary Bisson X-Patchwork-Id: 946079 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.138; helo=whitealder.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.b="n/6NxGD0"; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41WQqm1mDSz9s1R for ; Thu, 19 Jul 2018 17:38:44 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id E5CAA88E78; Thu, 19 Jul 2018 07:38:39 +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 PBACQHvr9uKF; Thu, 19 Jul 2018 07:38:38 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id ED92088E4C; Thu, 19 Jul 2018 07:38:37 +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 B9EC71C0AD2 for ; Thu, 19 Jul 2018 07:38:36 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id B826587587 for ; Thu, 19 Jul 2018 07:38:36 +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 2KpFRxE74Slv for ; Thu, 19 Jul 2018 07:38:36 +0000 (UTC) X-Greylist: delayed 00:05:33 by SQLgrey-1.7.6 Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 08B1A8740A for ; Thu, 19 Jul 2018 07:38:36 +0000 (UTC) Received: by mail-wr1-f65.google.com with SMTP id c4-v6so6979890wrs.12 for ; Thu, 19 Jul 2018 00:38:35 -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; bh=17QKJTkHtHFohSs7wASEWBhJpcnjrb8B41gMna7ESEs=; b=n/6NxGD0s0wGCzLepKW3HismUW7ZhvPgFOBdKFdN+WkZNx5yT2gMSHrp4fo0eM5nSj yDQ4FbQTktqKtQ+y2KHWhyoDv637s6lMAgMq8yN4x0Rki1uE+YSaCc02KAumCeWuoQRN I8MxIW7jh/N7qEScUDvmtRbS1bq0wsdXmUB+z2yY4jKbS1YOiN2fA2tX+sV9BI3xRLpD xsU+IX+z1/siUqrtkcMjNZDIAmMLXtqTVVr8wAyV3LbHnnoM81el/NasOrUIf5hTttbf eNWp3z7jpdFCkDHFYUyszZAzhTzcd/ZBJiYhl4F5kfHDQKJXIYybXc/wWcbEgR096B4H CNYA== 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; bh=17QKJTkHtHFohSs7wASEWBhJpcnjrb8B41gMna7ESEs=; b=sP+tmKbB+7ISPdWp+9qAAGhFfYgUy1N91UnEA23qGop7NULyhYalovN+xh9ZQcV1PO tEgffHX6hCWHSkl9L0Lfypa6wsfxQNzvbBjYz5nbYxx41AEK7QwNwCNptsQwkUhd57xx WtglH8RoQ/4wv6HrIAAwn1nPJCmlRanGbjuI0pOF/CQMt0RwFtTVjhXTjDc0mXuVH8Jv CkkbnUBADeOIBqYHBrIT54mRt5f589CtGoxpgLS/8ebKr4KkptA1tOSui0V1S9YZCujw JDCihn05F5h2MXEwo4XkVilk9L29VdPtItkDKTfAleMnavNgqRUjaWuu49GFZ1K2pxvG duBQ== X-Gm-Message-State: AOUpUlHKwHjjqol8qvT7CVjxMUuM45Zd5spP9khce0jCWFNUUaZUJqR+ mV3sqk6lfLt+0f0PTUPjy5+AezaeVm0= X-Google-Smtp-Source: AAOMgpedjGc9tR4LBLTaV0VfqjimCH99ZbtHYGAs73jDXbUGfsFqiGmjlzGqiD2TfJewttJ5bHB/Lw== X-Received: by 2002:adf:c4f0:: with SMTP id o45-v6mr6475938wrf.173.1531985582550; Thu, 19 Jul 2018 00:33:02 -0700 (PDT) Received: from g751.home (2a01cb040a78e30028cbd66b90cf39f4.ipv6.abo.wanadoo.fr. [2a01:cb04:a78:e300:28cb:d66b:90cf:39f4]) by smtp.googlemail.com with ESMTPSA id 131-v6sm6260466wmm.31.2018.07.19.00.33.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Jul 2018 00:33:01 -0700 (PDT) From: Gary Bisson To: buildroot@buildroot.org Date: Thu, 19 Jul 2018 09:32:49 +0200 Message-Id: <20180719073253.22433-2-gary.bisson@boundarydevices.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180719073253.22433-1-gary.bisson@boundarydevices.com> References: <20180719073253.22433-1-gary.bisson@boundarydevices.com> Subject: [Buildroot] [PATCH 1/5] board/freescale/common/imx: make imx8-bootloader-prepare more generic X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Allow user to override the hardcoded dtb name by using BR2_ROOTFS_POST_SCRIPT_ARGS. Signed-off-by: Gary Bisson --- .../freescale/common/imx/imx8-bootloader-prepare.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/board/freescale/common/imx/imx8-bootloader-prepare.sh b/board/freescale/common/imx/imx8-bootloader-prepare.sh index 2648147ab0..ce2c3405a0 100755 --- a/board/freescale/common/imx/imx8-bootloader-prepare.sh +++ b/board/freescale/common/imx/imx8-bootloader-prepare.sh @@ -2,9 +2,17 @@ main () { - # Currently we support imx8mqevk. + if [ $# -le 1 ]; then + UBOOT_DTB=${BINARIES_DIR}/fsl-imx8mq-evk.dtb + else + UBOOT_DTB=$2 + fi + if [ ! -e $UBOOT_DTB ]; then + echo "ERROR: couldn't find $UBOOT_DTB" + exit 1 + fi 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.bin ${HOST_DIR}/bin/mkimage_fit_atf.sh ${BINARIES_DIR}/fsl-imx8mq-evk.dtb > ${BINARIES_DIR}/u-boot.its + BL31=${BINARIES_DIR}/bl31.bin BL33=${BINARIES_DIR}/u-boot.bin ${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